/* ============================================ */
/* ============== VARIABEL & FONT ============== */
/* ============================================ */
:root {
    --primary-green: #28a745;
    --dark-green: #04724d;
    --accent-yellow: #ffc107;
    --dark-text: #343a40;
    --light-bg: #f8f9fa;
    --white: #ffffff;
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Lato', sans-serif;
}

body {
    font-family: var(--font-body);
    color: var(--dark-text);
    padding-top: 120px;
    overflow-x: hidden; /* <-- TAMBAHKAN BARIS INI */
}

/* ============================================ */
/* ================== HEADER ================== */
/* ============================================ */
.header {
    background-color: rgba(255, 255, 255, 0.85); /* Sedikit lebih transparan */
    backdrop-filter: blur(12px);
    box-shadow: 0 2px 15px rgba(0,0,0,0.07);
}

.header .navbar {
    padding-top: 1.2rem; /* DIUBAH: Tinggi navbar ditambah */
    padding-bottom: 1.2rem; /* DIUBAH: Tinggi navbar ditambah */
    transition: all 0.3s ease;
}

.navbar-brand {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--dark-green) !important;
    font-size: 1.5rem; /* Sedikit diperbesar agar seimbang */
}

.navbar-brand img {
    height: 80px; /* <-- UBAH NILAI INI UNTUK MENGATUR UKURAN LOGO */
    width: auto;
}

.nav-link {
    font-family: var(--font-heading);
    font-weight: 500;
    color: var(--dark-text) !important;
    margin: 0 12px;
    transition: color 0.3s;
    position: relative;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary-green) !important;
}

/* Tombol Call-to-Action di Navbar */
.btn-cta {
    background-color: var(--primary-green);
    color: var(--white) !important;
    border-radius: 50px;
    padding: 10px 25px !important; /* Sedikit diperbesar */
    transition: background-color 0.3s, transform 0.3s;
    box-shadow: 0 4px 10px rgba(40,167,69,0.2);
}

.btn-cta:hover {
    background-color: var(--dark-green);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(40,167,69,0.3);
    color: var(--white) !important;
}

/* ============================================ */
/* ============== DROPDOWN MENU BARU ============ */
/* ============================================ */
.dropdown-menu {
    border: none; /* BARU: Hapus border default */
    box-shadow: 0 10px 40px rgba(0,0,0,0.1); /* BARU: Efek melayang */
    border-radius: 0.75rem; /* BARU: Sudut lebih tumpul */
    padding: 0.5rem 0; /* BARU: Padding vertikal */
    margin-top: 1rem !important; /* BARU: Memberi jarak dari menu utama */
    border-top: 3px solid var(--primary-green); /* BARU: Aksen warna di atas */

    /* BARU: Pengaturan untuk animasi */
    display: block;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease-in-out;
}

/* BARU: Saat dropdown aktif (class .show ditambahkan oleh JS Bootstrap) */
.dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    font-family: var(--font-heading);
    font-weight: 500;
    padding: 0.7rem 1.5rem; /* BARU: Padding item agar lebih lega */
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background-color: var(--light-bg); /* BARU: Warna latar saat hover */
    color: var(--primary-green) !important;
    padding-left: 1.8rem; /* BARU: Efek item sedikit bergeser saat hover */
}

/* ============================================ */
/* ============ HERO SECTION (BARU) ============= */
/* ============================================ */
.hero-section-new {
    padding: 100px 0;
    background: linear-gradient(135deg, #eef7ee 0%, #f8f9fa 60%);
    overflow: hidden; /* Penting untuk menjaga bentuk blob di dalam section */
    min-height: 90vh;
    display: flex;
    align-items: center;
    overflow-x: hidden;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 3.2rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--dark-text);
}

.hero-subtitle {
    font-size: 1.1rem;
    color: #6c757d;
    margin-top: 1rem;
}

.btn-hero-primary {
    background-color: var(--primary-green);
    color: var(--white);
    border-radius: 50px;
    padding: 12px 28px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(40,167,69,0.3);
}
.btn-hero-primary:hover {
    background-color: var(--dark-green);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(40,167,69,0.4);
}

