/* ===================================================================
   1. FONDASI & CSS VARIABLES
=================================================================== */
:root {
    /* Palet Warna Light Mode (Default) */
    --bg-color: #F8F9FA;
    --card-bg-color: #FFFFFF;
    --text-color: #212529;
    --heading-color: #0A192F;
    --primary-color: #0D6EFD;
    --accent-color: #FFC107;
    --border-color: rgba(0, 0, 0, 0.1);
    --subtitle-color: #6c757d;
}

body.dark-mode {
    /* Palet Warna Dark Mode (HIJAU BARU) */
    --bg-color: #030f0f;
    --card-bg-color: #03624c;
    --text-color: #d1d1d2;
    --heading-color: #FFFFFF;
    --primary-color: #00df82;
    --accent-color: #00df82;
    --border-color: rgba(0, 223, 130, 0.1);
    --subtitle-color: #555658;
}

/* CSS RESET & FONDASI DASAR */
* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}
body { 
    font-family: 'Roboto', sans-serif; 
    background-color: var(--bg-color); /* Warna solid tetap ada sbg fallback */
    color: var(--text-color); 
    overflow-x: hidden; 
    transition: background-color 0.3s ease, color 0.3s ease; 
    position: relative; /* Dibutuhkan agar ::before bisa diposisikan relatif thd body */
}
.container { 
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 0 20px; 
}

/* ===================================================================
   1.5 LAPISAN BACKGROUND MOTIF
=================================================================== */
body::before {
    content: ''; /* Wajib ada untuk pseudo-element */
    position: fixed; /* Tetap di viewport saat scroll */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1; /* Kirim ke paling belakang */

    /* Gambar Latar Belakang */
    background-image: url('../images/motif.png'); /* Nama file motif Anda */
    background-size: 400px 400px; /* Ukuran pengulangan (sesuaikan jika perlu) */
    background-repeat: repeat;
    background-position: center center;
    
    /* Opasitas untuk Light Mode */
    opacity: 0.10; /* Sangat samar (sesuaikan 0.03 - 0.1) */
    
    transition: opacity 0.3s ease; /* Transisi halus saat ganti mode */
}

/* Opasitas Berbeda untuk Dark Mode */
body.dark-mode::before {
    opacity: 0.10; /* Lebih samar lagi di dark mode (sesuaikan) */
}

/* ===================================================================
   2. HEADER / NAVIGASI
=================================================================== */
.header {
    width: 100%;
    padding: 15px 0;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100; /* Header tetap di atas */
    background-color: rgba(248, 249, 250, 0.8); /* Pastikan ada background */
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}
body.dark-mode .header {
    background-color: rgba(3, 15, 15, 0.8); /* Background header dark mode */
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding-left: 15px;
    padding-right: 15px;
}
.nav-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0; /* Mencegah logo mengecil jika menu terlalu panjang */
}
.nav-logo img {
    height: 45px;
    margin-right: 15px;
}
.logo-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.logo-text-line {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 14px;
    color: var(--heading-color);
    line-height: 1.3;
}
.nav-logo .logo-dark { display: none; }
.nav-logo .logo-light { display: block; }
body.dark-mode .nav-logo .logo-dark { display: block; }
body.dark-mode .nav-logo .logo-light { display: none; }

/* [UPDATE] Style Wrapper untuk DESKTOP */
.mobile-nav-wrapper {
    display: flex;
    flex-grow: 1; /* Biarkan wrapper mengisi ruang */
    align-items: center;
    /* Tetap space-between untuk mendorong menu & actions terpisah JAUH */
    justify-content: space-between;
    /* Hapus margin-left (diganti padding) */
    /* margin-left: 40px; */
    /* Tambahkan padding KIRI untuk jarak dari LOGO */
    padding-left: 40px; /* Sesuaikan nilai ini sesuai selera */
    /* Tambahkan padding KANAN untuk jarak dari ACTIONS */
    padding-right: 40px; /* Sesuaikan nilai ini sesuai selera */
}

/* [UPDATE] Penyesuaian untuk .nav-menu di DESKTOP */
.nav-menu {
    display: flex;
    flex-grow: 0; /* Jangan biarkan menu mengambil ruang ekstra */
    list-style: none;
    gap: 40px;
    padding: 0;
    margin: 0;
}

.nav-link {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s ease;
    display: block; /* Agar padding bekerja */
    padding: 5px 0; /* Beri sedikit padding vertikal */
}
.nav-link:hover { color: var(--accent-color); }

/* Style untuk Tombol Pengumuman - Warna Sama Seperti PPDB */
.nav-announcement {
    background-color: var(--accent-color); /* Sama seperti .nav-cta */
    color: #0A192F; /* Sama seperti .nav-cta di light mode */
    padding: 8px 16px; /* Padding tetap lebih kecil */
    border-radius: 8px;
    font-weight: 600;
    transition: transform 0.3s ease, background-color 0.3s ease;
    white-space: nowrap;
    display: inline-block;
}

body.dark-mode .nav-announcement {
    color: #030f0f; /* Sama seperti .nav-cta di dark mode */
}

.nav-announcement:hover {
    transform: translateY(-2px);
    opacity: 0.9; /* Efek hover standar */
    /* Pastikan warna teks tetap sama saat hover */
    color: #0A192F;
}

body.dark-mode .nav-announcement:hover {
    color: #030f0f; /* Pastikan warna teks tetap sama saat hover di dark mode */
}

@media (max-width: 820px) {
    /* .nav-announcement {
        background-color: transparent;
        color: var(--text-color); /* Kembali ke warna teks biasa */
        /* padding: 5px 0;
        border-radius: 0;
        font-weight: 500;
        display: block;
    }

    .nav-announcement:hover {
        transform: none;
        opacity: 1; /* Reset opacity hover */
        /* background-color: transparent;
        color: var(--accent-color); /* Warna hover seperti link biasa */
    /* } */
}

/* [UPDATE] Style .nav-actions di DESKTOP (Flexbox standard) */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
    /* Hapus margin-left: auto jika ditambahkan sebelumnya */
    margin-left: 0; /* Pastikan tidak ada margin kiri */
}

