/* Custom CSS untuk mengadaptasi template Mentor dengan gaya SPENDU/UIN */

/* Warna Primer UIN-ish: Biru gelap */
:root {
    --primary-color: #0f8501;
    --secondary-color: #2ecc71;
    --text-light: #ffffff;
    --text-dark: #333333;
    --accent-yellow: #ffc107;
    --nav-font: sans-serif;
}

/* ====================================================================
   FIX CRITICAL: HEADER RESPONSIVE
   ==================================================================== */
.header {
    background-color: transparent;
    padding: 0px 0;
    height: 70px;
    transition: all 0.5s ease-in-out;
    z-index: 1020;
    box-shadow: none !important;
}

.header.sticky-top {
    background-color: var(--primary-color) !important;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.2) !important;
}

/* Fix untuk mobile - pastikan background selalu ada */
@media (max-width: 991px) {
    .header {
        background-color: var(--primary-color) !important;
        position: fixed !important;
        /* KRITIS: Tambahkan fixed di mobile */
        top: 0;
        width: 100%;
    }

    .header .logo {
        z-index: 1021;
    }

    .header .mobile-nav-toggle {
        color: var(--text-light) !important;
        z-index: 1021;
    }
}

.header .logo {
    margin-right: 0 !important;
}

.header .uin-logo-img {
    max-height: 45px !important;
    margin-right: 10px !important;
    transition: all 0.3s;
}

.header .logo .sitename {
    color: var(--text-light) !important;
    font-size: 18px;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
}

/* ====================================================================
   NAVIGATION MENU - FIXED COLORS
   ==================================================================== */
.navmenu {
    margin-left: auto;
}

.navmenu ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
}

.navmenu li {
    padding: 0 5px;
}

.navmenu a {
    padding: 25px 12px;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-light) !important;
    transition: 0.3s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1;
}

.navmenu a:hover,
.navmenu .active,
.navmenu .active:focus,
.navmenu li:hover>a {
    color: var(--accent-yellow) !important;
}

/* Dropdown Desktop */
.navmenu .dropdown ul {
    background: var(--secondary-color);
    padding: 10px 0;
    min-width: 220px;
    border-radius: 0;
    border-top: 3px solid var(--accent-yellow);
}

.navmenu .dropdown ul a {
    padding: 10px 20px;
    font-size: 14px;
    text-transform: none;
    color: var(--text-light) !important;
}

.navmenu .dropdown ul a:hover,
.navmenu .dropdown ul .active:hover,
.navmenu .dropdown ul li:hover>a {
    color: var(--accent-yellow) !important;
    background-color: rgba(255, 255, 255, 0.1);
}

/* Mobile Menu - Fix Background */
@media (max-width: 991px) {
    .navmenu {
        background-color: var(--primary-color) !important;
    }

    .navmenu ul {
        background-color: var(--primary-color) !important;
    }

    .navmenu a {
        color: var(--text-light) !important;
    }

    /* KRITIS: Perbaikan Dropdown Mobile Agar Tidak Putih (Level 1) */
    .navmenu .dropdown ul {
        background: var(--secondary-color) !important;
        /* Warna biru gelap solid */
        margin: 0 !important;
        /* Hapus margin yang menyebabkan white-gap */
        padding: 0 !important;
        /* Hapus padding yang menyebabkan white-gap */
        border-top: none;
    }

    /* KRITIS: Fix Dropdown di dalam Dropdown Mobile (Level 2+) */
    .navmenu .dropdown ul ul {
        /* Pastikan sub-dropdown juga solid */
        background-color: var(--primary-color) !important;
        margin: 0 !important;
    }
}

/* ====================================================================
   HEADER EXTRAS
   ==================================================================== */
.header-extras {
    margin-left: 10px !important;
    height: 70px;
}

.header-extras ul li {
    padding-left: 15px;
}

.header-extras a.header-icon,
.header-extras .p-dropdown a {
    color: var(--text-light) !important;
    font-size: 18px;
    transition: color 0.3s;
    line-height: 1;
}

.header-extras a:hover {
    color: var(--accent-yellow) !important;
}

.header-extras .btn-uin-style {
    background: var(--accent-yellow);
    color: var(--text-dark);
    padding: 8px 18px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    text-decoration: none;
    line-height: normal;
    display: inline-block;
}

.header-extras .btn-uin-style:hover {
    background: #e0a800;
}

.header-extras .p-dropdown {
    position: relative;
}