.btn-hero-secondary {
    color: var(--dark-text);
    font-weight: 600;
    text-decoration: none;
    margin-left: 15px;
    transition: color 0.3s ease;
}
.btn-hero-secondary:hover {
    color: var(--primary-green);
}
.btn-hero-secondary i {
    vertical-align: middle;
}

/* Bagian Visual (Gambar & Blob) */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}
.hero-visual img {
    z-index: 2;
}

.hero-blob {
    position: absolute;
    width: 90%;
    height: 90%;
    background: linear-gradient(45deg, var(--primary-green), var(--accent-yellow));
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    animation: morph 8s ease-in-out infinite;
    z-index: 1;
    opacity: 0.2;
}

/* Animasi untuk bentuk Blob */
@keyframes morph {
    0% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
    50% { border-radius: 60% 40% 30% 70% / 60% 70% 30% 40%; }
    100% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
}

/* Penyesuaian untuk layar kecil */
@media (max-width: 992px) {
    .hero-title {
        font-size: 2.5rem;
    }
}

/* ============================================ */
/* ============== UTILITIES & HELPERS ============ */
/* ============================================ */
.section-padding {
    padding: 80px 0;
    overflow-x: hidden!important;
}
.bg-light {
    background-color: #f8f9fa !important;
}
.sub-title {
    color: var(--primary-green);
    font-family: var(--font-heading);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.section-title {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--dark-text);
    margin-top: 0.5rem;
    margin-bottom: 1rem;
}
.section-lead {
    max-width: 600px;
    margin: 0 auto 2rem auto;
    font-size: 1.1rem;
    color: #6c757d;
}

/* ============================================ */
/* ============= STATS COUNTER SECTION ============ */
/* ============================================ */
.stats-counter-section {
    padding: 40px 0;
    background-color: var(--white);
    margin-top: -50px; /* Trik agar section ini sedikit menimpa hero section */
    position: relative;
    z-index: 10;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    width: 80%;
    margin-left: auto;
    margin-right: auto;
    overflow-x: hidden;
    overflow-y: hidden;
}
.stat-item h2 {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 700;
    color: var(--dark-green);
}
.stat-item p {
    font-size: 1rem;
    color: #6c757d;
}

/* ============================================ */
/* ============ SAMBUTAN KEPSEK SECTION ========== */
/* ============================================ */
.sambutan-section {
    background-color: var(--white);
    overflow-x: hidden;
}

.sambutan-section .btn-outline-primary {
    border-color: var(--primary-green);
    color: var(--primary-green);
    font-weight: 600;
    border-radius: 50px;
    padding: 10px 25px;
}
.sambutan-section .btn-outline-primary:hover {
    background-color: var(--primary-green);
    color: var(--white);
}

/* Responsif untuk Section Sambutan Kepala Sekolah */
@media (max-width: 768px) {
    .sambutan-section .col-lg-5 {
        display: none; /* Sembunyikan kolom gambar kepala sekolah */
    }

    .sambutan-section .col-lg-7 {
        width: 100%; /* Buat kolom teks menjadi lebar penuh */
        padding-left: 1rem !important; /* Hapus padding ekstra */
        padding-right: 1rem !important;
        text-align: center; /* Agar teks rapi di tengah */
    }
}

/* ============================================ */
/* ============ PROGRAM UNGGULAN SECTION ========= */
/* ============================================ */
.program-card {
    background-color: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    overflow-x: hidden;
    overflow-y: hidden;
}
.program-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(40,167,69,0.15);
}
.program-card-img {
    overflow: hidden;
}
.program-card-img img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.program-card:hover .program-card-img img {
    transform: scale(1.05);
}

.program-card-body {
    padding: 30px;
    position: relative;
}

.program-card-icon {
    width: 60px;
    height: 60px;
    background-color: var(--primary-green);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: -30px; /* Setengah di dalam, setengah di luar */
    right: 30px;
    border: 4px solid var(--white);
}
.program-card-icon i {
    width: 28px;
    height: 28px;
}
.program-card-title {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--dark-text);
    margin-bottom: 0.5rem;
}
.program-card-text {
    font-size: 0.95rem;
    color: #6c757d;
}

/* ============================================ */
/* ============ BERITA TERBARU SECTION ========== */
/* ============================================ */
.berita-section {
    background-color: var(--white);
    overflow-x: hidden;
    overflow-y: hidden;
}

