:root {
    --static-primary: #005A9E;
    --static-secondary: #FFC107;
    --static-header-bg: #FFFFFF;
    --static-footer-bg: #232931;
    --text-color: #4E525A;
    --light-color: #FFFFFF;
    --gray-color: #F4F6F9;
    --heading-font: 'Roboto', sans-serif;
    --body-font: 'Roboto', sans-serif;
    }

/* General Reset & Body */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--body-font);
    color: var(--text-color);
    line-height: 1.7;
}

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}

#prestasi.prestasi-sekolah {
    padding-bottom: 8px; /* Atur jarak bawah section prestasi */
}
    

section {
    padding: 80px 0;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.8s ease-out forwards;
}


/* Header & Navigation */
header {
    background-color: var(--header-bg-color, var(--static-header-bg));
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    padding: 22px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-logo img {
    height: 50px !important; /* Paksa tinggi menjadi 50px */
    width: auto !important;   /* Paksa lebar menyesuaikan secara otomatis */
    max-width: 100%;         /* Pastikan lebar tidak melebihi wadahnya */
}

.nav-menu ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

.nav-menu ul li a {
    text-decoration: none;
    color: var(--warna-menu-teks);
    font-weight: 500;
    transition: color 0.3s ease;
    font-size: 18px;
}

.nav-menu ul li a:hover {
    color: var(--primary-color);
}

.btn {
    padding: 12px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary-color, var(--static-primary));
    color: var(--light-color);
    box-shadow: 0 4px 15px rgba(0, 90, 158, 0.2);
}

.btn-primary:hover {
    background-color: #004a80;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--light-color);
}

/* Hero Section */
.hero-section {
    background-color: var(--gray-color);
    padding: 100px 0;
    display: flex;
    align-items: center;
    min-height: 90vh;
}

.hero-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.hero-text {
    flex: 1;
}

.hero-text h1 {
    font-family: var(--heading-font);
    font-size: 48px; /* Sesuai permintaan */
    font-weight: 900;
    color: var(--dark-color);
    line-height: 1.3;
    margin-bottom: 20px;
}

.hero-text p {
    font-size: 17px; /* Sesuai permintaan */
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

.hero-image {
    flex: 1;
    text-align: right;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}


/* Section Titles */
.section-title {
    text-align: center;
    margin-bottom: 30px;
}
.section-title h2 {
    font-size: 32px;
    color: var(--dark-color);
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
}
.section-title h2::after {
    content: '';
    width: 60px;
    height: 4px;
    background-color: var(--primary-color, var(--static-primary));
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

/* Sambutan Kepala Sekolah */
.sambutan-content {
    display: flex;
    align-items: center;
    gap: 50px;
    background: var(--light-color);
    padding: 40px;
    border-radius: 15px;
}
.sambutan-foto {
    flex-basis: 200px;
    
}
.sambutan-foto img {
    width: 100%;
    border-radius: 50%;
    border: 5px solid var(--gray-color);
}
.sambutan-text {
    flex: 1;
}
.sambutan-text p {
    font-style: italic;
}
.sambutan-text h3 {
    font-size: 24px;
    color: var(--dark-color);
    margin-bottom: 15px;
}

/* Profil, Keunggulan, Prestasi */
/* Profil Sekolah */
.profil-sekolah { background-color: var(--gray-color); }

.profil-content {
    display: flex;
    gap: 30px;
}

.profil-item {
    background: var(--light-color);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    flex: 1;
    text-align: center; /* DEFAULT: Semua kita buat rata tengah, ini akan berlaku untuk Visi */
}

/* ATURAN KHUSUS: Untuk item yang kita beri tanda 'text-left' */
.profil-item.text-left {
    text-align: left; /* Kita paksa isinya menjadi rata kiri */
}

/* ATURAN FINAL: Pastikan semua judul h3 SELALU di tengah */
.profil-item h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    text-align: center;
    font-size: 22px; 
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.grid-item {
    background-color: var(--gray-color);
    padding: 30px;
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.grid-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
}
.grid-item h4 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 20px;
}

/* Berita Sekolah */
.berita-sekolah { background-color: var(--gray-color); }
.berita-card {
    background-color: var(--light-color);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.07);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.berita-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}