.nav-login {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    padding: 10px 0;
    transition: color 0.3s ease;
}
.nav-login:hover { color: var(--accent-color); }
.nav-cta {
    background-color: var(--accent-color);
    color: #030f0f;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.3s ease;
    white-space: nowrap; /* Mencegah tombol wrap */
}
body:not(.dark-mode) .nav-cta { color: #0A192F; }
.nav-cta:hover { transform: translateY(-2px); }
.theme-switch-wrapper { display: flex; align-items: center; }
.theme-switch { position: relative; display: inline-block; width: 50px; height: 26px; }
.theme-switch input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: #ccc; transition: .4s; border-radius: 26px; }
.slider:before { position: absolute; content: ""; height: 20px; width: 20px; left: 3px; bottom: 3px; background-color: white; transition: .4s; border-radius: 50%; }
input:checked + .slider { background-color: var(--primary-color); }
input:checked + .slider:before { transform: translateX(24px); }
/* Ikon Sun/Moon di dalam slider */
.slider:before{background-image:url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="orange" class="bi bi-sun-fill" viewBox="0 0 16 16"><path d="M8 12a4 4 0 1 0 0-8 4 4 0 0 0 0 8zM8 0a.5.5 0 0 1 .5.5v2a.5.5 0 0 1-1 0v-2A.5.5 0 0 1 8 0zm0 13a.5.5 0 0 1 .5.5v2a.5.5 0 0 1-1 0v-2A.5.5 0 0 1 8 13zm8-5a.5.5 0 0 1-.5.5h-2a.5.5 0 0 1 0-1h2a.5.5 0 0 1 .5.5zM3 8a.5.5 0 0 1-.5.5h-2a.5.5 0 0 1 0-1h2A.5.5 0 0 1 3 8zm10.657-5.657a.5.5 0 0 1 0 .707l-1.414 1.415a.5.5 0 1 1-.707-.708l1.414-1.414a.5.5 0 0 1 .707 0zm-9.193 9.193a.5.5 0 0 1 0 .707L3.05 13.657a.5.5 0 0 1-.707-.707l1.414-1.414a.5.5 0 0 1 .707 0zm9.193 2.121a.5.5 0 0 1-.707 0l-1.414-1.414a.5.5 0 0 1 .707-.707l1.414 1.414a.5.5 0 0 1 0 .707zM4.464 4.465a.5.5 0 0 1-.707 0L2.343 3.05a.5.5 0 1 1 .707-.707l1.414 1.414a.5.5 0 0 1 0 .708z"/></svg>');background-repeat:no-repeat;background-position:center;}
input:checked+.slider:before{background-image:url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="yellow" class="bi bi-moon-stars-fill" viewBox="0 0 16 16"><path d="M6 .278a.768.768 0 0 1 .08.858 7.208 7.208 0 0 0-.878 3.46c0 4.021 3.278 7.277 7.318 7.277.527 0 1.04-.055 1.533-.16a.787.787 0 0 1 .81.316.733.733 0 0 1-.031.893A8.349 8.349 0 0 1 8.344 16C3.734 16 0 12.286 0 7.71 0 4.266 2.114 1.312 5.124.06A.752.752 0 0 1 6 .278z"/><path d="M10.794 3.148a.217.217 0 0 1 .412 0l.387 1.162h1.224a.217.217 0 0 1 .153.371l-.986.715.387 1.162a.217.217 0 0 1-.316.228l-.986-.715-.986.715a.217.217 0 0 1-.316-.228l.387-1.162-.986-.715a.217.217 0 0 1 .153-.371h1.224l.387-1.162zM13.863.099a.145.145 0 0 1 .274 0l.258.774h.817a.145.145 0 0 1 .102.246l-.65.471.258.774a.145.145 0 0 1-.22.15l-.65-.471-.65.471a.145.145 0 0 1-.22-.15l.258-.774-.65-.471a.145.145 0 0 1 .102-.246h.817l.258-.774z"/></svg>')}

/* Dropdown Desktop */
.nav-item.dropdown { position: relative; }
.dropdown-toggle i { font-size: 0.7rem; margin-left: 5px; transition: transform 0.2s ease-in-out; }
/* Buka dropdown saat hover di DESKTOP */
.nav-item.dropdown:hover .dropdown-toggle i { transform: rotate(180deg); }
.dropdown-menu { display: none; position: absolute; top: 100%; left: 0; background-color: var(--card-bg-color); border: 1px solid var(--border-color); border-radius: 8px; min-width: 240px; list-style: none; box-shadow: 0 8px 16px rgba(0,0,0,0.08); z-index: 1000; overflow: hidden; padding-top: 10px; padding-bottom: 10px; } /* Tambah padding bottom */
.nav-item.dropdown:hover .dropdown-menu { display: block; }
.dropdown-link { display: block; padding: 12px 20px; text-decoration: none; color: var(--text-color); transition: all 0.2s ease; }
.dropdown-link:hover { background-color: var(--bg-color); color: var(--accent-color); padding-left: 25px; }

/* Hamburger (disembunyikan di desktop) */
.hamburger { display: none; }


/* ===================================================================
   3. HERO SECTION dan KONTEN UTAMA
=================================================================== */
main, section, footer {
    position: relative; 
    z-index: 1; 
}
.hero { 
    display: flex; 
    flex-direction: column; 
    justify-content: center; 
    align-items: center; 
    text-align: center; 
    min-height: 100vh; 
    padding: 20px 20px 40px; 
}
.hero-content { max-width: 800px; margin-bottom: 40px; }
.hero-title { font-family: 'Poppins', sans-serif; font-size: 4rem; font-weight: 700; line-height: 1.2; color: var(--heading-color); margin-bottom: 20px; }
.hero-subtitle { font-size: 1.2rem; max-width: 600px; margin: 0 auto 30px auto; color: #eeeeee; }
.hero-button { background-color: var(--accent-color); color: #030f0f; padding: 15px 35px; border-radius: 50px; text-decoration: none; font-size: 1.1rem; font-weight: 600; font-family: 'Poppins', sans-serif; transition: all 0.3s ease; }
body:not(.dark-mode) .hero-button { color: #0A192F; }
.hero-button:hover { transform: translateY(-3px) scale(1.05); box-shadow: 0 8px 25px rgba(0,0,0,0.15); }
body.dark-mode .hero-button:hover { box-shadow: 0 8px 25px rgba(0, 223, 130, 0.3); }
.app-links-container { width: 100%; display: flex; justify-content: center; margin-top: 80px; }
.app-links-box { display: flex; gap: 15px; background-color: var(--card-bg-color); padding: 15px 25px; border-radius: 16px; border: 1px solid var(--border-color); box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1); }
body.dark-mode .app-links-box { background-color: rgba(3, 98, 76, 0.7); backdrop-filter: blur(5px); box-shadow: none; }
.app-link-item { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--text-color); background-color: transparent; padding: 8px 15px; border-radius: 10px; transition: all 0.3s ease; font-size: 0.9rem; }
.app-link-item:hover { background-color: rgba(0,0,0,0.05); color: var(--accent-color); }
body.dark-mode .app-link-item:hover { background-color: rgba(0, 223, 130, 0.1); }
.app-link-item i { color: var(--accent-color); }

/* ===================================================================
   4. SECTION UMUM (HEADER, PROGRAM, BERITA, DLL)
=================================================================== */
.section-header { text-align: center; margin-bottom: 50px; }
.section-title { font-family: 'Poppins', sans-serif; font-size: 2.5rem; color: var(--heading-color); margin-bottom: 15px; }
.section-subtitle { font-size: 1.1rem; color: var(--subtitle-color); max-width: 700px; margin: 0 auto; line-height: 1.6; }
.features-section { padding: 80px 0; background-color: var(--card-bg-color); border-top: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color); }
body.dark-mode .features-section { background-color: var(--bg-color); }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; }
.feature-card { background-color: var(--bg-color); padding: 35px 30px; border-radius: 12px; border: 1px solid var(--border-color); text-align: center; transition: transform 0.3s ease, box-shadow 0.3s ease; }
body.dark-mode .feature-card { background-color: var(--card-bg-color); }
.feature-card:hover { transform: translateY(-8px); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08); }
.feature-icon { margin: 0 auto 25px auto; width: 70px; height: 70px; background-color: rgba(0, 223, 130, 0.1); border-radius: 50%; display: flex; justify-content: center; align-items: center; }
body:not(.dark-mode) .feature-icon { background-color: rgba(255, 193, 7, 0.1); }
.feature-icon i { font-size: 2rem; color: var(--accent-color); }
.feature-title { font-family: 'Poppins', sans-serif; font-size: 1.4rem; color: var(--heading-color); margin-bottom: 15px; }
.feature-description { color: var(--text-color); line-height: 1.7; }
.news-section { padding: 80px 0; background-color: var(--bg-color); }
.news-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.news-card { background-color: var(--card-bg-color); border-radius: 12px; overflow: hidden; border: 1px solid var(--border-color); display: flex; flex-direction: column; transition: transform 0.3s ease, box-shadow 0.3s ease; }
.news-card:hover { transform: translateY(-8px); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1); }
.news-image { width: 100%; height: 200px; object-fit: cover; }
.news-content { padding: 25px; flex-grow: 1; display: flex; flex-direction: column; }
.news-category { background-color: rgba(0, 223, 130, 0.1); color: var(--primary-color); padding: 5px 12px; border-radius: 20px; font-size: 0.8rem; font-weight: 600; align-self: flex-start; margin-bottom: 15px; }
body:not(.dark-mode) .news-category { background-color: rgba(255, 193, 7, 0.15); color: var(--accent-color); }
.news-title { font-family: 'Poppins', sans-serif; font-size: 1.25rem; color: var(--heading-color); margin-bottom: 15px; line-height: 1.4; }
.news-meta { font-size: 0.9rem; color: var(--heading-color); margin-bottom: 20px; margin-top: auto; }
.news-meta i { margin-right: 8px; }
.news-read-more { color: var(--accent-color); text-decoration: none; font-weight: 600; transition: color 0.3s; }
.news-read-more:hover { color: var(--heading-color); }

/* == BAGIAN VIDEO PROFIL == */
.video-section { 
    padding: 80px 0; 
    background-color: var(--card-bg-color); 
}
body.dark-mode .video-section { 
    background-color: var(--bg-color); 
}
.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08); /* Mirip hover card */
    margin: 0 auto; /* Tengahkan video wrapper */
}
.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* == Penyesuaian Latar Galeri (KEMBALI KE VERSI ASLI + MODERN) == */
.gallery-section { 
    padding: 80px 0; 
    background-color: var(--bg-color); 
}
body.dark-mode .gallery-section { 
    background-color: var(--card-bg-color); 
}

/* Kita kembalikan grid asli yang Anda suka */
.gallery-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); 
    gap: 15px; /* <-- Kembalikan gap 15px */
}

/* Kita kembalikan style .gallery-item asli */
.gallery-item { 
    position: relative; /* <-- Ini PENTING untuk caption overlay */
    overflow: hidden; 
    border-radius: 12px; 
    /* BARU: Membuat semua kotak sama (persegi) agar rapi */
    aspect-ratio: 1 / 1; 
}

/* Kita kembalikan style .gallery-item img asli */
.gallery-item img { 
    width: 100%; 
    height: 100%; /* <-- Biarkan 100% */
    object-fit: cover; 
    display: block; 
    transition: transform 0.4s ease; 
}

/* Kita kembalikan style hover img asli */
.gallery-item:hover img { 
    transform: scale(1.1); 
}

/* * ===== STYLE BARU UNTUK CAPTION MODERN (OVERLAY) =====
 */
.gallery-item-caption {
    position: absolute; /* Menumpuk di atas gambar */
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 25px 20px;

    /* Gradien dari transparan ke hitam di bawah */
    background: linear-gradient(0deg, 
        rgba(0, 0, 0, 0.85) 0%, 
        rgba(0, 0, 0, 0) 100%
    );

    /* Sembunyikan dan geser ke bawah by default */
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease-out;
}

.gallery-item:hover .gallery-item-caption {
    /* Munculkan saat item di-hover */
    opacity: 1;
    transform: translateY(0);
}

.gallery-item-caption h4 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.1rem;
    color: #FFFFFF; /* Teks Putih */
    margin: 0;
    line-height: 1.4;
}

