/*
==========================================================
SIMSALABIM — FUTURISTIC UI
Kantor Kementerian Agama Kota Salatiga
Tahap 5.1 — CONSOLIDATED CSS
==========================================================
*/

/* ==========================================================
   ROOT / DESIGN SYSTEM
========================================================== */

:root{
    --green-1:#087f3f;
    --green-2:#0aa05a;
    --green-3:#0fcf78;

    --blue-1:#075985;
    --blue-2:#0284c7;

    --ink:#12304a;
    --muted:#5d7183;

    --glass:rgba(255,255,255,.78);
    --line:rgba(255,255,255,.72);

    --shadow-soft:0 10px 25px rgba(16,55,72,.07);
    --shadow-card:0 22px 42px rgba(16,55,72,.13);
}

/* ==========================================================
   GLOBAL — FUTURISTIC BACKGROUND IMAGE
========================================================== */

html{
    scroll-behavior:smooth;
}

*{
    box-sizing:border-box;
}

body{
    min-height:100vh;

    color:var(--ink);

    font-family:"Segoe UI",Arial,sans-serif;

    background:
        linear-gradient(
            rgba(4,30,24,.72),
            rgba(4,30,24,.72)
        ),
        url("../images/bg-simsalabim.png")
        center center / cover fixed no-repeat !important;
}

/*html{
    scroll-behavior:smooth;
}

*{
    box-sizing:border-box;
}

body{
    min-height:100vh;

    color:var(--ink);

    font-family:"Segoe UI",Arial,sans-serif;

    background:
        radial-gradient(
            circle at 8% 12%,
            rgba(16,185,129,.20),
            transparent 25%
        ),

        radial-gradient(
            circle at 92% 18%,
            rgba(14,165,233,.16),
            transparent 27%
        ),

        radial-gradient(
            circle at 50% 100%,
            rgba(16,185,129,.16),
            transparent 34%
        ),

        radial-gradient(
            circle at 50% 48%,
            rgba(34,197,94,.06),
            transparent 30%
        ),

        linear-gradient(
            135deg,
            #e8f6f0 0%,
            #f4f8fa 42%,
            #eaf5f2 100%
        ) !important;
}

body{
    min-height:100vh;

    color:var(--ink);

    font-family:"Segoe UI",Arial,sans-serif;

    background:
        radial-gradient(
            circle at 10% 15%,
            rgba(16,185,129,.13),
            transparent 28%
        ),
        radial-gradient(
            circle at 88% 20%,
            rgba(14,165,233,.13),
            transparent 30%
        ),
        radial-gradient(
            circle at 50% 100%,
            rgba(34,197,94,.10),
            transparent 35%
        ),
        linear-gradient(
            135deg,
            #eef8f4 0%,
            #f5f9fc 48%,
            #eef8f5 100%
        ) !important;
}
*/

/* ==========================================================
   TOP NEWS TICKER — FUTURISTIC FINISHING
========================================================== */

.news-container{
    height:40px !important;

    background:
        linear-gradient(
            90deg,
            #064e3b 0%,
            #075985 48%,
            #0b5fb3 100%
        ) !important;

    box-shadow:
        0 3px 18px rgba(0,0,0,.16) !important;

    backdrop-filter:blur(10px);

    /* sedikit variasi bentuk */
    border-bottom:
        1px solid rgba(255,255,255,.18);

    overflow:hidden;
}


/* ==========================================================
   LABEL TAGLINE
========================================================== */

.news-container .title{
    padding:0 22px !important;

    background:
        linear-gradient(
            135deg,
            #ef4444 0%,
            #dc2626 100%
        ) !important;

    font-size:14px;
    font-weight:700;
    letter-spacing:.6px;

    /* membuat label terasa seperti badge */
    border-radius:
        0 18px 18px 0;

    box-shadow:
        6px 0 18px rgba(0,0,0,.18);

    position:relative;
    z-index:2;
}


/* ==========================================================
   AKSEN KECIL DI LABEL
========================================================== */

.news-container .title::after{
    content:"";
    position:absolute;

    right:-7px;
    top:50%;

    width:14px;
    height:14px;

    transform:translateY(-50%) rotate(45deg);

    background:#dc2626;

    z-index:-1;
}


/* ==========================================================
   TEKS BERJALAN
========================================================== */

.news-container ul li{
    padding:0 28px !important;

    font-size:14px !important;

    letter-spacing:.15px;
}

/* ==========================================================
   HERO HEADER
========================================================== */

body > header{
    position:relative;

    overflow:hidden;

    padding:32px 38px !important;
    
    background:transparent !important;

    border-bottom:
        0px solid rgba(255,255,255,.12);

    box-shadow:none !important;
}

body > header::before{
    content:"";

    position:absolute;

    width:420px;
    height:420px;

    left:-180px;
    top:-300px;

    border-radius:50%;

    background:
        radial-gradient(
            circle,
            rgba(255,255,255,.10) 0%,
            rgba(255,255,255,.04) 40%,
            transparent 72%
        );

    filter:blur(8px);

    pointer-events:none;

    opacity:.65;
}


body > header::after{
    content:"";

    position:absolute;

    width:420px;
    height:180px;

    right:-100px;
    bottom:-100px;

    border-radius:50%;

    background:
        radial-gradient(
            ellipse,
            rgba(45,212,191,.10) 0%,
            rgba(59,130,246,.06) 45%,
            transparent 75%
        );

    filter:blur(10px);

    transform:rotate(-15deg);

    pointer-events:none;

    opacity:.7;
}