.berita-card {
    background-color: var(--white);
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.07);
    transition: all 0.3s ease;
    overflow: hidden; /* Mencegah gambar keluar dari border-radius */
    height: 100%;
}

.berita-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.berita-card-img {
    position: relative;
    overflow: hidden;
}

.berita-card-img img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.berita-card:hover .berita-card-img img {
    transform: scale(1.05); /* Efek zoom pada gambar saat hover */
}

.berita-card-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: var(--primary-green);
    color: var(--white);
    padding: 5px 12px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}
.berita-card-category:hover {
    background-color: var(--dark-green);
    color: var(--white);
}

.berita-card-body {
    padding: 25px;
}

.berita-card-meta {
    display: flex;
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 10px;
}
.berita-card-meta i {
    width: 16px;
    height: 16px;
    vertical-align: text-bottom;
}

.berita-card-title {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.25rem;
    line-height: 1.4;
    margin-bottom: 15px;
}

.berita-card-title a {
    text-decoration: none;
    color: var(--dark-text);
    transition: color 0.3s ease;
}

.berita-card-title a:hover {
    color: var(--primary-green);
}

.berita-card-text {
    color: #6c757d;
    font-size: 0.95rem;
    margin-bottom:10px!important;
}

.berita-section .btn-outline-primary {
    border-color: var(--primary-green);
    color: var(--primary-green);
    font-weight: 600;
    border-radius: 50px;
    padding: 10px 25px;
}
.berita-section .btn-outline-primary:hover {
    background-color: var(--primary-green);
    color: var(--white);
}

/* ============================================ */
/* ============= AGENDA SECTION =============== */
/* ============================================ */
.agenda-section {
    overflow-x: hidden;
    overflow-y: hidden;
}

.timeline-container {
    position: relative;
    padding: 20px 0;
    overflow-x: hidden;
}

/* Garis vertikal di tengah timeline */
.timeline-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 40px; /* Posisi garis di kiri */
    width: 3px;
    height: 100%;
    background-color: #e9ecef;
    border-radius: 3px;
}

.timeline-item {
    position: relative;
    margin-bottom: 50px;
    padding-left: 100px; /* Memberi ruang untuk tanggal dan ikon */
}

.timeline-date {
    position: absolute;
    left: 0;
    top: 5px;
    width: 80px;
    text-align: center;
    font-family: var(--font-heading);
    font-weight: 700;
}
.timeline-date span {
    display: block;
    color: var(--primary-green);
    line-height: 1;
}
.timeline-date span:first-child {
    font-size: 2.5rem;
}
.timeline-date span:last-child {
    font-size: 1rem;
    text-transform: uppercase;
    color: #6c757d;
}

/* Ikon pada garis timeline */
.timeline-icon {
    position: absolute;
    left: 28px; /* Posisi ikon di tengah garis */
    top: 10px;
    z-index: 10;
    width: 28px;
    height: 28px;
    background-color: var(--primary-green);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 0 5px var(--light-bg); /* Membuat efek 'cut-out' */
}
.timeline-icon i {
    width: 16px;
    height: 16px;
}

.timeline-content {
    background-color: var(--white);
    padding: 25px 30px;
    border-radius: 12px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.07);
    position: relative;
}

.timeline-meta {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 8px;
    display: block;
}
.timeline-meta i {
    width: 14px;
    height: 14px;
    vertical-align: text-bottom;
}

.timeline-title {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.25rem;
    margin-bottom: 10px;
}

.timeline-text {
    font-size: 0.95rem;
    color: #6c757d;
    margin-bottom: 0;
}

/* Responsif untuk mobile */
@media (max-width: 768px) {
    .timeline-container::before {
        left: 20px;
    }
    .timeline-item {
        padding-left: 60px;
    }
    .timeline-icon {
        left: 8px;
    }
    .timeline-date {
        /* Di mobile, tanggal kita sembunyikan agar tidak terlalu ramai */
        display: none; 
    }
    .timeline-content {
        /* Di mobile, tanggal kita pindah ke dalam konten */
        padding-top: 45px;
    }
    .timeline-content .timeline-date-mobile {
        display: block;
        position: absolute;
        top: 15px;
        left: 30px;
        color: var(--primary-green);
        font-family: var(--font-heading);
        font-weight: 600;
    }
}