/* ===================================================================
   5. BAGIAN PROFIL SEKOLAH
=================================================================== */
.profile-section { padding: 80px 0; background-color: transparent; }
/* Target paragraf di card Visi (card kedua di kolom kiri) */
.profile-left .card:nth-of-type(2) p {
    text-align: justify;
}

/* Target paragraf di card Sejarah (card pertama di kolom tengah) */
.profile-center .card:nth-of-type(1) p {
    text-align: justify;
}

/* Target list item di dalam card Misi */
.profile-center .mission-list li {
    text-align: justify;
    /* Sedikit penyesuaian agar ikon check tetap rapi */
    padding-right: 5px; 
}
.profile-grid { 
    display: grid; 
    grid-template-columns: 4fr 5fr 4fr; /* <-- Definisikan kolom utama */
    gap: 25px; 
}
.card { background-color: var(--card-bg-color); border-radius: 12px; padding: 25px; border: 1px solid var(--border-color); box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05); margin-bottom: 25px; }
.card:last-child { margin-bottom: 0; }
.card-title { font-family: 'Poppins', sans-serif; color: var(--heading-color); font-size: 1.25rem; margin-bottom: 20px; }
.card-subtitle { font-weight: 600; color: var(--text-color); margin-bottom: 8px; }

/* == KOLOM KIRI == */
.profile-left {
    grid-row: 1; /* Tetap di baris pertama */
    /* grid-column: span 4; Tidak diperlukan lagi */
}
.profile-left .profile-user-card { text-align: center; }
.profile-school-photo { width: 100%; max-height: 150px; object-fit: contain; border-radius: 8px; margin-bottom: 20px; padding: 15px; background-color: rgba(0,0,0,0.03); }
body.dark-mode .profile-school-photo { background-color: rgba(0, 223, 130, 0.05); }
.profile-name { font-family: 'Poppins', sans-serif; color: var(--heading-color); font-size: 1.5rem; }
.profile-title { color: var(--subtitle-color); font-size: 0.9rem; margin-bottom: 20px; }
.profile-contact { list-style: none; text-align: left; font-size: 0.9rem; line-height: 1.6; }
.profile-contact li { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 10px; color: var(--text-color); }
.profile-contact i { color: var(--primary-color); margin-top: 4px; }
.schedule-list { list-style: none; }
.schedule-item { display: flex; justify-content: space-between; align-items: center; padding: 15px 0; border-bottom: 1px solid var(--border-color); }
.schedule-item:last-child { border-bottom: none; padding-bottom: 0; }
.schedule-time { font-weight: 600; color: var(--heading-color); font-size: 0.9rem; }
.schedule-class { color: var(--subtitle-color); font-size: 0.9rem; }
.status { font-size: 0.8rem; font-weight: 600; padding: 4px 10px; border-radius: 20px; }
.status.pending { background-color: rgba(0, 223, 130, 0.15); color: var(--primary-color); }
body:not(.dark-mode) .status.pending { background-color: rgba(255, 193, 7, 0.15); color: var(--accent-color); }
.status.ongoing { background-color: rgba(13, 110, 253, 0.15); color: #0D6EFD; }
.status.completed { background-color: rgba(25, 135, 84, 0.15); color: #198754; }

/* == KOLOM TENGAH == */
.profile-center {
    grid-row: 1; /* Tetap di baris pertama */
    /* grid-column: span 5; Tidak diperlukan lagi */
}
.stats-grid-school { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 25px; }
.stat-item { text-align: center; padding: 20px; margin-bottom: 0; }
.stat-item i { font-size: 2rem; color: var(--primary-color); margin-bottom: 10px; }
.stat-number { font-family: 'Poppins', sans-serif; font-size: 1.75rem; font-weight: 600; color: var(--heading-color); display: block; }
.stat-label { font-size: 0.9rem; color: var(--subtitle-color); }
.mission-list { list-style: none; padding-left: 5px; }
.mission-list li { position: relative; padding-left: 25px; margin-bottom: 6px; line-height: 1.3; }
.mission-list li::before { content: '\f00c'; font-family: 'Font Awesome 6 Free'; font-weight: 900; position: absolute; left: 0; top: 4px; color: var(--primary-color); font-size: 0.9rem; }
.info-list { list-style: none; display: flex; flex-direction: column; gap: 20px; }
.info-list li { display: flex; align-items: center; gap: 20px; }
.info-list i { font-size: 1.5rem; color: var(--primary-color); width: 25px; text-align: center; }
.info-title { font-weight: 600; color: var(--heading-color); }
.info-subtitle { color: var(--subtitle-color); font-size: 0.9rem; }

/* == KOLOM KANAN == */
.profile-right {
    grid-row: 1; /* Tetap di baris pertama */
    /* grid-column: span 4; Tidak diperlukan lagi */
}
.personnel-list {
    list-style: none;
    max-height: 400px;  /* <-- Tinggi maksimum tetap ada */
    overflow-y: auto;   /* <-- Scroll tetap aktif */
    
    /* === Sembunyikan Scrollbar === */
    
    /* Untuk Firefox */
    scrollbar-width: none;
    
    /* Untuk Internet Explorer (lama) */
    -ms-overflow-style: none;
}
.personnel-item { padding: 15px 0; border-bottom: 1px solid var(--border-color); }
.personnel-item:first-child { padding-top: 0; }
.personnel-item:last-child { border-bottom: none; padding-bottom: 0; }
.personnel-header { display: flex; align-items: center; gap: 15px; }
.personnel-header img { width: 50px; height: 50px; border-radius: 50%; object-fit: cover; }
.personnel-name { font-weight: 600; color: var(--heading-color); }
.personnel-title { font-size: 0.9rem; color: var(--heading-color); }

/* === KARTU VISI MISI YANG DIRENTANGKAN === */
.visi-misi-card {
    grid-column: 1 / span 2; /* Mulai kolom 1, rentang 2 kolom */
    grid-row: 2; /* <-- Letakkan di baris kedua */
    width: 100%; 
    margin-bottom: 25px; 
}
.visi-misi-card p,
.visi-misi-card ul {
    font-size: 0.95rem; 
    line-height: 1.7;
}
/* === AKHIR KARTU VISI MISI === */


/* ===================================================================
   6. FOOTER
=================================================================== */
.footer-section { background-color: #030f0f; padding: 60px 0 20px; color: #8892b0; }
.footer-content { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 40px; margin-bottom: 40px; }
.footer-logo { height: 60px; margin-bottom: 20px; }
.footer-col h4 { font-family: 'Poppins', sans-serif; color: #FFFFFF; font-size: 1.2rem; margin-bottom: 20px; position: relative; padding-bottom: 10px; }
.footer-col h4::after { content: ''; position: absolute; left: 0; bottom: 0; width: 40px; height: 2px; background-color: var(--primary-color); }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 12px; }
.footer-col ul a { color: #8892b0; text-decoration: none; transition: color 0.3s ease, padding-left 0.3s ease; }
.footer-col ul a:hover { color: var(--primary-color); padding-left: 5px; }
.contact-list li { display: flex; align-items: flex-start; }
.contact-list i { margin-right: 15px; margin-top: 5px; color: var(--primary-color); }
.footer-bottom { text-align: center; padding-top: 20px; border-top: 1px solid var(--border-color); font-size: 0.9rem; }

/* ===================================================================
   7. RESPONSIVE DESIGN
=================================================================== */

/* Tablet (1024px kebawah) */
@media (max-width: 1024px) {
    /* Perkecil gap menu desktop */
    .nav-menu { gap: 25px; margin-left: 30px;}
    .nav-actions { gap: 10px; }

    /* Profil Responsif Tablet*/
    .profile-grid {
        grid-template-columns: 1fr 1fr;
    }
    .profile-left {
        grid-column: 1 / 2;
        grid-row: 1;
    }
    .profile-center {
        grid-column: 2 / 3;
        grid-row: 1;
    }
    .profile-right {
        grid-column: 1 / 3;
        grid-row: 2;
    }
    /* Visi Misi Card tidak perlu diubah, sudah menyesuaikan parent */

    /* PPDB Layout Tablet */
    .ppdb-layout {
        grid-template-columns: 1fr; /* Stack di tablet */
    }
}

/* Mobile (820px kebawah) */
@media (max-width: 820px) {
    /* Tampilkan Hamburger */
    .hamburger {
        display: block;
        cursor: pointer;
        z-index: 101; /* Di atas wrapper */
        order: 3; /* Pastikan selalu di paling kanan */
        padding: 10px; /* Area klik lebih besar */
    }
    .hamburger .bar {
        display: block;
        width: 25px;
        height: 3px;
        margin: 5px auto;
        transition: all 0.3s ease-in-out;
        background-color: var(--heading-color);
        border-radius: 3px;
    }
    /* Animasi hamburger jadi 'X' */
    .hamburger.active .bar:nth-child(2) { opacity: 0; }
    .hamburger.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .hamburger.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

    /* [UPDATE] Style untuk Wrapper Mobile */
    .mobile-nav-wrapper {
        position: fixed;
        left: -100%; /* Sembunyikan ke kiri */
        top: 75px; /* Di bawah header (sesuaikan jika tinggi header berubah) */
        width: 100%;
        height: calc(100vh - 75px); /* Tinggi sisa layar */
        background-color: var(--bg-color);
        transition: left 0.3s ease-in-out; /* Animasi slide */
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        border-top: 1px solid var(--border-color);
        overflow-y: auto; /* Aktifkan scroll vertikal */
        padding: 20px 0; /* Padding atas bawah */
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        z-index: 99;
        /* Reset style desktop */
        justify-content: flex-start;
        flex-grow: 0;
    }
    .mobile-nav-wrapper.active {
        left: 0; /* Munculkan dari kiri */
    }

    /* [UPDATE] Hapus positioning & reset style menu & actions di mobile */
    .nav-menu, .nav-actions {
         position: static;
         left: auto;
         top: auto;
         flex-direction: column;
         background-color: transparent;
         width: 100%;
         text-align: center;
         transition: none;
         box-shadow: none;
         border-top: none;
         padding: 0;
         margin: 0; /* Hapus margin auto dari desktop */
    }
    .nav-menu {
         gap: 0; /* Hapus gap horizontal */
    }
    .nav-actions {
         margin-top: 20px;
         padding-top: 20px;
         border-top: 1px solid var(--border-color); /* Separator */
         gap: 20px; /* Jarak antar tombol */
         padding-bottom: 30px; /* Beri jarak di bawah */
    }

    /* Style Item Menu Mobile */
    .nav-item { padding: 0.8rem 0; width: 100%; }

    /* Dropdown Mobile */
    /* Sembunyikan dropdown default saat hover */
    .nav-item.dropdown:hover .dropdown-menu { display: none; }
    .nav-item.dropdown:hover .dropdown-toggle i { transform: none; }
    /* Tampilkan/sembunyikan dropdown saat parent (.nav-item) aktif */
    .dropdown-menu {
        position: static; /* Kembali ke flow normal */
        display: none; /* Sembunyikan by default */
        width: 100%;
        box-shadow: none;
        border: none;
        margin-top: 0;
        padding-top: 5px; /* Sedikit jarak dari toggle */
        padding-bottom: 5px;
        background-color: rgba(0,0,0,0.03); /* Background berbeda */
        min-width: unset; /* Hapus min-width desktop */
        border-radius: 0; /* Hapus border radius */
    }
    body.dark-mode .dropdown-menu { background-color: rgba(0, 223, 130, 0.05); }
    /* Tampilkan dropdown jika parent (.nav-item.dropdown) punya class 'active' */
    .nav-item.dropdown.active .dropdown-menu { display: block; }
    /* Putar ikon chevron saat dropdown aktif */
    .nav-item.dropdown.active .dropdown-toggle i { transform: rotate(180deg); }
    .dropdown-link { padding: 12px 20px; text-align: center; }
    .dropdown-link:hover { padding-left: 20px; } /* Hilangkan indent hover */

    /* Hero Section Mobile */
    .hero { min-height: 80vh; padding-top: 120px; } /* Kurangi tinggi & tambah padding */
    .hero-title { font-size: 2.5rem; }
    .hero-subtitle { font-size: 1rem; }
    .app-links-container { margin-top: 30px; }
    .app-links-box { flex-wrap: wrap; justify-content: center; padding: 10px; }

    /* Section Umum Mobile */
    .section-title { font-size: 2rem; }

    /* Footer Mobile */
    .footer-content { grid-template-columns: 1fr; text-align: center; }
    .footer-col h4::after { left: 50%; transform: translateX(-50%); }
    .contact-list li { justify-content: center; }

    /* Profil Responsif Mobile */
    .profile-grid { grid-template-columns: 1fr; }
    .profile-left, .profile-center, .profile-right {
        grid-column: 1 / -1;
        grid-row: auto; /* Reset baris */
    }
    .stats-grid-school { grid-template-columns: 1fr 1fr; }

    /* Responsive Visi Misi Card */
    .visi-misi-card {
        grid-column: 1 / -1;
        grid-row: auto; /* Reset baris */
    }

    /* Layout Halaman Internal (Kurikulum, Kesiswaan, dll) Mobile */
     .page-title { font-size: 2.2rem; }
     .tabs-nav { flex-direction: column; gap: 5px; margin-bottom: 0; }
     .tab-link { border-radius: 8px; border-bottom: 1px solid var(--border-color); }
     .tabs-content.card { border-top-left-radius: 12px; }
     .subject-list { columns: 1; }
     .accordion-header { font-size: 1.1rem; }
     .accordion-content p,
     .accordion-content ul { padding: 0 25px 25px 25px !important; /* Paksa padding simple */ }
     .assessment-grid { grid-template-columns: 1fr; }

     /* Layout Halaman Humas Mobile */
     .humas-grid-layout { grid-template-columns: 1fr; }
     .humas-sidebar { grid-row: 1; }
     .humas-main-feed { grid-row: 2; }
     .humas-section-title { font-size: 1.6rem; }
     .social-media-links { grid-template-columns: 1fr; } /* Stack ikon medsos */

     /* Layout PPDB Mobile */
     .form-grid-2col { grid-template-columns: 1fr; gap: 0; }
     .form-grid-2col .form-group { margin-bottom: 20px; }
     .form-header { flex-direction: column; align-items: flex-start; gap: 15px; }
     .nomor-urut input { width: 100%; }

     /* Modal Login Mobile */
     .login-modal-content-new { grid-template-columns: 1fr; max-width: 480px; min-height: 0; max-height: 90vh; }
     .login-image-side { display: none; }
     .login-form-side { padding: 40px 35px; }
}

/* ===================================================================
   8. STYLE HALAMAN KURIKULUM (DAN HALAMAN INTERNAL LAINNYA)
=================================================================== */

/* 8.1 Header Halaman Internal */
.page-header-section {
    padding: 75px 20px 40px 20px;
    text-align: center;
    background-color: var(--card-bg-color); /* Fallback color */
    border-bottom: 1px solid var(--border-color);
    position: relative;
    z-index: 1;
    overflow: hidden; /* Penting untuk clip path atau efek visual lainnya */

    /* Tambahan untuk background image dan overlay */
    background-image: url('../images/header.jpg'); /* Ganti dengan path gambar Anda */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex; /* Untuk memposisikan konten di tengah secara vertikal */
    align-items: center;
    justify-content: center;
    min-height: auto; /* Ketinggian minimum header */
    margin-top: 0;
}

/* Layer overlay untuk membuat teks lebih terbaca */
.page-header-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.75), rgba(108, 117, 125, 0.65)); /* Contoh langsung jika variabel RGB tidak ada */
    opacity: 0.9;
    z-index: -1;
}

body.dark-mode .page-header-section {
    background-color: var(--bg-color); /* Sedikit beda di dark mode, ini akan ditimpa oleh ::before */
}
body.dark-mode .page-header-section::before {
    background: linear-gradient(135deg, rgba(var(--dark-bg-rgb), 0.8), rgba(var(--primary-rgb), 0.6)); /* Gradien gelap di dark mode */
    opacity: 0.95;
}

.page-header-section .container {
    position: relative; /* Penting agar konten di atas overlay */
    z-index: 2;
    color: #fff; /* Teks putih agar kontras dengan overlay gelap */
    text-shadow: 0px 2px 8px rgba(0, 0, 0, 0.3); /* Tambahkan shadow agar teks lebih menonjol */
}

.page-title {
    font-family: 'Poppins', sans-serif;
    font-size: 2.5rem; /* Sedikit lebih besar */
    font-weight: 700;
    color: #004952; /* Ubah warna teks menjadi putih */
    margin-bottom: 10px;
    letter-spacing: 1px; /* Sedikit spasi antar huruf */
}
.page-subtitle {
    font-size: 1.1rem; /* Ukuran bisa disesuaikan */
    color: #FFFFFF; /* Pastikan putih atau sedikit redup */
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
    font-weight: 300;
    opacity: 0.9; /* Sedikit transparan agar tidak terlalu menonjol */
}

/* Penyesuaian untuk dropdown link aktif */
.dropdown-link.active-link {
    color: var(--accent-color);
    font-weight: 600;
    background-color: rgba(0,0,0,0.03);
}
body.dark-mode .dropdown-link.active-link {
    background-color: rgba(0, 223, 130, 0.05);
}


/* 8.2 Sistem Tabs */
.tabs-nav {
    display: flex;
    gap: 10px;
    margin-bottom: -1px; /* Agar card menempel di bawahnya */
    position: relative;
    z-index: 2;
}
.tab-link {
    padding: 15px 30px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    border: 1px solid var(--border-color);
    background-color: var(--bg-color);
    color: var(--subtitle-color);
    border-radius: 12px 12px 0 0; /* Melengkung di atas */
    border-bottom: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}
.tab-link:hover {
    color: var(--heading-color);
}
.tab-link.active {
    background-color: var(--card-bg-color);
    color: var(--primary-color);
    border-color: var(--border-color);
}
.tabs-content.card {
    padding: 35px 30px;
    border-top-left-radius: 0; /* Sudut tajam di bawah tab aktif */
    position: relative;
    z-index: 1;
    width: 100%;
}
.tab-pane {
    display: none;
    animation: fadeIn 0.5s ease;
}
.tab-pane.active {
    display: block;
}
.tab-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1.75rem;
    color: var(--heading-color);
    margin-bottom: 20px;
}
.tab-pane p {
    line-height: 1.7;
    margin-bottom: 20px;
}