body > header h1{
    position:relative;

    z-index:2;

    margin:0 !important;

    line-height:1.15;

    text-shadow:
        0 3px 15px rgba(0,0,0,.18);
}

body > header h1:first-child{
    margin-bottom:8px !important;

    font-size:
        clamp(1.5rem,4vw,3.2rem) !important;

    font-weight:700 !important;

    letter-spacing:.32em;

    background:
        linear-gradient(
            90deg,
            #fff 0%,
            #d9ffe9 45%,
            #a7f3d0 100%
        );

    -webkit-background-clip:text;
    background-clip:text;
    -webkit-text-fill-color:transparent;
}

body > header h1:nth-child(2){
    font-size:
        clamp(1.02rem,2.2vw,1.85rem) !important;

    font-weight:600 !important;

    letter-spacing:.02em;
}

body > header p{
    position:relative;

    z-index:2;

    margin-top:14px !important;

    color:
        rgba(255,255,255,.86) !important;

    font-size:20px !important;
}


/* ==========================================================
   MAIN MENU AREA
========================================================== */

main{
    position:relative;

    max-width:1320px !important;

    padding:42px 28px 34px !important;
}

main::before{
    content:"";

    position:absolute;

    inset:18px 10px 10px;

    z-index:-1;

    border-radius:34px;

    background:
        rgba(255,255,255,.34);

    border:
        1px solid rgba(255,255,255,.65);

    box-shadow:
        0 25px 70px rgba(18,48,74,.08),
        inset 0 1px 0 rgba(255,255,255,.8);

    backdrop-filter:blur(8px);

    pointer-events:none;
}

main > div{
    position:relative;

    gap:20px !important;
}


/* ==========================================================
   SERVICE CARDS
   Current SIMSALABIM cards
========================================================== */

main > div > .group{
    position:relative;

    min-height:158px !important;

    padding:
        24px 46px 22px 24px !important;

    display:flex;

    align-items:center;
    justify-content:center;

    overflow:hidden;

    border-radius:24px !important;

    border:
        1px solid rgba(255,255,255,.95) !important;

    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,.97) 0%,
            rgba(248,253,251,.88) 100%
        ) !important;

    box-shadow:
        0 10px 25px rgba(16,55,72,.07),
        0 2px 5px rgba(16,55,72,.04),
        inset 0 1px 0 rgba(255,255,255,.95) !important;

    transform:translateY(0) !important;

    transition:
        transform .35s cubic-bezier(.2,.8,.2,1),
        box-shadow .35s ease,
        border-color .35s ease,
        background .35s ease !important;
}


/* Decorative light */

main > div > .group::before{
    content:"";

    position:absolute;

    width:190px;
    height:190px;

    right:-95px;
    bottom:-105px;

    border-radius:50%;

    background:
        radial-gradient(
            circle,
            rgba(16,185,129,.18) 0%,
            rgba(16,185,129,.05) 48%,
            transparent 70%
        );

    transition:
        transform .45s ease,
        opacity .35s ease;
}


/* Arrow */

main > div > .group::after{
    content:"›";

    position:absolute;

    top:50%;
    right:17px;

    width:34px;
    height:34px;

    display:flex;

    align-items:center;
    justify-content:center;

    transform:translateY(-50%);

    border-radius:50%;

    background:
        linear-gradient(
            135deg,
            #07834a,
            #087fbe
        );

    color:#fff;

    font-size:27px;
    font-weight:300;

    line-height:1;

    box-shadow:
        0 6px 15px rgba(7,131,74,.18);

    opacity:.72;

    transition:
        transform .35s ease,
        opacity .35s ease,
        box-shadow .35s ease;
}


/* Card button */

main > div > .group button{
    position:relative;

    z-index:2;

    width:100%;
    height:100%;

    display:flex;

    flex-direction:column;

    align-items:center;
    justify-content:center;
}


/* Card icon */

main > div > .group button > div{
    width:70px;
    height:70px;

    margin-bottom:15px !important;

    display:flex;

    align-items:center;
    justify-content:center;

    border-radius:20px;

    background:
        linear-gradient(
            145deg,
            #ecfdf5,
            #dff7ec
        );

    border:
        1px solid rgba(16,185,129,.08);

    font-size:38px !important;

    line-height:1 !important;

    box-shadow:
        0 8px 18px rgba(16,185,129,.10),
        inset 0 1px 0 rgba(255,255,255,.9);

    filter:none !important;

    transition:
        transform .35s cubic-bezier(.2,.8,.2,1),
        box-shadow .35s ease,
        background .35s ease;
}


/* Card title */

main > div > .group span{
    display:block;

    color:#173b58 !important;

    font-size:15px !important;

    font-weight:800 !important;

    line-height:1.3;

    letter-spacing:.1px;

    transition:
        color .3s ease,
        transform .3s ease;
}


/* Card hover */

main > div > .group:hover{
    transform:
        translateY(-9px) !important;

    border-color:
        rgba(16,185,129,.28) !important;

    background:
        rgba(255,255,255,.98) !important;

    box-shadow:
        0 22px 42px rgba(16,55,72,.13),
        0 0 0 4px rgba(16,185,129,.035),
        0 0 30px rgba(16,185,129,.06) !important;
}

main > div > .group:hover::before{
    transform:scale(1.45);
}

main > div > .group:hover::after{
    transform:
        translateY(-50%)
        translateX(3px)
        scale(1.12);

    opacity:1;

    box-shadow:
        0 8px 20px rgba(7,131,74,.28);
}