.header-extras .p-dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    top: 50px;
    background-color: var(--secondary-color);
    min-width: 150px;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    padding: 5px 0;
    border-top: 3px solid var(--accent-yellow);
}

.header-extras .p-dropdown-content li {
    padding: 0;
    white-space: nowrap;
}

.header-extras .p-dropdown-content a {
    padding: 8px 15px;
    font-size: 14px;
    display: block;
    color: var(--text-light);
}

.header-extras .p-dropdown:hover .p-dropdown-content {
    display: block;
}

@media (max-width: 991px) {
    .header-extras {
        display: none !important;
    }
}

/* ====================================================================
   FOOTER & ACTION
   ==================================================================== */
.footer {
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 60px 0 30px 0;
    font-size: 14px;
}

.footer .footer-about .logo .sitename {
    color: var(--text-light);
    font-size: 24px;
    font-weight: 700;
    margin-left: 10px;
}

.footer .footer-about .footer-contact p {
    margin-bottom: 5px;
    color: rgba(255, 255, 255, 0.8);
}

.footer .footer-about .footer-contact p strong {
    color: var(--text-light);
}

.footer .social-links a {
    color: var(--text-light);
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.footer .social-links a:hover {
    background-color: var(--accent-yellow);
    border-color: var(--accent-yellow);
    color: var(--text-dark);
}

.footer h4 {
    color: var(--text-light);
    font-size: 18px;
    font-weight: 700;
    position: relative;
    padding-bottom: 12px;
}

.footer h4::after {
    content: '';
    position: absolute;
    display: block;
    width: 50px;
    height: 2px;
    background: var(--accent-yellow);
    left: 0;
    bottom: 0;
}

.footer .footer-links ul li {
    padding: 8px 0;
}

.footer .footer-links ul a {
    color: rgba(255, 255, 255, 0.8);
    transition: 0.3s;
    display: inline-block;
    line-height: 1;
}

.footer .footer-links ul a:hover {
    color: var(--accent-yellow);
}

.footer .footer-newsletter {
    color: rgba(255, 255, 255, 0.8);
}

.footer .footer-newsletter input[type=email] {
    border: 0;
    padding: 8px 10px;
    width: calc(100% - 110px);
    border-radius: 4px 0 0 4px;
}

.footer .footer-newsletter input[type=submit] {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    border: 0;
    background: var(--secondary-color);
    color: var(--text-light);
    padding: 0 20px;
    border-radius: 0 4px 4px 0;
}

.footer .footer-newsletter input[type=submit]:hover {
    background: var(--accent-yellow);
    color: var(--text-dark);
}

.footer .copyright {
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

.action-one {
    background-color: var(--secondary-color);
    color: var(--text-light);
    padding: 40px;
    margin-top: 30px;
    text-align: center;
    border-radius: 8px;
}

.action-one .action-t h3 {
    color: var(--text-light);
    font-size: 28px;
    margin-bottom: 15px;
}

.action-one .action-t p {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 30px;
}

.action-one .action-button .tbutton {
    background-color: var(--accent-yellow);
    color: var(--text-dark);
    padding: 12px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.action-one .action-button .tbutton:hover {
    background-color: #e0a800;
}

/* ====================================================================
   HERO CAROUSEL VIDEO - FULL SCREEN HORIZONTAL (FIXED)
   ==================================================================== */

/* 1. Hero Section - Full Viewport Height */
#hero.hero {
    height: 100vh !important;
    min-height: 100vh !important;
    max-height: 100vh !important;
    position: relative;
    padding: 0 !important;
    margin: 0 !important;
    background-color: #000;
    overflow: hidden;
}

/* 2. Carousel - Full Height */
#hero-carousel {
    height: 100vh !important;
    width: 100% !important;
}

#hero-carousel .carousel-inner {
    height: 100vh !important;
}

#hero-carousel .carousel-item {
    height: 100vh !important;
    width: 100% !important;
    position: relative;
    overflow: hidden;
}

/* 3. Video Background - FULL COVER */
#hero-carousel .video-slide-item .hero-video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

/* 4. Image Slide - Full Cover */
#hero-carousel .carousel-item img {
    width: 100%;
    height: 100vh;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

/* 5. Overlay */
#hero.hero:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2;
}

/* 6. Container Konten */
#hero.hero .container {
    position: relative;
    z-index: 3;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 15px;
    pointer-events: none;
}

#hero.hero .container * {
    pointer-events: auto;
}