/* Daftar Mata Pelajaran */
.subject-list {
    list-style: none;
    padding-left: 0;
    columns: 2;
    -webkit-columns: 2;
    -moz-columns: 2;
    gap: 20px;
}
.subject-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.05rem;
    margin-bottom: 15px;
    color: var(--text-color);
    /* Mencegah list terpotong antar kolom */
    -webkit-column-break-inside: avoid;
    page-break-inside: avoid;
    break-inside: avoid;
}
.subject-list li i {
    color: var(--accent-color);
    font-size: 1.2rem;
    width: 20px;
    text-align: center;
}

/* 8.3 Sistem Accordion */
.accordion-container {
    max-width: 900px;
    margin: 0 auto;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden; /* Penting agar border-radius berfungsi */
}
.accordion-item {
    border-bottom: 1px solid var(--border-color);
    background-color: var(--card-bg-color);
}
.accordion-item:last-child {
    border-bottom: none;
}
.accordion-header {
    width: 100%;
    padding: 20px 25px;
    background-color: transparent;
    border: none;
    text-align: left;
    font-family: 'Poppins', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--heading-color);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
}
.accordion-header:hover {
    background-color: var(--bg-color);
}
.accordion-header i:first-child {
    color: var(--primary-color);
    margin-right: 15px;
    width: 20px;
    text-align: center;
}
.accordion-header .icon-toggle {
    font-size: 0.9rem;
    color: var(--subtitle-color);
    transition: transform 0.3s ease;
}
.accordion-item.active .accordion-header .icon-toggle {
    transform: rotate(180deg);
    color: var(--primary-color);
}
.accordion-item.active .accordion-header {
    color: var(--primary-color);
}
.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-color);
}
.accordion-content p {
    padding: 0 30px 25px 68px; /* Padding kiri agar lurus dengan teks header */
}