/* ============================================ */
/* ======== EKSTRAKURIKULER SECTION =========== */
/* ============================================ */
.ekstra-section {
    overflow-x: hidden;
    overflow-y: hidden;
}

.filter-buttons .btn-filter {
    background-color: transparent;
    border: 1px solid #ddd;
    color: var(--dark-text);
    padding: 8px 25px;
    border-radius: 50px;
    margin: 5px;
    font-family: var(--font-heading);
    font-weight: 500;
    transition: all 0.3s ease;
    overflow-x: hidden;
}

.filter-buttons .btn-filter:hover {
    background-color: #f0f0f0;
}

/* Style untuk tombol filter yang aktif */
.filter-buttons .btn-filter.is-checked {
    background-color: var(--primary-green);
    color: var(--white);
    border-color: var(--primary-green);
}

.grid-item {
    margin-bottom: 30px;
}

.ekstra-card {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.ekstra-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.ekstra-card:hover img {
    transform: scale(1.1);
}

/* Overlay gradasi di atas gambar */
.ekstra-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 70%);
    display: flex;
    align-items: flex-end; /* Konten rata bawah */
    padding: 30px;
    transition: all 0.5s ease;
}

.ekstra-card:hover .ekstra-card-overlay {
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.1) 80%);
}

.ekstra-card-content {
    color: var(--white);
    transform: translateY(10px);
    opacity: 0;
    transition: all 0.4s ease;
}

.ekstra-card:hover .ekstra-card-content {
    transform: translateY(0);
    opacity: 1;
}

.ekstra-icon {
    width: 50px;
    height: 50px;
    background-color: rgba(255,255,255,0.15);
    backdrop-filter: blur(5px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}
.ekstra-icon i {
    width: 24px;
    height: 24px;
    color: var(--white);
}

.ekstra-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--white);
    text-shadow: 1px 1px 5px rgba(0,0,0,0.5);
}

.ekstra-section .btn-outline-primary {
    border-color: var(--primary-green);
    color: var(--primary-green);
    font-weight: 600;
    border-radius: 50px;
    padding: 10px 25px;
}
.ekstra-section .btn-outline-primary:hover {
    background-color: var(--primary-green);
    color: var(--white);
}

/* ============================================ */
/* ================= FAQ SECTION ============== */
/* ============================================ */
.faq-section {
    overflow-x: hidden;
    overflow-y: hidden;
}

.faq-section .accordion-item {
    background-color: var(--white);
    border: none;
    border-radius: 12px !important; /* !important untuk menimpa bootstrap */
    margin-bottom: 15px;
    box-shadow: 0 4px 25px rgba(0,0,0,0.07);
    transition: box-shadow 0.3s ease;
    overflow-x: hidden;
}

.faq-section .accordion-item:hover {
     box-shadow: 0 6px 30px rgba(0,0,0,0.1);
}

.faq-section .accordion-button {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--dark-text);
    background-color: var(--white);
    border-radius: 12px !important;
    padding: 20px 25px;
}

/* Mengubah warna tombol saat aktif/terbuka */
.faq-section .accordion-button:not(.collapsed) {
    background-color: var(--primary-green);
    color: var(--white);
    box-shadow: none;
}

.faq-section .accordion-body {
    padding: 0 25px 25px 25px;
    font-size: 0.95rem;
    color: #6c757d;
}

/* Mengganti ikon panah default bootstrap */
.faq-section .accordion-button::after {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    margin-left: auto;
    content: " "; /* Hapus konten default */
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23343a40' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' class='feather feather-plus'%3e%3cline x1='12' y1='5' x2='12' y2='19'%3e%3c/line%3e%3cline x1='5' y1='12' x2='19' y2='12'%3e%3c/line%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-size: 20px;
    transition: transform .2s ease-in-out;
}

/* Mengganti ikon menjadi 'minus' saat terbuka */
.faq-section .accordion-button:not(.collapsed)::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' class='feather feather-minus'%3e%3cline x1='5' y1='12' x2='19' y2='12'%3e%3c/line%3e%3c/svg%3e");
    transform: rotate(90deg); /* Animasi rotasi */
}

/* Menghilangkan bayangan aneh saat tombol di-klik */
.faq-section .accordion-button:focus {
    box-shadow: none;
    border-color: rgba(0,0,0,.125);
}

