*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
    margin:0;
    background:var(--page-bg,#f5f8f6);
    color:#183027;
    font-family:Inter,"Segoe UI",Roboto,Arial,sans-serif;
    line-height:1.6;
    -webkit-font-smoothing:antialiased;
}
a{color:inherit}
img{max-width:100%}
:root{
    --kkm-green:#078c4c;
    --kkm-green-dark:#075d37;
    --kkm-green-soft:#e8f7ef;
    --kkm-navy:#16362d;
    --kkm-text:#253d35;
    --kkm-muted:#687972;
    --kkm-blue:#0f78d4;
    --kkm-border:#e4ece7;
}

/* ===== HEADER ===== */
.site-header{
    background:rgba(255,255,255,.96);
    position:relative;
    z-index:30;
    box-shadow:0 7px 26px rgba(25,65,49,.07);
}
.header-container{
    width:min(1450px,calc(100% - 80px));
    margin:0 auto;
}
.top-utility-bar{
    min-height:38px;
    background:linear-gradient(90deg,#147fd6 0%,#0272cc 100%);
    color:#fff;
}
.utility-inner{
    min-height:38px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:20px;
}
.utility-date{
    display:flex;
    align-items:center;
    gap:9px;
    font-size:14px;
    font-weight:600;
    letter-spacing:.1px;
}
.utility-date i{font-size:15px}
.social-top{
    display:flex;
    align-items:center;
    gap:14px;
}
.social-icon{
    width:20px;
    height:20px;
    display:grid;
    place-items:center;
    text-decoration:none;
    transition:transform .18s ease,opacity .18s ease;
}
.social-icon img{
    width:18px;
    height:18px;
    display:block;
    object-fit:contain;
}
.social-icon:hover{transform:translateY(-1px) scale(1.08);opacity:.9}

.header-main{
    background:rgba(255,255,255,.94);
    backdrop-filter:blur(12px);
}
.nav-shell{
    min-height:86px;
    display:flex;
    align-items:center;
    gap:28px;
}
.brand{
    flex:0 0 auto;
    min-width:275px;
    display:flex;
    align-items:center;
    gap:12px;
    text-decoration:none;
    background:transparent!important;
}
.brand img{
    width:56px;
    height:56px;
    object-fit:contain;
    display:block;
    background:transparent!important;
    mix-blend-mode:normal;
}
.brand-copy{display:flex;flex-direction:column;line-height:1.03}
.brand-copy strong{
    color:#07863f;
    font-size:25px;
    font-weight:850;
    letter-spacing:.2px;
}
.brand-copy small{
    margin-top:4px;
    color:#1f4f3e;
    font-size:11px;
    font-weight:800;
    letter-spacing:.8px;
}
.main-nav{
    margin-left:auto;
    display:flex;
    align-items:center;
    justify-content:flex-end;
    gap:clamp(10px,1.25vw,20px);
    min-width:0;
}
.main-nav>a{
    min-height:46px;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    position:relative;
    color:#1c3b32;
    text-decoration:none;
    font-size:13px;
    font-weight:700;
    white-space:nowrap;
    transition:color .2s ease;
}
.main-nav>a i{font-size:15px;color:#32564b}
.main-nav>a:not(.login-link):not(.nav-search)::after{
    content:"";
    position:absolute;
    left:50%;
    right:50%;
    bottom:3px;
    height:2px;
    border-radius:10px;
    background:var(--kkm-green);
    transition:left .2s ease,right .2s ease;
}
.main-nav>a:hover,.main-nav>a.active{color:var(--kkm-green)}
.main-nav>a:hover i,.main-nav>a.active i{color:var(--kkm-green)}
.main-nav>a:hover::after,.main-nav>a.active::after{left:0;right:0}
.main-nav .nav-search{
    width:42px;
    min-height:42px;
    border-radius:50%;
    padding:0;
}
.main-nav .nav-search:hover{background:#f1f7f4}
.main-nav .login-link{
    min-height:34px;
    padding:0 11px;
    border-radius:8px;
    color:#fff;
    background:linear-gradient(135deg,#0a934f,#05763e);
    box-shadow:0 6px 14px rgba(6,124,66,.16);
    font-size:12px;
}
.main-nav .login-link i{color:#fff;font-size:14px}
.main-nav .login-link:hover{
    color:#fff;
    transform:translateY(-1px);
    box-shadow:0 8px 18px rgba(6,124,66,.24);
}
.nav-toggle{
    display:none;
    margin-left:auto;
    width:44px;
    height:44px;
    border:0;
    border-radius:10px;
    background:#edf7f1;
    color:#077541;
    font-size:26px;
    line-height:1;
}

/* ===== MAIN LAYOUT ===== */
.page-shell{
    width:min(1450px,calc(100% - 80px));
    margin:0 auto;
    padding:24px 0 52px;
}

/* ===== HOMEPAGE SLIDER ===== */
.article-slider-wrap{margin:0 0 27px}
#articleCarousel{
    overflow:hidden;
    border-radius:18px;
    background:#153329;
    box-shadow:0 14px 38px rgba(27,72,53,.13);
}
.slider-link{
    display:block;
    position:relative;
    color:inherit;
    text-decoration:none;
}
.slider-image{
    width:100%;
    height:clamp(260px,19.2vw,340px);
    display:block;
    object-fit:cover;
    object-position:center;
}
.slider-shade{
    position:absolute;
    inset:0;
    background:linear-gradient(90deg,rgba(10,41,29,.10) 0%,rgba(10,41,29,.02) 60%,rgba(10,41,29,.12) 100%);
}
.slider-caption{
    left:5.3%;
    right:auto;
    bottom:15%;
    width:min(520px,42%);
    padding:0;
    z-index:3;
}
.slider-caption p{
    margin:0;
    padding:24px 30px;
    border-radius:17px;
    background:rgba(255,255,255,.94);
    color:#17382e;
    font-size:clamp(17px,1.35vw,21px);
    line-height:1.55;
    font-weight:650;
    text-shadow:none;
    box-shadow:0 12px 30px rgba(13,54,39,.13);
    display:-webkit-box;
    -webkit-line-clamp:3;
    -webkit-box-orient:vertical;
    overflow:hidden;
    backdrop-filter:blur(9px);
}
.custom-carousel-control{
    width:7%;
    opacity:1;
}
.slider-arrow{
    width:50px;
    height:50px;
    display:grid;
    place-items:center;
    border-radius:50%;
    background:rgba(255,255,255,.96);
    color:#078c4c;
    font-size:24px;
    box-shadow:0 8px 22px rgba(12,54,38,.18);
    transition:transform .18s ease,background .18s ease;
}
.custom-carousel-control:hover .slider-arrow{transform:scale(1.05);background:#fff}

/* ===== SECTION HEADING ===== */
.section-title{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:20px;
    margin:24px 0 18px;
}
.section-title h1,.section-title h2{margin:0}
.latest-title{align-items:center;margin-top:8px;margin-bottom:22px}
.latest-heading-wrap{
    position:relative;
    padding-left:23px;
}
.latest-heading-wrap::before{
    content:"";
    position:absolute;
    left:0;
    top:2px;
    bottom:1px;
    width:7px;
    border-radius:8px;
    background:var(--kkm-green);
}
.section-kicker{
    display:block;
    margin-bottom:3px;
    color:#078747;
    font-size:13px;
    font-weight:850;
    letter-spacing:.85px;
}
.latest-title h2{
    color:#14372d;
    font-size:clamp(30px,3vw,40px);
    line-height:1.05;
    font-weight:850;
    letter-spacing:-.7px;
}
.all-activities-link{
    display:inline-flex;
    align-items:center;
    gap:8px;
    padding:12px 18px;
    border-radius:12px;
    background:#e3f5eb;
    color:#087541;
    text-decoration:none;
    font-size:14px;
    font-weight:800;
    transition:.2s;
}
.all-activities-link:hover{background:#d4efdf;color:#065e34;transform:translateY(-1px)}
.article-page-heading{margin-top:3px}
.article-page-heading h1{
    color:#14372d;
    font-size:clamp(30px,4vw,44px);
    font-weight:850;
    letter-spacing:-.6px;
}

/* ===== ARTICLE CARDS ===== */
.article-grid{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:32px;
    align-items:stretch;
}
.article-card{
    min-width:0;
    overflow:hidden;
    display:flex;
    flex-direction:column;
    background:#fff;
    border:1px solid var(--kkm-border);
    border-radius:17px;
    box-shadow:0 8px 25px rgba(27,67,51,.075);
    transition:transform .22s ease,box-shadow .22s ease;
}
.article-card:hover{
    transform:translateY(-4px);
    box-shadow:0 16px 34px rgba(27,67,51,.13);
}
.article-card-image-wrap{
    position:relative;
    display:block;
    overflow:hidden;
    background:#e8efeb;
    text-decoration:none;
}
.article-card-image{
    width:100%;
    height:225px;
    display:block;
    object-fit:cover;
    transition:transform .35s ease;
}
.article-card:hover .article-card-image{transform:scale(1.028)}
.article-date-badge{
    position:absolute;
    left:18px;
    bottom:16px;
    display:inline-flex;
    align-items:center;
    gap:7px;
    padding:7px 11px;
    border-radius:8px;
    background:rgba(3,78,43,.91);
    color:#fff;
    font-size:12px;
    font-weight:800;
    line-height:1;
    box-shadow:0 3px 10px rgba(0,0,0,.18);
}
.article-card-body{
    flex:1;
    display:flex;
    flex-direction:column;
    padding:20px 22px 19px;
}
.article-card h3{
    margin:0 0 10px;
    display:flex;
    align-items:flex-start;
    gap:10px;
    color:#18382f;
    font-size:18px;
    line-height:1.35;
    font-weight:800;
    min-height:49px;
}
.article-card h3 a{
    min-width:0;
    text-decoration:none;
    display:-webkit-box;
    -webkit-line-clamp:2;
    -webkit-box-orient:vertical;
    overflow:hidden;
}
.article-card h3 a:hover{color:#078b4b}
.title-dot{
    width:10px;
    height:10px;
    margin-top:7px;
    flex:0 0 auto;
    border-radius:50%;
    background:#0aa85a;
}
.article-meta{font-size:12px;color:#74827c;margin-bottom:8px}
.article-excerpt{
    margin:0;
    color:#66756f;
    font-size:15.5px;
    line-height:1.65;
    display:-webkit-box;
    -webkit-line-clamp:3;
    -webkit-box-orient:vertical;
    overflow:hidden;
    min-height:77px;
}
.article-card-actions{
    margin-top:auto;
    padding-top:21px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:14px;
}
.article-readmore{
    color:#078844;
    text-decoration:none;
    font-size:14px;
    font-weight:850;
}
.article-readmore:hover{text-decoration:underline}
.article-arrow{
    width:40px;
    height:40px;
    flex:0 0 auto;
    display:grid;
    place-items:center;
    border-radius:50%;
    background:#e3f7ec;
    color:#078b49;
    text-decoration:none;
    font-size:18px;
    transition:.2s;
}
.article-arrow:hover{background:#078b49;color:#fff;transform:translateX(2px)}

/* ===== ARTICLE DETAIL ===== */
.article-detail{
    max-width:1120px;
    margin:8px auto 0;
    padding:clamp(22px,4vw,46px);
    background:#fff;
    border:1px solid var(--kkm-border);
    border-radius:18px;
    box-shadow:0 10px 30px rgba(27,67,51,.07);
}
.article-detail h1{
    margin:0 0 12px;
    color:#15382d;
    font-size:clamp(28px,4vw,44px);
    line-height:1.16;
    font-weight:850;
}
.article-lead{
    margin:0 0 22px;
    color:#576a62;
    font-size:clamp(16px,2vw,18px);
}
.article-detail-flow::after{content:"";display:block;clear:both}
.article-detail .featured{
    float:left;
    width:min(36%,350px);
    max-height:285px;
    margin:4px 25px 15px 0;
    border-radius:13px;
    object-fit:cover;
    background:#eef3f0;
    box-shadow:0 7px 20px rgba(24,57,45,.1);
}
.article-content{
    color:#2a3e37;
    font-size:17px;
    line-height:1.8;
    white-space:pre-line;
    text-align:justify;
}

/* ===== BUTTONS / FORMS / TABLES ===== */
.btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:7px;
    border-radius:9px;
    padding:10px 15px;
    font-weight:750;
    text-decoration:none;
    cursor:pointer;
}
.btn-primary{border-color:var(--kkm-green);background:var(--kkm-green);color:#fff}
.btn-primary:hover{background:#076f3d;border-color:#076f3d;color:#fff}
.btn-outline-primary{color:#08733f;border:1px solid #b9d9c7;background:#eef7f1}
.btn-outline-primary:hover{background:#08733f;border-color:#08733f;color:#fff}
.btn-danger{background:#c62828;color:#fff}
.btn-success{background:#16853a;color:#fff}
.btn-sm{padding:8px 12px;font-size:13px}
.searchbar{
    display:flex;
    gap:10px;
    max-width:760px;
    margin:0 0 24px;
}
.searchbar input{flex:1}
.field input,.field textarea,.field select,.searchbar input{
    border:1px solid #d4dfd9;
    border-radius:10px;
    padding:11px 12px;
    font:inherit;
    background:#fff;
    outline:none;
}
.field input:focus,.field textarea:focus,.field select:focus,.searchbar input:focus{
    border-color:#6db78e;
    box-shadow:0 0 0 3px rgba(7,140,76,.1);
}
.table-wrap{overflow:auto;background:#fff;border:1px solid #dde6e1;border-radius:12px}
.data-table{border-collapse:collapse;width:100%;min-width:760px}
.data-table th,.data-table td{border-bottom:1px solid #e9eeeb;padding:11px 12px;text-align:left;vertical-align:top}
.data-table th{background:#edf7f1;white-space:nowrap;color:#24483b}
.data-table tr:hover td{background:#fbfdfc}
.form-card{background:#fff;border:1px solid #dce6e0;border-radius:12px;padding:20px}
.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}
.field{display:flex;flex-direction:column;gap:6px}
.field.full{grid-column:1/-1}
.field label{font-weight:700;font-size:14px}
.field textarea{min-height:180px;resize:vertical}
.hint{font-size:12px;color:#66756f}
.alert{padding:11px 14px;border-radius:9px;margin-bottom:14px;border:1px solid}
.alert-success{background:#e8f7ec;border-color:#9fd4ad}
.alert-warning{background:#fff7dc;border-color:#e7ce7c}
.alert-danger{background:#fdecec;border-color:#efadad}
.login-wrap{max-width:450px;margin:38px auto}
.login-card{background:#fff;border:1px solid #dbe5df;border-radius:16px;padding:28px;box-shadow:0 12px 35px rgba(18,55,40,.08)}
.login-card h1{margin-top:0;color:#17372d}
.empty-state{background:#fff;border:1px dashed #b8c8c0;padding:30px;text-align:center;border-radius:12px;color:#66756f;grid-column:1/-1}
.pagination{display:flex;gap:6px;flex-wrap:wrap;margin-top:24px}
.pagination a,.pagination span{padding:7px 11px;border:1px solid #d6dfda;border-radius:7px;text-decoration:none;background:#fff}
.pagination .active{background:var(--kkm-green);color:white;border-color:var(--kkm-green)}

/* ===== FOOTER ===== */
.site-footer{
    background:#17372d;
    color:#dce9e3;
    display:flex;
    justify-content:space-between;
    gap:20px;
    padding:25px max(24px,calc((100vw - 1450px)/2));
    font-size:13px;
}

/* ===== RESPONSIVE ===== */
@media(max-width:1280px){
    .header-container,.page-shell{width:min(100% - 44px,1450px)}
    .brand{min-width:265px}
    .brand img{width:50px;height:50px}
    .brand-copy strong{font-size:23px}
    .main-nav{gap:15px}
    .main-nav>a{font-size:13px}
    .article-grid{gap:22px}
}

@media(max-width:1120px){
    .nav-shell{min-height:76px;position:relative}
    .brand{min-width:0}
    .nav-toggle{display:grid;place-items:center}
    .main-nav{
        display:none;
        position:absolute;
        left:0;
        right:0;
        top:calc(100% - 8px);
        z-index:60;
        margin:0;
        padding:12px;
        flex-direction:column;
        align-items:stretch;
        gap:0;
        border:1px solid #e2ebe6;
        border-radius:14px;
        background:#fff;
        box-shadow:0 18px 38px rgba(20,59,45,.16);
    }
    .main-nav.open{display:flex}
    .main-nav>a{
        min-height:46px;
        justify-content:flex-start;
        padding:0 13px;
        border-radius:9px;
    }
    .main-nav>a:not(.login-link):not(.nav-search)::after{display:none}
    .main-nav>a:hover,.main-nav>a.active{background:#edf8f2}
    .main-nav .nav-search{width:auto;border-radius:9px}
    .main-nav .login-link{margin-top:6px;justify-content:center}
    .article-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
    .slider-caption{width:min(520px,54%)}
}

@media(max-width:760px){
    .header-container,.page-shell{width:calc(100% - 24px)}
    .utility-inner{min-height:34px}
    .top-utility-bar{min-height:34px}
    .utility-date{font-size:12px;gap:6px}
    .social-top{gap:10px}
    .social-icon,.social-icon img{width:16px;height:16px}
    .nav-shell{min-height:66px;gap:10px}
    .brand{gap:10px}
    .brand img{width:44px;height:44px}
    .brand-copy strong{font-size:20px}
    .brand-copy small{font-size:9.5px;letter-spacing:.5px;margin-top:4px}
    .nav-toggle{width:40px;height:40px}
    .page-shell{padding-top:14px;padding-bottom:36px}
    .article-slider-wrap{margin-bottom:22px}
    #articleCarousel{border-radius:14px}
    .slider-image{height:250px}
    .slider-caption{left:5.5%;bottom:12%;width:76%}
    .slider-caption p{padding:16px 18px;border-radius:13px;font-size:15px;line-height:1.5;-webkit-line-clamp:3}
    .custom-carousel-control{width:11%}
    .slider-arrow{width:38px;height:38px;font-size:19px}
    .latest-title{align-items:flex-start;flex-direction:column;gap:12px}
    .latest-heading-wrap{padding-left:18px}
    .latest-heading-wrap::before{width:5px}
    .latest-title h2{font-size:31px}
    .all-activities-link{padding:9px 12px;font-size:13px}
    .article-grid{grid-template-columns:1fr;gap:18px}
    .article-card-image{height:215px}
    .article-card-body{padding:18px}
    .article-card h3{font-size:17px;min-height:auto}
    .article-excerpt{font-size:15px;min-height:auto}
    .article-card-actions{padding-top:17px}
    .article-detail{padding:19px;border-radius:14px}
    .article-detail .featured{float:none;width:100%;max-width:430px;max-height:290px;margin:0 auto 18px}
    .article-content{font-size:16px;line-height:1.72;text-align:left}
    .form-grid{grid-template-columns:1fr}
    .searchbar{flex-direction:column}
    .searchbar .btn{width:100%}
    .site-footer{flex-direction:column;padding:22px 18px}
}

@media(max-width:430px){
    .header-container,.page-shell{width:calc(100% - 18px)}
    .utility-date span{max-width:190px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
    .brand-copy strong{font-size:19px}
    .brand-copy small{font-size:8.5px}
    .brand img{width:40px;height:40px}
    .slider-image{height:225px}
    .slider-caption{width:82%;bottom:10%}
    .slider-caption p{padding:13px 15px;font-size:14px;-webkit-line-clamp:3}
    .custom-carousel-control{width:12%}
    .slider-arrow{width:34px;height:34px;font-size:17px}
    .latest-title h2{font-size:28px}
    .section-kicker{font-size:11.5px}
    .article-card-image{height:190px}
    .article-date-badge{left:13px;bottom:12px;font-size:11px}
    .article-arrow{width:36px;height:36px}
}

/* ===== MODEL HOMEPAGE TERBARU ===== */
:root{
    --top-green:#087a40;
    --footer-green:#087a40;
}

/* top bar: hijau seperti referensi */
.top-utility-bar{
    min-height:36px;
    background:var(--top-green);
}
.utility-inner{min-height:36px}

/* homepage hero split: kiri ucapan, kanan slider */
.welcome-slider{
    display:grid;
    grid-template-columns:1fr 1fr;
    min-height:338px;
    margin:0 0 26px;
    overflow:hidden;
    border:1px solid #e3ebe6;
    border-radius:18px;
    background:#fff;
    box-shadow:0 12px 34px rgba(27,72,53,.10);
}
.welcome-panel{
    position:relative;
    display:flex;
    align-items:center;
    padding:38px clamp(42px,5vw,78px);
    background:#fff;
}
.welcome-copy{max-width:540px}
.welcome-copy h1{
    margin:0 0 17px;
    color:#08723c;
    font-size:clamp(34px,3vw,49px);
    line-height:1.15;
    font-weight:850;
    letter-spacing:-1.1px;
}
.welcome-copy p{
    max-width:500px;
    margin:0;
    color:#263c35;
    font-size:16px;
    line-height:1.62;
}
.welcome-indicators{
    position:absolute;
    left:50%;
    right:auto;
    bottom:16px;
    margin:0;
    transform:translateX(-50%);
    gap:7px;
    z-index:5;
}
.welcome-indicators [data-bs-target]{
    width:8px;
    height:8px;
    margin:0;
    border:0;
    border-radius:50%;
    background:#c8d0cc;
    opacity:1;
}
.welcome-indicators .active{background:#0a9953}
.slider-panel{
    min-width:0;
    background:#eef3f0;
    overflow:hidden;
}
.slider-panel .carousel-inner,
.slider-panel .carousel-item,
.slider-panel .slider-link{
    width:100%;
    height:100%;
}
.slider-panel .carousel-inner{min-height:338px}
.slider-panel .carousel-item{height:338px}
.slider-panel .slider-link{
    display:flex;
    align-items:center;
    justify-content:center;
    background:#eef3f0;
}
.slider-panel .slider-image{
    width:100%;
    height:100%;
    display:block;
    object-fit:contain;
    object-position:center;
    background:#eef3f0;
}
.slider-panel .custom-carousel-control{width:9%;opacity:1}
.slider-panel .carousel-control-prev{left:0}
.slider-panel .carousel-control-next{right:0}
.slider-panel .slider-arrow{
    width:46px;
    height:46px;
    background:rgba(255,255,255,.96);
    color:#078c4c;
}

/* kartu kegiatan dibuat lebih ringkas seperti referensi */
.latest-title{margin-top:7px;margin-bottom:17px}
.latest-title h2{font-size:clamp(26px,2.45vw,34px)}
.article-grid{gap:26px}
.article-card-image{height:205px}
.article-card-body{padding:16px 18px 17px}
.article-card h3{
    margin-bottom:8px;
    font-size:15.5px;
    line-height:1.35;
    min-height:42px;
}
.article-card h3 .title-dot{display:none}
.article-excerpt{
    font-size:13.5px;
    line-height:1.55;
    min-height:63px;
    -webkit-line-clamp:3;
}
.article-card-actions{padding-top:14px}
.article-readmore{font-size:13px}
.article-arrow{display:none}

/* footer pendek, hijau, teks hitam dan tersusun */
.site-footer{
    min-height:58px;
    padding:9px 18px 8px;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:0;
    background:var(--footer-green);
    color:#000;
    text-align:center;
    font-size:12px;
    line-height:1.25;
}
.site-footer .footer-admin-link{
    display:inline-flex;
    align-items:center;
    gap:5px;
    margin:0 0 2px;
    color:#000;
    font-size:12px;
    font-weight:800;
    text-decoration:none;
}
.site-footer .footer-admin-link:hover{text-decoration:underline}
.site-footer .footer-copy{
    margin:0;
    font-size:12px;
    font-weight:700;
}

@media(max-width:1120px){
    .welcome-slider{grid-template-columns:1fr 1fr;min-height:310px}
    .welcome-panel{padding:32px 38px}
    .welcome-copy h1{font-size:clamp(30px,4vw,40px)}
    .slider-panel .carousel-inner,.slider-panel .carousel-item{min-height:310px;height:310px}
}

@media(max-width:760px){
    .welcome-slider{
        grid-template-columns:1fr;
        min-height:0;
        border-radius:15px;
    }
    .welcome-panel{
        min-height:245px;
        padding:31px 25px 43px;
        text-align:left;
    }
    .welcome-copy h1{
        font-size:clamp(29px,8vw,38px);
        letter-spacing:-.7px;
    }
    .welcome-copy p{font-size:14px;line-height:1.55}
    .slider-panel .carousel-inner,.slider-panel .carousel-item{min-height:0;height:auto}
    .slider-panel .slider-link{aspect-ratio:16/9;height:auto}
    .slider-panel .slider-image{height:100%;object-fit:contain}
    .slider-panel .slider-arrow{width:37px;height:37px;font-size:18px}
    .article-card-image{height:200px}
    .site-footer{min-height:52px;padding:7px 12px 6px}
}

@media(max-width:430px){
    .top-utility-bar,.utility-inner{min-height:34px}
    .welcome-panel{min-height:228px;padding:27px 20px 41px}
    .welcome-copy h1{font-size:29px}
    .welcome-copy p{font-size:13.5px}
    .latest-title h2{font-size:27px}
}

/* Menu kotak layanan di bawah Selamat Datang */
.home-menu-section{
    margin:-3px 0 30px;
    padding:0;
}
.home-menu-grid{
    display:grid;
    grid-template-columns:repeat(6,minmax(0,1fr));
    gap:14px;
}
.home-menu-card{
    min-height:154px;
    padding:23px 13px 18px;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:flex-start;
    text-align:center;
    text-decoration:none;
    color:#213b32;
    background:#fff;
    border:1px solid #e5ece8;
    border-radius:16px;
    box-shadow:0 14px 32px rgba(25,67,50,.08);
    transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease;
}
.home-menu-card:hover{
    transform:translateY(-3px);
    box-shadow:0 18px 36px rgba(25,67,50,.13);
    border-color:#cfe4d8;
    color:#08723c;
}
.home-menu-icon{
    width:54px;
    height:54px;
    margin-bottom:12px;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:36px;
    color:#0b8a4a;
}
.home-menu-icon img{width:100%;height:100%;object-fit:contain;display:block}
.home-menu-card strong{
    color:#08723c;
    font-size:13px;
    line-height:1.3;
    font-weight:850;
    text-transform:uppercase;
}
.home-menu-description{
    margin-top:7px;
    color:#5a6b64;
    font-size:12px;
    line-height:1.4;
}
@media(max-width:1080px){.home-menu-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:640px){.home-menu-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.home-menu-card{min-height:142px;padding:20px 10px 15px}.home-menu-icon{width:48px;height:48px}.home-menu-description{font-size:11.5px}}
@media(max-width:390px){.home-menu-grid{grid-template-columns:1fr 1fr}.home-menu-card strong{font-size:12px}}

/* Halaman Data Madrasah & Rekap Siswa */
.data-page-heading{margin-bottom:8px}.data-page-heading h1{margin-top:3px}.data-page-intro{max-width:820px;margin:0 0 18px;color:#52645d;line-height:1.65}.summary-strip{display:flex;gap:10px;flex-wrap:wrap;margin:0 0 14px}.summary-strip span{display:inline-flex;align-items:center;gap:5px;padding:8px 12px;border:1px solid #dce9e1;border-radius:999px;background:#fff;color:#456057;font-size:13px}.summary-strip strong{color:#08723c}.rekap-total-row th{background:#dff1e7!important;color:#174c36!important}.madrasah-public-table td:last-child,.rekap-table td:last-child{font-variant-numeric:tabular-nums}

/* ===== Penyempurnaan halaman dinamis & tampilan HP ===== */
.data-page-layout{width:100%;min-width:0}
.data-page-layout--95{
    width:95vw;
    max-width:1600px;
    position:relative;
    left:50%;
    transform:translateX(-50%);
}
.data-page-layout .data-page-heading{margin-top:4px}
.data-page-layout .data-page-intro{max-width:980px}
.data-page-layout .data-searchbar{max-width:920px}
.public-data-table-wrap{-webkit-overflow-scrolling:touch;overscroll-behavior-x:contain}
.madrasah-public-table{min-width:860px}
.madrasah-public-table th:nth-child(1),.madrasah-public-table td:nth-child(1){width:58px;text-align:center}
.madrasah-public-table th:nth-child(2),.madrasah-public-table td:nth-child(2){width:170px;white-space:nowrap}
.madrasah-public-table th:nth-child(4),.madrasah-public-table td:nth-child(4){width:180px}
.madrasah-public-table th:nth-child(5),.madrasah-public-table td:nth-child(5){width:230px}
.madrasah-public-table td:nth-child(3),.madrasah-public-table td:nth-child(5){overflow-wrap:anywhere}

/* Konten dinamis tidak boleh mendorong viewport di layar kecil */
.article-detail,.article-card,.form-card,.table-wrap,.searchbar,.data-page-layout{max-width:100%}
.article-content,.article-detail h1,.article-lead,.article-card h3,.article-excerpt{overflow-wrap:anywhere;word-break:normal}
.article-content img,.article-content video,.article-content iframe{max-width:100%;height:auto}
.article-content iframe{width:100%;aspect-ratio:16/9}
.article-content table{display:block;max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}

@media(max-width:760px){
    body{overflow-x:hidden}
    .page-shell{width:calc(100% - 18px);padding-top:12px;padding-bottom:30px}
    .section-title{gap:12px;flex-wrap:wrap}
    .section-title h1,.article-page-heading h1,.data-page-heading h1{font-size:clamp(25px,8vw,34px);line-height:1.15}
    .data-page-layout--95{width:95vw;max-width:none}
    .data-page-intro{margin-bottom:14px;font-size:14px;line-height:1.55}
    .data-searchbar{gap:8px;margin-bottom:16px}
    .data-searchbar input{width:100%;min-width:0;font-size:16px}
    .data-searchbar .btn{min-height:44px}
    .summary-strip{margin-bottom:12px;gap:7px}
    .summary-strip span{padding:7px 10px;font-size:12px}
    .pagination.data-pagination{gap:5px;margin-top:16px;justify-content:center}
    .pagination.data-pagination a{min-width:36px;text-align:center;padding:7px 9px}

    /* Data Madrasah dan Rekap Siswa ditampilkan sebagai kartu agar terbaca tanpa geser horizontal */
    .public-data-table-wrap{overflow:visible;border:0;background:transparent;border-radius:0}
    .responsive-data-table{display:block;width:100%;min-width:0;border-collapse:separate}
    .responsive-data-table thead{display:none}
    .responsive-data-table tbody{display:grid;gap:12px}
    .responsive-data-table tbody tr:not(.rekap-total-row){
        display:block;
        width:100%;
        overflow:hidden;
        background:#fff;
        border:1px solid #dfe9e3;
        border-radius:13px;
        box-shadow:0 5px 16px rgba(20,62,46,.055);
    }
    .responsive-data-table tbody tr:not(.rekap-total-row):hover td{background:transparent}
    .responsive-data-table tbody tr:not(.rekap-total-row) td{
        width:100%!important;
        min-height:43px;
        display:grid;
        grid-template-columns:minmax(108px,38%) minmax(0,1fr);
        align-items:start;
        gap:10px;
        padding:10px 12px;
        border:0;
        border-bottom:1px solid #edf2ef;
        text-align:left!important;
        white-space:normal!important;
        overflow-wrap:anywhere;
    }
    .responsive-data-table tbody tr:not(.rekap-total-row) td:last-child{border-bottom:0}
    .responsive-data-table tbody tr:not(.rekap-total-row) td::before{
        content:attr(data-label);
        color:#426157;
        font-size:12px;
        line-height:1.45;
        font-weight:800;
    }
    .responsive-data-table .empty-row td{display:block!important;text-align:center!important;padding:20px!important}
    .responsive-data-table .empty-row td::before{display:none}
    .responsive-data-table .rekap-total-row{
        display:grid;
        grid-template-columns:1fr 1fr;
        overflow:hidden;
        border:1px solid #cfe5d7;
        border-radius:12px;
        background:#dff1e7;
    }
    .responsive-data-table .rekap-total-row th{display:block;padding:9px 11px;border-bottom:1px solid #cfe5d7;font-size:12px}
    .responsive-data-table .rekap-total-row th:first-child{grid-column:1/-1}

    .article-detail{width:100%;margin-top:2px;padding:17px 15px;border-radius:13px}
    .article-detail h1{font-size:clamp(25px,7.6vw,34px)}
    .article-lead{font-size:15px;line-height:1.6}
    .article-content{font-size:15.5px;line-height:1.72}
    .article-detail .featured{width:100%;max-width:none;max-height:none;aspect-ratio:16/10;object-fit:cover}
    .article-grid{width:100%;min-width:0}
    .article-card{width:100%}
}

@media(max-width:430px){
    .page-shell{width:calc(100% - 14px)}
    .data-page-layout--95{width:95vw}
    .responsive-data-table tbody tr:not(.rekap-total-row) td{grid-template-columns:minmax(96px,36%) minmax(0,1fr);padding:9px 10px;font-size:13px}
    .responsive-data-table tbody tr:not(.rekap-total-row) td::before{font-size:11.5px}
    .article-detail{padding:15px 13px}
    .article-content{font-size:15px}
}
@media(max-width:760px){
    .responsive-data-table .rekap-total-row th:not(:first-child){display:flex;align-items:center;justify-content:space-between;gap:10px}
    .responsive-data-table .rekap-total-row th:not(:first-child)::before{content:attr(data-label);font-weight:700;color:#426157}
}