#hero.hero h2,
#hero.hero p {
    color: var(--text-light) !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

#hero.hero h2 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
}

#hero.hero p {
    font-size: 20px;
    margin-bottom: 30px;
}

/* ====================================================================
   FIX CRITICAL: TOMBOL NAVIGATION (NO DUPLICATE)
   ==================================================================== */

/* Sembunyikan SEMUA tombol carousel default */
#hero-carousel .carousel-control-prev:not(button),
#hero-carousel .carousel-control-next:not(button),
#hero-carousel a.carousel-control-prev,
#hero-carousel a.carousel-control-next {
    display: none !important;
}

/* Tampilkan HANYA tombol button yang kita buat - SIMPLE & KECIL */
#hero-carousel button.carousel-control-prev,
#hero-carousel button.carousel-control-next {
    display: flex !important;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 50px;
    height: 50px;
    padding: 0;
    color: var(--text-light);
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    opacity: 0.7;
    transition: all 0.3s ease;
    cursor: pointer;
}

#hero-carousel button.carousel-control-prev {
    left: 20px;
}

#hero-carousel button.carousel-control-next {
    right: 20px;
}

#hero-carousel button.carousel-control-prev:hover,
#hero-carousel button.carousel-control-next:hover {
    opacity: 1;
    background: rgba(0, 77, 153, 0.9);
    border-color: var(--accent-yellow);
    transform: translateY(-50%) scale(1.1);
}

/* Ikon Panah */
#hero-carousel .carousel-control-prev-icon,
#hero-carousel .carousel-control-next-icon {
    width: 24px;
    height: 24px;
    background-size: 100% 100%;
    filter: drop-shadow(1px 1px 2px rgba(0, 0, 0, 0.5));
}

/* ====================================================================
   FIX: HAPUS SEMUA PSEUDO-ELEMENT DUPLIKAT
   ==================================================================== */
.hero *:before,
.hero *:after,
.hero .container *:before,
.hero .container *:after,
.hero .row:before,
.hero .row:after {
    content: none !important;
    display: none !important;
}

/* Kecuali overlay utama */
#hero.hero:before {
    content: '' !important;
    display: block !important;
}

/* ====================================================================
   CAROUSEL INDICATORS
   ==================================================================== */
#hero-carousel .carousel-indicators {
    bottom: 30px;
    z-index: 10;
}

#hero-carousel .carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    border: 2px solid var(--text-light);
    margin: 0 5px;
    transition: all 0.3s;
}

#hero-carousel .carousel-indicators button.active {
    background-color: var(--accent-yellow);
    border-color: var(--accent-yellow);
    width: 30px;
    border-radius: 6px;
}

/* ====================================================================
   RESPONSIVE
   ==================================================================== */
@media (max-width: 768px) {
    #hero.hero h2 {
        font-size: 32px;
    }

    #hero.hero p {
        font-size: 16px;
    }

    #hero-carousel button.carousel-control-prev,
    #hero-carousel button.carousel-control-next {
        width: 40px;
    }

    #hero-carousel .carousel-control-prev-icon,
    #hero-carousel .carousel-control-next-icon {
        width: 30px;
        height: 30px;
    }
}

/* ====================================================================
   SECTION SPACING
   ==================================================================== */
section,
.section {
    padding: 60px 0;
    overflow: hidden;
}

.list-item-berita-uin {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding-bottom: 15px !important;
    margin-bottom: 15px !important;
    transition: background-color 0.3s;
}

.list-item-berita-uin:hover {
    background-color: rgba(0, 77, 153, 0.03);
}

.col-title {
    font-size: 24px;
    font-weight: 700;
    padding-bottom: 10px;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--accent-yellow) !important;
}

.container>.row {
    margin-top: 0;
}

/* custom.css */

/* Breadcrumb */
.breadcrumb-place {
    background-size: cover;
    background-position: center;
    padding: 80px 0;
    /* Sesuaikan padding */
    color: white;
    text-align: center;
    position: relative;
}

.breadcrumb-place::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    /* Overlay gelap agar teks terbaca */
    z-index: 1;
}

.breadcrumb-place .container {
    position: relative;
    z-index: 2;
}

.breadcrumb-place .page-title {
    font-size: 3em;
    /* Sesuaikan ukuran font */
    margin-bottom: 10px;
}

.breadcrumb-place .breadcrumb {
    justify-content: center;
    background: none;
    padding: 0;
    margin: 0;
}

.breadcrumb-place .breadcrumb-item {
    color: white;
}

