
/* ===== 1. HEADER DENGAN ANIMASI (SISTEM TEMBOK) ===== */
header {
    position: fixed !important;
    top: 0 !important;
    left: 0;
    width: 100%;
    height: 80px; /* Sesuaikan tinggi asli header */
    background: #003366; 
    background: linear-gradient(135deg, #002244 0%, #003366 100%);
    /* RAJA LAYER: Angka ini harus sangat tinggi agar medsos masuk ke belakang */
    z-index: 999999 !important; 
    overflow: visible !important; /* Agar Sub-menu tetap muncul */
}

/* PEMBUAT BUTIRAN CAHAYA (ANIMASI) */
header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.1) 1px, transparent 1px),
        radial-gradient(circle at 50% 70%, rgba(255, 255, 255, 0.15) 1px, transparent 1px),
        radial-gradient(circle at 80% 40%, rgba(255, 255, 255, 0.1) 1.5px, transparent 1.5px);
    background-size: 100px 100px;
    animation: particleMove 20s linear infinite;
    opacity: 0.8;
    /* Kunci: Tetap di dalam header tapi di belakang teks menu */
    z-index: -1; 
    pointer-events: none;
}

@keyframes particleMove {
    from { background-position: 0 0; }
    to { background-position: 100px 100px; }
}

/* ===== 2. KUNCI REM TOTAL MEDSOS (STICKY) ===== */
.samping-ikon-sticky {
    display: flex !important;
    flex-direction: column !important;
    gap: 15px !important;
    min-width: 50px !important; 
    
    position: -webkit-sticky !important;
    position: sticky !important;
    
    /* REM OTOMATIS: 
       Angka 100px ini adalah titik henti. Karena header 80px, 
       dia akan berhenti dengan jarak 20px di bawah header.
    */
    top: 100px !important; 
    
    /* Layer harus di bawah Header (999999) */
    z-index: 1000 !important; 
    
    height: fit-content !important;
    margin-top: 20px;
}

/* ===== 3. GLOBAL RESET BAPAK (DIPERTAHANKAN) ===== */
html, body {
    width: 100%;
    overflow-x: visible; 
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
}

.site-wrapper {
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

main {
    width: 100%;
    min-height: 100vh;
    overflow: visible !important; 
    position: relative;
    /* Dorong konten agar tidak tertutup header saat pertama buka */
    padding-top: 20px; 
}

/* ============================================================
   PERBAIKAN FINAL STANDAR HALAMAN KONTEN (ALL PAGES)
   ============================================================ */

/* Reset pembungkus utama agar tidak menambah jarak */
main {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

.halaman-konten {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    padding: 40px 30px;
    
    /* Default untuk Laptop */
    margin: 110px auto 30px !important; 
    
    max-width: 1000px;
    overflow: visible !important; 
    opacity: 1 !important;        
    transform: none !important;   
    display: block !important;
    position: relative !important;
}

/* Hilangkan pengaruh class template yang mungkin terbawa */
.halaman-template {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

/* Wrapper Ikon & Teks */
.wrapper-konten-utama {
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-start !important; /* WAJIB agar kolom ikon tidak memanjang ke bawah */
    gap: 30px !important;
    position: relative !important;
}

/* Kolom Ikon Menggantung */
.samping-ikon-sticky {
    display: flex !important;
    flex-direction: column !important;
    gap: 15px !important;
    min-width: 50px !important; 
    
    position: -webkit-sticky !important;
    position: sticky !important;
    
    /* Default untuk Laptop */
    top: 130px !important; 
    
    z-index: 1000 !important; 
    height: fit-content !important;
}

/* KUNCI AGAR IKON BULAT SEMPURNA */
.tombol-bulat {
    width: 45px !important;
    height: 45px !important;
    min-width: 45px !important; /* Paksa lebar tetap */
    min-height: 45px !important; /* Paksa tinggi tetap */
    border-radius: 50% !important; /* Buat bulat */
    
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    
    background-color: #004080; /* Warna biru contoh */
    color: #fff !important;
    text-decoration: none !important;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Memastikan ikon FontAwesome di tengah */
.tombol-bulat i {
    font-size: 18px !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1 !important;
}

/* Judul Halaman Jadi di Tengah */
.judul-halaman {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 30px;
    text-align: center; /* KUNCI: Membuat teks ke tengah */
    width: 100%;       /* Memastikan mengambil lebar penuh agar bisa center */
}

/* --- ANIMASI BERGERAK SAAT HOVER --- */
.tombol-bulat {
    transition: all 0.3s ease !important; /* Agar gerakan halus */
}

.tombol-bulat:hover {
    transform: scale(1.15) translateX(8px) !important; /* Membesar & geser ke kanan */
    background-color: #0056b3 !important; /* Warna berubah sedikit terang */
    box-shadow: 0 6px 15px rgba(0,0,0,0.3) !important;
}

/* Membuat ikon di dalam tombol berputar sedikit */
.tombol-bulat:hover i {
    transform: rotate(15deg);
    transition: transform 0.3s ease;
}
/* ====== Garis Panjang Sesuai Isi ====== */
.judul-halaman::after {
    content: "";
    display: block;
    width: 100%;        /* mengikuti lebar isi/konten */
    max-width: 1000px;  /* sama dengan .halaman-konten */
    height: 2px;
    background: #888;
    margin: 10px auto 0;
    border-radius: 2px;
}

/* Saat muncul di viewport (JS akan menambahkan class .visible) */
.halaman-konten.visible,
.halaman-konten.visible .judul-halaman,
.halaman-konten.visible .judul-halaman::after,
.halaman-konten.visible .isi-teks,
.halaman-konten.visible .video-item {
  opacity: 1;
  transform: translateY(0);
}


/* ========== KHUSUS FASILITAS ========== */
.fasilitas-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 kolom */
    gap: 25px;
    margin-top: 30px;
}

.fasilitas-item {
    display: flex;
    align-items: flex-start;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    padding: 18px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.8s ease forwards;
}

.fasilitas-item:nth-child(1) { animation-delay: 0.1s; }
.fasilitas-item:nth-child(2) { animation-delay: 0.2s; }
.fasilitas-item:nth-child(3) { animation-delay: 0.3s; }
.fasilitas-item:nth-child(4) { animation-delay: 0.4s; }
/* dst biar muncul bergantian */

.fasilitas-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 14px rgba(0,0,0,0.15);
}

.fasilitas-item img {
    width: 140px;
    height: 140px;
    object-fit: cover;
    border-radius: 8px;
    margin-right: 16px;
    transition: transform 0.3s ease;
}

.fasilitas-item:hover img {
    transform: scale(1.08); /* zoom-in saat hover */
}

.fasilitas-item-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.fasilitas-item h3 {
    font-size: 16px;
    margin: 0 0 6px;
    color: #333;
}

.fasilitas-item p {
    font-size: 13px;
    color: #555;
    margin: 0;
    line-height: 1.4;
    text-align: justify;
}

/* Animasi fade-up */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ================= GALERI ================= */

/* Grid galeri 4 kolom */
.galeri-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 gambar per baris */
    gap: 20px;
    margin-top: 25px;
}

/* Card galeri */
.galeri-item {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    transition: transform .25s ease, box-shadow .25s ease;
}

.galeri-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 24px rgba(0,0,0,0.12);
}

