/* ==========================================================================
   RESET & PENGATURAN DASAR
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: #fcfdfc; /* Putih bersih sedikit tone hijau sangat lembut */
    color: #2d3748;
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    transition: all 0.3s ease;
}

li {
    list-style: none;
}

/* ==========================================================================
   NAVIGASI UTAMA (HEADER)
   ========================================================================== */
header {
    background-color: #ffffff;
    padding: 15px 0;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    box-shadow: 0 10px 50px rgba(25, 135, 84, 0.05); /* Bayangan hijau sangat tipis */
}

/* ==========================================================================
   PERBAIKAN TOTAL NAVBAR LURUS SATU BARIS (ANTI-MELOROT DI OPERA)
   ========================================================================== */
/* ==========================================================================
   PERBAIKAN MUTLAK NAVBAR LURUS (ANTI-MELOROT DI SEMUA BROWSER)
   ========================================================================== */
/* ==========================================================================
   PERBAIKAN FINAL NAVBAR: KUNCI POSISI SEJAJAR & ANTI-TABRAKAN (CHROME & OPERA)
   ========================================================================== */
.navbar-container {
    width: 95%; 
    max-width: 1200px; 
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap !important; /* Mengunci mutlak agar tidak ada elemen melorot */
}

/* Kolom Kiri: Logo & Nama Sekolah */
.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0; /* Melarang area nama sekolah menciut atau terhimpit */
    
    /* BENTENG PERTAHANAN: Memberikan jarak aman minimal 30px di sebelah kanan teks 
       agar menu dari kanan dilarang keras mendekat atau menimpa area ini */
    margin-right: 30px; 
}

.brand-text {
    min-width: 0;
}

.brand-text h1 {
    font-size: 16px; /* Dikecilkan sedikit dari 18px agar menghemat ruang */
    font-weight: 800;
    color: #0f5132;
    white-space: nowrap; /* Mengunci nama sekolah agar tidak patah */
}

/* Kolom Tengah: Menu Navigasi (DIPERBAIKI TOTAL UNTUK OPERA) */
.nav-menu {
    display: flex;
    align-items: center;
    
    /* JALUR AMAN: Mendorong barisan menu mepet ke kanan secara otomatis 
       dengan perhitungan matematis yang sangat stabil di semua mesin browser */
    margin-left: auto; 
    
    /* Memberikan jarak aman 25px sebelum tombol PPDB di pojok kanan */
    margin-right: 25px; 
    flex-shrink: 1; /* Mengizinkan menu merapat jika layar komputer menyempit */
}

.nav-menu > ul {
    display: flex;
    gap: 10px; /* Jarak antar link menu bisa dikembalikan longgar dan lega (10px) */
    list-style: none;
}

.nav-link {
    color: #4a5568;
    font-size: 14px; /* Ukuran font bisa dikembalikan ke 14px asli agar seimbang & tegas */
    font-weight: 600;
    padding: 8px 12px;
    text-decoration: none;
    white-space: nowrap !important; /* Mengunci kalimat agar kata seperti 'Tentang Kami' tidak patah ke bawah */
    transition: color 0.2s ease;
}

/* Kolom Kanan: Tombol PPDB */
.nav-cta {
    flex-shrink: 0; /* Melarang tombol PPDB Online mengecil */
}

.btn-ppdb {
    font-size: 12.5px; /* Menyesuaikan ukuran tombol agar serasi */
    padding: 8px 18px;
}


/* ==========================================================================
   PENGATURAN GAMBAR LOGO BARU DI HEADER
   ========================================================================== */
.school-logo-img {
    height: 50px; /* Batasi tinggi logo agar tetap proporsional dan tidak merusak tinggi navbar */
    width: auto;  /* Biarkan lebar menyesuaikan otomatis agar lambang tidak gepeng */
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 2px 5px rgba(25, 135, 84, 0.1)); /* Memberikan efek bayangan tipis di bawah lambang */
}


.brand-text h1 {
    font-size: 18px;
    font-weight: 800;
    color: #0f5132;
    letter-spacing: 0.5px;
}

.brand-text p {
    font-size: 11px;
    font-weight: 700;
    color: #198754;
    letter-spacing: 1.5px;
}

/* Menu Navigasi Tengah */
.nav-menu > ul {
    display: flex;
    gap: 8px;
}