main > div > .group:hover button > div{
    transform:
        translateY(-4px)
        scale(1.08);

    background:
        linear-gradient(
            145deg,
            #dcfce7,
            #d1fae5
        );

    box-shadow:
        0 12px 25px rgba(16,185,129,.17),
        inset 0 1px 0 rgba(255,255,255,1);
}

main > div > .group:hover span{
    color:#087f4a !important;

    transform:translateY(-2px);
}

main > div > .group:active{
    transform:
        translateY(-3px)
        scale(.985) !important;
}


/* ==========================================================
   CARD ACCENT COLORS
========================================================== */

main > div > .group:nth-child(1) button > div{
    background:linear-gradient(145deg,#e7f8ff,#d9f3ff);
}

main > div > .group:nth-child(2) button > div{
    background:linear-gradient(145deg,#fff8df,#fff1bd);
}

main > div > .group:nth-child(3) button > div{
    background:linear-gradient(145deg,#f1eaff,#e8ddff);
}

main > div > .group:nth-child(4) button > div{
    background:linear-gradient(145deg,#e6f1ff,#dceaff);
}

main > div > .group:nth-child(5) button > div{
    background:linear-gradient(145deg,#eefbe8,#def5d5);
}

main > div > .group:nth-child(6) button > div{
    background:linear-gradient(145deg,#fff6df,#ffedbd);
}

main > div > .group:nth-child(7) button > div{
    background:linear-gradient(145deg,#e5f6ff,#d7efff);
}

main > div > .group:nth-child(8) button > div{
    background:linear-gradient(145deg,#eaf5ef,#d9f0e1);
}

main > div > .group:nth-child(9) button > div{
    background:linear-gradient(145deg,#f0eaff,#e6dcff);
}

main > div > .group:nth-child(10) button > div{
    background:linear-gradient(145deg,#e7f8f2,#d5f1e6);
}

main > div > .group:nth-child(11) button > div{
    background:linear-gradient(145deg,#fff0ed,#ffe1db);
}

main > div > .group:nth-child(12) button > div{
    background:linear-gradient(145deg,#e8f8ed,#d9f1df);
}


/* ==========================================================
   HORIZONTAL SERVICE CARD
   Compatibility / future use
========================================================== */

.service-card{
    position:relative;

    width:100%;
    min-height:145px;

    display:flex;

    align-items:center;

    gap:18px;

    padding:24px 26px;

    border:
        1px solid rgba(255,255,255,.7);

    border-radius:24px;

    background:
        linear-gradient(
            135deg,
            rgba(255,255,255,.96),
            rgba(245,250,248,.88)
        );

    box-shadow:
        0 10px 30px rgba(0,0,0,.08),
        inset 0 1px 0 rgba(255,255,255,.8);

    text-align:left;

    cursor:pointer;

    transition:
        transform .3s ease,
        box-shadow .3s ease,
        border-color .3s ease;
}

.service-card:hover{
    transform:translateY(-6px);

    box-shadow:
        0 18px 40px rgba(0,0,0,.14),
        0 0 25px rgba(15,138,95,.12);

    border-color:
        rgba(15,138,95,.25);
}

.service-icon{
    flex:0 0 68px;

    width:68px;
    height:68px;

    display:flex;

    align-items:center;
    justify-content:center;

    border-radius:20px;

    background:
        linear-gradient(
            135deg,
            #e7f7f0,
            #d5eee4
        );

    color:#0f8a5f;

    font-size:28px;

    box-shadow:
        0 8px 20px rgba(15,138,95,.12);

    transition:.3s ease;
}

.service-card:hover .service-icon{
    transform:
        scale(1.08)
        rotate(-3deg);

    box-shadow:
        0 10px 25px rgba(15,138,95,.20);
}

.service-content{
    flex:1;

    min-width:0;
}

.service-content h3{
    margin:0 0 6px;

    color:#123c2d;

    font-size:20px;

    font-weight:700;

    letter-spacing:.2px;
}

.service-content p{
    margin:0;

    color:#6b7f77;

    font-size:13px;

    line-height:1.5;
}

.service-arrow{
    flex:0 0 36px;

    width:36px;
    height:36px;

    display:flex;

    align-items:center;
    justify-content:center;

    border-radius:50%;

    background:
        rgba(15,138,95,.08);

    color:#0f8a5f;

    font-size:13px;

    transition:.3s ease;
}

.service-card:hover .service-arrow{
    background:#0f8a5f;

    color:#fff;

    transform:translateX(4px);
}


/* ==========================================================
   POPUP
========================================================== */

.popup{
    position:fixed !important;

    inset:0 !important;

    z-index:9999 !important;

    display:flex;

    align-items:center;
    justify-content:center;

    padding:24px;

    background:
        radial-gradient(
            circle at center,
            rgba(15,138,95,.10),
            rgba(3,20,15,.72)
        ) !important;

    backdrop-filter:blur(10px);

    -webkit-backdrop-filter:blur(10px);

    animation:
        popupFadeIn .25s ease;
}

.popup.hidden{
    display:none !important;
}


/* Popup box */

.popup-box{
    position:relative;

    width:min(560px,100%);

    max-height:85vh;

    overflow-y:auto;

    padding:32px;

    border:
        1px solid rgba(255,255,255,.65);

    border-radius:28px;

    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,.98),
            rgba(239,248,244,.96)
        );

    box-shadow:
        0 30px 80px rgba(0,0,0,.28),
        0 0 45px rgba(15,138,95,.12),
        inset 0 1px 0 rgba(255,255,255,.9);

    animation:
        popupScaleIn .3s cubic-bezier(.2,.8,.2,1);
}


/* Popup decorative light */

.popup-box::before{
    content:"";

    position:absolute;

    width:180px;
    height:180px;

    top:-90px;
    right:-70px;

    border-radius:50%;

    background:
        rgba(15,138,95,.12);

    filter:blur(30px);

    pointer-events:none;
}


/* Popup title */

.popup-title,
.popup-box h2,
.popup-box h3{
    position:relative;

    margin-bottom:22px;

    color:#123c2d;

    font-weight:700;

    letter-spacing:.2px;
}

.popup-title{
    color:#075c3b;

    font-size:1.45rem !important;
}


/* Popup paragraph */

.popup-box p{
    color:#64756e;

    font-size:14px;

    line-height:1.6;
}


/* Popup links */

.popup-box ul li a,
.popup-box > a{
    position:relative;

    display:flex;

    align-items:center;

    gap:14px;

    width:100%;

    margin-bottom:12px;

    padding:15px 18px;

    border:
        1px solid rgba(15,138,95,.10);

    border-radius:16px;

    background:
        rgba(255,255,255,.78) !important;

    color:#174b38;

    text-decoration:none;

    font-size:14px;

    font-weight:600;

    box-shadow:
        0 5px 16px rgba(0,0,0,.05);

    transition:
        transform .25s ease,
        background .25s ease,
        box-shadow .25s ease,
        border-color .25s ease;
}

.popup-box ul li a:hover,
.popup-box > a:hover{
    transform:translateX(5px);

    background:#fff !important;

    border-color:
        rgba(15,138,95,.28);

    box-shadow:
        0 10px 25px rgba(15,138,95,.12);

    color:#0b7650;
}


/* Popup link icons */

.popup-box a i{
    width:38px;
    height:38px;

    display:flex;

    align-items:center;
    justify-content:center;

    flex-shrink:0;

    border-radius:12px;

    background:#e5f5ee;

    color:#0f8a5f;

    font-size:15px;
}


/* Close button */

.popup-btn{
    border:0;

    background:
        linear-gradient(
            135deg,
            #07834a,
            #075985
        ) !important;

    box-shadow:
        0 7px 18px rgba(7,131,74,.22);

    cursor:pointer;

    transition:
        transform .2s ease,
        box-shadow .2s ease;
}

.popup-btn:hover,
.popup-box button:hover{
    transform:translateY(-2px);

    box-shadow:
        0 8px 18px rgba(0,0,0,.12);
}


/* Popup scrollbar */

.popup-box::-webkit-scrollbar{
    width:6px;
}

.popup-box::-webkit-scrollbar-track{
    background:transparent;
}

.popup-box::-webkit-scrollbar-thumb{
    background:
        rgba(15,138,95,.25);

    border-radius:20px;
}


/* Popup animation */

@keyframes popupFadeIn{
    from{
        opacity:0;
    }

    to{
        opacity:1;
    }
}

@keyframes popupScaleIn{
    from{
        opacity:0;

        transform:
            scale(.94)
            translateY(12px);
    }

    to{
        opacity:1;

        transform:
            scale(1)
            translateY(0);
    }
}


/* ==========================================================
   BOTTOM NAVIGATION
   IMPORTANT:
   HTML menggunakan .bottom-navbar
========================================================== */

.bottom-navbar{
    position:relative;

    margin:8px auto 0;

    padding:28px 20px !important;

    display:flex;

    align-items:center;
    justify-content:center;

    gap:18px !important;

    background:
        linear-gradient(
            135deg,
            rgba(255,255,255,.72),
            rgba(240,249,246,.82)
        ) !important;

    border-top:
        1px solid rgba(255,255,255,.85) !important;

    box-shadow:
        0 -10px 35px rgba(20,61,82,.06);

    backdrop-filter:blur(12px);

    -webkit-backdrop-filter:blur(12px);
}

.bottom-navbar .nav-item{
    width:140px !important;

    min-height:82px;

    display:flex;

    align-items:center;
    justify-content:center;

    border-radius:18px !important;

    padding:14px 15px !important;

    border:
        1px solid rgba(255,255,255,.35);

    box-shadow:
        0 10px 22px rgba(0,0,0,.12) !important;

    transition:
        transform .25s ease,
        box-shadow .25s ease;
}

.bottom-navbar .nav-item i{
    font-size:24px !important;
}

.bottom-navbar .nav-item:hover{
    transform:
        translateY(-7px)
        scale(1.03) !important;

    box-shadow:
        0 17px 30px rgba(0,0,0,.16) !important;
}


/* ==========================================================
   FOOTER
========================================================== */

body > footer,
footer{
    position:relative;

    margin-top:0 !important;

    padding:28px 20px 40px !important;

    text-align:center;

    color:
        rgba(255,255,255,.82);

    font-size:13px;

    line-height:1.7;

    background:
        linear-gradient(
            135deg,
            #075c3a 0%,
            #087f4a 55%,
            #075985 100%
        ) !important;

    box-shadow:
        0 -8px 25px rgba(0,0,0,.08);
}

footer::before{
    content:"";

    position:absolute;

    top:0;
    left:50%;

    width:min(500px,70%);
    height:2px;

    transform:
        translateX(-50%);

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(116,220,178,.65),
            transparent
        );
}

body > footer p,
footer p{
    margin:4px 0;
}

footer strong{
    color:#fff;

    font-weight:700;
}


/* ==========================================================
   ACCESSIBILITY WIDGET
   IMPORTANT:
   HTML menggunakan #accessibilityMenu
========================================================== */

#accessibilityMenu{
    z-index:10000 !important;
}


/* Toggle */

#accessibilityMenu > button{
    width:50px;
    height:50px;

    padding:4px !important;

    border:
        2px solid rgba(255,255,255,.8) !important;

    border-radius:50% !important;

    background:
        linear-gradient(
            135deg,
            #075985,
            #0ea5e9
        ) !important;

    box-shadow:
        0 8px 22px rgba(0,0,0,.18);

    transition:
        transform .25s ease,
        box-shadow .25s ease;
}

#accessibilityMenu > button:hover{
    transform:scale(1.08);

    box-shadow:
        0 12px 28px rgba(0,0,0,.23);
}

#accessibilityMenu > button img{
    width:100%;
    height:100%;

    object-fit:cover;

    border-radius:50%;
}


/* Accessibility panel */

#accessibilityOptions{
    border:
        1px solid rgba(255,255,255,.75);

    border-radius:20px;

    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,.97),
            rgba(240,248,244,.96)
        );

    box-shadow:
        0 20px 50px rgba(0,0,0,.20),
        0 0 30px rgba(15,138,95,.10);

    backdrop-filter:blur(12px);

    -webkit-backdrop-filter:blur(12px);
}


/* Accessibility buttons */

.access-option{
    border:
        1px solid rgba(15,138,95,.08);

    border-radius:12px;

    background:
        rgba(255,255,255,.75);

    color:#35564a;

    transition:
        background .2s ease,
        transform .2s ease,
        box-shadow .2s ease;
}

.access-option:hover{
    background:#e8f6ef;

    transform:translateX(3px);

    box-shadow:
        0 5px 14px rgba(15,138,95,.08);
}


/* ==========================================================
   ACCESSIBILITY MODES
   Existing JS compatibility
========================================================== */

.high-contrast{
    filter:contrast(1.18);
}

.text-spacing{
    letter-spacing:.08em !important;
    word-spacing:.12em !important;
}

.big-cursor,
.big-cursor *{
    cursor:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Cpath d='M3 2l7 25 5-9 9 5L3 2z' fill='white' stroke='black' stroke-width='2'/%3E%3C/svg%3E"),auto !important;
}

.dyslexia-font,
.dyslexia-font *{
    font-family:
        "OpenDyslexic",
        "Segoe UI",
        Arial,
        sans-serif !important;
}


/* ==========================================================
   RESPONSIVE — TABLET
========================================================== */

@media (max-width:900px){

    body > header{
        padding:34px 18px 38px !important;
    }

    main{
        padding:30px 16px 24px !important;
    }

    main::before{
        inset:10px 4px 6px;

        border-radius:25px;
    }

    main > div{
        gap:14px !important;
    }

    main > div > .group{
        min-height:135px !important;

        padding:
            20px 38px 20px 16px !important;
    }

    main > div > .group::after{
        width:30px;
        height:30px;

        right:12px;

        font-size:23px;
    }

    .bottom-navbar{
        flex-wrap:wrap;
    }
}


/* ==========================================================
   RESPONSIVE — MOBILE
========================================================== */

@media (max-width:640px){

    body{
        padding-top:40px !important;
    }

    /* Ticker */

    .news-container .title{
        padding:0 11px !important;

        font-size:12px;
    }

    .news-container ul li{
        padding:0 18px !important;

        font-size:12px !important;
    }


    /* Header */

    body > header{
        padding:
            30px 14px 34px !important;
    }

    body > header h1:first-child{
        letter-spacing:.18em;
    }

    body > header h1:nth-child(2){
        line-height:1.3;
    }


    /* Main */

    main{
        padding:
            24px 10px 20px !important;
    }

    main::before{
        inset:
            8px 2px 5px;

        border-radius:20px;
    }


    /* Cards */

    main > div{
        gap:12px !important;
    }

    main > div > .group{
        min-height:130px !important;

        padding:
            18px 30px 18px 14px !important;

        border-radius:18px !important;
    }

    main > div > .group button > div{
        width:58px;
        height:58px;

        font-size:31px !important;

        border-radius:17px;

        margin-bottom:11px !important;
    }

    main > div > .group span{
        font-size:13px !important;
    }

    main > div > .group::after{
        width:28px;
        height:28px;

        right:9px;

        font-size:22px;
    }


    /* Popup */

    .popup{
        padding:16px;
    }

    .popup-box{
        width:100%;

        max-height:88vh;

        padding:
            24px 20px;

        border-radius:22px;
    }

    .popup-box ul li a,
    .popup-box > a{
        padding:
            13px 14px;

        font-size:13px;
    }

    .popup-box a i{
        width:34px;
        height:34px;

        border-radius:10px;
    }


    /* Bottom navigation */

    .bottom-navbar{
        gap:10px !important;

        padding:
            20px 10px !important;
    }

    .bottom-navbar .nav-item{
        width:
            calc(50% - 10px) !important;

        max-width:145px;

        min-height:76px;
    }


    /* Accessibility */

    #accessibilityMenu{
        left:10px !important;
    }

    #accessibilityMenu > button{
        width:44px;
        height:44px;
    }
}