/* Foto galeri */
.galeri-item img {
    width: 100%;
    height: 200px; /* tinggi seragam */
    object-fit: cover;
    transition: transform .3s ease;
}

.galeri-item:hover img {
    transform: scale(1.05);
}

/* Keterangan foto (tinggi seragam) */
.keterangan-foto {
    padding: 10px 12px;
    font-size: 14px;
    line-height: 1.4;
    text-align: center;
    color: #333;

    min-height: 40px;              /* tinggi pas 2 baris */
    max-height: 40px;

    display: -webkit-box;
    -webkit-line-clamp: 2;         /* KUNCI 2 BARIS */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.galeri-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.keterangan-foto {
    padding: 10px 12px;
    font-size: 14px;
    line-height: 1.4;
    text-align: center;
    color: #333;

    min-height: 48px;          /* kunci sejajar */
    display: -webkit-box;
    -webkit-line-clamp: 2;     /* max 2 baris */
    -webkit-box-orient: vertical;
    overflow: hidden;
}


/* Tombol preview */
.preview-btn {
    margin: 12px;
    padding: 7px 12px;
    background: #004080;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    transition: background .3s;
}

.preview-btn:hover {
    background: #0066cc;
}

/* ================= PAGINATION ================= */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 35px 0;
    flex-wrap: wrap;
}

.pagination a {
    padding: 8px 14px;
    background: #f1f1f1;
    border-radius: 6px;
    text-decoration: none;
    color: #333;
    font-weight: 500;
}

.pagination a:hover,
.pagination a.active {
    background: #004080;
    color: #fff;
}


/* ================= MODAL PREVIEW ================= */

.preview-modal {
    position: fixed;
    /* Pastikan angkanya sangat besar agar di depan semua elemen */
    z-index: 99999 !important; 
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    display: none; 
    justify-content: center;
    align-items: center;
    padding: 20px;
}

/* Pastikan gambar tidak punya margin yang mendorongnya */
.preview-modal img {
    max-width: 90%;
    max-height: 85vh; 
    margin: auto; /* Biar flexbox bekerja sempurna */
    border-radius: 10px;
    display: block;
    animation: zoomIn 0.3s ease-out;
}

@keyframes zoomIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* Tombol close (X) */
.close-btn {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 40px; /* Diperbesar sedikit agar mudah diklik */
    font-weight: bold;
    cursor: pointer;
    transition: transform .3s;
    line-height: 1;
}

.close-btn:hover {
    transform: scale(1.2);
    color: #ff4444;
}


.video-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 kolom di desktop */
    gap: 25px;
    margin-top: 30px;
}

.video-item {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.15);
}

.video-item iframe {
    width: 100%;
    height: 200px; /* tinggi seragam */
    display: block;
    border: none;
}

/* ================= GALERI VIDEO STANDAR ================= */
.video-grid {
    display: grid;
    /* Ini akan memaksa 3 kolom pada layar PC/Laptop */
    grid-template-columns: repeat(3, 1fr); 
    gap: 25px;
    margin-top: 20px;
    width: 100%;
}

.video-item {
    background: #fff;
    border-radius: 10px;
    overflow: hidden; /* Agar video dan judul tidak keluar dari border-radius */
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #eee;
}

.video-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* Kunci Rasio Video 16:9 agar tidak gepeng */
.video-container {
    position: relative;
    padding-bottom: 56.25%; 
    height: 0;
    overflow: hidden;
    background: #000;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.video-title {
    padding: 12px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    text-align: center;
    background: #fff;
    border-top: 1px solid #eee;

    /* KUNCI PEMOTONGAN TEKS (TRUNCATE) */
    display: -webkit-box;
    -webkit-line-clamp: 2;    /* Batasi maksimal 2 baris saja */
    -webkit-box-orient: vertical;
    overflow: hidden;         /* Sembunyikan teks yang meluber */
    text-overflow: ellipsis;  /* Tambahkan titik-titik (...) */
    
    height: 55px;             /* Paksa tinggi kotak agar semua sama presisi */
    line-height: 1.5;
}

