@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

:root{
    --bg:#f8fafc;
    --muted:#475569;
    --primary:#2563eb;
    --dark:#0f172a;
}

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}


html{
    scroll-behavior:smooth;
}


body{

    font-family:'Poppins',sans-serif;
    background:var(--bg);
    color:var(--muted);
    overflow-x:hidden;
    font-weight:400;
    letter-spacing:0.3px;
    line-height:1.6;

}

/* offset for fixed navbar */
main, body > .container, #home{
    padding-top:85px;
}


/* ================= NAVBAR ================= */


nav{

    position:fixed;
    top:0;
    left:0;

    width:100%;
    height:85px;

    padding:0 8%;

    display:flex;
    justify-content:space-between;
    align-items:center;

    z-index:9999;
    background:rgba(0,0,0,0.15);
    backdrop-filter:blur(8px);
    transition:background .28s ease, box-shadow .28s ease, height .28s ease, padding .28s ease;

}



nav.scrolled{
    background:white;
    box-shadow:0 10px 30px rgba(2,6,23,.12);
    height:72px;
    padding:0 6%;
}

nav.scrolled .logo{
    line-height:72px;
}

nav.scrolled ul a{
    height:72px;
    line-height:72px;
}


.logo{

    color:white;
    font-size:24px;
    font-weight:600;
    line-height:85px;
    margin:0;
    padding:0;
    display:flex;
    align-items:center;
    letter-spacing:-0.5px;

}



nav.scrolled .logo{

    color:#2563eb;

}



nav ul{

    display:flex;
    gap:30px;
    list-style:none;

}


nav ul a{

    text-decoration:none;
    color:white;
    font-weight:500;
    font-size:15px;
    display:flex;
    align-items:center;
    height:85px;
    padding:0 2px;
    line-height:85px;
    letter-spacing:-0.3px;

}

nav ul li{
    display:flex;
    align-items:center;
    height:85px;
}



nav ul a:hover{
    opacity:.9;
    transform:translateY(-1px);
    transition:all .18s ease;
}


nav.scrolled ul a{

    color:#334155;

}



.menu-toggle{

    display:none;
    color:white;
    font-size:28px;

}

.menu-toggle{
    background:transparent;
    border:none;
    cursor:pointer;
}

/* container utility */
.container{
    width:100%;
    max-width:1200px;
    margin:0 auto;
}






/* ================= HERO ================= */


#home{

    height:100vh;
    padding:0;

}



.carousel,
.carousel-inner,
.carousel-item{

    height:100%;

}


.carousel-item img{

    width:100vw;
    margin-left:calc(50% - 50vw);
    height:100vh;

    object-fit:cover;

    filter:brightness(55%);

}



.carousel-caption{

    position:absolute;

    top:50%;
    left:50%;

    transform:translate(-50%,-50%);


    width:90%;
    max-width:900px;
    text-align:center;
    padding:0 12px;

}



.carousel-caption h1{

    font-size:clamp(35px,6vw,70px);
    font-weight:600;
    line-height:1.1;
    color:#ffffff;
    letter-spacing:-1px;

}


.carousel-caption p{

    font-size:20px;
    font-weight:400;

    color:rgba(255,255,255,.95);
    letter-spacing:0.2px;
    line-height:1.5;

}



.carousel-caption a{

    display:inline-block;

    margin-top:25px;

    padding:14px 40px;

    background:#2563eb;

    color:white;

    border-radius:50px;

    text-decoration:none;
    font-weight:500;
    font-size:15px;
    letter-spacing:0.3px;
    transition:all .24s ease;

}

.carousel-caption a:hover{
    background:#1d4ed8;
    transform:translateY(-2px);
    transition:all .16s ease;
}







/* ================= SECTION ================= */


section{

    padding:90px 8%;

}

section p{

    max-width:860px;

    margin:0 auto;

    line-height:1.6;

    color:rgba(15,23,42,.75);

}


/* khusus teks section biasa */