/* ==========================================================
   RESPONSIVE — SMALL MOBILE
========================================================== */

@media (max-width:420px){

    body > header h1:first-child{
        font-size:
            clamp(1.9rem,9vw,2.6rem) !important;

        letter-spacing:.12em;
    }

    body > header h1:nth-child(2){
        font-size:1rem !important;
    }

    main > div > .group{
        min-height:120px !important;
    }

    main > div > .group button > div{
        width:54px;
        height:54px;

        font-size:28px !important;
    }

    main > div > .group span{
        font-size:12px !important;
    }

    .bottom-navbar .nav-item{
        min-height:70px;

        padding:
            10px !important;
    }
}

/* ======================================================
   MENU CARD — SIMSALABIM
   Struktur:
   .menu-card
      ├── .menu-icon
      └── .menu-content
====================================================== */

.menu-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* CARD */
.menu-card {
    display: flex;
    align-items: center;
    gap: 18px;

    padding: 22px 24px;

    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(15, 138, 95, 0.15);
    border-radius: 18px;

    cursor: pointer;

    box-shadow:
        0 8px 25px rgba(0, 0, 0, 0.08);

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        border-color 0.3s ease,
        background 0.3s ease;
}

/* ICON */
.menu-icon {
    flex: 0 0 64px;

    width: 64px;
    height: 64px;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 34px;

    background: rgba(15, 138, 95, 0.10);
    border: 1px solid rgba(15, 138, 95, 0.18);
    border-radius: 16px;

    transition:
        transform 0.3s ease,
        background 0.3s ease;
}