/* 8.4 Grid Penilaian & Waktu */
.assessment-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

/* 8.5 Responsive untuk Halaman Kurikulum */
@media (max-width: 768px) {
    .page-title {
        font-size: 2.2rem;
    }
    .tabs-nav {
        flex-direction: column;
        gap: 5px;
        margin-bottom: 0;
    }
    .tab-link {
        border-radius: 8px;
        border-bottom: 1px solid var(--border-color);
    }
    .tabs-content.card {
        border-top-left-radius: 12px;
    }
    .subject-list {
        columns: 1;
    }
    .accordion-header {
        font-size: 1.1rem;
    }
    .accordion-content p {
        padding: 0 25px 25px 25px; /* Sederhanakan padding di mobile */
    }
    .assessment-grid {
        grid-template-columns: 1fr;
    }
}

/* Efek Fade-in untuk Tab Pane */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===================================================================
   9. SEMBUNYIKAN SCROLLBAR PERSONIL (WEBKIT)
=================================================================== */
.personnel-list::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none;
}

/* ===================================================================
   10. STYLE HALAMAN PPDB (BARU)
=================================================================== */

/* Layout Halaman Utama */
.ppdb-section {
    padding: 60px 0;
    background-color: var(--bg-color);
}

.ppdb-layout {
    display: grid;
    grid-template-columns: 1fr 2fr; /* 1/3 untuk info, 2/3 untuk form */
    gap: 30px;
}

/* Kolom Info Kiri */
.ppdb-info .card-title {
    color: var(--primary-color);
    font-size: 1.5rem;
}
.ppdb-info .info-subtitle {
    font-family: 'Poppins', sans-serif;
    font-size: 1.2rem;
    color: var(--heading-color);
    margin-top: 30px;
    margin-bottom: 15px;
}
.info-list-ppdb {
    list-style: none;
    padding-left: 0;
}
.info-list-ppdb li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
    font-size: 1rem;
}
.info-list-ppdb li i {
    width: 25px;
    height: 25px;
    background-color: var(--primary-color);
    color: var(--card-bg-color);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
}

/* Kolom Form Kanan */
.ppdb-form-container.card {
    padding: 30px 35px;
}

.form-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 20px;
}
.form-title {
    font-family: 'Poppins', sans-serif;
    color: var(--heading-color);
    font-size: 1.75rem;
}
.nomor-urut label {
    display: block;
    font-size: 0.8rem;
    color: var(--subtitle-color);
    margin-bottom: 5px;
}
.nomor-urut input {
    border: 1px dashed var(--primary-color);
    background-color: rgba(0, 223, 130, 0.05);
    padding: 8px 12px;
    border-radius: 6px;
    font-weight: 600;
    color: var(--primary-color);
    text-align: center;
    width: 150px;
}
body:not(.dark-mode) .nomor-urut input {
    background-color: rgba(13, 110, 253, 0.05);
}


/* Styling Form Umum */
.ppdb-form fieldset {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px 25px;
    margin-bottom: 25px;
}
.ppdb-form legend {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 1.2rem;
    color: var(--heading-color);
    padding: 0 10px;
    margin-left: 5px;
}

.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 8px;
    font-size: 0.95rem;
}
.form-group small {
    font-size: 0.85rem;
    color: var(--subtitle-color);
    margin-top: 5px;
}

/* Input Fields */
.ppdb-form input[type="text"],
.ppdb-form input[type="date"],
.ppdb-form input[type="tel"],
.ppdb-form input[type="email"],
.ppdb-form input[type="number"],
.ppdb-form select,
.ppdb-form textarea {
    width: 100%;
    padding: 12px 15px;
    font-size: 1rem;
    font-family: 'Roboto', sans-serif;
    border: 1px solid var(--border-color);
    background-color: var(--bg-color);
    color: var(--text-color);
    border-radius: 8px;
    transition: border-color 0.3s, box-shadow 0.3s;
}
.ppdb-form input[type="text"]:focus,
.ppdb-form input[type="date"]:focus,
.ppdb-form input[type="tel"]:focus,
.ppdb-form input[type="email"]:focus,
.ppdb-form input[type="number"]:focus,
.ppdb-form select:focus,
.ppdb-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 223, 130, 0.2);
}
body:not(.dark-mode) .ppdb-form input:focus,
body:not(.dark-mode) .ppdb-form select:focus,
body:not(.dark-mode) .ppdb-form textarea:focus {
     box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.2);
}
.ppdb-form input[type="file"].form-control-file {
    padding: 10px;
    background-color: var(--bg-color);
}

/* Radio & Checkbox */
.radio-group, .checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 20px;
    background-color: var(--bg-color);
    border: 1px solid var(--border-color);
    padding: 15px;
    border-radius: 8px;
}
.radio-group label, .checkbox-group label {
    font-weight: 400;
    margin-bottom: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}
.ppdb-form input[type="radio"],
.ppdb-form input[type="checkbox"] {
    width: auto;
    accent-color: var(--primary-color);
}

/* Layout Grid dalam Form */
.form-grid-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.form-sub-section {
    padding: 20px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
}
.form-sub-section h4 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.1rem;
    color: var(--subtitle-color);
    margin-bottom: 20px;
}

.form-submit-group {
    margin-top: 30px;
}

/* Responsive Halaman PPDB */
@media (max-width: 1024px) {
    .ppdb-layout {
        grid-template-columns: 1fr; /* Stack di tablet */
    }
}
@media (max-width: 768px) {
    .form-grid-2col {
        grid-template-columns: 1fr; /* Stack di HP */
        gap: 0;
    }
    .form-grid-2col .form-group {
        margin-bottom: 20px;
    }
    .form-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    .nomor-urut input {
        width: 100%;
    }
}

/* Modern File Upload Styling */
.file-upload-wrapper {
    position: relative;
    width: 200px; /* Lebar pasfoto */
    height: 267px; /* Tinggi (rasio 3x4) */
    margin-top: 8px; /* Beri jarak dari label judul */
}

.file-upload-label {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    border: 2px dashed var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: border-color 0.3s ease, background-color 0.3s ease;
    overflow: hidden; /* Sembunyikan bagian gambar yg berlebih */
    position: relative; /* Untuk positioning placeholder & preview */
    background-color: var(--bg-color);
}

.file-upload-label:hover {
    border-color: var(--primary-color);
    background-color: rgba(0, 223, 130, 0.05);
}
body:not(.dark-mode) .file-upload-label:hover {
    background-color: rgba(13, 110, 253, 0.05);
}

.file-upload-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--subtitle-color);
    padding: 20px;
    transition: opacity 0.3s ease;
}

.file-upload-placeholder i {
    font-size: 3rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.file-upload-placeholder span {
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-color);
}

.file-upload-placeholder small {
    font-size: 0.85rem;
    margin-top: 8px;
    line-height: 1.4;
}

/* Input file asli kita sembunyikan */
.file-upload-input {
    display: none;
}

/* Styling untuk Preview Image */
#pasfoto-preview {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Foto akan mengisi box tanpa distorsi */
    display: none; /* Sembunyikan by default */
    z-index: 10;
    background-color: var(--card-bg-color);
}

/* ===================================================================
   11. FLATPICKR CUSTOM THEME & INPUT ICON (VERSI FINAL)
=================================================================== */