.berita-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}
.berita-content {
    padding: 20px;
}
.berita-content h4 {
    color: var(--dark-color);
    margin-bottom: 10px;
    font-size: 20px;
    line-height: 1.4;
}
.berita-content p {
    font-size: 14px;
    margin-bottom: 15px;
}
.berita-content a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
}

/* Fasilitas Sekolah */
.fasilitas-card {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
}
.fasilitas-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}
.fasilitas-card:hover img {
    transform: scale(1.1);
}
.fasilitas-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    padding: 40px 20px 20px 20px;
}
.fasilitas-overlay h4 {
    color: var(--light-color);
    font-size: 22px;
}

/* CTA Section */
.cta-section {
    background-color: var(--primary-color);
    color: var(--light-color);
    padding: 60px 0;
    text-align: center;
}
.cta-section h2 {
    font-size: 32px;
    margin-bottom: 10px;
}
.cta-section p {
    margin-bottom: 30px;
    opacity: 0.9;
}
.btn-cta {
    background-color: var(--secondary-color, var(--static-secondary));
    color: var(--dark-color);
    padding: 14px 32px; /* Perbesar padding */
    font-size: 18px;    /* Perbesar ukuran font */
}

.btn-cta:hover {
    background-color: #ffca2c;
    transform: translateY(-2px);
}

/* Footer */
footer {
    background-color: var(--footer-bg-color, var(--static-footer-bg));
    color: var(--light-color);
    padding: 50px 0 20px 0;
}
.footer-content {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}
.footer-about, .footer-contact {
    flex: 1;
    min-width: 250px;
}
.footer-about img {
    height: 40px;
    margin-bottom: 20px;
    filter: brightness(0) invert(1);
}
.footer-contact h4 {
    margin-bottom: 20px;
    color: var(--secondary-color);
    font-size: 22px;
}
.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #3e444c;
    font-size: 14px;
    opacity: 0.7;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu { display: none; } /* Sederhana, bisa dikembangkan jadi menu burger */
    .hero-content { flex-direction: column; text-align: center; }
    .hero-text h1 { font-size: 40px; }
    .hero-buttons { justify-content: center; }
    .sambutan-content { flex-direction: column; text-align: center; gap: 8px; }
    .profil-content { flex-direction: column; }
    .footer-content { flex-direction: column; }
    
    
    /* PERBAIKAN UNTUK TOMBOL TERLALU BESAR */
    .btn {
        padding: 12px 20px;
        font-size: 16px;
    }

    /* PERBAIKAN UNTUK FOTO KEPALA SEKOLAH */
    .sambutan-foto {
        flex-basis: auto;
        width: 200px; /* Perkecil ukuran foto */
        margin-bottom: 10px !important;
    }
}

/* ================================== */
/* STYLE UNTUK MENU RESPONSIVE MOBILE */
/* ================================== */

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.hamburger-menu {
    display: none; /* Sembunyi di desktop */
    cursor: pointer;
    width: 30px;
    height: 25px;
    flex-direction: column;
    justify-content: space-between;
}

.hamburger-menu span {
    display: block;
    height: 3px;
    width: 100%;
     background-color: var(--primary-color, var(--static-primary));
    border-radius: 3px;
    transition: all 0.3s ease-in-out;
}

/* Ini adalah style untuk menu ketika dibuka di mobile */
.nav-menu.mobile-active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: white;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    padding: 22px 0; /* Perkecil padding atas-bawah di sini */
    z-index: 999;
}

.nav-menu.mobile-active ul {
    flex-direction: column;
    width: 100%;
    text-align: center;
    padding-left: 0; /* Pastikan tidak ada padding bawaan dari <ul> */
}

.nav-menu.mobile-active ul li {
    margin: 0; /* Pastikan tidak ada margin sama sekali */
}