#tentang p,
#kontak p{

    text-align:center;

}



h2{

    text-align:center;

    font-size:36px;
    font-weight:500;
    letter-spacing:-0.5px;

    color:#0f172a;

    margin-bottom:50px;
    line-height:1.2;

}







/* ================= JADWAL ================= */


#jadwal{

    background:#eef4ff;

}



.kalender-wrapper{

    display:flex;

    gap:40px;

    justify-content:center;

    align-items:flex-start;

}



.kalender-box{

    width:330px;

    background:white;

    padding:25px;

    border-radius:25px;

    box-shadow:0 20px 40px rgba(0,0,0,.12);

}




.navigator{

    display:flex;

    justify-content:space-between;

    align-items:center;

}


.navigator button{

    width:40px;
    height:40px;

    border:none;

    border-radius:50%;

    background:#2563eb;

    color:white;
    cursor:pointer;
    font-size:18px;
    font-weight:300;
    transition:all .2s ease;

}

.navigator button:hover{
    background:#1d4ed8;
    transform:scale(1.05);
}




.hari,
.tanggal-grid{

    display:grid;

    grid-template-columns:repeat(7,1fr);

    gap:8px;

    margin-top:20px;

}




.tanggal{

    height:42px;

    background:#f1f5f9;

    border-radius:10px;

    display:flex;

    justify-content:center;

    align-items:center;
    font-size:14px;
    font-weight:500;
    cursor:pointer;
    transition:all .16s ease;
    border:1px solid transparent;

}



.tanggal:hover{

    background:#2563eb;

    color:white;
    border-color:#2563eb;

}






/* ================= DETAIL KHOTIB ================= */

.detail-container{
    display:none;
    flex:1;
}

.kalender-wrapper.aktif .detail-container{
    display:block;
}

.tanggal-detail{
    display:none;
    grid-template-columns:repeat(4,1fr);
    gap:12px;
}

.detail-card{

    background:#fff;

    border-radius:14px;

    padding:10px;

    height:90px;

    display:flex;

    align-items:center;

    gap:10px;

    position:relative;

    box-shadow:0 5px 12px rgba(0,0,0,.08);

}

.detail-card:hover{

    transform:translateY(-2px);

}

.detail-card img{

    width:45px;

    height:45px;

    border-radius:8px;

    object-fit:cover;

    flex-shrink:0;

}

.detail-info{

    text-align:left;

}

.detail-info h4{

    font-size:11px;

    font-weight:700;

    color:#2563eb;

    line-height:1.3;

    margin-bottom:3px;

}

.detail-info p{

    font-size:10px;

    color:#475569;

    margin-bottom:2px;

    text-align:left;

}

.detail-info span{

    font-size:9px;

    color:#94a3b8;

}

.angka{

    position:absolute;

    top:8px;

    left:8px;

    width:24px;

    height:24px;

    border-radius:50%;

    background:#2563eb;

    color:white;

    font-size:13px;

    font-weight:bold;

    display:flex;

    justify-content:center;

    align-items:center;

}

/* ================= KEGIATAN ================= */

#kegiatan{
    background:#f0f9ff;
}

#kegiatan .cards{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:28px;
}

#kegiatan .card{
    background:white;
    padding:30px 24px;
    border-radius:16px;
    box-shadow:0 8px 24px rgba(37,99,235,.08);
    border-left:4px solid var(--primary);
    text-align:center;
    transition:transform .2s ease, box-shadow .2s ease;
}

#kegiatan .card:hover{
    transform:translateY(-8px);
    box-shadow:0 12px 32px rgba(37,99,235,.15);
}

#kegiatan .card h3{
    color:var(--primary);
    font-size:20px;
    font-weight:600;
    margin-bottom:12px;
    margin-top:0;
    letter-spacing:-0.3px;
}

#kegiatan .card p{
    color:rgba(15,23,42,.7);
    font-size:14px;
    line-height:1.6;
    margin:0;
}


