html{
    scroll-behavior:smooth;
    height:100%;
}

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:'Segoe UI',sans-serif;
}

body{
    min-height:100vh;
    display:flex;
    flex-direction:column;
    color:white;
    background:
    linear-gradient(rgba(0,0,0,0.55),rgba(0,0,0,0.55)),
    url("BG_KataKita.png") center center / cover no-repeat fixed;
}

/* ================= NAVBAR ================= */

.top-bar{
    display:flex;
    justify-content:space-between;
    align-items:flex-start;
    padding:30px 80px;
    gap:30px;
    flex-wrap:wrap;
}

.logo-title{
    font-size:60px;
    font-weight:800;
}

.nav-wrapper{
    background:#2e7d32;
    padding:12px 30px;
    border-radius:50px;
    margin-top:55px;
    display:flex;
    align-items:center;
}

.hero-nav{
    display:flex;
    gap:25px;
    flex-wrap:wrap;
}

.hero-nav a{
    color:white;
    text-decoration:none;
    font-weight:600;
    padding:6px 12px;
    border-radius:20px;
    transition:.3s;
}

.hero-nav a:hover,
.hero-nav a.active{
    background:#1b5e20;
}

/* ================= HERO ================= */

.hero,
.page{
    flex:1;
}

.hero{
    padding:0 80px;
}

.main-title{
    font-size:40px;
    font-weight:800;
}

.hero-subtitle{
    margin-top:10px;
    font-size:20px;
    font-weight:600;
}

/* ================= GRID UMUM ================= */

.info-grid{
    margin-top:30px;
    display:flex;
    flex-direction:column;
    gap:25px;
}

/* ================= CARD UMUM ================= */

.card{
    background:#dcefe3;
    color:#1b3a2f;
    padding:22px;
    border-radius:16px;
    opacity:0;
    transform:translateY(40px);
    transition:all .6s ease;
}

.card.show{
    opacity:1;
    transform:translateY(0);
}

/* ================= ACCORDION ================= */

summary{
    font-size:22px;
    font-weight:800;
    cursor:pointer;
}

summary::after{
    content:"+";
    float:right;
}

details[open] summary::after{
    content:"-";
}

.content{
    max-height:0;
    overflow:hidden;
    transition:max-height .5s ease;
}

details[open] .content{
    max-height:500px;
}

.content p{
    margin-top:12px;
    line-height:1.6;
}

/* ================= LAYANAN ================= */

.layanan-grid{
    margin-top:15px;
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:12px;
}

.layanan-item{
    background:#2e7d32;
    color:white;
    padding:12px;
    border-radius:10px;
    text-align:center;
    text-decoration:none;
    font-weight:600;
    transition:.3s;
}

.layanan-item:hover{
    background:#1b5e20;
    transform:scale(1.05);
}

/* ================= BUTTON ================= */

.contact-btns{
    margin-top:15px;
    display:flex;
    gap:12px;
    flex-wrap:wrap;
}

.wa-btn,
.email-btn{
    color:white;
    padding:10px 14px;
    border-radius:8px;
    text-decoration:none;
    font-weight:600;
}

.wa-btn{
    background:#25D366;
}

.email-btn{
    background:#1976d2;
}

/* ================= PAGE ================= */

.page{
    max-width:1100px;
    margin:40px auto;
    padding:0 20px;
    width:100%;
}

.page-card{
    background:rgba(255,255,255,.10);
    border:1px solid rgba(255,255,255,.18);
    backdrop-filter:blur(6px);
    -webkit-backdrop-filter:blur(6px);
    padding:25px;
    border-radius:12px;
}

/* card di halaman page */
.page .card{
    background:rgba(255,255,255,.10);
    border:1px solid rgba(255,255,255,.18);
    backdrop-filter:blur(6px);
    -webkit-backdrop-filter:blur(6px);
    color:white;
    padding:18px;
    border-radius:14px;
    opacity:1 !important;
    transform:none !important;
    width:100%;
    text-align:center;
}

.page h2{
    font-size:28px;
    font-weight:800;
    margin-bottom:15px;
}

/* ================= CTA ================= */

.cta,
.motivasi{
    margin:15px 0 25px;
    padding:18px;
    background:#dcefe3;
    color:#1b3a2f;
    border-radius:12px;
}

.motivasi{
    text-align:center;
}

.motivasi p{
    margin:5px 0;
    font-size:16px;
    font-weight:600;
    line-height:1.5;
}

/* ================= SUMBER BELAJAR ================= */

.page .sumber-grid{
    display:grid !important;
    grid-template-columns:repeat(4,1fr) !important;
    gap:20px !important;
}

.media-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:10px;
    margin-top:10px;
}

.media-grid.three{
    grid-template-columns:1fr 1fr 1fr;
}

.media-grid iframe,
.media-grid img{
    width:100%;
    border-radius:10px;
    display:block;
}

/* ================= PUSAT ASAH ================= */

.page .info-grid,
.page .pusat-grid{
    display:grid !important;
    grid-template-columns:repeat(4,1fr) !important;
    gap:20px !important;
    align-items:stretch;
}

.quiz-card{
    display:flex;
    align-items:center;
    justify-content:center;
    text-align:center;
    padding:20px;
    border-radius:14px;
    text-decoration:none;
    background:#dcefe3;
    border:1px solid rgba(27,58,47,.2);
    color:#1b3a2f;
    font-weight:600;
    transition:.3s;
}

.quiz-card:hover{
    transform:scale(1.05);
    background:#cfe8d8;
}

/* ================= FOOTER ================= */

footer{
    margin-top:auto;
    text-align:center;
    padding:15px 0;
    background:rgba(0,0,0,.45);
    color:white;
    font-size:14px;
    width:100%;
}

/* ================= RESPONSIVE ================= */

@media(max-width:1000px){

    .top-bar{
        padding:30px 40px;
    }

    .hero{
        padding:0 40px;
    }

    .page .sumber-grid,
    .page .info-grid,
    .page .pusat-grid{
        grid-template-columns:repeat(2,1fr) !important;
    }
}

@media(max-width:600px){

    .top-bar,
    .hero{
        padding:20px;
    }

    .logo-title{
        font-size:42px;
    }

    .main-title{
        font-size:32px;
    }

    .hero-subtitle{
        font-size:18px;
    }

    .nav-wrapper{
        width:100%;
        justify-content:center;
        margin-top:20px;
        border-radius:20px;
    }

    .hero-nav{
        justify-content:center;
        gap:10px;
    }

    .layanan-grid,
    .media-grid,
    .media-grid.three,
    .page .sumber-grid,
    .page .info-grid,
    .page .pusat-grid{
        grid-template-columns:1fr !important;
    }
}

.wiki-btn{
    margin-top: 25px;
}

.wiki-btn a{
    text-decoration: none;
    background: #2f8f2f;
    color: white;
    padding: 12px 28px;
    border-radius: 12px;
    font-size: 18px;
    font-weight: bold;
    transition: 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.wiki-btn a:hover{
    background: #256d25;
    transform: scale(1.05);
}