/* ============================================ */
/* ============= FASILITAS SECTION ============ */
/* ============================================ */
.fasilitas-section {
    overflow-x: hidden;
    overflow-y: hidden;
}

.fasilitas-container {
    padding: 20px;
    border-radius: 15px;
    background-color: var(--white);
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
}

/* Slider Utama */
.fasilitas-slider-main {
    width: 100%;
    height: 500px;
    border-radius: 12px;
    margin-bottom: 15px;
}

.fasilitas-slider-main .swiper-slide {
    position: relative;
    overflow: hidden;
}

.fasilitas-slider-main .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Tombol Navigasi Slider Utama */
.fasilitas-slider-main .swiper-button-next,
.fasilitas-slider-main .swiper-button-prev {
    color: var(--white);
    background-color: rgba(0,0,0,0.3);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}
.fasilitas-slider-main .swiper-button-next:hover,
.fasilitas-slider-main .swiper-button-prev:hover {
    background-color: var(--primary-green);
}
.fasilitas-slider-main .swiper-button-next::after,
.fasilitas-slider-main .swiper-button-prev::after {
    font-size: 20px;
    font-weight: 800;
}

/* Caption/Deskripsi pada Gambar Utama */
.fasilitas-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 100%);
    color: var(--white);
    padding: 50px 30px 30px 30px;
}

.fasilitas-caption h5 {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
}

.fasilitas-caption p {
    font-size: 1rem;
    opacity: 0.9;
}

/* Slider Thumbnail */
.fasilitas-slider-thumbs {
    height: 120px;
    box-sizing: border-box;
    padding: 10px 0;
}

.fasilitas-slider-thumbs .swiper-slide {
    width: 25%;
    height: 100%;
    opacity: 0.5;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.fasilitas-slider-thumbs .swiper-slide-thumb-active {
    opacity: 1;
    border: 3px solid var(--primary-green);
}

.fasilitas-slider-thumbs .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fasilitas-section .btn-outline-primary {
    border-color: var(--primary-green);
    color: var(--primary-green);
    font-weight: 600;
    border-radius: 50px;
    padding: 10px 25px;
}
.fasilitas-section .btn-outline-primary:hover {
    background-color: var(--primary-green);
    color: var(--white);
}

/* ============================================ */
/* ============== GALERI SECTION ============== */
/* ============================================ */
.galeri-section {
    overflow-x: hidden;
    overflow-y: hidden;
}

.galeri-item {
    padding-left: 10px; /* Jarak antar item */
    padding-right: 10px; /* Jarak antar item */
    margin-bottom: 20px;
}

.galeri-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    display: block;
    box-shadow: 0 5px 20px rgba(0,0,0,0.07);

    /* BARU: Trik untuk membuat kotak dengan rasio 1:1 */
    width: 100%;
    height: 0;
    padding-bottom: 100%; 
}

.galeri-card img {
    /* BARU: Mengisi kotak tanpa merusak rasio gambar */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ini akan memotong gambar agar pas, bukan merusaknya */
    transition: transform 0.4s ease;
}

.galeri-card:hover img {
    transform: scale(1.05);
}

.galeri-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.galeri-card:hover .galeri-overlay {
    opacity: 1;
}

.galeri-overlay i {
    color: white;
    width: 40px; /* Disesuaikan dengan ukuran kartu yg lebih kecil */
    height: 40px;
    transform: scale(0.8);
    transition: transform 0.4s ease;
}

.galeri-card:hover .galeri-overlay i {
    transform: scale(1);
}

.galeri-section .btn-outline-primary {
    border-color: var(--primary-green);
    color: var(--primary-green);
    font-weight: 600;
    border-radius: 50px;
    padding: 10px 25px;
}
.galeri-section .btn-outline-primary:hover {
    background-color: var(--primary-green);
    color: var(--white);
}

/* ============================================ */
/* ============ TESTIMONI SECTION ============= */
/* ============================================ */
.prestasi-section {
    background-color: var(--light-bg);
    overflow-x: hidden;
    overflow-y: hidden;
}

.testimoni-section {
    background-color: var(--light-bg);
    overflow-x: hidden;
    overflow-y: hidden;
}

.testimoni-slider {
    padding-bottom: 50px; /* Ruang untuk pagination */
}