.breadcrumb-place .breadcrumb-item a {
    color: white;
    text-decoration: none;
}

.breadcrumb-place .breadcrumb-item.active {
    color: #ddd;
}


/* Info Siswa Section */
.info-sekolah-siswa {
    padding: 60px 0;
    /* Sesuaikan padding section */
}

/* Post Layout */
.posts .post {
    display: flex;
    /* Menggunakan flexbox untuk tata letak post */
    gap: 20px;
    /* Jarak antara gambar dan konten */
    margin-bottom: 30px;
    border: 1px solid #eee;
    padding: 15px;
    border-radius: 5px;
    background-color: #fff;
}

.posts .post .thumb-medium {
    flex-shrink: 0;
    /* Gambar tidak menyusut */
    width: 150px;
    /* Ukuran thumbnail */
    height: 100px;
    /* Ukuran thumbnail */
    overflow: hidden;
    border-radius: 3px;
}

.posts .post .thumb-medium img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Pastikan gambar mengisi area */
}

.posts .post .content-half {
    flex-grow: 1;
    /* Konten mengisi sisa ruang */
}

.posts .post .meta-box h3 {
    font-size: 1.5em;
    margin-top: 0;
    margin-bottom: 5px;
}

.posts .post .meta-box .meta-more span {
    margin-right: 15px;
    color: #777;
    font-size: 0.9em;
}

.posts .post .meta-box .meta-more span a {
    color: #777;
    text-decoration: none;
}

.posts .post p {
    margin-top: 10px;
    margin-bottom: 15px;
    line-height: 1.6;
    color: #555;
}

/* Tombol */
.tbutton {
    display: inline-block;
    padding: 8px 15px;
    background-color: #007bff;
    /* Warna primer Bootstrap */
    color: white;
    text-decoration: none;
    border-radius: 3px;
    transition: background-color 0.3s ease;
}

.tbutton:hover {
    background-color: #0056b3;
    color: white;
}

.tbutton span {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Sidebar */
.sidebar .widget {
    margin-bottom: 30px;
    padding: 20px;
    border: 1px solid #eee;
    border-radius: 5px;
    background-color: #fff;
}

.sidebar .widget .col-title {
    font-size: 1.6em;
    margin-top: 0;
    margin-bottom: 20px;
    border-bottom: 2px solid #007bff;
    padding-bottom: 10px;
}

.sidebar .widget img {
    max-width: 100%;
    height: auto;
    display: block;
    /* Agar gambar tidak memiliki space bawah */
    margin: 0 auto;
}

.sidebar .widget ul.tab-content-items {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar .widget ul.tab-content-items li.clearfix {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    align-items: flex-start;
}

.sidebar .widget ul.tab-content-items li.clearfix .post-thumbnail {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    overflow: hidden;
    border-radius: 3px;
}

.sidebar .widget ul.tab-content-items li.clearfix .post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sidebar .widget ul.tab-content-items li.clearfix h3 {
    font-size: 1.1em;
    margin: 0;
    line-height: 1.4;
}

.sidebar .widget ul.tab-content-items li.clearfix h3 a {
    text-decoration: none;
    color: #333;
}

.sidebar .widget ul.tab-content-items li.clearfix .post-meta {
    font-size: 0.85em;
    color: #777;
}

.sidebar .widget ul.tab-content-items li.clearfix .post-meta span {
    margin-right: 10px;
}

.sidebar .widget ul.links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar .widget ul.links li {
    margin-bottom: 10px;
}

.sidebar .widget ul.links li i {
    color: #007bff;
    margin-right: 5px;
}

.sidebar .widget ul.links li a {
    text-decoration: none;
    color: #555;
}

.sidebar .widget ul.links li a:hover {
    color: #007bff;
}

/* Responsive Adjustments (contoh sederhana) */
@media (max-width: 768px) {
    .posts .post {
        flex-direction: column;
        /* Ubah tata letak post menjadi kolom di layar kecil */
    }

    .posts .post .thumb-medium {
        width: 100%;
        height: 200px;
        /* Sesuaikan tinggi gambar */
    }

    .breadcrumb-place .page-title {
        font-size: 2em;
    }
}

/* --- Direktori Siswa / Kartu Siswa --- */
.direktori-siswa-section {
    padding-top: 60px;
    /* Sesuaikan padding atas */
    padding-bottom: 60px;
    /* Sesuaikan padding bawah */
    background-color: #f8f9fa;
    /* Latar belakang agak terang */
}

.siswa-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease-in-out;
    overflow: hidden;
    /* Penting agar border-radius berfungsi pada gambar */
    height: 100%;
    /* Agar kartu tingginya sama */
    display: flex;
    flex-direction: column;
    /* Konten diatur dalam kolom */
}

.siswa-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.siswa-card .siswa-img {
    position: relative;
    overflow: hidden;
    height: 200px;
    /* Tinggi gambar yang konsisten */
}

.siswa-card .siswa-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Pastikan gambar memenuhi area tanpa terdistorsi */
    transition: transform 0.3s ease;
}