.nav-menu.mobile-active ul li a {
    padding: 0px 20px; /* Atur padding atas-bawah menjadi 8px */
    display: block;    /* Pastikan link memenuhi seluruh area li */
    line-height: 1;  /* Atur tinggi baris agar lebih rapat */
}

/* Ketika hamburger diklik (punya class 'open') */
.hamburger-menu.open span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}
.hamburger-menu.open span:nth-child(2) {
    opacity: 0;
}
.hamburger-menu.open span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}


/* ATURAN UTAMA UNTUK TAMPILAN MOBILE */
@media (max-width: 768px) {
    .nav-menu {
        display: none; /* Sembunyikan menu desktop */
    }
    .btn-ppdb {
        display: none; /* Sembunyikan tombol PPDB juga, agar rapi */
    }
    .hamburger-menu {
        display: flex; /* Tampilkan tombol hamburger */
    }
    /* PERBAIKAN UNTUK TOMBOL CTA TERLALU KECIL */
    .btn-cta {
        padding: 12px 28px;
        font-size: 16px;
    }
    
}

/* ================================== */
/* STYLE UNTUK HALAMAN BERITA & BACA BERITA */
/* ================================== */

.page-header {
    background-color: var(--gray-color);
    padding: 60px 0;
    text-align: center;
}

.page-header h1 {
    font-size: 36px;
    color: var(--dark-color);
    margin-bottom: 10px;
    line-height: 1.2; /* Jarak Judul Tiap Halaman */
}

.berita-list-section {
    padding: 80px 0;
}

.pagination-nav {
    margin-top: 60px;
    display: flex;
    justify-content: center;
}

.pagination {
    list-style: none;
    padding: 0;
    display: flex;
    gap: 10px;
}

.pagination li a {
    display: block;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    text-decoration: none;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.pagination li a:hover,
.pagination li.active a {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Halaman Single Post */
.single-post-section {
    padding: 80px 0;
}
.single-post-content {
    max-width: 800px;
    margin: 0 auto;
}
.single-post-content h1 {
    font-size: 40px;
    color: var(--dark-color);
    margin-bottom: 15px;
    line-height: 1.3;
}
.post-meta {
    font-size: 14px;
    color: #6c757d;
    margin-bottom: 30px;
}
.post-featured-image {
    width: 100%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 30px;
}
.post-body {
    font-size: 17px;
    line-height: 1.8;
}


/* Memberi jarak atas pada judul bagian di halaman profil */
.profile-extra-section .section-title {
    margin-top: 30px;
}


/* Tata letak baru untuk Visi-Misi dan Gambar Samping */
.profile-main-grid {
    display: grid;
    grid-template-columns: 4fr 3fr; /* Konten Visi Misi 2/3, Gambar 1/3 */
    gap: 40px;
    align-items: start;
    margin-bottom: 60px;
}

.profile-side-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Gambar untuk bagian Sejarah */
.profile-history-image {
    max-width: 400px;
    margin: 0 auto 20px auto; /* Posisi di tengah, dengan jarak bawah 40px */
}

.profile-history-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

/* Memberi warna latar untuk section tertentu */
.section-bg {
    background-color: var(--gray-color); /* Warna abu-abu muda yang sudah ada di tema kita */
    padding: 50px 20px;
    border-radius: 15px;
}

/* Penyesuaian untuk Tampilan Mobile */
@media (max-width: 992px) {
    .profile-main-grid {
        grid-template-columns: 1fr; /* Di layar kecil, gambar akan berada di bawah Visi Misi */
    }
}

/* Mengatur ukuran font dan jarak untuk Visi & Misi */
.visi-card p, .misi-card p {
    font-size: 18px; /* Perbesar ukuran font paragraf */
    line-height: 1.5;  /* Atur jarak antar baris */
}

.visi-card {
    margin-bottom: 20px; /* Beri jarak bawah pada kotak Visi */
}


/* Mengatur Judul Visi & Misi di Halaman Profil */
.visi-card h3, .misi-card h3 {
    font-size: 28px; /* Anda bisa ubah angka ini, misalnya 30px atau 26px */
}

/* Teks Sejarah Sekolah Rata Tengah */
.profile-extra-section .text-center {
    text-align: center;
}

/* Styling untuk daftar periodisasi dengan bullet points */
.periodisasi-list {
    max-width: 600px;
    margin: 0 auto;
    text-align: left;
    line-height: 1.8;
    list-style-type: disc; /* Ini akan menampilkan bullet point bulat */
    padding-left: 20px;    /* Memberi ruang untuk bullet point */
}

/* Target setiap baris di dalam daftar */
.periodisasi-list div {
    display: list-item; /* Mengubah div agar berperilaku seperti item daftar */
}

/* ================================== */
/* STYLE UNTUK SECTION STATISTIK      */
/* ================================== */
.statistik-section {
    padding: 60px 0;
    /* background-color: var(--gray-color); */
}
.statistik-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 30px;
    text-align: center;
}

.statistik-item {
    background-color: #ffffff; /* Latar belakang putih untuk setiap kotak */
    padding: 30px 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08); /* Efek bayangan halus */
}