/* ========== SLIDESHOW / HERO SECTION ========== */
.home-page .slideshow-container,
.home-page .hero-section {
    width: 100%;
    max-width: 100%;
    height: 100vh; /* Gunakan vh untuk memastikan full layar */
    height: 100dvh; 
    overflow: hidden;
    position: fixed;
    top: 0;
    left: 0;
    margin: 0;
    padding: 0;
    z-index: 1;
}

/* Pastikan body tidak bisa di-scroll di beranda agar footer tidak terintip */
.home-page {
    overflow: hidden;
    margin: 0;
    padding: 0;
}

.slide {
    background-size: cover;
    background-position: top center; /* supaya bagian atas tidak terpotong */
    background-repeat: no-repeat;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    filter: brightness(0.7);
    z-index: 1;
}

.slide.active {
    opacity: 1;
    z-index: 2;
}

/* Judul (Baris 1) */
.slide-caption h2 {
    font-size: 24px;         /* Ukuran disesuaikan agar kompak */
    font-weight: 700;
    margin-bottom: 5px;
    line-height: 1.2;
    white-space: nowrap;    /* Mencegah teks baris 1 terputus (jika layar cukup lebar) */
}

/* Subjudul (Baris 2) */
.slide-caption p {
    font-size: 14px;
    line-height: 1.4;
    margin: 0;
    font-weight: 400;
}

/* Responsif untuk HP agar tidak terlalu kecil */
@media (max-width: 768px) {
    .slide-caption h2 { font-size: 18px; white-space: normal; }
    .slide-caption p { font-size: 12px; }
}