.nav-link {
    color: #4a5568;
    font-size: 14px;
    font-weight: 600;
    padding: 10px 16px;
    border-radius: 8px;
}

.nav-link:hover, .nav-link.active {
    color: #198754;
    background-color: #e8f5e9;
}

/* SISTEM DROPDOWN MODERN */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #ffffff;
    min-width: 240px;
    border-radius: 12px;
    padding: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(25, 135, 84, 0.08);
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.dropdown-menu li a {
    display: block;
    color: #4a5568;
    padding: 10px 14px;
    font-size: 13.5px;
    font-weight: 500;
    border-radius: 6px;
}

.dropdown-menu li a:hover {
    background-color: #f1f8f4;
    color: #198754;
    padding-left: 18px; /* Efek bergeser sedikit saat disorot */
}

/* Trigger Tampilkan Dropdown saat Hover */
.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(5px);
}

/* Tombol PPDB Kanan */
.btn-ppdb {
    background-color: #198754;
    color: #ffffff;
    padding: 10px 22px;
    border-radius: 30px;
    font-size: 13.5px;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(25, 135, 84, 0.2);
}

.btn-ppdb:hover {
    background-color: #13653f;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(25, 135, 84, 0.3);
}

/* ==========================================================================
   PERBAIKAN UKURAN HERO BANNER (DIPERLEBAR)
   ========================================================================== */
.hero-section {
    padding-top: 140px; /* Jarak agar tidak tertutup navbar fixed */
    padding-bottom: 80px;
    background: radial-gradient(circle at 80% 20%, #e0f9eb 0%, #fcfdfc 100%);
}

.hero-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 40px;
}

.hero-content {
    flex: 1; /* Diubah dari 1.2 menjadi 1 agar seimbang (50% - 50%) dengan gambar */
}

.badge-adiwiyata {
    display: inline-block;
    background-color: #e8f5e9;
    color: #198754;
    font-size: 12px;
    font-weight: 700;
    padding: 6px 16px;
    border-radius: 20px;
    margin-bottom: 20px;
    letter-spacing: 0.3px;
}

.hero-content h2 {
    font-size: 42px;
    font-weight: 800;
    color: #0f5132;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-content p {
    color: #64748b;
    font-size: 16px;
    margin-bottom: 35px;
    max-width: 540px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
}

.btn-primary {
    background-color: #0c6b12; /* Kuning emas khas Adabiah */
    color: #ffffff;
    font-weight: 700;
    font-size: 14px;
    padding: 14px 28px;
    border-radius: 8px;
    box-shadow: 0 4px 14px rgba(255, 179, 0, 0.3);
}

.btn-primary:hover {
    background-color: #e6a100;
    transform: translateY(-2px);
}

.btn-secondary {
    border: 2px solid #198754;
    color: #198754;
    font-weight: 700;
    font-size: 14px;
    padding: 12px 28px;
    border-radius: 8px;
}

.btn-secondary:hover {
    background-color: #f1f8f4;
}

/* Sisi Gambar Ilustrasi Kanan */
.hero-image-area {
    flex: 1; /* Diubah dari 0.8 menjadi 1 agar mendapat ruang penuh setengah halaman */
    display: flex;
    justify-content: flex-end; /* Memastikan gambar mepet ke kanan dengan rapi */
}

.illustration-box {
    width: 100%;
    max-width: 520px;
    height: 320px;
    background-color: #eaf6ee;
    border: 2px dashed #a5d6a7;
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #198754;
    font-weight: 600;
    font-size: 14px;
    box-shadow: 5 4px 14px rgba(89, 237, 168, 0.3);
}

/* ==========================================================================
   STATISTIK SEKOLAH
   ========================================================================== */
.stats-section {
    background-color: #ffffff;
    padding: 50px 0;
    border-top: 1px solid rgba(0,0,0,0.02);
}

.stats-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
}

.stat-card {
    text-align: center;
    padding: 20px;
    border-radius: 16px;
    background-color: #f8faf9;
    border: 1px solid rgba(25, 135, 84, 0.04);
}

.stat-card h3 {
    font-size: 36px;
    font-weight: 800;
    color: #198754;
    margin-bottom: 5px;
}

.stat-card p {
    color: #64748b;
    font-size: 13.5px;
    font-weight: 600;
    letter-spacing: 0.3px;
}



/* ==========================================================================
   TAMBAHAN UNTUK LAYOUT LANDING PAGE PANJANG (SCROLLING)
   ========================================================================== */