.statistik-item i {
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: 15px;
}
.statistik-item h3 {
    font-size: 40px;
    font-weight: 700;
    color: var(--dark-color);
    margin: 0;
}
.statistik-item p {
    font-size: 16px;
    color: var(--text-color);
    margin-top: 5px;
}

/* Style untuk Halaman Tabel Prestasi */
.prestasi-table-section {
    padding: 80px 0;
}
.data-table-frontend {
    width: 100%;
    border-collapse: collapse;
    font-size: 16px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    border-radius: 10px;
    overflow: hidden;
}
.data-table-frontend th, .data-table-frontend td {
    border: 1px solid #e9ecef;
    padding: 15px;
}
.data-table-frontend thead tr {
    background-color: var(--primary-color);
    color: white;
    text-align: left;
}
.data-table-frontend tbody tr:nth-child(even) {
    background-color: #f8f9fa;
}
.data-table-frontend tbody tr:hover {
    background-color: #e9ecef;
}

/* ================================== */
/* STYLE UNTUK HALAMAN GURU & STAF    */
/* ================================== */
.staff-directory-section {
    padding: 80px 0;
}
.filter-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}
.filter-btn {
    padding: 10px 25px;
    border: 1px solid var(--primary-color);
    background-color: transparent;
    color: var(--primary-color);
    border-radius: 50px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
}
.filter-btn:hover, .filter-btn.active {
    background-color: var(--primary-color);
    color: white;
}
.staff-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}
.staff-card {
    background-color: #fff;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    overflow: hidden;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.staff-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.12);
}
.staff-card-image img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    object-position: top center;
}
.staff-card-content {
    padding: 20px;
}
.staff-name {
    font-size: 18px;
    font-weight: 600;
    color: var(--dark-color);
    margin: 0 0 5px 0;
}
.staff-role {
    font-size: 14px;
    color: var(--text-color);
    margin: 0 0 15px 0;
}
.staff-badge {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 5px 12px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 500;
}

@media (max-width: 768px) {
.staff-grid {
        grid-template-columns: 1fr 1fr;
        gap: 8px; /* Tambahkan ini, ubah angka 15px sesuai selera */
    }
.staff-directory-section .container {
        padding-left: 8px;  /* Jarak kiri */
        padding-right: 8px; /* Jarak kanan */
    }

}


.marquee-container {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    padding: 10px 0;
    color: var(--marquee-text-color);
}
.marquee-content {
    color: var(--marquee-text-color);
    display: inline-block;
    padding-left: 100%;
    animation: marquee-animation 120s linear infinite;
}
@keyframes marquee-animation {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}


