/* ================= RESET ================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Poppins", sans-serif;
    background: #ffffff;
    color: #333;
    line-height: 1.6;
}

/* ================= HEADER ================= */
/* ================= HEADER ================= */
.header {
    background: #048149;
    padding: 15px 0;
    position: relative;
    z-index: 1000;
}


.header .container {
    max-width: 1200px;
    margin: auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header .logo h2 {
    color: white;
}

.header nav ul {
    list-style: none;
    display: flex;
    gap: 25px;
}

.header nav ul li > a {
    display: inline-flex;
    align-items: center;
    gap: 6px;

    height: 44px;        /* 🔑 KUNCI UTAMA */
    padding: 0 6px;      /* vertikal dikunci oleh height */

    color: white;
    text-decoration: none;
    font-weight: 500;
}
.header nav ul li > a i {
    font-size: 12px;
    margin-top: 1px; /* fine tuning */
}


.header nav ul li a:hover {
    color: #feca57;
}
.header .logo {
    display: flex;
    align-items: center;
    gap: 5px;

}

.header .logo img {
    height: 45px;
    width: auto;
    display: block;
}

/* TOGGLE NAV MOBILE */
.nav-toggle {
    display: none;
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
}

.nav-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    border-radius: 999px;
    background: #ffffff;
}
/* ================= NAV MENU ================= */
.header nav > ul.nav-menu {
    display: flex;
    gap: 25px;
}

/* setiap li jadi patokan posisi */
.nav-menu > li {
    position: relative;
}
.dropdown-menu {
    position: absolute;
    top: calc(100% + 4px);

    min-width: 80px;
    background: #045c2d;
    border-radius: 14px;

    list-style: none;
    padding: 4px 0px;

    display: flex;
    flex-direction: column;
    z-index: 2000;

    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);

    transition: opacity 0.25s ease, transform 0.25s ease;
    
}



/* dropdown normal (About Us) → tengah */
.dropdown:not(.dropdown-right) .dropdown-menu {
    left: 50%;
    margin-left: -100px; /* SETENGAH dari min-width */
}

/* dropdown kanan (PPDB) → rata kanan */
.dropdown-right .dropdown-menu {
    right: 0;
    left: auto;
}
.dropdown-menu li {
    margin: 0;
    padding: 0;
    line-height: 1;
}


/* item dropdown */
.dropdown-menu li a {
    display: block;
    padding: 4px 12px;
    font-size: 14px;
    color: #fff;
    white-space: nowrap;
    text-decoration: none;
     line-height: 1.2;
}


/* aktif via JS */
.dropdown.active .dropdown-menu {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

/* ================= NAV RESPONSIVE ================= */
@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .header .container {
        align-items: center;
    }

    .header .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #048149;
        padding: 10px 20px 10px; /* kurangin padding atas & bawah biar panel lebih pendek */
        display: none;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
        border-radius: 0 0 18px 18px;
    }

    .header.nav-open .main-nav {
        display: block;
    }

    .header nav > ul.nav-menu {
        flex-direction: column;
        gap: 0; /* tumpuk rapat, jarak diatur lewat padding/border */
    }

    /* item utama di mobile */
    .header nav ul li > a {
        height: auto;
        padding: 8px 0; /* sedikit lebih kecil supaya jarak antar menu mengecil */
        justify-content: space-between;
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.12);
        font-size: 15px;
    }

    /* hilangkan garis & padding ekstra di item terakhir (PPDB) supaya tidak terlalu jauh ke bawah */
    .header nav > ul.nav-menu > li:last-child > a {
        border-bottom: none;
        padding-bottom: 4px;
    }

    .dropdown-menu {
        position: static;
        margin-left: 0;
        margin-right: 0;
        margin-top: 0;
        top: auto;
        min-width: auto;
        background: rgba(0, 0, 0, 0.03);
        border-radius: 0;
        padding: 2px 16px 4px 16px; /* padding kiri/kanan cukup biar teks ga terpotong */
        transform: none;
        opacity: 0;
        pointer-events: none;
        display: none;
        list-style: none;
    }

    .dropdown.active .dropdown-menu {
        display: block;
        opacity: 1;
        pointer-events: auto;
    }

    /* submenu item: agak ke tengah & teks jelas terbaca */
    .dropdown-menu li a,
    .dropdown-menu .dropdown-item {
        padding: 6px 12px;
        font-size: 14px;
        text-align: center;
        opacity: 0.95;
        display: block;
    }
}



/* ================= HERO ================= */
.hero {
    height: 430px;
    background:
        
        url("/images/utama.png") center / cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    position: relative;
}

.hero h1 {
    font-size: 48px;
    text-align: center;
    text-shadow: 0 4px 10px rgba(0,0,0,.5);
}
.btn-daftar {
    display: inline-block;
    position: absolute;
    right: 80px;
    bottom: 80px;
    padding: 5px 16px;
    background: linear-gradient(135deg, #facc15, #f59e0b);
    color: #075928;

    font-weight: 700;
    font-size: 20px;
    letter-spacing: 1px;

    border-radius: 999px;
    text-decoration: none;

    box-shadow: 0 8px 20px rgba(0,0,0,0.25);
    transition: all 0.3s ease;
}

.btn-daftar:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.35);
    background: linear-gradient(135deg, #fde047, #fbbf24);
}

@media (max-width: 768px) {
    .hero {
        height: 420px;
        align-items: flex-end;
        justify-content: center;
        padding-bottom: 80px;
        text-align: center;
    }

    .hero h1 {
        font-size: 26px;
        padding: 0 16px;
    }

    .btn-daftar {
        left: 50%;
        right: auto;
        bottom: 48px;
        transform: translateX(-50%);
        font-size: 16px;
        padding: 8px 24px;
    }
}