html {
    scroll-behavior: smooth; /* Efek scrolling halus */
    scroll-padding-top: 90px; /* MEMBERIKAN RUANG: Angka ini disesuaikan dengan tinggi navbar Anda agar konten tidak tertutup */
}


.full-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.section-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 60px;
    flex-wrap: wrap;
}

/* Pengaturan Judul Section */
.section-title span, .center-title span {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: #198754;
    letter-spacing: 2px;
    margin-bottom: 5px;
}

.section-title h2, .center-title h2 {
    font-size: 28px;
    font-weight: 800;
    color: #0f5132;
}

.title-line {
    width: 60px;
    height: 4px;
    background-color: #ffb300;
    border-radius: 2px;
    margin-top: 10px;
    margin-bottom: 25px;
}

.title-line.center {
    margin-left: auto;
    margin-right: auto;
}

.center-title {
    text-align: center;
    margin-bottom: 40px;
}

/* SECTION 1: PROFIL & VISI MISI */
.profile-section {
    padding: 100px 0;
    background-color: #ffffff;
}

.welcome-box, .vision-box {
    flex: 1;
    min-width: 320px;
}

/* ==========================================================================
   TATA LETAK BARU: SAMBUTAN KEPALA SEKOLAH (FOTO DI SAMPING BESAR)
   ========================================================================== */
.principal-layout-wrapper {
    display: flex;
    gap: 25px;
    align-items: flex-start;
    background-color: #f8faf9;
    padding: 20px;
    border-radius: 16px;
    border: 1px solid rgba(25, 135, 84, 0.03);
}

/* Kotak Wadah Foto Besar */
.principal-big-photo-box {
    flex-shrink: 0;
}

.avatar-big-placeholder {
    width: 120px; /* Ukuran diperbesar secara proporsional */
    height: 165px;
    background-color: #cbd5e1;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: #64748b;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

/* Sisi Kanan Konten Teks */
.principal-speech-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.principal-meta-title h4 {
    font-size: 17px;
    color: #0f5132;
    font-weight: 800;
    margin-bottom: 2px;
}

.principal-meta-title p {
    font-size: 12.5px;
    color: #198754;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.welcome-text {
    font-size: 14.5px;
    color: #475569;
    line-height: 1.6;
    font-style: italic;
}

/* Responsif untuk layar HP agar susunan otomatis kembali menumpuk ke bawah */
@media (max-width: 640px) {
    .principal-layout-wrapper {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 20px;
    }
    .avatar-big-placeholder {
        width: 120px;
        height: 150px;
    }
}


.vision-text {
    font-size: 15px;
    color: #334155;
    background-color: #f1f8f4;
    padding: 15px;
    border-radius: 10px;
    border-left: 4px solid #198754;
    margin-bottom: 20px;
}

.mission-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.mission-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 14.5px;
    color: #475569;
}

.mission-list li span {
    background-color: #198754;
    color: #ffffff;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
}

/* SECTION 2: FASILITAS UNGGULAN */
.facilities-section {
    padding: 100px 0;
    background-color: #f4fbf7; /* Nuansa adiwiyata lembut */
}

.facilities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

/* ==========================================================================
   DESAIN BARU: KARTU FASILITAS DENGAN FOTO ASLI MEPEt ATAS
   ========================================================================== */
.facility-card {
    background-color: #ffffff;
    padding: 0; /* Dikosongkan agar gambar mepet ke tepi atas kartu */
    border-radius: 16px;
    overflow: hidden; /* Memastikan sudut gambar ikut melengkung sesuai kartu */
    box-shadow: 0 4px 20px rgba(0,0,0,0.02);
    border: 1px solid rgba(25, 135, 84, 0.03);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.facility-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(25, 135, 84, 0.08);
}

/* Mengatur wadah dan dimensi foto fasilitas */
.facility-img-box {
    width: 100%;
    height: 180px; /* Menentukan tinggi area gambar agar seragam */
    overflow: hidden;
}

.facility-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Memotong foto secara proporsional agar tidak gepeng */
    display: block;
}

/* Memindahkan padding ke area pembungkus teks di dalam kartu */
.facility-card-body {
    padding: 25px;
}

.facility-card-body h3 {
    font-size: 18px;
    color: #0f5132;
    margin-bottom: 10px;
    font-weight: 700;
}