/* 11.1 Wrapper untuk Ikon Kalender di Input */
.input-with-icon {
    position: relative;
}
.input-with-icon .input-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--subtitle-color);
    pointer-events: none; /* Biar bisa klik input di bawahnya */
}
/* Beri ruang untuk ikon di dalam input */
.ppdb-form input[type="text"].flatpickr-input {
    padding-right: 40px; 
}

/* 11.2 Tema Flatpickr (Menggunakan Variabel CSS Anda) */

/* Box Kalender Utama */
.flatpickr-calendar {
    background: var(--card-bg-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    color: var(--text-color);
    width: 320px;
}

/* Header (Bulan & Tahun) - VERSI BARU (TANPA PLUGIN) */
.flatpickr-months {
    display: flex; 
    align-items: center; 
    padding: 12px 10px;
    background: var(--bg-color);
    border-bottom: 1px solid var(--border-color);
}

/* Tombol Panah Navigasi < > */
.flatpickr-prev-month, .flatpickr-next-month {
    padding: 0 10px;
    color: var(--subtitle-color);
    flex-shrink: 0;
}
.flatpickr-prev-month:hover, .flatpickr-next-month:hover {
    color: var(--primary-color);
}
.flatpickr-prev-month svg, .flatpickr-next-month svg {
    fill: currentColor;
}

/* Wrapper untuk Dropdown & Input Tahun */
.flatpickr-current-month {
    display: flex; 
    gap: 8px; 
    width: 100%;
    padding: 0 5px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--heading-color);
}

/* Style Dropdown Bulan (Default Flatpickr) */
.flatpickr-monthDropdown-months {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 1rem; /* Ukuran font di header */
    color: var(--heading-color);
    background-color: var(--card-bg-color);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 4px 8px;
    width: 100%; /* Ambil sisa ruang */
    box-sizing: border-box;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    /* Ikon panah dropdown kustom */
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="%238892b0" viewBox="0 0 16 16"><path d="M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 12px;
    cursor: pointer;
}
.flatpickr-monthDropdown-months:hover {
    border-color: var(--primary-color);
}

/* Override font-size di dalam <option> */
.flatpickr-monthDropdown-months option {
    font-size: 0.95rem; /* Ukuran font di dropdown list (lebih kecil) */
    background-color: var(--card-bg-color);
    color: var(--text-color);
}

/* Style Input Tahun */
.flatpickr-current-month .numInputWrapper {
    width: 70px; /* Lebar yg pas untuk 4 digit tahun */
    flex-shrink: 0;
}
.flatpickr-current-month .numInputWrapper input.numInput {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    color: var(--heading-color);
    background-color: var(--card-bg-color);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 4px 8px;
    text-align: center;
}
.flatpickr-current-month .numInputWrapper:hover input.numInput {
    border-color: var(--primary-color);
}
/* Sembunyikan panah atas/bawah bawaan input number */
.flatpickr-current-month .numInputWrapper span {
    display: none;
}


/* Nama Hari (Sen, Sel, Rab...) */
.flatpickr-weekday, .flatpickr-weekdays {
    background: var(--bg-color);
    color: var(--text-color);
    font-weight: 600;
}

/* Tanggal (Angka) - INI YANG HILANG TADI */
.flatpickr-day {
    color: var(--text-color);
    border: 1px solid transparent;
    font-weight: 400;
}
.flatpickr-day:hover {
    background: var(--bg-color);
    color: var(--heading-color);
    border-color: var(--bg-color);
}

/* Tanggal di luar bulan ini */
.flatpickr-day.prevMonthDay, .flatpickr-day.nextMonthDay {
    color: var(--text-color);
    opacity: 0.3;
}

/* Tanggal Hari Ini (Today) */
.flatpickr-day.today {
    border-color: var(--accent-color);
    color: var(--accent-color);
}
body:not(.dark-mode) .flatpickr-day.today {
    color: #b8860b; /* Warna kuning tua agar terbaca di light mode */
    border-color: #b8860b;
}
.flatpickr-day.today:hover {
    background: var(--accent-color);
    color: #030f0f;
    border-color: var(--accent-color);
}

/* Tanggal yang Dipilih (Selected) */
.flatpickr-day.selected {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}
/* Ubah warna teks di dark mode agar kontras */
body.dark-mode .flatpickr-day.selected {
    color: #030f0f; 
}

/* ===================================================================
   12. LOGIN MODAL (DESAIN BARU - SPLIT SCREEN)
=================================================================== */

.login-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    
    /* Sembunyikan by default */
    display: none; 
    align-items: center;
    justify-content: center;
    z-index: 1000; /* Pastikan di atas header */
    
    /* Animasi fade-in untuk overlay */
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 20px; /* Beri jarak aman di layar kecil */
}

/* Status aktif (via JavaScript) */
.login-modal-overlay.active {
    display: flex;
    opacity: 1;
}

/* Konten modal utama (pengganti .login-modal-content.card) */
.login-modal-content-new {
    width: 100%;
    max-width: 900px; /* Lebar modal baru */
    min-height: 600px;
    background-color: var(--card-bg-color);
    border-radius: 16px; /* Sesuai contoh */
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    display: grid;
    grid-template-columns: 1fr 1fr; /* 2 kolom sama rata */
    overflow: hidden; /* Penting untuk border-radius */
    
    /* Animasi pop-in */
    transform: scale(0.95);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.login-modal-overlay.active .login-modal-content-new {
    transform: scale(1);
    opacity: 1;
}

/* (KIRI) SISI FORM */
.login-form-side {
    padding: 40px 50px;
    position: relative; /* Untuk tombol close */
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow-y: auto; /* Agar bisa scroll di HP jika form terlalu panjang */
}

.login-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--subtitle-color);
    cursor: pointer;
    line-height: 1;
    padding: 0 5px;
    transition: color 0.3s ease;
    z-index: 10;
}
.login-modal-close:hover {
    color: var(--heading-color);
}

.login-modal-logo {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    text-decoration: none;
}
.login-modal-logo img {
    height: 40px;
    margin-right: 15px;
}

.login-header {
    text-align: left;
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 25px;
}
.login-header .form-title {
    font-size: 2rem; 
}
.login-header .section-subtitle {
    text-align: left;
    margin: 5px 0 0 0;
}

/* Style input, pinjam dari .ppdb-form */
.login-form input[type="text"],
.login-form input[type="password"] {
    width: 100%;
    padding: 14px 18px; /* Buat lebih tebal */
    font-size: 1rem;
    border: 1px solid var(--border-color);
    background-color: var(--bg-color); /* Sesuai inspirasi */
    color: var(--text-color);
    border-radius: 10px; /* Lebih bulat */
    transition: border-color 0.3s, box-shadow 0.3s;
}

/* Placeholder */
.login-form input::placeholder {
    color: var(--subtitle-color);
    opacity: 0.7;
}

/* Efek :focus yang konsisten */
.login-form input[type="text"]:focus,
.login-form input[type="password"]:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 223, 130, 0.2);
}
body:not(.dark-mode) .login-form input[type="text"]:focus,
body:not(.dark-mode) .login-form input[type="password"]:focus {
     box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.2);
}

/* Wrapper untuk ikon mata */
.password-wrapper {
    position: relative;
}
.password-wrapper i {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--subtitle-color);
    cursor: pointer;
    transition: color 0.3s ease;
}
.password-wrapper i:hover {
    color: var(--primary-color);
}

.login-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    margin-top: 15px;
    margin-bottom: 25px;
}
.login-remember {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 400;
    color: var(--text-color);
    cursor: pointer;
}
.login-remember input[type="checkbox"] {
    accent-color: var(--primary-color);
}
.login-forgot {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}
.login-forgot:hover {
    text-decoration: underline;
}

/* Tombol Login Utama (Primary) */
.login-button {
    width: 100%;
    padding: 14px 20px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    border-radius: 10px; /* Sesuai input */
    cursor: pointer;
    transition: all 0.3s ease;
    
    /* Warna Primary (sesuai inspirasi, solid) */
    background-color: var(--heading-color); /* Hitam di light mode */
    color: var(--card-bg-color); /* Putih di light mode */
}
body.dark-mode .login-button {
    background-color: var(--primary-color); /* Hijau di dark mode */
    color: #030f0f; /* Teks gelap di dark mode */
}
.login-button:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

/* Separator "or continue" */
.login-separator {
    text-align: center;
    margin: 20px 0;
    color: var(--subtitle-color);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 15px;
}
.login-separator::before,
.login-separator::after {
    content: '';
    flex-grow: 1;
    height: 1px;
    background-color: var(--border-color);
}

/* Tombol Google (Secondary) */
.login-google-btn {
    width: 100%;
    padding: 12px 20px; /* Sedikit lebih tipis */
    font-family: 'Roboto', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: var(--card-bg-color);
    color: var(--text-color);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}
.login-google-btn:hover {
    background-color: var(--bg-color);
    border-color: var(--text-color);
}
.login-google-btn img {
    width: 20px;
    height: 20px;
}

.login-signup-link {
    text-align: center;
    margin-top: 25px;
    font-size: 0.9rem;
    color: var(--subtitle-color);
}
.login-signup-link a {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
}
.login-signup-link a:hover {
    text-decoration: underline;
}

