

.main-header {
    /* Gradasi: Hijau Tea Tua ke Hijau Tea Muda */
    background: linear-gradient(135deg, #58c639f4 0%, #055a05 100%);

    /* Tambahan efek shadow biar header "mengambang" di atas Hero */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);

    padding: 5px 0;
    border-bottom: 3px solid #e0ec05;
    /* Garis bawah biar tegas */
    width: 100%;
    

    
}

header {
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    /* Tetap mepet kiri sesuai request tadi */
    max-width: 1300px;
    /* Saya lebarin sedikit biar makin lega */
    margin: 0 auto;
    padding: 0 5px;
    gap: 25px;
    
}

/* Biar teksnya makin "pop up" di atas gradasi */
/* 1. Kunci Utama: Teks harus punya background gradasi */
.school-name {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1.2;

    /* Warna dasar teks (gelap) */
    color: #1b4332;

    /* Membuat gradasi untuk kilatan (Emas/Putih) */
    background: linear-gradient(to right, #1b4332 20%, #FFD700 40%, #FFD700 60%, #1b4332 80%);
    background-size: 200% auto;

    /* Trik agar background muncul HANYA di dalam teks */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;

    /* Jalankan animasi */
    animation: kilatCahaya 8s linear infinite;
}

/* 2. Definisi Gerakan Cahaya */
@keyframes kilatCahaya {
    to {
        background-position: 200% center;
    }
}

/* Biar slogan tetap elegan tanpa animasi berlebihan */
.school-slogan {
    margin: 0;
    font-size: 0.9rem;
    color: #e5ebe8;
    font-weight: 500;
}

.header-text-group {
    display: flex;
    flex-direction: column;
    text-align: left;
    /* Pastikan ini rata kiri, Bang! */
}

.header-logo-group {
    display: flex;
    align-items: center;
    gap: 10px;
    /* Jarak antar logo */
    border-right: 2px solid rgba(246, 198, 3, 0.981);
    /* Garis tipis pemisah logo & teks (opsional) */
    padding-right: 20px;


}

/* 1. Wadah Logo: Harus Relative biar kilatannya gak keluar jalur */
.logo-shine-wrapper {
    position: relative;
    overflow: hidden;
    /* Biar kilatan yang lewat kepotong di pinggir logo */
    display: flex;
    align-items: center;
    border-radius: 10px;
    /* Opsional: biar halus */
}

.logo-img {
    height: 65px;
    width: auto;
    display: block;
}

/* 2. Efek Cahaya Kilat */
.logo-shine-wrapper::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    /* Mulai dari luar kotak sebelah kiri */
    width: 50%;
    height: 100%;

    /* Cahaya Putih Transparan (Kilatan) */
    background: linear-gradient(to right,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0.8) 50%,
            rgba(255, 255, 255, 0) 100%);

    /* Kemiringan Cahaya */
    transform: skewX(-25deg);

    /* Jalankan Animasi */
    animation: shineLogo 8s infinite;
}

/* 3. Logika Gerakan Kilatan */
@keyframes shineLogo {
    0% {
        left: -100%;
    }

    20% {
        left: 150%;
        /* Cahaya lewat dengan cepat */
    }

    100% {
        left: 150%;
        /* Jeda diam sebelum muncul lagi */
    }
}

/* Biar gak sesek di HP */
@media (max-width: 768px) {
    .header-container {
        gap: 10px;
    }

    .logo-img {
        height: 45px;
    }

    .school-name {
        font-size: 1.2rem;
    }

    .school-slogan {
        font-size: 0.7rem;
    }
}


.quick-links {
    padding: 60px 0;
    background: #f8f9fa; /* Warna terang biar kontras sama Hero yang gelap */
}

.links-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    padding: 0 30px;
}

.link-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    transition: 0.3s;
    border-bottom: 4px solid #1b4332;
}

.link-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.link-card .icon { font-size: 40px; margin-bottom: 15px; }
.link-card h4 { color: #1b4332; margin-bottom: 10px; }
.link-card p { color: #666; font-size: 0.9rem; line-height: 1.5; }

/* --- STATS SECTION --- */
.stats-section {
    background: #1b4332; /* Hijau Madrasah */
    padding: 50px 0;
    color: white;
}

.stats-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-around;
    text-align: center;
}

.stat-item h2 {
    font-size: 3rem;
    color: #FFD700; /* Emas */
    margin: 0;
}

.stat-item p {
    font-size: 1rem;
    margin-top: 5px;
    opacity: 0.8;
}

/* --- GALLERY PREVIEW --- */
.gallery-preview {
    padding: 80px 0;
    background: #fff;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
}

.section-title span {
    color: #1b4332;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 0.8rem;
}

.section-title h2 {
    font-size: 2rem;
    color: #333;
    margin-top: 5px;
}

.gallery-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    padding: 0 30px;
}

.gallery-item {
    height: 200px;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* Responsif Mobile */
@media (max-width: 768px) {
    .stats-container { flex-direction: column; gap: 30px; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
/* --- TESTIMONI --- */
.testi-section {
    padding: 80px 0;
    background: #fdfdfd;
}

.testi-container {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    gap: 30px;
    padding: 0 30px;
}

.testi-card {
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border-left: 5px solid #ffca28; /* Aksen emas */
    flex: 1;
}

.testi-card p {
    font-style: italic;
    color: #555;
    line-height: 1.6;
    margin-bottom: 20px;
}

.user-info strong { display: block; color: #1b4332; }
.user-info span { font-size: 0.8rem; color: #888; }

/* --- LOCATION MAP --- */
.location-section {
    position: relative;
    line-height: 0; /* Hilangkan celah bawah iframe */
}

.map-wrapper {
    position: relative;
    height: 350px;
}

.map-info {
    position: absolute;
    top: 50%;
    left: 10%;
    transform: translateY(-50%);
    z-index: 10;
}

.info-box {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
    max-width: 300px;
}

.info-box h4 { color: #1b4332; margin-bottom: 10px; }
.info-box p { font-size: 0.9rem; color: #666; line-height: 1.4; margin-bottom: 15px; }

.btn-map {
    display: inline-block;
    padding: 8px 20px;
    background: #1b4332;
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-size: 0.8rem;
    transition: 0.3s;
}

.btn-map:hover { background: #ffca28; color: #1b4332; }

@media (max-width: 768px) {
    .testi-container { flex-direction: column; }
    .map-info { position: static; transform: none; padding: 20px; }
    .info-box { max-width: 100%; }
}