/* ========== HEADER UMUM ========== */
header {
    position: fixed;
    top: 0;
    width: 100%;
    /* UBAH: Naikkan z-index agar selalu di paling depan */
    z-index: 9999 !important; 
    background-color: #003366;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

body.home-page .nama-sekolah,
body.home-page nav ul li a {
    color: #fff;
}

body.home-page nav ul li a:hover,
body.home-page nav ul li a.active {
    background-color: white;
    color: #0d6efd;
}

body:not(.home-page) main,
body:not(.home-page) .page-content {
    padding-top: 100px; /* Standar laptop */
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 17px 45px;
    max-width: 1200px;
    margin: 0 auto;
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo {
    width: 50px;
    margin-right: 10px;
}

.nama-sekolah {
    font-size: 20px;
    font-weight: 400;
    color: #fff;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 4px; /* ubah nilai gap ke 12px atau sesuai kebutuhan */
}


nav ul li {
    position: relative;
}

nav ul li a {
    color: white;
    font-weight: 400;
    text-decoration: none;
    padding: 10px 16px;
    border-radius: 8px;
    display: inline-block;
    transition: background-color 0.3s ease, color 0.3s ease;
}

nav ul li a:hover,
nav ul li a.active {
    background-color: white;
    color: #0d6efd;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.dropdown {
    position: relative;
}

/* ============================================================
   1. CONTAINER UTAMA DROPDOWN (SUB-MENU)
   ============================================================ */
.dropdown-menu {
    display: none;              /* Default sembunyi */
    position: absolute;
    top: 100%;                  /* Muncul tepat di bawah menu utama */
    left: 0;
    min-width: 210px;           /* Lebar sedikit diperluas agar rapi */
    list-style: none;
    margin: 0;
    padding: 10px 0;
    z-index: 10005 !important;  /* Pastikan di atas slide & partikel */
    
    /* EFEK KACA (GLASSMORPHISM) */
    background-color: rgba(255, 255, 255, 0.95) !important; 
    backdrop-filter: blur(10px); /* Efek buram di belakang menu */
    -webkit-backdrop-filter: blur(10px);
    
    /* BORDER & BAYANGAN HALUS */
    border: 1px solid rgba(0, 51, 102, 0.1);
    border-radius: 12px;        /* Sudut lebih halus/modern */
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1); 
}

/* Munculkan saat class .show aktif atau saat hover pada parent */
.dropdown-menu.show, 
.dropdown:hover > .dropdown-menu {
    display: block !important;
    animation: fadeInSlide 0.3s ease-out; /* Animasi muncul halus */
}

/* ============================================================
   2. TAMPILAN LINK / TEKS DI DALAM SUB-MENU
   ============================================================ */
.dropdown-menu li a {
    display: block;
    padding: 12px 20px !important;
    color: #333333 !important;   /* Teks Hitam Pekat agar jelas */
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    background: transparent !important;
    text-shadow: none !important; /* Matikan glow dari header utama */
    border-left: 4px solid transparent; /* Garis penanda (default sembunyi) */
}

/* ============================================================
   3. EFEK HOVER (SAAT DIARAHKAN) - VERSI TRANSPARAN
   ============================================================ */
.dropdown-menu li a:hover {
    /* Background transparan biru muda tipis */
    background-color: rgba(0, 51, 102, 0.05) !important; 
    
    /* Teks berubah jadi biru tua sekolah */
    color: #003366 !important; 
    
    /* Munculkan garis penanda di sebelah kiri */
    border-left: 4px solid #003366; 
    
    /* Geser teks sedikit ke kanan agar terasa dinamis */
    padding-left: 28px !important; 
}

/* ============================================================
   4. PENYESUAIAN KHUSUS & ARROW
   ============================================================ */

/* Pastikan di halaman beranda teks tetap hitam */
body.home-page .dropdown-menu li a {
    color: #333333 !important;
}

/* Animasi Panah Dropdown */
.arrow-down {
    display: inline-block;
    margin-left: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    padding: 3px;
    transform: rotate(45deg);
    vertical-align: middle;
    transition: transform 0.3s ease;
}

/* Panah berputar saat menu dibuka */
.dropdown:hover .arrow-down {
    transform: rotate(-135deg);
    margin-top: 5px;
}

/* Animasi munculnya dropdown (Fade & Slide Down) */
@keyframes fadeInSlide {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========== TOMBOL ADMIN ========== */
.admin-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.admin-menu ul li {
    margin-bottom: 15px;
}

.admin-btn {
    display: inline-block;
    padding: 12px 20px;
    font-weight: 400;
    text-decoration: none;
    color: white;
    border-radius: 8px;
    font-size: 16px;
    font-family: 'Roboto Slab', serif;
    transition: background 0.3s ease, transform 0.2s;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.admin-btn:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

.admin-btn-blue { background-color: #0d6efd; }
.admin-btn-green { background-color: #198754; }
.admin-btn-orange { background-color: #fd7e14; }
.admin-btn-red { background-color: #dc3545; }
.admin-btn-grey {
    background-color: #95a5a6;
    color: white;
    padding: 6px 12px;
    border-radius: 4px;
    margin-right: 8px;
}

.admin-dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.admin-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 140px;
    border-radius: 12px;
    text-align: center;
    color: white;
    font-weight: 400;
    font-size: 16px;
    text-decoration: none;
    font-family: 'Roboto Slab', serif;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.admin-card .icon {
    font-size: 36px;
    margin-bottom: 8px;
}

.admin-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.15);
}

@media (max-width: 768px) {
    .header-container {
        padding: 10px 20px;
        flex-direction: column;
        align-items: flex-start;
    }

    nav ul {
        flex-direction: column;
        width: 100%;
    }

.slide-caption,
.hero-text {
  position: absolute;
  top: 55%; /* Letakkan di tengah layar secara vertikal */
  left: 50%;
  transform: translate(-50%, -50%); /* Center sempurna horizontal & vertikal */
  color: white;
  text-align: center;
  z-index: 20;
  background: rgba(0, 0, 0, 0.5); /* Gelapkan sedikit agar teks terbaca */
  padding: 20px 30px;
  border-radius: 10px;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.7);
  max-width: 85%;
}

.slide-caption h2,
.hero-text h1 {
  font-size: 36px;
  margin-bottom: 10px;
  line-height: 1.3;
}

.slide-caption p,
.hero-text p {
  font-size: 18px;
  line-height: 1.5;
  max-width: 700px;
  margin: 0 auto;
}



    .galeri-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }

    .foto-item img {
        height: 120px;
    }

    .btn-group {
        flex-direction: column;
        width: 100%;
    }

    .btn-group a {
        width: 100%;
        text-align: center;
    }
}

/* ==========================
   SOROT AKTIF MENU PROFIL
   ========================== */
nav ul li.profil-active > a {
    background-color: white !important;
    color: #0d6efd !important;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

/* Pastikan submenu tetap pakai highlight ketika aktif */
.dropdown-menu li a.active {
    background-color: transparent;
    color: #0d6efd;
}


/* Hilangkan efek warna putih saat klik menu */
nav a,
nav a:focus,
nav a:active {
  background-color: transparent !important;
  outline: none !important;
  box-shadow: none !important;
}

/* Hilangkan blok putih saat menu dropdown utama diklik */
nav ul li.dropdown > a:focus,
nav ul li.dropdown > a:active,
nav ul li.dropdown.profil-active > a {
  background-color: transparent !important;
  outline: none !important;
  box-shadow: none !important;
}

/* Hilangkan blok putih saat submenu diklik */
nav ul li.dropdown .dropdown-menu li a:focus,
nav ul li.dropdown .dropdown-menu li a:active,
nav ul li.dropdown .dropdown-menu li a.active {
  background-color: transparent !important;
  outline: none !important;
  box-shadow: none !important;
}

/* Hilangkan efek putih ketika tap di layar sentuh */
* {
  -webkit-tap-highlight-color: transparent;
}

@keyframes fadeUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-up {
  animation: fadeUp 0.8s ease-out forwards;
  opacity: 0;
}
footer a {
  text-decoration: none;
  transition: 0.3s;
}

footer a:hover {
  text-decoration: underline;
  color: #f8f9fa;
}

footer i {
  font-size: 18px;
}
.isi-konten table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

.isi-konten th,
.isi-konten td {
  border: 1px solid #ddd;
  padding: 8px;
  text-align: left;
  vertical-align: top;
}

.isi-konten th {
  background-color: #e3efff;
  color: #333;
  font-weight: 600;
}

.isi-konten tr:nth-child(even) {
  background-color: #f9f9f9;
}

.isi-konten tr:hover {
  background-color: #f1f1f1;
}

/* ===== Dropdown muncul saat hover ===== */
nav ul li.dropdown:hover > .dropdown-menu {
  display: block;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Tambahan transisi lembut saat dropdown muncul */
.dropdown-menu {
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
}
/* Perkuat hover: pastikan dropdown tetap terbuka selama berada di area parent */
nav ul li.dropdown {
  position: relative;
}

nav ul li.dropdown:hover > a,
nav ul li.dropdown:hover .dropdown-menu {
  display: block;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown-menu {
  margin-top: 0; /* atau -1px jika perlu */
}

/* Slide Background */
.prev, .next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  padding: 12px;
  color: white;
  font-size: 32px;
  font-weight: bold;
  background-color: rgba(0, 0, 0, 0.3);
  border-radius: 50%;
  z-index: 10;
  user-select: none;
  transition: background 0.3s;
}

.prev:hover, .next:hover {
  background-color: rgba(0, 0, 0, 0.6);
}

.prev {
  left: 20px;
}

.next {
  right: 20px;
}


nav ul li a i {
  margin-right: 6px;
  color: inherit; /* Ikuti warna teks */
}

/* ===== 1. KUNCI SCROLLBAR AGAR TIDAK LONCAT ===== */
html {
    overflow-y: scroll; /* Gunakan di HTML, bukan hanya di BODY */
    overflow-x: hidden;
}

body {
    margin: 0;
    padding: 0;
    width: 100%;
}

/* ===== 2. STABILKAN NAVBAR & HEADER ===== */
header {
    position: fixed;
    top: 0;
    left: 0; /* Tambahkan ini agar posisi absolut dari kiri */
    width: 100%;
    z-index: 9999;
    box-sizing: border-box;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 45px;
    max-width: 1200px; /* Pastikan ini sama di semua halaman */
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

/* ===== 3. CEGAH MENU LONCAT / TURUN ===== */
header nav ul {
    display: flex;
    flex-direction: row; /* Paksa satu baris */
    flex-wrap: nowrap;   /* JANGAN biarkan menu turun (wrap) di desktop */
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 5px; /* Gunakan gap daripada margin li agar lebih stabil */
}

header nav ul li {
    margin: 0; 
    display: block;
}

header nav ul li a {
    display: flex;
    align-items: center; /* Teks dan ikon sejajar vertikal */
    padding: 8px 12px;
    font-size: 15px;
    white-space: nowrap; /* Teks menu tidak boleh patah jadi 2 baris */
    transition: none;    /* Matikan transisi jika dirasa bikin 'goyang' */
}

/* Stabilkan Ikon */
header nav ul li a i {
    width: 20px;
    text-align: center;
    margin-right: 5px;
    display: inline-block;
}

/* Halaman informasi (supaya tidak terlalu jauh dari header) */
.informasi-page {
    margin-top: 20px !important;   /* lebih rapat daripada 120px */
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-radius: 8px;
    padding: 30px 40px;
}


.informasi-page h2 {
  font-size: 28px;
  font-weight: bold;
  border-left: 5px solid #007bff;
  padding-left: 10px;
  margin-bottom: 25px;
}


.informasi-page .badge {
  font-size: 0.75rem;
}
.informasi-page .border {
  background-color: #f8f9fa; /* abu-abu lembut */
  box-shadow: 0 2px 15px rgba(0,0,0,0.05);
}

.informasi-page .bg-light {
  background-color: #f1f1f1 !important;
}
.informasi-page.page-content {
  max-width: 100% !important;
  width: 100%;
  padding: 40px 5%;
  background-color: #f8f9fa; /* warna abu yang lebih lembut */
  box-sizing: border-box;
}
.informasi-page .berita-box {
  background: #fff;
  border: 1px solid #ddd;
  padding: 15px;
  margin-bottom: 20px;
  border-radius: 6px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.berita-box {
  background: #fff;
  border: 1px solid #ddd;
  padding: 15px;
  margin-bottom: 20px;
  border-radius: 6px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}

.berita-box h5 {
  font-weight: bold;
  margin-bottom: 5px;
}

.agenda-item-item {
  padding: 8px 0;
  border-bottom: 1px dashed #ccc;
  transition: background 0.2s;
}

.agenda-item:hover {
  background-color: #f8f9fa;
  cursor: pointer;
}

.berita-box {
  display: flex;
  align-items: stretch; /* Vertikal align */
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 6px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  padding: 10px;
  margin-bottom: 20px;
}

.berita-thumb {
  flex: 0 0 130px;
  max-width: 130px;
  height: auto;
  margin-right: 15px;
}

.berita-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* crop gambar jika perlu */
  border-radius: 5px;
}

.berita-content {
  flex: 1;
}

/* Override ukuran gambar agar lebih besar */
.berita-thumb {
  flex: 0 0 140px;
  max-width: 140px;
}

.berita-thumb img {
  width: 100%;
  height: auto;
}

/* Ukuran teks lebih kecil */
.berita-content h5 {
  font-size: 0.93rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.berita-content p {
  font-size: 0.4rem;
  line-height: 1.4;
}

.berita-content small {
  font-size: 0.7rem;
  color: #777;
}
berita-content small {
  font-size: 0.7rem;
  color: #666;
}
.komentar-form input, 
.komentar-form textarea {
  width: 100%;
  padding: 8px;
  margin-bottom: 10px;
  border-radius: 5px;
  border: 1px solid #ccc;
}

.komentar-box {
  border-top: 1px solid #eee;
  padding: 10px 0;
}
.berita-detail {
  line-height: 1.7;
  font-size: 1rem;
}

.berita-detail img {
  max-height: 450px;
  object-fit: cover;
}

.isi-berita {
  text-align: justify;
}

.comment-list {
  max-height: 400px;
  overflow-y: auto;
  padding-right: 8px;
  scroll-behavior: smooth;
}

.comment-list::-webkit-scrollbar {
  width: 6px;
}
.comment-list::-webkit-scrollbar-thumb {
  background-color: #ccc;
  border-radius: 3px;
}

/* Ukuran lebih kecil untuk Berita Lainnya di kanan */
.agenda-lainnya-item strong {
  font-size: 0.9rem;
  font-weight: 600;
  display: block;
  margin-bottom: 2px;
}

.berita-lainnya-item small {
  font-size: 0.75rem;
  color: #888;
}
.berita-detail img {
  max-width: 100%;
  border-radius: 8px;
  margin: 10px 0 20px;
}

.berita-detail p {
  font-size: 1rem;
  line-height: 1.7;
  text-align: justify;
}

.berita-box .isi-berita {
  display: inline-block;
  width: 100%;
}

.berita-box a {
  white-space: nowrap;
  font-weight: 500;
}

.isi-ringkas {
  flex: 1;
  white-space: normal;
}

.berita-box .text-end {
  min-width: 120px; /* lebar tetap agar sejajar */
  white-space: nowrap;
  display: flex;
  align-items: flex-end;
}

/* ===== PENAMBAHAN UNTUK MENYEMPURNAKAN HALAMAN INFORMASI ===== */

/* Judul berita di kiri */
.berita-content h5 a {
  color: #0051a2;
  text-decoration: none;
  transition: color 0.3s;
}

.berita-content h5 a:hover {
  color: #007bff;
  text-decoration: underline;
}

/* Efek hover untuk kartu berita */
.berita-box:hover {
  box-shadow: 0 6px 12px rgba(0,0,0,0.1);
  transform: scale(1.01);
  transition: 0.3s ease;
}

/* Ukuran teks ringkasan berita */
.berita-content p {
  font-size: 0.85rem;
  color: #333;
  line-height: 1.5;
  margin-top: 6px;
}

/* Responsif tampilan mobile */
@media (max-width: 768px) {
  .informasi-page .row {
    flex-direction: column;
  }

  .berita-box {
    flex-direction: column;
    align-items: start;
  }

  .berita-thumb {
    flex: 0 0 100%;
    max-width: 100%;
    margin-bottom: 10px;
  }
}
.berita-content small::before {
  content: "📅 ";
  margin-right: 3px;
}
.agenda-lainnya-item {
  border-bottom: 1px solid #e0e0e0;
  padding: 10px 0;
}
.berita-box a:hover {
  color: #0056b3;
  text-decoration: underline;
}
@keyframes fadeUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-up {
  animation: fadeUp 0.6s ease-in-out;
}
.berita-detail p {
  font-size: 1rem;
  line-height: 1.7;
  text-align: justify;
  margin-bottom: 15px;
}
.pagination {
  justify-content: center;
  margin-top: 20px;
}

.pagination .page-item .page-link {
  color: #007bff;
  border: 1px solid #dee2e6;
  margin: 0 3px;
  transition: all 0.3s ease;
}

.pagination .page-item .page-link:hover {
  background-color: #007bff;
  color: white;
}

.pagination .page-item.active .page-link {
  background-color: #343a40;
  border-color: #343a40;
  color: white;
}
.pagination .page-item .page-link {
  color: #007bff !important;
  border: 1px solid #dee2e6;
  margin: 0 3px;
  padding: 6px 12px;
  transition: all 0.3s ease;
  font-weight: bold;
}

.pagination .page-item.active .page-link {
  background-color: #343a40 !important;
  border-color: #343a40 !important;
  color: #fff !important;
}

/* Atur kotak berita agar horizontal dan proporsional */
.berita-box {
  display: flex;
  flex-direction: row;
  gap: 12px;
  padding: 15px;
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 10px;
  box-shadow: 0 0 6px rgba(0,0,0,0.05);
}

/* Gambar thumbnail fix ukuran dan proporsional */
.berita-thumb img {
  width: 160px;
  height: 110px;
  object-fit: cover;
  border-radius: 8px;
}

/* Konten berita */
.berita-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Ringkasan isi teks */
.isi-ringkas {
  font-size: 0.95rem;
  line-height: 1.5;
  color: #333;
}

.agenda-lainnya-item {
  font-size: 0.95rem; /* Samakan dengan isi-ringkas */
  line-height: 1.5;
  color: #333;
}
.agenda-lainnya-item strong {
  font-weight: 600;
  display: block;
  margin-bottom: 4px;
}
/* Container agenda item */
.agenda-item {
  padding: 12px;
  border: 1px solid ;
  border-radius: 6px;
  background-color: #fff;
  margin-bottom: 12px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
  transition: background 0.3s;
}

/* Hover effect */
.agenda-item:hover {
  background-color: #f8f9fa;
  cursor: pointer;
}

/* Judul agenda */
.agenda-item strong {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: #333;
}

/* Tanggal & lokasi agenda */
.agenda-item small {
  font-size: 0.85rem;
  color: #666;
  display: block;
  margin-bottom: 3px;
}

/* Ikon di tanggal dan lokasi */
.agenda-item i {
  margin-right: 6px;
  color: #007bff;
}

/* Responsive */
@media (max-width: 768px) {
  .agenda-item {
    padding: 10px;
  }



.agenda-item small {
  text-align: left;
  line-height: 1.5;
}

.agenda-item strong:hover {
  color: #007bff;
}
/* ======================= */
/* JUDUL AGENDA =========== */
/* ======================= */
.agenda-item strong {
  display: block;
  font-size: 0.93rem;     /* Ukuran sama dengan .berita-content h5 */
  font-weight: 600;       /* Tebal sama */
  color: #0051a2;         /* Warna sama */
  margin-bottom: 6px;
  transition: color 0.3s;
}

/* Jika di dalam <strong> ada <a> */
.agenda-item strong a {
  color: #0051a2;
  text-decoration: none;
  transition: color 0.3s;
}

.agenda-item strong a:hover {
  color: #007bff;
  text-decoration: underline;
}
.agenda-box {
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}
.agenda-box {
  font-size: 1rem; /* Sama dengan isi berita */
  line-height: 1.5;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.agenda-box h6 {
  font-weight: 600;
  font-size: 1rem;
}
.box-berita h5,
.agenda-box h5 {
  margin-top: 0 !important;
}
/* Untuk semua teks di box berita */
.box-berita,
.box-berita * {
  color: #000 !important;
}

/* Untuk semua teks di agenda */
.agenda-box,
.agenda-box * {
  color: #000 !important;
}

/* Opsional: link dihover tetap hitam atau beri efek underline */
.berita-content a:hover,
.agenda-box a:hover {
  color: #000 !important;
  text-decoration: underline;
}
/* Perkuat warna hitam untuk semua isi berita */
.berita-content,
.berita-content * {
  color: #000 !important;
}

/* Perkuat warna hitam untuk semua agenda */
.agenda-box,
.agenda-box *,
.agenda-item,
.agenda-item * {
  color: #000 !important;
}
.agenda-box i,
.agenda-box .fa,
.berita-box i,
.berita-box .fa {
  color: #000 !important;
}
.informasi-page h4.text-primary {
  color: #000 !important;
}
.berita-detail small {
  color: #000 !important;
}
/* === AGENDA - Detail Informasi & Sidebar === */
.agenda-box {
  font-size: 12.5px;
  line-height: 1.4;
  padding: 15px;
  background-color: #fff;
  border-radius: 6px;
}

.agenda-box h5 {
  font-size: 14px;
  font-weight: 600;
  padding: 6px 10px;
  margin-bottom: 1rem;
  background-color: #343a40;
  color: #fff;
  border-radius: 4px;
}
.fa-calendar {
  color: #555;
}
.judul-halaman {
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 30px;
}
.table-smaller td,
.table-smaller th {
    font-size: 14px;  /* Atau sesuaikan dengan 12px jika ingin lebih kecil */
    padding: 6px 10px;
}

/* Warna default sesuai brand */
footer .social-icons a i.fa-facebook-f {
    color: #1877f2 !important; /* Facebook */
}
footer .social-icons a i.fa-twitter {
    color: #1da1f2 !important; /* Twitter */
}
footer .social-icons a i.fa-instagram {
    color: #e4405f !important; /* Instagram */
}
footer .social-icons a i.fa-youtube {
    color: #ff0000 !important; /* YouTube */
}

/* Efek zoom saat hover */
footer .social-icons a:hover i {
    transform: scale(1.2);
    opacity: 0.8;
    transition: all 0.3s ease;
}
.form-komentar .card {
  border-radius: 10px;
}

.form-komentar .card-header {
  background: #004aad !important;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
}

.form-komentar h5 {
  font-size: 16px;
  font-weight: 600;
}

.form-komentar .form-control-sm {
  font-size: 14px;
  border-radius: 6px;
}

.form-komentar textarea {
  resize: vertical;
}

.form-komentar button {
  font-size: 14px;
  border-radius: 6px;
  transition: 0.3s;
}

.form-komentar button:hover {
  background: #003c8f !important;
}

.daftar-komentar {
  border: 1.5px solid #007bff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.daftar-komentar .judul-komentar {
  background-color: #007bff;
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.daftar-komentar .isi-komentar {
  background-color: #fff;
  font-size: 0.95rem;
}

.daftar-komentar .isi-komentar i {
  color: #007bff;
  opacity: 0.9;
}

.komentar-pengunjung {
  background: #f8f9ff;
  border-radius: 8px;
  padding: 15px 20px;
  margin-top: 20px;
}

.komentar-box {
  background: #fff;
  border-radius: 8px;
  padding: 10px 15px;
  margin-bottom: 10px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.komentar-box b {
  color: #0047ab;
}

.komentar-box small {
  color: #777;
}

.komentar-box p {
  margin-top: 5px;
  color: #000;
}
.btn-like {
  background: #f8f9fa;
  border: 1px solid #ccc;
  border-radius: 5px;
  cursor: pointer;
  padding: 3px 8px;
  font-size: 0.9rem;
  transition: 0.2s;
}
.btn-like:hover {
  background: #d0ebff;
  border-color: #70c0ff;
}
.btn-like.liked {
  background: #cce5ff;
  border-color: #66b0ff;
  cursor: not-allowed;
  opacity: 0.7;
}

<style>
.judul-halaman {
    font-size: 1.7rem;
    font-weight: 700;
    color: #222;
}

.judul-line {
    width: 120px;
    height: 3px;
    background-color: #0d6efd;
    margin: 10px auto 0;
    border: none;
    border-radius: 3px;
}
</style>

/* Background abu-abu halaman */
.halaman-template {
    background-color: #f4f6f9;
    padding: 30px 0;
}

/* Kotak putih tengah */
.halaman-konten {
    background-color: #fff;
    padding: 25px 30px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

/* Judul */
.judul-halaman {
    font-size: 1.7rem;
    font-weight: 700;
    color: #222;
}

/* Garis bawah judul */
.judul-line {
    width: 120px;
    height: 3px;
    background-color: #0d6efd;
    margin: 10px auto 0;
    border-radius: 3px;
}

/* Styling Tabel RPP agar rapi */
.table-responsive {
    overflow-x: auto;
    margin-top: 20px;
}

.table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
    background-color: #fff;
}

.table-dark {
    background-color: #004080; /* Samakan dengan warna tema sekolah */
    color: white;
}

.table th, .table td {
    padding: 12px;
    border: 1px solid #dee2e6;
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(0,0,0,.05);
}

.table-hover tbody tr:hover {
    background-color: rgba(0,0,0,.075);
}

/* Tombol Unduh */
.btn-primary {
    background-color: #007bff;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 13px;
    display: inline-block;
}

.btn-primary:hover {
    background-color: #0056b3;
}
.btn-cari:hover {
    background-color: #002d5a !important;
}

/* ===================================================
   FIX: POSISI LOGO KIRI, NAMA TENGAH, TOMBOL KANAN
   =================================================== */
@media (max-width: 768px) {
    /* 1. Paksa Container Utama Menjadi Satu Baris Samping-Sampingan */
    .header-container {
        display: flex !important;
        flex-direction: row !important; /* Pastikan arahnya ke samping, bukan bawah */
        justify-content: space-between !important; /* Logo kiri, Tombol kanan */
        align-items: center !important; /* Rata tengah secara vertikal */
        padding: 10px 15px !important;
        height: auto !important; /* Biarkan tinggi menyesuaikan konten */
        min-height: 60px !important;
        width: 100% !important;
        background-color: #003366 !important;
    }

    /* 2. Logo & Nama Sekolah (Satu baris di sebelah kiri) */
    .logo-container {
        display: flex !important;
        flex-direction: row !important; /* Logo dan teks sejajar samping */
        align-items: center !important;
        margin: 0 !important;
        padding: 0 !important;
        flex: 1 !important; /* Ambil ruang agar menekan tombol ke kanan */
    }

    .logo {
        width: 32px !important; /* Dikecilkan sedikit agar muat satu baris */
        height: auto !important;
        margin-right: 8px !important;
    }

    .nama-sekolah {
        font-size: 14px !important;
        color: white !important;
        white-space: nowrap !important; /* Cegah teks turun ke bawah */
        font-weight: 600 !important;
    }

  /* 3. Tombol Garis Tiga (FIX: GARIS MENUMPUK KE BAWAH) */
    .menu-toggle {
        display: flex !important;
        flex-direction: column !important; /* PAKSA garis menumpuk ke bawah */
        justify-content: center !important; /* Tengah secara vertikal */
        align-items: center !important; /* Tengah secara horizontal */
        gap: 4px !important; /* Jarak antar baris garis (atur sesuai selera) */
        width: 40px !important;
        height: 38px !important;
        cursor: pointer !important;
        background: rgba(255, 255, 255, 0.1) !important; 
        border: 1px solid rgba(255, 255, 255, 0.2) !important;
        border-radius: 6px !important;
        padding: 0 !important; /* Reset padding agar gap yang bekerja */
        margin-left: auto !important;
    }

    /* Garis di dalam tombol (Baris 1, 2, 3) */
    .menu-toggle .bar, 
    .menu-toggle span {
        display: block !important;
        width: 22px !important; /* Lebar garis */
        height: 3px !important; /* Tebal garis */
        background-color: #ffffff !important;
        border-radius: 3px !important;
        margin: 0 !important; /* Hapus margin agar gap yang mengatur jarak */
    }
    /* 4. Menu Navigasi (Vertikal ke Bawah) */
    nav#nav-menu {
        display: none;
        position: absolute !important;
        top: 70px !important;
        left: 0 !important;
        width: 100% !important;
        background-color: #003366 !important;
        z-index: 9999998 !important;
        padding: 0 !important;
        border-top: 1px solid rgba(255,255,255,0.1);
        /* TAMBAHKAN INI: Agar saat menu tutup, dia tidak menghalangi klik ke tombol */
        pointer-events: none; 
    }

    nav#nav-menu.active {
        display: block !important;
        /* TAMBAHKAN INI: Agar saat menu buka, link di dalamnya bisa diklik lagi */
        pointer-events: auto !important;
    }

    /* Paksa Menu Tidak ke Samping */
    nav#nav-menu ul {
        display: block !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    nav#nav-menu ul li {
        display: block !important;
        width: 100% !important;
        border-bottom: 1px solid rgba(255,255,255,0.05);
    }

    /* 1. Warna untuk MENU UTAMA (Tetap Putih agar kontras dengan Biru) */
    nav#nav-menu ul li a {
        display: flex !important;
        padding: 15px 25px !important;
        color: white !important; /* Menu utama tetap putih */
        text-align: left !important;
        width: 100% !important;
        box-sizing: border-box !important;
        text-decoration: none !important;
    }

    /* 2. Warna KHUSUS untuk SUB-MENU (Hitam agar terlihat di latar putih) */
    nav#nav-menu .dropdown-menu li a {
        color: black !important; /* Teks sub-menu jadi HITAM */
        padding: 12px 25px 12px 55px !important; /* Menjorok ke dalam */
        background-color: white !important; /* Latar belakang sub-menu putih */
        font-size: 14px !important;
        border-bottom: 1px solid #eeeeee !important;
    }
    /* Tambahkan ini agar sub-menu bisa muncul/hilang */
    nav#nav-menu li.dropdown .dropdown-menu { display: none !important; }
    nav#nav-menu li.dropdown.open .dropdown-menu { display: block !important; }
}