/* CONTENT */
.menu-content {
    flex: 1;
    min-width: 0;
}

.menu-content h3 {
    margin: 0 0 5px;

    font-size: 20px;
    font-weight: 700;

    color: #0b5d3b;

    line-height: 1.2;
}

.menu-content p {
    margin: 0;

    font-size: 14px;
    line-height: 1.5;

    color: #64748b;
}

/* HOVER */
.menu-card:hover {
    transform: translateY(-5px);

    background: rgba(240, 253, 244, 0.98);

    border-color: rgba(15, 138, 95, 0.4);

    box-shadow:
        0 15px 35px rgba(15, 138, 95, 0.16);
}

.menu-card:hover .menu-icon {
    transform: scale(1.08) rotate(-3deg);

    background: rgba(15, 138, 95, 0.16);
}

/* ======================================================
   RESPONSIVE
====================================================== */

@media (max-width: 768px) {

    .menu-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .menu-card {
        padding: 18px;
    }

    .menu-icon {
        flex-basis: 56px;
        width: 56px;
        height: 56px;

        font-size: 30px;
    }

    .menu-content h3 {
        font-size: 18px;
    }

    .menu-content p {
        font-size: 13px;
    }
}

/* ======================================================
   FINAL OVERRIDE - MENU 3 KOLOM DESKTOP
====================================================== */