/* ================= VISI MISI ================= */
.visi-section {
    padding: 0px 0px;
    background: #ffffff;
}

.visi-container {
    max-width: 1200px;
    margin: auto;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    grid-template-areas: "image text";
    gap: 40px;
    align-items: center;
}
.visi-badge {
    display: inline-block;
    background: linear-gradient(
        145deg,
        #edfe57,
        #037b29
    );
    color: #ffffff;
    padding: 6px 18px;
    border-radius: 999px;
    font-size: 2opx;
    font-weight: 500;
    margin-bottom: 12px;
    transition: 
        transform 0.3s ease,
        box-shadow 0.3s ease;
}
/* HOVER EFFECT */
.visi-badge:hover {
    transform: translateY(-3px) scale(1.05) rotate(-1deg);
    box-shadow: 0 8px 18px rgba(10, 143, 99, 0.35);
}

.visi-image {
    grid-area: image;
}

.visi-text {
    padding: 30px;
    border-radius: 20px;

    background-image:
        linear-gradient(rgba(0,0,0,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,0,0,0.04) 1px, transparent 1px);
    background-size: 24px 24px;
}

.visi-box {
    background: #ffffff;
    padding: 26px;
    border-radius: 16px;
    margin-bottom: 24px;

    
}

.visi-text h2 {
    color: #048149;
    margin-bottom: 10px;
}

.visi-text p,
.visi-text ul li {
    color: #444;
    text-align: justify;
}

.visi-text ul {
    padding-left: 20px;
}

.visi-image img {
    width: 100%;
    max-height: 380px;
    object-fit: cover;
    border-radius: 18px;
   
}
/* ================= PROGRAM UNGGULAN ================= */
.program-unggulan {
    padding: 80px 20px;
    background: #fff;
    text-align: center;
}

.program-unggulan h2 {
    font-size: 36px;
    color: #1e8a62;
    margin-bottom: 10px;
}

.program-unggulan .subtitle {
    color: #000000;
    margin-bottom: 50px;
}

.program-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 260px));
    gap: 32px;

    max-width: 1200px;
    margin: 0 auto;

    justify-content: center; /* 🔥 CENTER ISI GRID */
}



.program-card {
    width: 200px;          /* 🔥 KUNCI LEBAR */
    min-height: 20px;     /* 🔥 SERAGAM */
    padding: 25px 15px;

    border-radius: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    background: linear-gradient(
        145deg,
        #fefc57,
        #037b29
    );

    transition: 0.3s;
}


.program-card img {
    width: 130px;   /* ⬅️ turunin dikit dari 150 */
    margin-bottom: 12px;
}



/* WARNA */
.program-card {
    background: linear-gradient(
        145deg,
        #fefc57,
        #037b29
    );
}


.program-card:hover {
    transform: translateY(-8px);
}

@media (max-width: 992px) {
    .program-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .program-grid {
        grid-template-columns: 1fr;
    }
}


/* ================= INFO SECTION ================= */
.school-info {
    background:  #0f4328;
    padding: 60px 40px 40px;
}

.info-container {
    max-width: 1200px;
    margin: auto;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 40px;
}

.brand-header {
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand-header img {
    height: 50px;
}
.info-brand {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.info-actions {
    display: flex;
    gap: 40px;              /* jarak antar icon */
    margin-top: 20px;
}

.info-actions a {
    display: flex;
    flex-direction: column; /* icon di atas, teks di bawah */
    align-items: center;    /* CENTER 🔥 */
    text-align: center;
    text-decoration: none;
    color: #ffffff;
}

.info-actions img {
    width: 80px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.info-actions img:hover {
    transform: scale(1.15);
}

.info-actions h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 500;
}
.info-contact p,
.info-contact h4,
.info-map h4 {
    color: #ffffff;
}

.school-info p {
    font-size: 14px;
    line-height: 1.7;
    color: #ffffff;
}

.info-map iframe {
    width: 100%;
    height: 160px;
    border-radius: 12px;
    border: none;
}


/* ================= FOOTER ================= */
/* ================= FOOTER ================= */
.footer-bottom {
    background: #015c2d;
    padding: 16px 40px;
}

.footer-content {
    max-width: 1200px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
    font-size: 14px;
}

.footer-social {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-social a {
    color: white;
    font-size: 18px;
    transition: 0.3s;
}

.footer-social a:hover {
    color: #feca57;
}

@media (max-width: 768px) {
    .info-container {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        gap: 10px;
    }
}

/* ================= ABOUT PAGE ================= */

.about-wrapper {
    max-width: 1200px;
    margin: auto;
    padding: 60px 40px;
}

/* MENU ABOUT */
.about-menu {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 50px;
    border-bottom: 2px solid #e5e5e5;
    padding-bottom: 20px;
}

.about-menu a {
    text-decoration: none;
    color: #048149;
    font-weight: 500;
    padding: 8px 14px;
    border-radius: 6px;
    transition: 0.3s;
}

.about-menu a:hover {
    background: #048149;
    color: white;
}

/* SECTION UMUM */
.about-section {
    margin-bottom: 70px;
}

.about-section h2 {
    color: #048149;
    margin-bottom: 15px;
    font-size: 28px;
}

.about-section p {
    line-height: 1.8;
    color: #555;
}

/* TWO COLUMN */
.two-column {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    align-items: center;
}

.two-column img {
    width: 100%;
    border-radius: 18px;
    box-shadow: 0 8px 20px rgba(0,0,0,.08);
}

/* ================= RESPONSIVE ================= */
@media (max-width: 768px) {
    .about-wrapper {
        padding: 40px 20px;
    }

    .about-menu {
        justify-content: center;
    }

    .two-column {
        grid-template-columns: 1fr;
        text-align: center;
    }
}