.testimoni-card {
    background-color: var(--white);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.testimoni-icon {
    font-size: 4rem;
    font-family: 'Times New Roman', Times, serif;
    color: var(--primary-green);
    line-height: 1;
    margin-bottom: 15px;
}

.testimoni-text {
    font-size: 1rem;
    font-style: italic;
    color: #6c757d;
    flex-grow: 1; /* Membuat teks mengisi ruang agar footer rata bawah */
    margin-bottom: 20px;
}

.rating-stars {
    margin-bottom: 25px;
}

.rating-stars i {
    width: 20px;
    height: 20px;
    color: var(--accent-yellow);
    fill: var(--accent-yellow); /* Mengisi bintang dengan warna */
}

.testimoni-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.author-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-green);
}

.author-info {
    text-align: left;
}

.author-name {
    font-family: var(--font-heading);
    font-weight: 600;
    margin-bottom: 0;
}

.author-role {
    font-size: 0.85rem;
    color: #888;
}

/* Kustomisasi pagination Swiper */
.testimoni-slider .swiper-pagination-bullet {
    background-color: #ccc;
    opacity: 1;
}

.testimoni-slider .swiper-pagination-bullet-active {
    background-color: var(--primary-green);
}

/* ============================================ */
/* ================ FOOTER ==================== */
/* ============================================ */
.footer {
    background-color: #1a1a1a; /* Warna gelap yang elegan */
    color: #a9a9a9;
    overflow-x: hidden;
}

.footer-maps {
    line-height: 0; /* Menghilangkan spasi aneh di bawah peta */
}

.footer-main {
    padding: 60px 0;
}

.footer-logo {
    height: 100px;
    width: auto;
}

.widget-title {
    font-family: var(--font-heading);
    color: var(--white);
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}
/* Garis aksen di bawah judul widget */
.widget-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 3px;
    background-color: var(--primary-green);
}

.footer-widget ul li {
    margin-bottom: 10px;
}

.footer-widget ul li a {
    color: #a9a9a9;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-widget ul li a:hover {
    color: var(--primary-green);
    padding-left: 5px;
}

.contact-info li {
    display: flex;
    align-items: flex-start;
}

.contact-info li i {
    color: var(--primary-green);
    width: 18px;
    height: 18px;
    margin-right: 15px;
    flex-shrink: 0;
    margin-top: 3px;
}

/* Bagian Copyright */
.footer-bottom {
    background-color: #000;
    padding: 20px 0;
    font-size: 0.9rem;
}

.footer-bottom p {
    color: #777;
}

.social-icons-footer a {
    color: #777;
    margin-left: 15px;
    transition: color 0.3s ease;
}

.social-icons-footer a:hover {
    color: var(--primary-green);
}

/* ============================================ */
/* ========= HALAMAN ARSIP BERITA & BLOG ======== */
/* ============================================ */

/* Header Halaman Internal */
.page-header {
    padding: 80px 0;
    position: relative;
    background-size: cover;
    background-position: center;
    color: var(--white);
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(41, 41, 41, 0.4);
    backdrop-filter: blur(5px);
}

.berita-arsip-section .container .row {
    display: flex;
    flex-wrap: wrap;
}

.featured-post .berita-card-img {
    max-height: 250px; /* Atur tinggi maksimal gambar, misal 400px */
    overflow: hidden;
}

.berita-card{
    max-height: 500px; /* Atur tinggi maksimal gambar, misal 400px */
    overflow: hidden;
}

.page-header .container {
    position: relative;
    z-index: 2;
}

.page-title-text {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 700;
}

.breadcrumb-item, .breadcrumb-item a {
    color: var(--white);
    font-family: var(--font-heading);
    text-decoration: none;
    opacity: 0.8;
}
.breadcrumb-item.active {
    opacity: 1;
    font-weight: 600;
    color:white;
}
.breadcrumb-item + .breadcrumb-item::before {
    color: var(--white);
}

/* Berita Utama yang Menonjol */
.featured-post .berita-card-title.large-title a {
    font-size: 2rem;
    line-height: 1.3;
}

/* Sidebar */
.sidebar {
    position: sticky;
    top: 120px; /* Jarak dari atas saat scroll */
}
.sidebar-widget {
    background-color: var(--white);
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.07);
}
.sidebar-widget .widget-title {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.2rem;
    margin-bottom: 20px;
}
.search-form {
    position: relative;
}
.search-form .btn-search {
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    border: none;
    background: transparent;
    padding: 0 15px;
    color: #888;
}