/* ======================================================
   FINAL OVERRIDE - MENU 4 KOLOM DESKTOP
====================================================== */

main > div.menu-grid{
    display:grid !important;
    grid-template-columns:repeat(4,minmax(0,1fr)) !important;
}


/* ======================================================
   TABLET — 2 KOLOM
====================================================== */

@media (max-width:900px){

    main > div.menu-grid{
        grid-template-columns:
            repeat(2,minmax(0,1fr)) !important;
    }

}


/* ======================================================
   HP — 1 KOLOM
====================================================== */

@media (max-width:640px){

    main > div.menu-grid{
        grid-template-columns:
            1fr !important;
    }

}

/* ======================================================
   FIX HORIZONTAL SCROLL - TICKER
====================================================== */

html,
body{
    max-width:100%;
    overflow-x:hidden !important;
}

.news-container{
    max-width:100%;
    overflow:hidden !important;
}

/* ======================================================
   DESKTOP COMPACT — 4 KOLOM × 3 BARIS
====================================================== */

@media (min-width:901px){

    /* Header lebih ringkas */
    body > header{
        padding:
            30px 30px 34px !important;
    }

    /* Area menu */
    main{
        padding:
            28px 28px 24px !important;
    }

    /* Jarak antar card */
    main > div.menu-grid{
        gap:16px !important;
    }

    /* Card dibuat sedikit lebih pendek */
    main > div.menu-grid > .group{
        min-height:135px !important;

        padding:
            18px 40px 18px 18px !important;
    }

    /* Icon sedikit diperkecil */
    main > div.menu-grid > .group button > div{
        width:60px;
        height:60px;

        margin-bottom:10px !important;

        font-size:34px !important;
    }

    /* Judul card */
    main > div.menu-grid > .group span{
        font-size:14px !important;
    }

    /* Container utama */
    main::before{
        inset:
            12px 10px 8px;
    }

    /* Bottom navigation */
    .bottom-navbar{
        margin-top:4px;

        padding:
            18px 20px !important;

        gap:14px !important;
    }

    .bottom-navbar .nav-item{
        min-height:70px;

        width:130px !important;
    }

}

/* ==========================================================
   FOOTER — COMPACT FUTURISTIC
========================================================== */

body > footer,
footer{
    margin-top:0 !important;

    padding:
        12px 20px !important;

    min-height:auto !important;

    display:flex;

    align-items:center;
    justify-content:center;

    text-align:center;

    color:rgba(255,255,255,.88);

    font-size:12px;

    line-height:1.4;

    background:
        linear-gradient(
            135deg,
            #075c3a 0%,
            #087f4a 55%,
            #075985 100%
        ) !important;

    box-shadow:
        0 -6px 20px rgba(0,0,0,.08);
}


/* Footer content */

body > footer p,
footer p{
    margin:0 !important;
}


/* Footer strong */

footer strong{
    color:#fff;

    font-weight:700;
}