.siswa-card:hover .siswa-img img {
    transform: scale(1.05);
    /* Efek zoom saat hover */
}

.siswa-card .siswa-info {
    padding: 20px;
    text-align: center;
    flex-grow: 1;
    /* Konten info bisa tumbuh mengisi sisa ruang */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    /* Untuk meletakkan tombol di bawah */
}

.siswa-card .siswa-info h4 {
    font-size: 1.4em;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--default-color);
    /* Warna default dari template Mentor */
}

.siswa-card .siswa-info h4 a {
    color: inherit;
    text-decoration: none;
}

.siswa-card .siswa-info h4 a:hover {
    color: var(--primary-color);
}

.siswa-card .siswa-info p {
    font-size: 0.95em;
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
}

.siswa-card .read-more {
    margin-top: auto;
    /* Dorong tombol ke bagian bawah kartu */
}

.siswa-card .read-more .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border-radius: 5px;
    font-size: 0.9em;
    font-weight: 500;
    transition: all 0.3s ease;
}

.siswa-card .read-more .btn i {
    font-size: 1em;
}

/* Override gaya paginasi Bootstrap jika ada konflik atau ingin menyesuaikan */
.pagination .page-item .page-link {
    color: var(--primary-color);
    border-color: #ddd;
}

.pagination .page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.pagination .page-item .page-link:hover {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}


/* ====================================================================
   FIX KRITIS Z-INDEX MOBILE OVERLAY
   ==================================================================== */

/* Mengatasi konten yang menutupi menu offcanvas. */
/* Selektor ini menargetkan latar belakang gelap/transparan menu mobile */
.mobile-nav-active .navmenu {
    position: fixed;
    /* Penting agar menu offcanvas selalu terlihat */
    z-index: 9997 !important;
    /* Pastikan z-index sangat tinggi */
    /* Tambahkan inset untuk menutupi seluruh layar */
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow-y: auto;
}

/* Memperbaiki z-index tombol tutup menu mobile agar bisa diklik */
.mobile-nav-active .mobile-nav-toggle {
    z-index: 9999 !important;
}

/* Pastikan konten utama tidak terekspos, ini menargetkan 'overlay' yang seharusnya menutupi */
.mobile-nav-active #header {
    z-index: 9998 !important;
    /* Pastikan header ada di bawah menu offcanvas */
}


/* ====================================================================
   FIX KRITIS Z-INDEX MOBILE OVERLAY (FINAL)
   ==================================================================== */

/* 1. Atur Body saat Menu Mobile Aktif: Memastikan tidak ada scrolling ganda */
body.mobile-nav-active {
    overflow: hidden;
    /* Mencegah body scroll saat menu mobile terbuka */
}

/* 2. Target Overlay Menu itu sendiri (`.navmenu` di mobile adalah overlay) */
.mobile-nav-active .navmenu {
    position: fixed !important;
    inset: 0 !important;
    /* Tutup seluruh layar (top, right, bottom, left) */
    z-index: 9997 !important;
    /* Z-Index sangat tinggi */
    background: rgba(0, 0, 0, 0.8) !important;
    /* Tambahkan overlay gelap di sini jika tidak ada */
    transition: 0.3s;
}

/* 3. Pastikan konten menu (ul) ada di depan overlay */
.mobile-nav-active .navmenu>ul {
    display: block;
    position: absolute;
    inset: 60px 20px 20px 20px;
    /* Jaga agar menu mobile berada di bawah header */
    padding: 10px 0;
    margin: 0;
    border-radius: 6px;
    background-color: var(--primary-color) !important;
    /* Background menu utama */
    box-shadow: none;
    overflow-y: auto;
    z-index: 9998 !important;
}

/* 4. Pastikan Tombol Tutup (X) berada di paling depan */
.mobile-nav-active .mobile-nav-toggle {
    z-index: 9999 !important;
}
