/* ================= GLOBAL ================= */
*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

body{
    font-family: 'Segoe UI', sans-serif;
    background:#f4f6fb;
    padding-top: 50px; /* 🔥 FIX NAVBAR TIDAK MENUTUPI CONTENT */
}

/* ================= NAVBAR ================= */
.navbar{
    width:100%;
    height:80px;
    background:#ffffff;
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:15px 60px;
    box-shadow:0 2px 10px rgba(0,0,0,0.08);
    position:fixed;
    top:0;
    left:0;
    z-index:999;
}

/* ================= LOGO ================= */
.logo{
    display:flex;
    align-items:center;
    gap:12px;
}

.logo img{
    width:55px;
    height:55px;
    object-fit:cover;
}

.logo h2{
    font-size:22px;
    color:#0d2c91;
    font-weight:800;
}

/* ================= MENU ================= */
.menu{
    display:flex;
    gap:25px;
    align-items:center;
}

.menu a{
    text-decoration:none;
    color:#0d2c91;
    font-weight:600;
    transition:0.3s;
}

.menu a:hover{
    color:#ff9800;
}

/* ================= BUTTON ================= */
.btn-login{
    background:#0d2c91;
    color:#fff !important;
    padding:8px 16px;
    border-radius:8px;
}

.btn-login:hover{
    background:#081c66;
}

.btn-daftar{
    background:#ff9800;
    color:#fff !important;
    padding:8px 16px;
    border-radius:8px;
}

.btn-daftar:hover{
    background:#e68900;
}

/* ================= DROPDOWN ================= */
.dropdown{
    position:relative;
}

.dropdown-content{
    display:none;
    position:absolute;
    top:100%;
    left:0;
    background:#fff;
    min-width:180px;
    box-shadow:0 8px 20px rgba(0,0,0,0.15);
    border-radius:8px;
    overflow:hidden;
    z-index:1000;
}

.dropdown-content a{
    display:block;
    padding:10px 15px;
    color:#0d2c91;
}

.dropdown-content a:hover{
    background:#f0f4ff;
    color:#ff9800;
}

.dropdown:hover .dropdown-content{
    display:block;
}

/* ================= HERO ESKUL ================= */
.hero-ekskul{
    max-width:1100px;
    margin:40px auto;
    border-radius:20px;
    overflow:hidden;
    background:#fff;
    box-shadow:0 15px 40px rgba(0,0,0,0.1);
}

.hero-img{
    width:100%;
    height:350px;
    object-fit:cover;
    transition:0.5s;
}

.hero-ekskul:hover .hero-img{
    transform:scale(1.05);
}

.hero-content{
    padding:40px 30px;
    text-align:justify;
     color:#444;
}

.hero-content h1{
    font-size:34px;
    color:#0d2c91;
    margin-bottom:20px;
    text-align:center;
}

.hero-content p,
.card-body p{
    line-height:1.8;
    white-space:pre-line; /* 🔥 jarak antar paragraf */
    white-space:pre-line; /* 🔥 alternatif kalau tanpa nl2br */
}

/* ================= SECTION ================= */
.section-ekskul{
    padding:40px 20px;
    text-align:center;
}

.section-ekskul h2{
    font-size:30px;
    color:#0d2c91;
    margin-bottom:30px;
}

/* ================= CARD ================= */
.container-ekskul{
    display:grid;
    grid-template-columns:repeat(auto-fit, minmax(250px,1fr));
    gap:25px;
    max-width:1100px;
    margin:auto;
}

.card-ekskul{
    background:#fff;
    border-radius:18px;
    overflow:hidden;
    box-shadow:0 10px 25px rgba(0,0,0,0.08);
    transition:0.3s;
}

.card-ekskul:hover{
    transform:translateY(-8px);
}

.foto{
    width:100%;
    height:180px;
    object-fit:cover;
}

.card-body{
    padding:20px;
}

.card-body h3{
    color:#0d2c91;
    margin-bottom:10px;
}

.card-body p{
    font-size:14px;
    color:#666;
    margin-bottom:15px;
}

/* ================= BUTTON ================= */
.btn-group{
    display:flex;
    gap:10px;
    justify-content:center;
}

.btn{
    text-decoration:none;
    padding:8px 14px;
    border-radius:8px;
    font-size:14px;
    transition:0.3s;
}

.btn-info{
    background:#0d2c91;
    color:white;
}

.btn-info:hover{
    background:#091f6a;
}

.btn-primary{
    background:#ff9800;
    color:white;
}

.btn-primary:hover{
    background:#e68900;
}

/* ================= RESPONSIVE ================= */
@media(max-width:768px){

    body{
        padding-top:120px; /* 🔥 penting untuk navbar 2 baris di HP */
    }

    .navbar{
        flex-direction:column;
        height:auto;
        padding:15px;
        gap:10px;
    }

    .menu{
        flex-wrap:wrap;
        justify-content:center;
        gap:15px;
    }

    .hero-img{
        height:250px;
    }

    .hero-content h1{
        font-size:24px;
    }
}

/* ================= FOOTER ================= */
.footer{
    background:#0d2c91;
    color:white;
    padding:50px 60px 20px;
}

.footer-container{
    display:flex;
    justify-content:space-between;
    flex-wrap:wrap;
    gap:20px;
}

.footer a{
    color:#ddd;
    text-decoration:none;
    display:block;
    margin-bottom:8px;
}

.footer a:hover{
    color:#ff9800;
}

.footer-bottom{
    text-align:center;
    margin-top:30px;
    border-top:1px solid rgba(255,255,255,0.2);
    padding-top:10px;
}

/* ================= RESPONSIVE ================= */
@media(max-width:768px){

    body{
        padding-top: 120px; /* navbar turun di mobile */
    }

    .navbar{
        flex-direction:column;
        height:auto;
        padding:15px;
        gap:10px;
    }

    .menu{
        flex-wrap:wrap;
        justify-content:center;
        gap:15px;
    }

    .overlay-text h2{
        font-size:30px;
    }
}

