/* =====================================================
   RESET DASAR
   - Menghilangkan margin default browser
   - Box sizing konsisten
===================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* =====================================================
   VARIABEL WARNA (MUDAH GANTI TEMA)
===================================================== */
:root {
    --primary: #0b5d3b;        /* Hijau utama MAN */
    --secondary: #f39c12;      /* Aksen emas/orange */
    --background: #f4f6f8;     /* Background halaman */
    --white: #ffffff;
    --text-dark: #333333;
}

/* =====================================================
   BODY GLOBAL
===================================================== */
body {
    font-family: 'Poppins', sans-serif;
    background: var(--background);
    color: var(--text-dark);
    line-height: 1.6;
}

/* =====================================================
   HEADER ATAS (LOGO + NAMA SEKOLAH)
===================================================== */
.top-header {
    background: var(--primary);
    color: var(--white);
    padding: 20px 40px;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-circle {
    width: 55px;
    height: 55px;
    background: var(--secondary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.school-info h1 {
    font-size: 20px;
}

.school-info span {
    font-size: 13px;
    opacity: 0.9;
}

/* =====================================================
   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: 420px;               /* Tinggi ideal instansi */
    max-height: 500px;
    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;
    }
}


/* =====================================================
   KONTEN HERO (LOGO, JUDUL, TOMBOL)
===================================================== */
.hero-content {
    position: relative;
    z-index: 5;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 14px;
    text-align: center;
}

/* Tombol */
.btn-jelajah {
    padding: 12px 28px;
    border-radius: 30px;
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 8px 18px rgba(0,0,0,.25);
    transition: all .3s ease;
}

.btn-jelajah:hover {
    transform: translateY(-3px);
}


/* Logo Sekolah */
.hero-logo {
    width: 150px;
    height: auto;

    background: transparent;
    padding: 0;                 /* PENTING */
    border-radius: 0;           /* PNG sudah transparan */

    display: block;
    margin-bottom: 20px;

    filter: drop-shadow(0 0 12px rgba(255,255,255,.6));
    animation: floatLogo 4s ease-in-out infinite;
}


/* Animasi logo melayang */
@keyframes floatLogo {
    0%   { transform: translateY(0); }
    50%  { transform: translateY(-8px); }
    100% { transform: translateY(0); }
}

/* Judul utama */
.hero-content h1 {
    font-size: 56px;
    color:var(--white);
    font-weight: 700;
    margin-bottom: 10px;
}

/* Deskripsi */
.hero-content p {
    max-width: 600px;
    margin-bottom: 25px;
    font-size: 26px;
    opacity: 0.95;
    color:var(--white);
}

/* Tombol utama */
.btn-primary {
    background: var(--secondary);
    padding: 14px 30px;
    border-radius: 30px;
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.3s, box-shadow 0.3s;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

/* =====================================================
   LAYANAN DIGITAL
===================================================== */
.services {
    padding: 60px 40px;
    text-align: center;
}

.services h3 {
    font-size: 26px;
    margin-bottom: 40px;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
}

.service-card {
    background: var(--white);
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.service-card h4 {
    margin-bottom: 10px;
    color: var(--primary);
}

/* =====================================================
   FOOTER
===================================================== */
.footer {
    background: #083a27;
    color: var(--white);
    text-align: center;
    padding: 25px;
    font-size: 14px;
}

/* =====================================================
   RESPONSIVE MOBILE
===================================================== */
@media (max-width: 768px) {

    .navbar {
        flex-direction: column;
        gap: 10px;
    }

    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
    }

    .hero-slider {
        height: 280px;
    }

    .hero-logo {
        width: 70px;
        height: 70px;
    }

    .hero-content h1 {
        font-size: 20px;
    }

    .hero-content p {
        font-size: 13px;
    }

    .btn-primary {
        padding: 10px 20px;
        font-size: 13px;
    }
}