/* ==========================================================
   FOOTER — DESKTOP TWO PART
========================================================== */

@media (min-width:901px){

    body > footer,
    footer{
        gap:60px;
    }

}


/* ==========================================================
   FOOTER — MOBILE
========================================================== */

@media (max-width:640px){

    body > footer,
    footer{
        flex-direction:column;

        gap:5px;

        padding:
            12px 15px !important;

        font-size:11px;
    }

}

/* ==========================================================
   SIMSALABIM — SERVICE BAR
   DUMAS | SURVEY | DIAGRAM | WEBSITE
========================================================== */

.bottom-navbar{
    width:100%;
    max-width:1320px;
    min-height:108px;

    margin:10px auto 22px;

    padding:8px;

    display:grid;
    grid-template-columns:310px 1fr 310px;
    align-items:stretch;

    gap:8px;

    position:relative;

    border-radius:22px;

    background:
        linear-gradient(
            110deg,
            rgba(255,255,255,.94),
            rgba(239,250,247,.90),
            rgba(239,248,255,.94)
        );

    border:1px solid rgba(255,255,255,.90);

    box-shadow:
        0 18px 45px rgba(18,48,74,.13),
        inset 0 1px 0 rgba(255,255,255,.95);

    backdrop-filter:blur(14px);

    overflow:hidden;
}


/* ==========================================================
   PANEL KIRI
========================================================== */

.service-brand{
    position:relative;

    min-height:90px;

    display:flex;
    align-items:center;

    padding:12px 24px;

    gap:18px;

    color:#fff;

    border-radius:17px 55px 55px 17px;

    overflow:hidden;

    background:
        radial-gradient(
            circle at 90% 10%,
            rgba(163,230,53,.70),
            transparent 35%
        ),
        linear-gradient(
            125deg,
            #064e3b 0%,
            #05683a 55%,
            #087f3f 100%
        );

    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.18),
        8px 8px 25px rgba(0,80,55,.12);
}


/* lengkungan dekoratif */

.service-brand::after{
    content:"";

    position:absolute;

    width:150px;
    height:150px;

    right:-55px;
    top:-70px;

    border-radius:50%;

    border:10px solid rgba(163,230,53,.45);

    pointer-events:none;
}


/* ICON KIRI */

.service-brand-icon{
    position:relative;
    z-index:2;

    flex:0 0 auto;

    width:64px;
    height:64px;

    display:flex;
    align-items:center;
    justify-content:center;

    font-size:42px;

    color:#fff;
}


/* TEXT KIRI */

.service-brand-text{
    position:relative;
    z-index:2;

    display:flex;
    flex-direction:column;

    line-height:1.15;
}

.service-brand-text strong{
    font-size:16px;
    font-weight:600;

    letter-spacing:.1px;
}

.service-brand-text span{
    margin-top:3px;

    font-size:16px;
    font-weight:600;
}


/* ==========================================================
   MENU TENGAH
========================================================== */

.service-menu{
    display:grid;

    grid-template-columns:
        repeat(4,minmax(0,1fr));

    gap:16px;

    align-items:center;

    padding:0 4px;
}


/* ==========================================================
   BUTTON LAYANAN
========================================================== */

.service-menu .nav-item{
    min-width:0;
    height:92px;

    display:flex;
    flex-direction:column;

    align-items:center;
    justify-content:center;

    gap:7px;

    padding:10px 8px;

    border-radius:14px;

    color:#fff;

    text-decoration:none;

    position:relative;

    overflow:hidden;

    transition:
        transform .25s ease,
        box-shadow .25s ease,
        filter .25s ease;
}


/* efek kilau */

.service-menu .nav-item::before{
    content:"";

    position:absolute;

    width:70px;
    height:160px;

    left:-90px;
    top:-30px;

    background:rgba(255,255,255,.22);

    transform:rotate(25deg);

    transition:left .5s ease;

    pointer-events:none;
}

.service-menu .nav-item:hover::before{
    left:130%;
}


/* hover */

.service-menu .nav-item:hover{
    transform:translateY(-4px);

    filter:saturate(1.08);

    box-shadow:
        0 12px 24px rgba(18,48,74,.18);
}


/* ICON */

.service-menu .nav-item i{
    position:relative;
    z-index:2;

    font-size:25px;

    line-height:1;
}


/* TEXT */

.service-menu .nav-item span{
    position:relative;
    z-index:2;

    font-size:13px;

    font-weight:800;

    line-height:1.15;

    text-align:center;
}


/* ==========================================================
   WARNA BUTTON
========================================================== */

.service-menu .aduan{
    background:
        linear-gradient(
            145deg,
            #fb4b5d,
            #ef3348
        );

    box-shadow:
        0 7px 16px rgba(239,51,72,.25);
}


.service-menu .survey{
    background:
        linear-gradient(
            145deg,
            #20c997,
            #0aaa7c
        );

    box-shadow:
        0 7px 16px rgba(10,170,124,.23);
}


.service-menu .inklusi{
    background:
        linear-gradient(
            145deg,
            #fbbd32,
            #f59e0b
        );

    box-shadow:
        0 7px 16px rgba(245,158,11,.24);
}


.service-menu .website{
    background:
        linear-gradient(
            145deg,
            #38a8f4,
            #1684d8
        );

    box-shadow:
        0 7px 16px rgba(22,132,216,.24);
}


/* ==========================================================
   PANEL KANAN
========================================================== */

.service-message{
    min-height:90px;

    display:flex;
    align-items:center;

    justify-content:center;

    gap:15px;

    padding:10px 18px;

    color:#075985;
}