/* Style Halaman Kontak */
.contact-section { padding: 80px 0; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; }
.contact-info h3, .contact-form-container h3 { font-size: 24px; margin-bottom: 20px; }
.contact-info ul { list-style: none; padding: 0; }
.contact-info ul li { display: flex; align-items: start; margin-bottom: 15px; }
.contact-info ul li i { font-size: 18px; color: var(--primary-color); margin-right: 15px; margin-top: 5px; }
.contact-form-container input, .contact-form-container textarea { width: 100%; padding: 12px; margin-bottom: 15px; border: 1px solid #ddd; border-radius: 5px; }

/* Style untuk Section Peta */
.map-section {
    padding-bottom: 80px; /* Memberi jarak bawah */
}

.google-maps-container {
    max-width: 900px; /* Atur lebar maksimal bingkai peta */
    margin: 0 auto;   /* Membuatnya berada di tengah */
    padding: 15px;    /* Memberi jarak untuk bingkai */
    background-color: #fff; /* Warna bingkai */
    border-radius: 15px; /* Membuat sudut bingkai melengkung */
    box-shadow: 0 10px 25px rgba(0,0,0,0.1); /* Efek bayangan agar terangkat */
}

.google-maps-container iframe {
    width: 100%;
    height: 450px; /* Anda bisa sesuaikan tingginya di sini */
    border: 0;
    border-radius: 10px; /* Membuat sudut peta juga melengkung */
    display: block; /* Mencegah ada spasi aneh di bawah peta */
}

@media (max-width: 768px) 
{ .contact-grid { grid-template-columns: 2fr; } }



/* ================================== */
/* STYLE UNTUK HALAMAN GALERI         */
/* ================================== */
.gallery-section {
    padding: 80px 0;
}
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    justify-content: center; /* Tambahkan baris ini */
}
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    height: 250px;
    display: block;
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.gallery-item:hover img {
    transform: scale(1.1);
}
.gallery-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(0, 90, 158, 0.7);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}
.gallery-item:hover .gallery-overlay {
    opacity: 1;
}
.gallery-overlay i {
    font-size: 32px;
    margin-bottom: 10px;
}

/* ================================== */
/* STYLE UNTUK HALAMAN PENGUMUMAN     */
/* ================================== */
/* ================================== */
/* STYLE UNTUK HALAMAN PENGUMUMAN (2 Kolom) */
/* ================================== */
.announcement-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Membuat 2 kolom */
    gap: 30px; /* Jarak antar kolom */
    align-items: start;
}

.announcement-item {
    background-color: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    margin-bottom: 0; /* Margin bawah tidak perlu lagi karena ada gap */
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    overflow: hidden;
}

.announcement-header {
    padding: 20px;
    cursor: pointer;
    display: flex; /* <-- PASTIKAN BARIS INI ADA */
    justify-content: space-between; /* <-- PASTIKAN BARIS INI ADA */
    align-items: center; /* <-- PASTIKAN BARIS INI ADA */
    background-color: #f8f9fa;
}


.announcement-header:hover {
    background-color: #e9ecef;
}
.announcement-title {
    margin: 0;
    font-size: 18px;
    color: var(--dark-color);
}

.announcement-content {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
    line-height: 1.7;
}
/* Style saat item aktif/terbuka */
.announcement-item.active .announcement-content {
    padding: 20px;
    max-height: 500px; /* Atur tinggi maksimal konten */
    transition: max-height 0.5s ease-in, padding 0.5s ease-in;
}

/* Style untuk ikon panah di pengumuman */
.announcement-arrow {
    font-size: 18px;
    color: #6c757d;
    flex-shrink: 0;
    margin-left: 20px;
    transition: transform 0.4s ease;
}

/* Saat item aktif/terbuka, putar panah ke atas */
.announcement-item.active .announcement-arrow {
    transform: rotate(180deg);
}

@media (max-width: 768px) {
    .announcement-grid {
        grid-template-columns: 1fr; /* Paksa menjadi 1 kolom di mobile */
    }
    
    .statistik-grid {
        grid-template-columns: 1fr 1fr; /* Paksa menjadi 2 kolom */
        gap: 14px;
    }
    
    .profile-content-section .statistik-section .container {
    padding-left: 0;
    padding-right: 0;
    }
    
}