/* (KANAN) SISI GAMBAR / BRANDING */
.login-image-side {
    background-color: var(--heading-color); /* Hitam di light mode */
    padding: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--card-bg-color); /* Teks putih */
}
body.dark-mode .login-image-side {
    background-color: #030f0f; /* Warna bg-dark-mode */
    color: var(--text-color); /* Teks terang */
}

.login-image-content {
    max-width: 350px;
}
.login-image-content h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 2rem;
    margin-bottom: 15px;
    color: #FFFFFF; /* Teks putih (light mode) */
}
body.dark-mode .login-image-content h3 {
     color: var(--primary-color); /* Teks hijau (dark mode) */
}

.login-image-content p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--subtitle-color); /* Abu-abu terang */
}

.login-3d-placeholder {
    width: 100%;
    max-width: 350px;
    height: 350px;
    border-radius: 12px;
    margin-bottom: 30px;
    object-fit: cover; /* Agar gambar Anda pas */
}


/* Responsive untuk Modal Baru */
@media (max-width: 820px) {
    .login-modal-content-new {
        grid-template-columns: 1fr; /* Stack di tablet */
        max-width: 480px; /* Buat lebih ramping */
        min-height: 0;
        max-height: 90vh; /* Batasi ketinggian di HP */
    }
    .login-image-side {
        display: none; /* Sembunyikan sisi gambar di HP/Tablet */
    }
    .login-form-side {
        padding: 40px 35px;
    }
}

/* ===================================================================
   13. TOAST NOTIFICATION STYLES
=================================================================== */
.toast {
    position: fixed;
    /* bottom: 30px; <-- Hapus/Komentari baris ini */
    top: 90px; /* <-- Tambahkan baris ini (90px agar di bawah header) */
    right: 30px;
    padding: 16px 25px;
    border-radius: 8px;
    background-color: var(--heading-color);
    color: var(--card-bg-color);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    z-index: 1010;
    display: flex;
    align-items: center;
    gap: 15px;
    opacity: 0;
    /* transform: translateY(20px); <-- Hapus/Komentari baris ini */
    transform: translateY(-20px); /* <-- Tambahkan baris ini */
    visibility: hidden;
    transition: opacity 0.4s ease, transform 0.4s ease, visibility 0.4s ease;
}

body.dark-mode .toast {
     background-color: var(--card-bg-color);
     color: var(--text-color);
     border: 1px solid var(--border-color);
}

/* Status aktif (terlihat) */
.toast.active {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
}

/* Style untuk jenis pesan */
.toast.success {
    background-color: #198754; /* Hijau */
    color: #fff;
}
body.dark-mode .toast.success {
     background-color: #0f5132;
     color: #a3cfbb;
     border-color: #0a3622;
}

.toast.error {
    background-color: #dc3545; /* Merah */
    color: #fff;
}
 body.dark-mode .toast.error {
     background-color: #842029;
     color: #f5c2c7;
     border-color: #58151c;
}

/* Tombol close */
.toast-close {
    background: none;
    border: none;
    color: inherit; /* Warna ikut toast */
    opacity: 0.7;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    padding: 0 5px;
}
.toast-close:hover {
    opacity: 1;
}

/* ===================================================================
   14. E-RAPORT POPUP MODAL STYLES (GAYA FOLDER - ANBK DISAMAKAN)
=================================================================== */

.erapport-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    display: none; /* Sembunyikan by default */
    align-items: center;
    justify-content: center;
    z-index: 1050; /* Pastikan di atas header */
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 20px;
}

/* Status aktif (via JavaScript) */
.erapport-modal-overlay.active {
    display: flex;
    opacity: 1;
}

.erapport-modal {
    background-color: var(--card-bg-color);
    border-radius: 16px; /* Lebih bulat */
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 40px rgba(0,0,0,0.15); /* Shadow lebih jelas */
    width: 100%;
    max-width: 750px; /* Lebar modal lebih besar untuk 3 folder */
    overflow: hidden;
    transform: scale(0.95) translateY(-10px);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.erapport-modal-overlay.active .erapport-modal {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.erapport-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    border-bottom: 1px solid var(--border-color);
}

.erapport-modal-header h3 {
    font-family: 'Poppins', sans-serif;
    color: var(--heading-color);
    font-size: 1.3rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}
.erapport-modal-header h3 i {
    color: #b22d0c;
}

.erapport-modal-close {
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--subtitle-color);
    cursor: pointer;
    line-height: 1;
    padding: 0 5px;
    transition: color 0.3s ease;
}
.erapport-modal-close:hover {
    color: var(--heading-color);
}

/* Body Modal - Menggunakan Flexbox untuk folder */
.erapport-modal-body {
    padding: 30px 25px;
    display: flex; /* Gunakan flexbox */
    justify-content: space-around; /* Beri jarak antar folder */
    gap: 20px; /* Jarak antar folder */
    flex-wrap: wrap; /* Bungkus jika tidak muat */
}

/* Style "Folder" Aplikasi */
.app-folder {
    flex: 1; /* Biarkan folder mengisi ruang */
    min-width: 200px; /* Lebar minimum folder */
    max-width: 220px; /* Lebar maksimum folder */
    border-radius: 12px;
    padding: 20px;
    position: relative; /* Untuk efek layer */
    overflow: hidden; /* Sembunyikan overflow layer */
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    cursor: pointer;
    /* (DIPERBAIKI) Gaya default untuk SEMUA folder */
    background-color: var(--card-bg-color); /* Latar terang */
    color: var(--text-color); /* Teks default */
    border: 1px solid var(--border-color);
}
.app-folder:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

/* Efek Layer Belakang (mirip folder bertumpuk) */
.app-folder::before,
.app-folder::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 90%; /* Sedikit lebih kecil */
    height: 100%;
    border-radius: 12px;
    z-index: -1; /* Di belakang konten */
}

.app-folder::before {
    bottom: -8px; /* Layer pertama di bawah */
    background-color: rgba(128, 128, 128, 0.2); /* Warna layer belakang (abu-abu samar) */
}

.app-folder::after {
    bottom: -16px; /* Layer kedua lebih bawah */
    width: 80%; /* Lebih kecil lagi */
    background-color: rgba(128, 128, 128, 0.1); /* Lebih samar lagi */
}

/* Penyesuaian warna layer belakang untuk dark mode */
body.dark-mode .app-folder::before { background-color: rgba(200, 200, 200, 0.1); }
body.dark-mode .app-folder::after { background-color: rgba(200, 200, 200, 0.05); }

/* Konten di dalam Folder */
.folder-icon {
    display: inline-block; /* Agar bisa diberi margin bawah */
    margin-bottom: 15px;
    font-size: 1.8rem;
}

/* (DIPERBAIKI) Warna ikon beda tiap folder */
.app-folder.anbk .folder-icon { color: #FF9F40; } /* Ungu untuk ANBK */
.app-folder.rdm .folder-icon { color: #FF9F40; } /* Biru/Hijau default */
.app-folder.pts .folder-icon { color: #FF9F40; } /* Oranye untuk PTS */

/* (DIPERBAIKI) Nama Aplikasi (Semua sama) */
.folder-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    display: block; /* Agar margin bawah bekerja */
    margin-bottom: 8px;
    color: var(--heading-color); /* Warna judul default */
}

/* (DIPERBAIKI) Info Tambahan (Semua sama) */
.folder-info {
    font-size: 0.85rem;
    opacity: 0.7;
    margin-bottom: 15px;
    color: var(--subtitle-color); /* Warna info default */
}

/* Placeholder Avatar (jika diperlukan) */
.folder-avatars {
    display: flex;
    margin-top: auto; /* Dorong ke bawah jika ada ruang */
}
.folder-avatars img {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid var(--card-bg-color); /* Border putih/gelap agar tumpukan terlihat */
    margin-left: -8px; /* Efek tumpukan */
}
.folder-avatars img:first-child {
    margin-left: 0;
}
/* Border avatar anbk dihapus */


/* Responsif Modal */
@media (max-width: 700px) {
    .erapport-modal-body {
        flex-direction: column; /* Tumpuk folder di layar kecil */
        align-items: center; /* Tengahkan folder */
    }
    .app-folder {
        min-width: 250px; /* Lebarkan sedikit di mode tumpuk */
        max-width: 90%;
    }
}
@media (max-width: 600px) {
    .erapport-modal {
        max-width: calc(100% - 40px);
    }
    .erapport-modal-header h3 {
        font-size: 1.1rem;
    }
    .erapport-modal-body {
        padding: 25px 20px;
    }
}
/* === AKHIR BAGIAN MODAL E-RAPORT === */

/* ===================================================================
   15. PTS LOGIN MODAL STYLES (BARU - Mirip ThinkGPT)
=================================================================== */

.pts-login-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(248, 249, 250, 0.8); /* Background terang, agak transparan */
    backdrop-filter: blur(8px);
    display: none; /* Sembunyikan by default */
    align-items: center;
    justify-content: center;
    z-index: 1060; /* Di atas modal E-Raport */
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 20px;
}
body.dark-mode .pts-login-modal-overlay {
     background-color: rgba(3, 15, 15, 0.8); /* Background gelap */
}

/* Status aktif (via JavaScript) */
.pts-login-modal-overlay.active {
    display: flex;
    opacity: 1;
}

.pts-login-modal {
    background-color: var(--card-bg-color);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 480px; /* Lebar modal login */
    position: relative; /* Untuk tombol close */

    /* Animasi pop-in */
    transform: scale(0.95);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.pts-login-modal-overlay.active .pts-login-modal {
    transform: scale(1);
    opacity: 1;
}

.pts-login-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--subtitle-color);
    cursor: pointer;
    line-height: 1;
    padding: 0 5px;
    transition: color 0.3s ease;
    z-index: 10;
}
.pts-login-modal-close:hover {
    color: var(--heading-color);
}