/* ICON KANAN */

.service-message-icon{
    flex:0 0 auto;

    width:58px;
    height:58px;

    display:flex;
    align-items:center;
    justify-content:center;

    font-size:37px;

    color:#075985;
}


/* TEXT KANAN */

.service-message-text{
    display:flex;
    flex-direction:column;

    line-height:1.35;
}

.service-message-text strong{
    font-size:13px;

    font-weight:800;

    color:#075985;
}

.service-message-text span{
    margin-top:3px;

    font-size:11.5px;

    font-weight:600;

    color:#27657f;
}


/* ==========================================================
   RESPONSIVE TABLET
========================================================== */

@media (max-width:1100px){

    .bottom-navbar{
        grid-template-columns:240px 1fr 240px;

        gap:6px;
    }

    .service-brand{
        padding:10px 15px;
        gap:10px;
    }

    .service-brand-icon{
        width:50px;
        font-size:34px;
    }

    .service-brand-text strong,
    .service-brand-text span{
        font-size:16px;
    }

    .service-menu{
        gap:8px;
    }

    .service-menu .nav-item{
        height:82px;
    }

    .service-message{
        gap:7px;
        padding:8px;
    }

    .service-message-icon{
        width:45px;
        font-size:29px;
    }

    .service-message-text span{
        font-size:10px;
    }
}


/* ==========================================================
   TABLET KECIL
========================================================== */

@media (max-width:850px){

    .bottom-navbar{
        grid-template-columns:1fr;

        padding:10px;

        max-width:calc(100% - 30px);
    }

    .service-brand{
        min-height:75px;

        border-radius:15px;
    }

    .service-menu{
        grid-template-columns:repeat(4,1fr);
    }

    .service-message{
        min-height:70px;
    }
}


/* ==========================================================
   MOBILE
========================================================== */

@media (max-width:600px){

    .bottom-navbar{
        margin:10px auto 18px;

        border-radius:18px;
    }

    .service-menu{
        grid-template-columns:repeat(2,1fr);

        gap:8px;
    }

    .service-menu .nav-item{
        height:75px;
    }

    .service-menu .nav-item i{
        font-size:22px;
    }

    .service-menu .nav-item span{
        font-size:12px;
    }

    .service-message{
        justify-content:center;

        text-align:left;
    }

/* ==========================================================
   ACCESSIBILITY WIDGET
   POSISI : KIRI TENGAH
========================================================== */

#accessibility-widget{
    position:fixed !important;

    left:15px !important;
    top:50% !important;

    transform:translateY(-50%) !important;

    z-index:9998 !important;

    width:auto !important;
    height:auto !important;

    margin:0 !important;
    padding:0 !important;
}

/* ==========================================================
   WELCOME AUDIO BUTTON
   POSISI KANAN ATAS HEADER
========================================================== */

.welcome-audio-btn{
    position:absolute;

    top:18px;
    right:24px;

    z-index:50;

    width:44px;
    height:44px;

    border:1px solid rgba(255,255,255,.35);
    border-radius:50%;

    background:rgba(255,255,255,.12);

    backdrop-filter:blur(10px);
    -webkit-backdrop-filter:blur(10px);

    color:#fff;

    font-size:20px;

    display:flex;
    align-items:center;
    justify-content:center;

    cursor:pointer;

    box-shadow:
        0 8px 22px rgba(0,0,0,.16);

    transition:
        transform .25s ease,
        background .25s ease,
        box-shadow .25s ease;
}

.welcome-audio-btn:hover{
    transform:scale(1.08);

    background:rgba(255,255,255,.20);

    box-shadow:
        0 10px 28px rgba(0,0,0,.22);
}

.welcome-audio-btn:active{
    transform:scale(.95);
}

.welcome-audio-btn:focus-visible{
    outline:2px solid #a7f3d0;
    outline-offset:3px;
}


/* ==========================================================
   MOBILE
========================================================== */

@media(max-width:640px){

    .welcome-audio-btn{
        top:14px;
        right:14px;

        width:40px;
        height:40px;

        font-size:18px;
    }

/* ==========================================================
   SIMSALABIM - AUDIO BUTTON
   FORCE POSITION TOP RIGHT
========================================================== */

body > header{
    position:relative !important;
}

body > header .welcome-audio-btn{
    position:absolute !important;

    top:18px !important;
    right:24px !important;
    left:auto !important;
    bottom:auto !important;

    width:46px !important;
    height:46px !important;

    margin:0 !important;
    padding:0 !important;

    z-index:9999 !important;

    display:flex !important;
    align-items:center !important;
    justify-content:center !important;

    border:1px solid rgba(255,255,255,.40) !important;
    border-radius:50% !important;

    background:rgba(255,255,255,.14) !important;

    color:#fff !important;

    font-size:21px !important;
    line-height:1 !important;

    cursor:pointer !important;

    backdrop-filter:blur(12px);
    -webkit-backdrop-filter:blur(12px);

    box-shadow:
        0 8px 24px rgba(0,0,0,.18) !important;

    transform:none !important;

    transition:
        transform .25s ease,
        background .25s ease !important;
}

body > header .welcome-audio-btn:hover{
    transform:scale(1.08) !important;

    background:rgba(255,255,255,.23) !important;
}

@media(max-width:640px){

    body > header .welcome-audio-btn{
        top:14px !important;
        right:14px !important;

        width:40px !important;
        height:40px !important;

        font-size:18px !important;
    }

}