/* ================================== */
/* STYLE UNTUK HALAMAN DETAIL FASILITAS */
/* ================================== */
.facility-details-section {
    padding: 80px 0;
}
.facility-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
    margin-bottom: 80px;
    padding-bottom: 50px;
    border-bottom: 1px solid #e9ecef;
}
.facility-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}
.facility-main-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}
.facility-description h2 {
    font-size: 32px;
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 20px;
}
.facility-description p {
    line-height: 1.8;
    margin-bottom: 30px;
}
.facility-gallery {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
}
.facility-gallery .gallery-thumbnail img {
    width: 100%;
    height: 80px;
    object-fit: cover;
    border-radius: 5px;
    cursor: pointer;
    transition: opacity 0.3s ease;
}
.facility-gallery .gallery-thumbnail:hover img {
    opacity: 0.8;
}

@media (max-width: 768px) {
    .facility-item {
        grid-template-columns: 1fr;
    }
}

/* ================================== */
/* STYLE UNTUK SUBMENU DROPDOWN       */
/* ================================== */

/* Atur posisi relatif untuk item menu utama */
.nav-menu ul li {
    position: relative;
}

/* Panah dropdown kecil */
.nav-menu .has-dropdown .fa-chevron-down {
    font-size: 10px;
    margin-left: 5px;
    opacity: 0.7;
}

/* ================================== */
/* STYLE UNTUK SUBMENU DROPDOWN (FINAL) */
/* ================================== */

/* Mengatur posisi relatif agar submenu muncul di bawahnya */
.nav-menu ul li {
    position: relative;
}

/* 1. Mengatur Kotak Pembungkus Submenu */
.submenu {
    opacity: 0;
    visibility: hidden;
    position: absolute;
    top: 45px;
    background-color: white;
    list-style: none;
    padding: 24px 0; /* Jarak atas-bawah di dalam kotak */
    margin: 0;
    min-width: 180px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    border-radius: 8px;
    z-index: 100;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    
    /* INI KUNCI AGAR SUBMENU KE BAWAH */
    display: flex;
    flex-direction: column;
}

/* Aturan saat menu utama di-hover, maka submenu akan muncul */
.nav-menu li:hover > .submenu {
    opacity: 1; /* Membuat submenu terlihat */
    visibility: visible; /* Membuat submenu bisa di-klik */
}

/* Mengatur setiap item di dalam submenu */
.submenu li {
    display: block; /* Memastikan setiap item mengambil satu baris penuh */
}

/* 2 & 3. Mengatur Jarak (Margin & Padding) Teks Submenu */
.submenu li a {
    display: block; /* Memastikan link memenuhi seluruh lebar */
    padding: 8px 20px; /* PADDING TEKS: Atur jarak di dalam setiap tombol (atas-bawah 8px, kiri-kanan 20px) */
    margin: -16px 0; /* MARGIN TEKS: Atur jarak antar setiap tombol (atas-bawah 4px, kiri-kanan 0) */
    color: var(--dark-color);
    font-size: 15px;
    white-space: nowrap;
    transition: background-color 0.2s ease; /* Animasi untuk hover */
}

/* 4. Mengatur Latar Belakang Saat Hover */
.submenu li a:hover {
    background-color: var(--gray-color); /* Latar akan penuh karena `display: block` di atas */
}

/* Perbaikan untuk mobile */
@media (max-width: 768px) {
    .nav-menu.mobile-active .has-dropdown .fa-chevron-down {
         display: inline-block; /* Pastikan panah tampil di mobile */
    }
    .nav-menu.mobile-active .submenu {
        display: none; /* Sembunyikan submenu di dalam dropdown utama */
        position: static; /* Hapus posisi absolut */
        box-shadow: none;
        padding-left: 20px; /* Beri indentasi */
    }
    .nav-menu.mobile-active .submenu.open {
        display: block; /* Tampilkan submenu jika di-tap */
    }
    
    .nav-menu.mobile-active .submenu li a {
        padding: 14px 30px; /* Atur jarak atas-bawah (8px) dan indentasi (30px) */
    }
}