.pts-login-content {
    padding: 40px 40px 30px 40px;
    text-align: center;
}

.pts-login-logo {
    height: 50px; /* Ukuran logo */
    margin-bottom: 20px;
    display: inline-block; /* Agar margin bekerja */
}
/* Sembunyikan logo yang tidak sesuai mode */
.pts-login-logo.logo-dark { display: none; }
.pts-login-logo.logo-light { display: block; }
body.dark-mode .pts-login-logo.logo-dark { display: block; }
body.dark-mode .pts-login-logo.logo-light { display: none; }


.pts-login-content h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.8rem;
    color: var(--heading-color);
    margin-bottom: 5px;
}
.pts-login-content p {
    color: var(--subtitle-color);
    margin-bottom: 30px;
    font-size: 0.95rem;
}

.pts-login-form .form-group {
    margin-bottom: 15px;
    text-align: left; /* Label rata kiri */
}
.pts-login-form label {
    display: block;
    font-weight: 500; /* Lebih tipis dari admin */
    color: var(--text-color);
    margin-bottom: 6px;
    font-size: 0.9rem;
}
.pts-login-form input[type="text"],
.pts-login-form input[type="password"] {
    width: 100%;
    padding: 12px 15px;
    font-size: 1rem;
    border: 1px solid var(--border-color);
    background-color: var(--card-bg-color); /* Background sama dengan card */
    color: var(--text-color);
    border-radius: 8px;
    transition: border-color 0.3s, box-shadow 0.3s;
    box-sizing: border-box;
}
.pts-login-form input::placeholder {
    color: var(--subtitle-color);
    opacity: 0.7;
}
.pts-login-form input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 223, 130, 0.2);
}
body:not(.dark-mode) .pts-login-form input:focus {
     box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.2);
}

/* Tombol Submit Utama */
.pts-login-submit {
    width: 100%;
    padding: 13px 20px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
    /* Gradient */
    background: linear-gradient(90deg, #8A2BE2, #00BFFF); /* Ungu ke Biru */
    color: #FFFFFF;
}
.pts-login-submit:hover {
    opacity: 0.9;
    box-shadow: 0 4px 15px rgba(138, 43, 226, 0.3); /* Shadow ungu */
}

/* Teks "Already have account?" */
.pts-login-content p:has(+ .pts-login-separator) { /* Target p sebelum separator */
    margin-top: 20px;
    margin-bottom: 20px;
    font-size: 0.9rem;
}
.pts-login-content p a {
     color: var(--primary-color);
     font-weight: 600;
     text-decoration: none;
}
.pts-login-content p a:hover {
     text-decoration: underline;
}

/* Separator */
.pts-login-separator {
    text-align: center;
    margin: 25px 0;
    color: var(--subtitle-color);
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 10px;
}
.pts-login-separator::before,
.pts-login-separator::after {
    content: '';
    flex-grow: 1;
    height: 1px;
    background-color: var(--border-color);
}

/* Tombol Google */
.pts-login-google {
    width: 100%;
    padding: 11px 20px;
    font-family: 'Roboto', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: var(--card-bg-color); /* Putih */
    color: var(--text-color); /* Hitam */
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
.pts-login-google:hover {
    background-color: var(--bg-color);
}
.pts-login-google img {
    width: 18px;
    height: 18px;
}

/* Teks Footer */
.pts-login-footer-text {
    margin-top: 30px;
    font-size: 0.8rem;
    color: var(--subtitle-color);
    line-height: 1.5;
}
.pts-login-footer-text a {
    color: var(--text-color); /* Sedikit lebih gelap dari subtitle */
    font-weight: 500;
    text-decoration: underline;
}
.pts-login-footer-text a:hover {
    color: var(--primary-color);
}

/* Responsive Modal Login PTS */
@media (max-width: 500px) {
    .pts-login-content {
        padding: 35px 25px 25px 25px;
    }
    .pts-login-content h2 {
        font-size: 1.6rem;
    }
    .pts-login-submit, .pts-login-google {
        font-size: 0.9rem;
        padding: 12px 15px;
    }
}

/* === AKHIR BAGIAN MODAL LOGIN PTS === */

/* ===================================================================
   15. PTS LOGIN MODAL STYLES (PENYESUAIAN TAMBAHAN)
=================================================================== */

/* (DITAMBAHKAN) Menengahkan logo PTS Login */
.pts-login-logo {
    display: block; /* Agar margin auto bekerja */
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 25px; /* Beri jarak lebih ke bawah */
    height: 60px; /* Sedikit lebih besar */
}

/* (DIHAPUS DARI KODE SEBELUMNYA) Separator, Tombol Google, Teks Footer sudah dihapus dari HTML */

/* === AKHIR BAGIAN MODAL LOGIN PTS === */

/* ===================================================================
   15. PTS LOGIN MODAL STYLES (PENYESUAIAN TAMBAHAN)
=================================================================== */

/* Menengahkan logo PTS Login */
.pts-login-logo {
    display: block; /* Agar margin auto bekerja */
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 25px; /* Beri jarak lebih ke bawah */
    height: 60px; /* Sedikit lebih besar */
}

/* (DITAMBAHKAN) Style untuk Password Wrapper & Eye Icon */
.pts-login-form .password-wrapper {
    position: relative;
}
.pts-login-form .password-wrapper i {
    position: absolute;
    right: 15px; /* Sesuaikan jarak dari kanan */
    top: 50%;
    transform: translateY(-50%);
    color: var(--subtitle-color);
    cursor: pointer;
    transition: color 0.3s ease;
}
.pts-login-form .password-wrapper i:hover {
    color: var(--primary-color);
}
/* Beri padding kanan pada input password agar teks tidak tertimpa ikon */
.pts-login-form #pts-password {
    padding-right: 40px;
}


/* === AKHIR BAGIAN MODAL LOGIN PTS === */

/* --- Styling Bagian Inspirasi --- */

.inspirasi-section h2 {
    /* (Sesuaikan dengan style judul Anda) */
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.inspirasi-section > .container > p {
    /* (Sesuaikan dengan style subjudul Anda) */
    text-align: center;
    font-size: 1.1rem;
    margin-bottom: 40px;
}

.inspirasi-wrapper {
    display: flex;
    flex-wrap: wrap; /* Agar responsif di HP */
    gap: 30px;
}

/* Kolom Kiri - Utama */
.inspirasi-utama {
    flex: 1;
    min-width: 300px; /* Lebar minimum */
    text-align: center;
    padding: 20px;
    /* (Tambahkan border atau box-shadow jika mau) */
}

.inspirasi-utama .foto-utama {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
    border: 3px solid #eee; /* Opsional */
}

.inspirasi-utama h3 {
    font-size: 1.4rem;
    margin-bottom: 5px;
}

.inspirasi-utama span {
    color: #555;
    font-style: italic;
    display: block;
    margin-bottom: 15px;
}

.inspirasi-utama p {
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Kolom Kanan - List Scrolling */
.inspirasi-list-container {
    flex: 1;
    min-width: 300px; /* Lebar minimum */
    
    /* Ini adalah kuncinya: tinggi tetap dan sembunyikan overflow */
    height: 450px; /* Sesuaikan tingginya (kira-kira 3 item) */
    overflow: hidden;
    position: relative; /* Diperlukan untuk beberapa efek */
}

.inspirasi-list {
    /* Kontainer ini yang akan kita animasikan */
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.inspirasi-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: #f9f9f9; /* Warna latar item */
    border-radius: 8px;
    /* (Tambahkan border atau box-shadow jika mau) */
}

.inspirasi-item .foto-item {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0; /* Agar gambar tidak gepeng */
}

.item-content p {
    font-style: italic;
    margin-bottom: 10px;
}

.item-content strong {
    display: block;
    font-size: 1rem;
}

.item-content span {
    font-size: 0.9rem;
    color: #555;
}

/* ==============================================
   [FIX] Menerangkan Teks Inspirasi di Dark Mode
   ============================================== */

body.dark-mode .inspirasi-utama span {
    color: #b5b5b5;
}
body.dark-mode .inspirasi-item .item-content p,
body.dark-mode .inspirasi-item .item-content strong {
    color: #030f0f; /* Menggunakan warna putih terang (#FFFFFF) */
}

/* Animasi Scrolling Vertikal */
@keyframes scroll-vertical {
    0% {
        transform: translateY(0);
    }
    100% {
        /* -50% karena kita akan duplikat list-nya dgn JS */
        transform: translateY(-50%); 
    }
}

/* Terapkan animasi ke list */
.inspirasi-list.scrolling {
    /* Sesuaikan durasi (misal: 40s) untuk kecepatan scroll */
    animation: scroll-vertical 40s linear infinite;
}

/* Jeda animasi saat di-hover */
.inspirasi-list-container:hover .inspirasi-list.scrolling {
    animation-play-state: paused;
}