.facility-card-body p {
    font-size: 13.5px;
    color: #64748b;
    line-height: 1.6;
}

.facility-card:hover {
    transform: translateY(-5px);
}

.fac-icon {
    font-size: 32px;
    margin-bottom: 15px;
}

.facility-card h3 {
    font-size: 18px;
    color: #0f5132;
    margin-bottom: 10px;
    font-weight: 700;
}

.facility-card p {
    font-size: 14px;
    color: #64748b;
}

/* SECTION 3: BERITA & INFO */
.news-section {
    padding: 100px 0;
    background-color: #ffffff;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 30px;
}

.news-card {
    background-color: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    border: 1px solid #f1f5f9;
    position: relative;
}

.news-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background-color: #3b82f6;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
}

.news-badge.adiwiyata {
    background-color: #198754;
}

.news-body {
    padding: 30px;
    padding-top: 50px;
}

.news-date {
    font-size: 12px;
    color: #94a3b8;
    display: block;
    margin-bottom: 8px;
}

.news-card h3 {
    font-size: 18px;
    color: #1e293b;
    margin-bottom: 12px;
    font-weight: 700;
    line-height: 1.4;
}

.news-card p {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 20px;
}

.read-more {
    font-size: 13.5px;
    font-weight: 700;
    color: #198754;
}

.read-more:hover {
    color: #0f5132;
}

/* PEMBARUAN FOOTER LENGKAP */
footer {
    background-color: #0f172a;
    padding: 60px 0 30px 0;
}

footer h3 {
    color: #ffffff;
    font-size: 20px;
    margin-bottom: 12px;
}

.footer-phone {
    font-size: 13px;
    color: #94a3b8;
    margin-top: 5px;
}

.footer-divider {
    height: 1px;
    background-color: #334155;
    margin: 30px 0;
}

footer .copy {
    color: #475569;
    font-size: 12px;
}
.hero-img-fluid {
    width: 100%;
    max-width: 520px; /* DIPERLEBAR: Diubah dari 420px menjadi 520px */
    height: 360px; /* DIPERBAIK: Ditambah dari 320px menjadi 360px agar tetap proporsional */
    object-fit: cover;
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(25, 135, 84, 0.1);
}

/* ==========================================================================
   DESAIN BARU: FLOATING CARD UNTUK PRESTASI & GALERI
   ========================================================================== */
.excellence-section {
    padding: 100px 0;
    background-color: #ffffff;
}

.two-column-grid {
    display: flex;
    gap: 60px;
    flex-wrap: wrap;
}

.featured-programs, .latest-achievements {
    flex: 1;
    min-width: 320px;
}

/* Desain List Kiri (Program Unggulan) */
.program-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.program-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.prog-dot {
    width: 10px;
    height: 10px;
    background-color: #ffb300;
    border-radius: 50%;
    margin-top: 8px;
    flex-shrink: 0;
}

.program-item h4 {
    font-size: 16px;
    color: #0f5132;
    font-weight: 700;
    margin-bottom: 4px;
}

.program-item p {
    font-size: 14px;
    color: #64748b;
}

/* KARTU MENGAMBANG UNTUK PRESTASI (Floating Card) */
.achievement-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.achieve-floating-card {
    display: flex;
    align-items: center;
    gap: 20px;
    background-color: #ffffff;
    padding: 24px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03); /* Efek bayangan halus mengambang */
    border: 1px solid #f1f5f9;
    transition: all 0.3s ease;
}

.achieve-floating-card:hover {
    transform: translateY(-5px); /* Efek naik sedikit saat didekati kursor */
    box-shadow: 0 15px 35px rgba(25, 135, 84, 0.08); /* Bayangan sedikit kehijauan */
}

/* ==========================================================================
   PENGATURAN FOTO ASLI DI SAMPING KIRI KARTU PRESTASI
   ========================================================================== */
.achieve-img-box {
    width: 125px;        /* Menentukan lebar kotak foto */
    height: 125px;       /* Menentukan tinggi kotak foto agar seimbang berbentuk bujur sangkar */
    border-radius: 12px;/* Membuat sudut foto melengkung rapi halus */
    overflow: hidden;   /* Memastikan gambar terpotong mengikuti lengkungan sudut */
    flex-shrink: 0;     /* Mencegah foto menciut saat layar menyempit atau teks terlalu panjang */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.achieve-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;  /* Memotong foto prestasi secara proporsional agar tidak gepeng */
    display: block;
}