.cards{

    display:grid;

    grid-template-columns:repeat(3,1fr);

    gap:30px;

}


.card{

    padding:28px;

    border-radius:18px;

    box-shadow:0 8px 24px rgba(2,6,23,.06);
    border:1px solid rgba(2,6,23,.04);

}



.card img{

    width:100%;

    height:240px;

    object-fit:cover;

    border-radius:14px;

}







/* ================= FOOTER ================= */


footer{

    background:#0f172a;

    color:white;

    text-align:center;

    padding:50px 8%;

}

.footer-content{
    max-width:1000px;
    margin:0 auto;
}

.footer-content h2{
    font-size:20px;
    font-weight:500;
    margin-bottom:12px;
    letter-spacing:-0.3px;
}

.footer-line{
    height:1px;
    background:rgba(255,255,255,.08);
    margin:18px auto;
    width:60%;
}

.kalender-box{
    max-width:360px;
    margin:0 auto;
}

.navigator h3{
    font-size:18px;
    font-weight:600;
    color:var(--dark);
    margin:0 12px;
    letter-spacing:-0.3px;
}

.detail-card img{border-radius:12px}

.kembali{
    background:transparent;
    border:1px solid rgba(15,23,42,.08);
    padding:8px 12px;
    border-radius:8px;
    cursor:pointer;
    color:var(--dark);
    font-weight:500;
    font-size:14px;
    transition:all .2s ease;
    margin-bottom:18px;
}

.card h3{
    font-size:18px;
    font-weight:600;
    margin-top:14px;
    color:var(--dark);
    letter-spacing:-0.2px;
}

.card p{color:rgba(15,23,42,.7);line-height:1.5}

.card{transition:transform .18s ease, box-shadow .18s ease}
.card:hover{transform:translateY(-6px);box-shadow:0 25px 50px rgba(2,6,23,.08)}









/* TABLET */


@media(max-width:1100px){


.kalender-wrapper{

    flex-direction:column;

    align-items:center;

}


.tanggal-detail{

    grid-template-columns:repeat(2,1fr);

}


.cards{

    grid-template-columns:repeat(2,1fr);

}


}









/* HP */


@media(max-width:700px){



nav{

    padding:0 25px;

}



.menu-toggle{

    display:block;

}



nav ul{

    display:none;

    position:absolute;

    top:85px;

    left:0;

    width:100%;

    background:white;

    flex-direction:column;

    text-align:center;

    padding:25px;

}


nav ul.aktif{

    display:flex;

}



nav ul a{

    color:#334155!important;

}



section{

    padding:60px 5%;

}



.carousel-caption h1{

    font-size:32px;

}


.carousel-caption p{

    font-size:14px;

}



.kalender-box{

    width:100%;

}



.tanggal-detail{
    grid-template-columns:repeat(2,1fr);
}

.detail-card{
    min-height:120px;
}

.detail-info h4{
    font-size:12px;
}

.detail-info p{
    font-size:11px;
}

.detail-info span{
    font-size:10px;
}

.cards{

    grid-template-columns:1fr;

}

#kegiatan .cards{
    grid-template-columns:1fr;
}



.detail-card{

    min-height:110px;

}



}

@media(max-width:480px){

    /* reduce top offset for small phones */
    main, body > .container, #home{
        padding-top:72px;
    }

    .carousel-caption h1{
        font-size:28px;
    }

    nav.scrolled{
        height:64px;
        padding:0 18px;
    }

}
/* =====================================
   TANGGAL KHUSUS HARI JUMAT
===================================== */


.tanggal.jumat{

    background:#2563eb;

    color:white;

    font-weight:700;

    border:1px solid #2563eb;

}



.tanggal.jumat:hover{

    background:#1d4ed8;

    color:white;

    transform:scale(1.05);

}
.detail-container h3{
    font-size:26px;
    font-weight:600;
    color:#334155;
    margin-bottom:25px;
}