/* =====================
   GLOBAL STYLE
===================== */
body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    background: #f7f9fb;
    color: #333;
}

h1, h2, h3, h4 {
    margin: 0;
    font-weight: 600;
}

section {
    padding: 70px 20px;
}

/* =====================
   NAVBAR ACTIVE
===================== */
.nav-menu a.active {
    color: #00b894;
    font-weight: 600;
}

/* =====================
   HERO PROFIL
===================== */
.hero-profil {
    height: 380px;
    background: url('../img/banner-sekolah.jpg') center/cover no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-profil .overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.55);
}

.hero-profil .hero-text {
    position: relative;
    color: #fff;
}

.hero-profil h1 {
    font-size: 40px;
}

.hero-profil p {
    opacity: 0.9;
}

/* =====================
   ABOUT SECTION
===================== */
.about-container {
    display: flex;
    gap: 40px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    max-width: 1100px;
    margin: auto;
}

.about-container img {
    width: 320px;
    height: 220px;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.about-text {
    max-width: 600px;
}

.about-text h2 {
    margin-bottom: 10px;
    color: #00b894;
}

/* =====================
   IDENTITAS CARD
===================== */
.identitas {
    text-align: center;
}

.identitas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    max-width: 1000px;
    margin: auto;
}

.card {
    background: #fff;
    padding: 18px;
    border-radius: 14px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.06);
    transition: 0.3s;
    border-left: 4px solid #00b894;
}

.card:hover {
    transform: translateY(-6px);
}

/* =====================
   TIMELINE MODERN
===================== */
.timeline {
    max-width: 800px;
    margin: auto;
    position: relative;
    padding-left: 20px;
}

.timeline::before {
    content: "";
    position: absolute;
    left: 10px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: #00b894;
    border-radius: 5px;
}

.timeline-item {
    position: relative;
    padding: 20px 20px 20px 40px;
    margin-bottom: 15px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 6px 15px rgba(0,0,0,0.05);
}

.timeline-item span {
    font-weight: bold;
    color: #00b894;
    display: block;
    margin-bottom: 5px;
}

/* =====================
   GRID 3 (KEUNGGULAN / PROGRAM)
===================== */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    max-width: 1000px;
    margin: auto;
}

/* =====================
   PRESTASI LIST
===================== */
.prestasi ul {
    list-style: none;
    padding: 0;
    max-width: 600px;
    margin: auto;
}

.prestasi li {
    background: #fff;
    margin: 10px 0;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 6px 15px rgba(0,0,0,0.05);
}

/* =====================
   FOOTER
===================== */
.footer {
    background: #0f172a;
    color: #fff;
    text-align: center;
    padding: 25px;
    margin-top: 50px;
}

/* =====================
   RESPONSIVE
===================== */
@media (max-width: 768px) {
    .hero-profil h1 {
        font-size: 28px;
    }

    .about-container {
        flex-direction: column;
        text-align: center;
    }

    .timeline {
        padding-left: 10px;
    }
}

/* =====================================================
   NAVBAR UTAMA
===================================================== */
.navbar {
    background: #084a30;
    padding: 14px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-menu {
    list-style: none;
    display: flex;
    gap: 25px;
}

.nav-menu li a {
    text-decoration: none;
    color: var(--white);
    font-weight: 500;
    transition: color 0.3s;
}

.nav-menu li a:hover {
    color: var(--secondary);
}

/* Tombol Layanan Unggulan */
.btn-unggulan {
    background: var(--secondary);
    color: var(--white);
    padding: 10px 18px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
}
/* =====================================================
   HERO SLIDER (HEADER UTAMA)
===================================================== */
.hero-slider {
    position: relative;          /* Wajib agar slide absolute terkunci */
    height: 220px;               /* Tinggi ideal instansi */
    max-height: 300px;
    overflow: hidden;
}

/* Container slide */
.slides {
    position: absolute;
    inset: 0;
}

/* Setiap slide */
.slide {
    position: absolute;
    inset: 0;

    background-size: contain;    /* Foto tidak terpotong */
    background-repeat: no-repeat;
    background-position: center;
    background-color: var(--primary);

    opacity: 0;
    transition: opacity 1.2s ease;
}

/* Slide aktif */
.slide.active {
    opacity: 1;
}

/* Overlay gradasi agar teks terbaca */
.overlay {
    position: absolute;
    inset: 0;

    /* hijau tetap ada tapi tipis */
    background: linear-gradient(
        rgba(11,93,59,0.35),
        rgba(11,93,59,0.25)
    );

    z-index: 1;
}


/* =====================================================
   SLIDE 2 FOTO (SPLIT VIEW)
===================================================== */
.slide {
    display: flex;
    gap: 6px;                 /* jarak antar foto */
}

/* Setiap foto dalam slide */
.slide .img {
    flex: 1;
    background-size: cover;
    background-position: center;
    border-radius: 4px;
}

/* Jika hanya 1 foto */
.slide.single .img {
    flex: 1;
}

/* Mobile: tetap 1 foto (biar nggak sempit) */
@media (max-width: 768px) {
    .slide {
        flex-direction: column;
        gap: 4px;
    }
}