.achieve-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 6px;
    margin-bottom: 6px;
}

.achieve-tag.gold {
    background-color: #fff3cd;
    color: #856404;
}

.achieve-tag.city {
    background-color: #e0f2fe;
    color: #0369a1;
}

.achieve-details h4 {
    font-size: 16.5px;
    color: #1e293b;
    font-weight: 700;
    margin-bottom: 4px;
}

.achieve-details p {
    font-size: 13.5px;
    color: #64748b;
}

/* KARTU MENGAMBANG UNTUK GALERI (Gallery Cards) */
.gallery-section {
    padding: 100px 0;
    background-color: #f4fbf7;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
}

.gallery-card {
    background-color: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.02);
    border: 1px solid rgba(25, 135, 84, 0.02);
    transition: all 0.3s ease;
}

.gallery-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 35px rgba(25, 135, 84, 0.08);
}

.gallery-media-placeholder {
    height: 180px;
    background-color: #eaf6ee;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: #198754;
}

.gallery-body {
    padding: 20px;
}

.gallery-body h4 {
    font-size: 15px;
    color: #0f5132;
    font-weight: 700;
    margin-bottom: 6px;
}

.gallery-body p {
    font-size: 13px;
    color: #64748b;
    line-height: 1.5;
}
.contact-maps-section {
    padding: 100px 0;
    background-color: #f4fbf7;
}
.contact-form-box, .maps-box {
    flex: 1;
    min-width: 320px;
}
.main-contact-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
/* ==========================================================================
   DESAIN BARU: AGENDA KEGIATAN SEKOLAH (PENGGANTI FORMULIR)
   ========================================================================== */
.agenda-school-box {
    flex: 1;
    min-width: 320px;
}

.agenda-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.agenda-item {
    display: flex;
    align-items: center;
    gap: 20px;
    background-color: #ffffff;
    padding: 16px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.01);
    border: 1px solid rgba(25, 135, 84, 0.02);
}

/* Kotak Kalender Tanggal (Badge) */
.agenda-date-badge {
    width: 60px;
    height: 60px;
    background-color: #e8f5e9;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.agenda-date-badge .a-day {
    font-size: 20px;
    font-weight: 800;
    color: #198754;
    line-height: 1.1;
}

.agenda-date-badge .a-month {
    font-size: 10px;
    font-weight: 700;
    color: #198754;
    letter-spacing: 0.5px;
}