.category-list li {
    margin-bottom: 10px;
}
.category-list li a {
    color: var(--dark-text);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    display: flex;
    justify-content: space-between;
}
.category-list li a:hover {
    color: var(--primary-green);
}
.category-list .count {
    background-color: #f0f0f0;
    font-size: 0.8rem;
    padding: 2px 8px;
    border-radius: 5px;
}

.recent-posts-list li {
    margin-bottom: 15px;
}
.recent-posts-list li a {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
}
.recent-posts-list img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 8px;
}
.recent-posts-list .post-info .post-title {
    display: block;
    color: var(--dark-text);
    font-weight: 600;
    line-height: 1.3;
    transition: color 0.3s;
}
.recent-posts-list .post-info .post-date {
    font-size: 0.8rem;
    color: #888;
}
.recent-posts-list li a:hover .post-title {
    color: var(--primary-green);
}

/* Pagination */
.pagination .page-item .page-link {
    color: var(--dark-text);
    border: 1px solid #ddd;
    margin: 0 5px;
    border-radius: 8px;
}
.pagination .page-item.active .page-link {
    background-color: var(--primary-green);
    border-color: var(--primary-green);
    color: var(--white);
}
.pagination .page-item.disabled .page-link {
    color: #ccc;
}

/* ============================================ */
/* ============ HALAMAN DETAIL BERITA =========== */
/* ============================================ */

/* Breadcrumb di halaman artikel */
.article-section .breadcrumb, .article-section .breadcrumb-item a {
    color: #888;
}
.article-section .breadcrumb-item a:hover {
    color: var(--primary-green);
}
.article-section .breadcrumb-item.active {
    color: var(--dark-text);
}
.article-section .breadcrumb-item + .breadcrumb-item::before {
    color: #888;
}


.article-category-badge {
    display: inline-block;
    background-color: var(--primary-green);
    color: var(--white);
    padding: 6px 15px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    margin-bottom: 1rem;
}

.article-title {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1.5rem;
}