/* ================================== */
/* STYLE UNTUK HALAMAN PPDB           */
/* ================================== */
.ppdb-header { text-align: center; }
.ppdb-header p { font-size: 20px; margin-bottom: 20px; }
.ppdb-header .btn-cta { font-size: 18px; padding: 15px 35px; }
.ppdb-section { padding: 80px 0; }
.alur-pendaftaran { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; margin-bottom: 80px; text-align: center; }
.alur-icon { font-size: 48px; color: var(--primary-color); margin-bottom: 20px; }
.timeline { position: relative; max-width: 800px; margin: 0 auto 80px auto; }
.timeline::after { content: ''; position: absolute; width: 4px; background-color: var(--primary-color); top: 0; bottom: 0; left: 50%; margin-left: -2px; }
.timeline-item { padding: 10px 40px; position: relative; width: 50%; }
.timeline-item::after { content: ''; position: absolute; width: 20px; height: 20px; right: -10px; background-color: white; border: 4px solid var(--primary-color); top: 15px; border-radius: 50%; z-index: 1; }
.timeline-item:nth-child(odd) { left: 0; }
.timeline-item:nth-child(even) { left: 50%; }
.timeline-item:nth-child(even)::after { left: -10px; }
.timeline-content { padding: 20px 30px; background-color: var(--gray-color); border-radius: 6px; }
.timeline-content h4 { margin-top: 0; color: var(--primary-color); }
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.info-card { background-color: var(--gray-color); padding: 30px; border-radius: 10px; }
.info-card h4 { margin-top: 0; border-bottom: 2px solid var(--primary-color); padding-bottom: 10px; margin-bottom: 20px; }
.info-card ul { list-style: none; padding-left: 0; }
.info-card ul li { margin-bottom: 10px; }

@media (max-width: 768px) {
    .timeline::after { left: 10px; }
    .timeline-item { width: 100%; padding-left: 50px; padding-right: 0; }
    .timeline-item:nth-child(even) { left: 0%; }
    .timeline-item::after { left: 1px; }
    .info-grid { grid-template-columns: 1fr; }
}

