:root{
    --warna-tema: <?= $setting['warna_tema'] ?? '#4b6cb7' ?>;
    --warna-menu: <?= $setting['warna_menu'] ?? '#ffffff' ?>;
    --warna-running: <?= $setting['warna_running'] ?? '#ffc107' ?>;
    --warna-footer: <?= $setting['warna_footer'] ?? '#212529' ?>;
    --warna-tombol: <?= $setting['warna_tombol'] ?? '#198754' ?>;
}

/* ================= HEADER ================= */
.header-sekolah{
    background-size:cover;
    background-position:center;
    color:white;
    padding:25px 0;
    position:relative;
}

.header-sekolah::before{
    content:'';
    position:absolute;
    inset:0;
    background:rgba(0,0,0,0.35);
}

.header-sekolah .container{
    position:relative;
    z-index:2;
}

/* ================= MENU ================= */
.menu-sekolah{
    background: var(--warna-menu);
    padding:6px 0;
    box-shadow:0 2px 8px rgba(0,0,0,0.05);
}

.menu-sekolah .nav-link{
    color:#fff;
    font-weight:600;
    padding:10px 18px;
    position:relative;
    transition:0.3s;
}

.menu-sekolah .nav-link:hover{
    color: var(--warna-tema);
}

.menu-sekolah .nav-link::after{
    content:'';
    position:absolute;
    bottom:0;
    left:50%;
    width:0;
    height:2px;
    background: var(--warna-tema);
    transform:translateX(-50%);
    transition:0.3s;
}

.menu-sekolah .nav-link:hover::after{
    width:60%;
}

/* ================= DROPDOWN ================= */
.menu-sekolah .dropdown-menu{
    border:none;
    border-radius:10px;
    box-shadow:0 8px 25px rgba(0,0,0,0.15);
    padding:10px 0;
    margin-top:10px;
    opacity:0;
    transform:translateY(10px);
    visibility:hidden;
    transition:0.25s;
    display:block;
}

.menu-sekolah .dropdown:hover .dropdown-menu{
    opacity:1;
    transform:translateY(0);
    visibility:visible;
}

.menu-sekolah .dropdown-item:hover{
    background:var(--warna-tema);
    color:white;
}

/* ================= RUNNING ================= */
.running-info{
    background: var(--warna-running);
    padding:8px;
    font-size:14px;
}

/* ================= SIDEBAR ================= */
.sidebar-box{
    border:1px solid #ddd;
    margin-bottom:20px;
    background:#fff;
    border-radius:4px;
    overflow:hidden;
}

.sidebar-title{
    background: var(--warna-tema);
    color:white;
    padding:10px;
    font-weight:600;
}

/* ================= CARD ================= */
.card img{
    height:120px;
    object-fit:cover;
}

/* ================= GALLERY ================= */
.gallery-img{
    height:220px;
    width:100%;
    object-fit:contain;
    background:#f8f9fa;
    padding:10px;
    transition:.3s;
}

.gallery-img:hover{
    transform:scale(1.05);
}

/* ================= FOOTER ================= */
.footer-sekolah{
    background: var(--warna-footer);
    color:white;
    padding:20px;
}

/* ================= BUTTON ================= */
.menu-sekolah .login-btn{
    background: var(--warna-tombol);
    border-radius:6px;
    padding:8px 15px;
    margin-left:10px;
    color:white;
}

.menu-sekolah .login-btn:hover{
    filter:brightness(90%);
}

/* ================= BACK TO TOP ================= */
#backToTop{
    position:fixed;
    bottom:30px;
    right:30px;
    display:none;
    background: var(--warna-tombol);
    color:white;
    border:none;
    border-radius:50%;
    width:45px;
    height:45px;
    cursor:pointer;
}
.logo-sekolah{
    width:70px;
    height:70px;
    object-fit:contain;
    margin-right:12px;
}

/* mobile */
@media(max-width:768px){
    .logo-sekolah{
        width:50px;
        height:50px;
    }
}

/* FIX LIST GROUP LINK (SIDEBAR) */
.list-group-item,
.list-group-item a{
    text-decoration: none !important;
}

.list-group-item:hover,
.list-group-item:focus{
    text-decoration: none !important;
}
/* HILANGKAN GARIS BAWAH DI SIDEBAR */
.sidebar-box .list-group-item a{
    text-decoration: none !important;
    color: #0d6efd; /* biar tetap biru seperti di gambar */
    display: block;
    width: 100%;
}

/* HOVER */
.sidebar-box .list-group-item a:hover{
    text-decoration: none !important;
    color: var(--warna-tema);
}
/* SUPER FORCE REMOVE UNDERLINE */
.sidebar-box .list-group-item a,
.sidebar-box .list-group-item a:hover,
.sidebar-box .list-group-item a:focus,
.sidebar-box .list-group-item a:active{
    text-decoration: none !important;
    border-bottom: none !important;
    box-shadow: none !important;
}
/* INFO SEKOLAH */
.list-unstyled a{
    text-decoration: none !important;
}

/* ARTIKEL */
.card a{
    text-decoration: none !important;
}

/* HOVER */
.list-unstyled a:hover,
.card a:hover{
    text-decoration: none !important;
    color: var(--warna-tema);
}
.running-info a{
    color: white;
    text-decoration: none !important;
    font-weight: 500;
}

.running-info a:hover{
    color: #000;
}
.running-info marquee{
    display: block;
    width: 100%;
}
.marquee{
    overflow: hidden;
    position: relative;
}

.marquee-content{
    display: inline-block;
    white-space: nowrap;
    padding-left: 100%;
    animation: jalan 20s linear infinite;
}

@keyframes jalan{
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

.running-info a{
    margin-right: 30px;
    color: white;
    text-decoration: none;
}