.article-meta {
    display: flex;
    gap: 25px;
    color: #888;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}
.article-meta .meta-item i {
    width: 16px;
    height: 16px;
    vertical-align: text-bottom;
}

.article-featured-image {
    margin-bottom: 2rem;
}
.article-featured-image img {
    width: 100px!important;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.article-body p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #444;
    margin-bottom: 1.5rem;
}
.article-body h2 {
    font-family: var(--font-heading);
    font-weight: 700;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}
.article-body blockquote {
    background-color: #f8f9fa;
    border-left: 5px solid var(--primary-green);
    padding: 25px;
    margin: 2rem 0;
    font-style: italic;
}
.article-body blockquote p {
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 1rem;
}
.article-body blockquote cite {
    font-style: normal;
    font-weight: 600;
    color: var(--dark-text);
}

/* Tombol Share */
.article-share {
    border-top: 1px solid #eee;
    margin-top: 2rem;
    padding-top: 2rem;
}
.share-title {
    font-family: var(--font-heading);
    font-weight: 600;
    margin-bottom: 1rem;
}
.share-buttons .btn-share {
    color: var(--white);
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 8px;
    margin-right: 10px;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.share-buttons .btn-share i {
    width: 16px;
    height: 16px;
}
.share-buttons .facebook { background-color: #1877F2; }
.share-buttons .twitter { background-color: #1DA1F2; }
.share-buttons .whatsapp { background-color: #25D366; }

/* ============================================ */
/* ============= HALAMAN PROFIL ================= */
/* ============================================ */

.sidebar-profil {
    position: sticky;
    top: 120px;
    /* BARU: Jadikan seperti kartu */
    background-color: var(--white);
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.07);
}

.profil-nav.nav-pills .nav-link {
    color: var(--dark-text);
    font-family: var(--font-heading);
    font-weight: 500;
    padding: 12px 20px; /* DIUBAH: Padding disesuaikan */
    text-align: left;
    background: none;
    border-radius: 8px;
    margin-bottom: 5px; /* BARU: Beri jarak antar tombol */
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

.profil-nav.nav-pills .nav-link:hover {
    background-color: #f8f9fa;
    color: var(--dark-text);
}

/* Style untuk tab yang aktif */
.profil-nav.nav-pills .nav-link.active {
    background-color: var(--white);
    color: var(--primary-green);
    font-weight: 600;
    border-color: var(--primary-green);
    box-shadow: 0 5px 15px rgba(40, 167, 69, 0.2);
}

/* Konten di Sebelah Kanan */
.profil-content-item {
    padding: 15px; /* DIUBAH: Beri sedikit padding agar sejajar */
    margin-bottom: 0;
}

.profil-content-item .content-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #eee;
}

.info-list {
    font-size: 1.1rem;
}
.info-list li {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}
.info-list i {
    color: var(--primary-green);
    margin-right: 15px;
}

/* Kartu Daftar Guru (tidak berubah) */
.guru-card {
    text-align: center;
}
.guru-card img {
    width: 100%;
    max-width: 150px;
    height: auto;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
    border: 4px solid #eee;
    transition: border-color 0.3s ease;
}
.guru-card:hover img {
    box-shadow: 0 5px 15px rgba(40, 167, 69, 0.2);
}
.guru-name {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.25rem;
}
.guru-role {
    font-size: 0.85rem;
    color: #888;
}

/* ============================================ */
/* ========= TOMBOL FLOATING LAYANAN ========== */
/* ============================================ */
.floating-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.floating-button {
    width: 60px;
    height: 60px;
    background-color: var(--primary-green);
    color: var(--white);
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 20px rgba(40, 167, 69, 0.4);
    cursor: pointer;
    transition: transform 0.3s ease, background-color 0.3s ease;
}
.floating-button:hover {
    transform: scale(1.1);
}

.floating-button .icon-grid,
.floating-container.active .floating-button .icon-close {
    display: block;
}
.floating-button .icon-close,
.floating-container.active .floating-button .icon-grid {
    display: none;
}
.floating-container.active .floating-button {
    background-color: #dc3545; /* Warna merah saat aktif */
    transform: rotate(45deg);
}

.floating-menu {
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;

    /* Sembunyikan menu secara default */
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

/* Tampilkan menu saat container aktif */
.floating-container.active .floating-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.floating-menu .menu-item {
    display: flex;
    align-items: center;
    text-decoration: none;
    background-color: var(--white);
    color: var(--dark-text);
    padding: 10px 15px;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    white-space: nowrap; /* Agar teks tidak turun baris */
    transition: all 0.3s ease;
}

.floating-menu .menu-item:hover {
    background-color: var(--primary-green);
    color: var(--white);
    transform: translateX(-5px);
}

.floating-menu .menu-item i {
    width: 20px;
    height: 20px;
    margin-right: 10px;
}

.prestasi-card { border-radius: 15px; overflow: hidden; background: #fff; box-shadow: 0 5px 15px rgba(0,0,0,0.08); }
.prestasi-card-img img { width: 100%; height: 200px; object-fit: cover; }
.prestasi-card-body { padding: 20px; }
.prestasi-card-juara { font-weight: 700; color: #007bff; display: block; margin-bottom: 5px; }
.prestasi-card-title { font-size: 1.1rem; font-weight: 600; margin-bottom: 5px; }
.prestasi-card-tingkat { font-size: 0.9rem; color: #6c757d; margin-bottom: 15px; }
.prestasi-card-tanggal { font-size: 0.8rem; color: #6c757d; display: flex; align-items: center; }
.prestasi-card-tanggal svg { width: 14px; height: 14px; }
.prestasi-slider .swiper-pagination-bullet-active { background: #007bff; margin-top:-20px; }
.prestasi-section .btn-outline-primary {
    border-color: var(--primary-green);
    color: var(--primary-green);
    font-weight: 600;
    border-radius: 50px;
    padding: 10px 25px;
}
.prestasi-section .btn-outline-primary:hover {
    background-color: var(--primary-green);
    color: var(--white);
}

.program-unggulan-section .btn-outline-primary {
    border-color: var(--primary-green);
    color: var(--primary-green);
    font-weight: 600;
    border-radius: 50px;
    padding: 10px 25px;
}
.program-unggulan-section .btn-outline-primary:hover {
    background-color: var(--primary-green);
    color: var(--white);
}