.slider-container {
    position: relative;
    padding-bottom: 50px; 
}
.swiper-slide {
    height: auto;
}
.swiper-pagination {
    position: absolute;
    bottom: 10px;
    left: 0;
    width: 100%;
    z-index: 10;
    display: flex;
    justify-content: center;
    gap: 5px;
}
.swiper-pagination-bullet {
    width: 16px !important;
    height: 3px !important;
    border-radius: 2px;
    background: #cccccc;
    opacity: 1 !important;
    transition: background-color 0.3s ease;
}
.swiper-pagination-bullet-active {
    background: var(--primary-color, #005A9E) !important;
}

/* ================================== */
/* STYLE BARU UNTUK SLIDER (VERSI PERBAIKAN) */
/* ================================== */
.slider-container {
    position: relative;
    padding-bottom: 36px !important; /* Beri ruang lebih di bawah untuk pagination */
}

.swiper-slide {
    height: auto;
}

/* Bagian terpenting untuk memunculkan pagination */
.swiper-pagination {
    position: absolute;
    bottom: 10px; /* Posisikan 10px dari dasar container */
    left: 0;
    width: 100%;
    z-index: 10; /* Angkat ke lapisan atas agar tidak tertutup */
    display: flex; /* Gunakan flexbox agar mudah diatur */
    justify-content: center; /* Posisikan di tengah horizontal */
    gap: 5px; /* Jarak antar penanda */
}

/* Mengubah titik menjadi garis */
/* Menggunakan selector yang lebih spesifik agar tidak kalah dengan library */
.slider-container .swiper-pagination-bullet {
    width: 30px;
    height: 4px;
    border-radius: 2px;
    background: #cccccc;
    opacity: 1 !important;
    transition: background-color 0.3s ease;
}

.slider-container .swiper-pagination-bullet-active {
    background: var(--primary-color, #005A9E) !important;
}


/* ================================== */
/* STYLE UNTUK HALAMAN EKSTRAKURIKULER */
/* ================================== */
.ekskul-section {
    padding: 80px 0;
}
.ekskul-layout {
    display: grid;
    grid-template-columns: 1fr 3fr; /* Kolom kiri 1/4, kanan 3/4 */
    gap: 50px;
}
.ekskul-sidebar {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    position: sticky; /* Agar tetap terlihat saat scroll */
    top: 120px;
    align-self: start; /* Pastikan menempel di atas */
}
.ekskul-sidebar h3 {
    margin-top: 0;
}
.ekskul-sidebar ul {
    list-style: none;
    padding: 0;
}
.ekskul-sidebar ul li a {
    display: flex;
    align-items: center;
    padding: 10px;
    text-decoration: none;
    color: var(--dark-color);
    border-radius: 5px;
    margin-bottom: 5px;
}
.ekskul-sidebar ul li a:hover {
    background-color: var(--primary-color);
    color: white;
}
.ekskul-sidebar ul li i {
    margin-right: 10px;
    transition: margin-left 0.2s ease;
}
.ekskul-sidebar ul li a:hover i {
    margin-left: 5px;
}
.ekskul-item {
    padding-bottom: 40px;
    margin-bottom: 40px;
    border-bottom: 1px solid #e9ecef;
}
.ekskul-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}
.ekskul-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 20px;
}
.ekskul-details h2 {
    margin-top: 0;
}
.ekskul-info {
    margin-top: 20px;
    display: flex;
    gap: 30px;
    font-size: 14px;
    color: #6c757d;
}

@media (max-width: 992px) {
    .ekskul-layout {
        grid-template-columns: 1fr; /* Di layar kecil, menjadi 1 kolom */
    }
    .ekskul-sidebar {
        position: static; /* Hapus 'sticky' di mobile */
        margin-bottom: 40px;
    }
}

/* Perbaikan untuk list di dalam konten pengumuman */
.announcement-content ul, .announcement-content ol {
    padding-left: 20px; /* Memberi ruang untuk bullet/nomor */
    margin-top: 10px;
    margin-bottom: 10px;
}



/* ================================== */
/* STYLE UNTUK HALAMAN ERROR 404      */
/* ================================== */
.error-404-page {
    background-color: #0c0c1e; /* Warna latar gelap kebiruan */
    color: #e0e0e0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    text-align: center;
    font-family: 'Roboto', sans-serif;
    overflow: hidden;
}

.error-container {
    animation: fadeIn 1s ease-in-out; /* Animasi muncul */
}

.error-container h1.glow {
    font-size: 15rem; /* Ukuran angka 404 */
    font-weight: 700;
    color: #fff;
    margin: 0;
    /* EFEK GLOW UTAMA DENGAN TEXT-SHADOW */
    text-shadow: 
        0 0 10px #00aaff,
        0 0 20px #00aaff,
        0 0 40px #00aaff,
        0 0 80px #0077cc,
        0 0 120px #0077cc,
        0 0 160px #0077cc;
    animation: glow-pulse 2s infinite alternate; /* Animasi berdenyut */
}

.error-container h2.glow-sub {
    font-size: 2rem;
    color: #fff;
    text-shadow: 0 0 5px #00aaff, 0 0 10px #0077cc;
}

.error-container p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.error-container .btn {
    padding: 12px 30px;
    font-size: 1rem;
}

/* Animasi untuk efek denyut cahaya */
@keyframes glow-pulse {
    from {
        text-shadow: 
            0 0 10px #00aaff,
            0 0 20px #00aaff,
            0 0 30px #0077cc;
    }
    to {
        text-shadow: 
            0 0 20px #00aaff,
            0 0 40px #00aaff,
            0 0 60px #0077cc;
    }
}