/* Variasi Warna Kalender */
.agenda-date-badge.orange { background-color: #fff3cd; }
.agenda-date-badge.orange .a-day, .agenda-date-badge.orange .a-month { color: #b45309; }

.agenda-date-badge.green { background-color: #e0f2fe; }
.agenda-date-badge.green .a-day, .agenda-date-badge.green .a-month { color: #0369a1; }

/* Detail Teks Agenda */
.agenda-details h4 {
    font-size: 15px;
    color: #1e293b;
    font-weight: 700;
    margin-bottom: 2px;
}

.agenda-details p {
    font-size: 12.5px;
    color: #64748b;
    line-height: 1.5;
}

/* TAMPILAN INTERAKTIF WHATSAPP LINK DI FOOTER */
.footer-wa-link {
    color: #25d366 !important; /* Warna khas hijau WhatsApp */
    font-weight: 700;
}

.footer-wa-link:hover {
    color: #128c7e !important;
    text-decoration: underline;
}

.map-responsive {
    box-shadow: 0 10px 30px rgba(0,0,0,0.02);
    border-radius: 12px;
    overflow: hidden;
}

/* ==========================================================================
   PENGATURAN GAMBAR ASLI DI GALERI
   ========================================================================== */
.gallery-img {
    width: 100%;
    height: 180px; /* Menentukan tinggi gambar agar seragam */
    object-fit: cover; /* Memotong gambar secara proporsional agar tidak gepeng/distorsi */
    display: block;
}
/* ==========================================================================
   SECTION BARU: EKSTRAKURIKULER GRID
   ========================================================================== */
.extracurricular-section {
    padding: 100px 0;
    background-color: #ffffff; /* Latar belakang putih bersih agar kontras dengan galeri yang berwarna hijau lembut */
}

.ekskul-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 25px;
}

.ekskul-card {
    background-color: #f8faf9;
    padding: 30px 24px;
    border-radius: 16px;
    border: 1px solid rgba(25, 135, 84, 0.02);
    text-align: center;
    transition: all 0.3s ease;
}

.ekskul-card:hover {
    transform: translateY(-5px);
    background-color: #ffffff;
    box-shadow: 0 10px 30px rgba(25, 135, 84, 0.06);
    border-color: rgba(25, 135, 84, 0.1);
}

.ekskul-icon {
    font-size: 36px;
    margin-bottom: 15px;
    display: inline-block;
}

.ekskul-card h4 {
    font-size: 16px;
    color: #0f5132;
    font-weight: 700;
    margin-bottom: 10px;
}

.ekskul-card p {
    font-size: 13px;
    color: #64748b;
    line-height: 1.6;
}


/* ==========================================================================
   DESAIN BARU: FOOTER DENGAN KONTAK LENGKAP & ICON SOSMED SVG
   ========================================================================== */
footer {
    background-color: #0f172a; /* Warna biru gelap pekat premium */
    color: #94a3b8;
    padding-top: 70px;
    border-top: 1px solid #1e293b;
}

.footer-grid-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 60px;
    flex-wrap: wrap;
    padding-bottom: 40px;
}

/* Kolom Kiri: Informasi */
.footer-info-column {
    flex: 1.4;
    min-width: 320px;
}

.footer-info-column h3 {
    color: #ffffff;
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 6px;
    letter-spacing: 0.5px;
}

.footer-tagline {
    font-size: 13px;
    color: #198754; /* Aksen hijau Adiwiyata */
    font-weight: 600;
    margin-bottom: 25px;
}

/* List Detail Kontak */
.footer-contact-details {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.contact-item-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.c-icon {
    font-size: 16px;
    flex-shrink: 0;
    margin-top: 2px;
}

.contact-item-row p {
    font-size: 13.5px;
    color: #94a3b8;
    line-height: 1.5;
}

.contact-item-row a {
    color: #cbd5e1;
    font-weight: 500;
}

.contact-item-row a:hover {
    color: #198754;
    text-decoration: underline;
}

/* Kolom Kanan: Sosmed */
.footer-social-column {
    flex: 0.8;
    min-width: 280px;
}

.footer-social-column h4 {
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 12px;
}

.social-desc {
    font-size: 13px;
    color: #64748b;
    line-height: 1.5;
    margin-bottom: 20px;
}

/* Kelompok Tombol Ikon Bundar */
.footer-icon-group {
    display: flex;
    gap: 14px;
}

.icon-circle {
    width: 44px;
    height: 44px;
    background-color: #1e293b;
    color: #94a3b8;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #334155;
    transition: all 0.3s ease;
}

/* Efek Interaktif Hover Icon */
.icon-circle:hover {
    color: #ffffff;
    background-color: #198754; /* Berubah hijau saat disentuh */
    border-color: #198754;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(25, 135, 84, 0.2);
}

/* Bar Hak Cipta Paling Bawah */
.footer-bottom-bar {
    background-color: #0b0f19;
    padding: 24px 0;
    text-align: center;
    border-top: 1px solid #1e293b;
}

.footer-bottom-bar .copy {
    font-size: 12.5px;
    color: #475569;
}

/* Responsif untuk Layar Handphone */
@media (max-width: 768px) {
    .footer-grid-container {
        flex-direction: column;
        gap: 40px;
    }
}

/* ==========================================================================
   PERBAIKAN TATA LETAK SAMBUTAN KEPALA SEKOLAH & VISI MISI
   ========================================================================== */
.profile-section {
    padding: 100px 0;
    background-color: #ffffff;
}

/* Kolom Utama Kembali Membagi Dua (Kiri Sambutan, Kanan Visi Misi) */
.section-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 50px;
    flex-wrap: wrap;
}

.welcome-box, .vision-box {
    flex: 1;
    min-width: 320px;
}

/* Kotak Sambutan Kepala Sekolah */
.principal-wrap-container {
    background-color: #f8faf9;
    padding: 20px;
    border-radius: 16px;
    border: 1px solid rgba(25, 135, 84, 0.03);
    display: block; /* Menggunakan block biasa agar float di dalamnya bekerja */
}

/* Mengunci FOTO ASLI agar mengambang di kiri teks sambutan saja */
.principal-photo-wrapper {
    float: left;
    margin-right: 20px;   /* Jarak kanan foto ke teks */
    margin-bottom: 12px;  /* Jarak bawah foto ke teks */
}

.principal-img-real {
    width: 200px;        /* Lebar foto kepala sekolah diperbesar agar proporsional */
    height: auto;        /* Tinggi otomatis mengikuti proporsi foto asli Anda */
    max-height: 300px;   /* Batasi tinggi maksimal agar tidak terlalu memanjang ke bawah */
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.principal-meta-wrap {
    margin-bottom: 12px;
}

.principal-meta-wrap h4 {
    font-size: 16.5px;
    color: #0f5132;
    font-weight: 800;
    margin-bottom: 2px;
}

.principal-meta-wrap p {
    font-size: 12px;
    color: #198754;
    font-weight: 600;
}

.welcome-text-wrap {
    font-size: 14px;
    color: #475569;
    line-height: 1.6;
    font-style: italic;
    text-align: justify;
}

/* MENUTUP EFEK FLOAT: Langkah krusial agar efek mengalir berhenti di sini 
   dan tidak merusak kotak Visi Misi di sebelah kanan atau elemen di bawahnya */
.principal-wrap-container::after {
    content: "";
    display: table;
    clear: both;
}

/* Pengaturan Responsif di Layar HP */
@media (max-width: 640px) {
    .principal-photo-wrapper {
        float: none;
        display: flex;
        justify-content: center;
        margin-right: 0;
        margin-bottom: 15px;
    }
    .principal-img-real {
        width: 130px;
    }
    .principal-meta-wrap {
        text-align: center;
    }
}

/* ==========================================================================
   PENGUNCI UKURAN FOTO GALERI DINAMIS (ANTI-HILANG/BLANK)
   ========================================================================== */
.gallery-card img.gallery-img {
    width: 100% !important;
    height: 180px !important; /* Mengunci tinggi gambar agar seragam di semua kartu */
    object-fit: cover !important; /* Memotong foto secara proporsional agar tidak gepeng */
    display: block !important;
    background-color: #f1f5f9; /* Memberikan latar belakang abu halus jika foto sedang loading */
}

/* ==========================================================================
   PERBAIKAN SKALA FOTO PRESTASI: OTOMATIS MENYESUAIKAN (ANTI-TERPOTONG)
   ========================================================================= */
.achieve-img-box img.achieve-card-img {
    width: 100% !important;
    height: 100% !important;
    
    /* KUNCI UTAMA: Mengubah dari 'cover' menjadi 'contain' agar foto menyesuaikan skala */
    object-fit: contain !important; 
    
    display: block !important;
    background-color: #f8fafc; /* Memberikan warna latar belakang abu-abu lembut di area kosong */
}

/* ==========================================================================
   GABUNGAN KODE MOBILE RESPONSIVE: UNTUK LAYAR HANDPHONE (MAKSIMAL 768PX)
   ========================================================================== */
/* ==========================================================================
   PAKET KODE RESPONSIF FINAL: SAKLAR OTOMATIS LAPTOP & HP (ANTI-MENU GANDA)
   ========================================================================== */

/* --------------------------------------------------------------------------
   KONDISI 1: JIKA DIBUKA DI LAPTOP / KOMPUTER (LAYAR LEBAR MINIMAL 769PX)
   -------------------------------------------------------------------------- */
/* ==========================================================================
   PAKET KODE RESPONSIF VERSI TERBARU: AMAN & BEBAS BENTROKAN MENU GANDA
   ========================================================================== */

/* --------------------------------------------------------------------------
   KONDISI 1: JIKA DIBUKA DI LAPTOP / KOMPUTER (LAYAR LEBAR MINIMAL 769PX)
   -------------------------------------------------------------------------- */
@media (min-width: 769px) {
    /* MENCUT TOTAL: Menyembunyikan seluruh menu HP dari layar laptop */
    .menu-mobile, 
    .menu-toggle-btn, 
    .nav-cta-mobile {
        display: none !important;
    }
    
    /* MEMASTIKAN menu laptop tampil normal berjejer ke samping horizontal */
    .menu-desktop {
        display: flex !important;
        position: relative !important;
        top: 0 !important;
        background-color: transparent !important;
        box-shadow: none !important;
        padding: 0 !important;
        width: auto !important;
        margin-left: auto !important;
        margin-right: 25px !important;
    }

    .menu-desktop > ul {
        display: flex !important;
        flex-direction: row !important; /* Lurus horizontal ke samping */
        gap: 15px !important; /* Jarak renggang antar menu */
        list-style: none;
    }

    .nav-link {
        font-size: 14px !important;
        padding: 8px 12px !important;
        text-align: left !important;
    }
}


/* --------------------------------------------------------------------------
   KONDISI 2: JIKA DIBUKA DI HANDPHONE (LAYAR SEMPIT MAKSIMAL 768PX)
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
    /* MENCUT TOTAL: Menyembunyikan menu laptop saat dibuka di layar HP */
    .menu-desktop, 
    .nav-cta {
        display: none !important;
    }

    /* Memaksa baris navbar atas tetap satu baris lurus di HP */
    .navbar-container {
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        width: 92% !important;
        padding: 10px 0 !important;
        position: relative !important;
    }

    /* Penyesuaian nama sekolah di HP */
    .brand-text h1 { font-size: 15px !important; font-weight: 800 !important; white-space: nowrap !important; }
    .brand-text p { font-size: 10px !important; }
    .school-logo-img { width: 35px !important; height: auto !important; }

    /* TOMBOL GARIS TIGA (HAMBURGER MENU) */
    .menu-toggle-btn {
        display: flex !important;
        flex-direction: column;
        justify-content: space-between;
        width: 24px; height: 18px;
        background: transparent; border: none; cursor: pointer; padding: 0;
        flex-shrink: 0; margin-left: 10px;
    }
    .menu-toggle-btn span { width: 100%; height: 3px; background-color: #0f5132; border-radius: 4px; }

    /* KOTAK DROP-DOWN MENU HP */
    .menu-mobile {
        display: none; /* Sembunyi sebelum tombol garis tiga di-tap */
        position: absolute;
        top: 55px; left: 0; width: 100%;
        background-color: #ffffff;
        box-shadow: 0 10px 25px rgba(0,0,0,0.12);
        padding: 20px;
        border-top: 1px solid #f1f5f9;
        z-index: 99999 !important;
        border-radius: 8px;
    }

    /* Pemicu munculnya menu HP dari ketukan jari */
    .menu-mobile.aktif-mobile {
        display: block !important;
    }

    .menu-mobile > ul {
        display: flex !important;
        flex-direction: column !important; /* Berbaris lurus ke bawah di HP */
        align-items: center;
        gap: 15px !important;
        width: 100%;
        list-style: none;
    }

    .nav-link { font-size: 15px !important; padding: 10px 0 !important; display: block; width: 100%; text-align: center; }

    /* Tombol PPDB khusus menu mobile HP */
    .nav-cta-mobile { display: block !important; margin-top: 15px; text-align: center; }
    .nav-cta-mobile .btn-ppdb {
        display: inline-block; width: 80%; padding: 10px 0; text-align: center;
        background-color: #198754; color: white; border-radius: 6px; font-weight: bold;
    }

    /* TAMPILAN BANNER HERO ATAS-BAWAH DI HP */
    .hero-container { flex-direction: column !important; text-align: center; gap: 20px; padding-top: 100px !important; }
    .hero-text h2, h1, h2 { font-size: 24px !important; line-height: 1.4 !important; text-align: center; }
    .hero-text p { font-size: 14px !important; text-align: center; margin: 0 auto; }

    /* FOTO GEDUNG ANTI-GEPENG DI HP */
    .hero-image-box, .hero-image-box img { width: 100% !important; max-width: 340px !important; height: 220px !important; object-fit: cover !important; margin: 15px auto 0 auto !important; border-radius: 16px !important; }
    .hero-cta-btn { margin: 20px auto 0 auto !important; display: inline-block; }
}

/* ==========================================================================
   PENGUCI EFEK HOVER JUDUL BERITA (ANTI-GAGAL)
   ========================================================================== */
.news-card h3 a {
    display: inline-block !important;
    color: #0f5132 !important; /* Warna dasar awal hijau tua pekat */
    transition: all 0.2s ease-in-out !important;
}

.news-card h3 a:hover {
    color: #0f3ac7 !important; /* DIPAKSA BERUBAH: Menjadi hijau terang saat didekati kursor */
    text-decoration: underline !important; /* Memunculkan garis bawah halus */
    transform: translateX(3px) !important; /* Efek bergeser sedikit ke kanan yang sangat premium */
}
