/* ============================================================================
   BP4 Provinsi Kepulauan Riau — Portal Design System
   Aesthetic: Institutional Emerald Green, Gold Accent, Editorial Serif + Clean Sans
   ============================================================================ */

:root {
    --emerald-950: #022c22;
    --emerald-900: #064e3b;
    --emerald-800: #065f46;
    --emerald-700: #047857;
    --emerald-600: #059669;
    --emerald-100: #d1fae5;
    --emerald-50: #ecfdf5;
    --gold-600: #d97706;
    --gold-500: #f59e0b;
    --gold-100: #fef3c7;
    --ink-900: #0f172a;
    --ink-700: #334155;
    --ink-500: #64748b;
    --surface: #f8faf9;
    --border: #e2e8f0;
    --radius-lg: 16px;
    --radius-md: 12px;
    --shadow-sm: 0 2px 10px rgba(6, 78, 59, 0.05);
    --shadow-md: 0 10px 30px rgba(6, 78, 59, 0.08);
    --shadow-lg: 0 20px 45px rgba(6, 78, 59, 0.14);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    max-width: 100%;
}

body {
    margin: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--ink-900);
    background-color: var(--surface);
    line-height: 1.68;
    -webkit-font-smoothing: antialiased;
    font-variant-numeric: lining-nums;
    overflow-x: hidden;
    max-width: 100%;
}

h1,
h2,
h3,
.font-serif {
    font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 800;
    letter-spacing: -0.025em;
    font-variant-numeric: lining-nums;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Top Bar & Jadwal Sholat 5 Waktu --- */
.topbar {
    background: var(--emerald-950);
    color: #e2e8f0;
    font-size: 0.82rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.topbar-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 9px 0;
}

.topbar-dates {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.date-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.date-masehi {
    background: rgba(255, 255, 255, 0.09);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #f8fafc;
}

.date-hijri {
    background: rgba(245, 158, 11, 0.16);
    border: 1px solid rgba(251, 191, 36, 0.35);
    color: #fde68a;
}

.date-sep {
    color: rgba(255, 255, 255, 0.35);
    font-size: 0.85rem;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.topbar-hours {
    color: #cbd5e1;
    font-size: 0.79rem;
}

.topbar-admin-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 12px;
    border-radius: 999px;
    background: rgba(16, 185, 129, 0.18);
    border: 1px solid rgba(110, 231, 183, 0.3);
    color: #a7f3d0;
    font-weight: 600;
    font-size: 0.78rem;
    transition: all 0.2s ease;
}

.topbar-admin-link:hover {
    background: rgba(16, 185, 129, 0.32);
    color: #fff;
}

.prayer-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.prayer-city-select {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    padding: 3px 12px;
    font-size: 0.78rem;
    font-family: inherit;
    cursor: pointer;
    outline: none;
}

.prayer-city-select option {
    background: var(--emerald-900);
    color: #fff;
}

.prayer-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.prayer-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2px 9px;
    border-radius: 999px;
    font-size: 0.76rem;
    transition: all 0.2s ease;
}

.prayer-pill strong {
    color: #fde68a;
    font-weight: 600;
}

.prayer-pill.is-next {
    background: var(--gold-600);
    border-color: var(--gold-500);
    color: #fff;
}

.prayer-pill.is-next strong {
    color: #fff;
}

/* --- Navbar --- */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(6, 78, 59, 0.08);
    transition: box-shadow 0.25s ease;
}

.navbar.scrolled {
    box-shadow: var(--shadow-sm);
}

.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 76px;
    gap: 16px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 1;
    min-width: 0;
}

.brand-text {
    min-width: 0;
}

.brand img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    flex-shrink: 0;
}

.brand-text .brand-title {
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
    font-weight: 800;
    font-size: 1.12rem;
    letter-spacing: -0.02em;
    color: var(--emerald-900);
    line-height: 1.15;
}

.brand-text .brand-sub {
    font-size: 0.72rem;
    color: var(--ink-500);
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 6px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 9px 13px;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--ink-700);
    transition: all 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--emerald-800);
    background: var(--emerald-50);
}

/* Dropdown */
.dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 220px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 8px;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all 0.2s ease;
    z-index: 120;
}

.nav-item:hover .dropdown-menu,
.nav-item:focus-within .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    display: block;
    padding: 9px 14px;
    border-radius: 9px;
    font-size: 0.87rem;
    font-weight: 500;
    color: var(--ink-700);
    transition: all 0.15s ease;
}

.dropdown-menu a:hover {
    background: var(--emerald-50);
    color: var(--emerald-800);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 22px;
    border-radius: 11px;
    font-weight: 600;
    font-size: 0.9rem;
    font-family: inherit;
    border: none;
    cursor: pointer;
    transition: all 0.22s ease;
}

.btn-primary {
    background: var(--emerald-800);
    color: #fff;
    box-shadow: 0 4px 14px rgba(6, 95, 70, 0.22);
}

.btn-primary:hover {
    background: var(--emerald-900);
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(6, 78, 59, 0.28);
}

.btn-gold {
    background: linear-gradient(135deg, var(--gold-500), var(--gold-600));
    color: #fff;
    box-shadow: 0 4px 14px rgba(217, 119, 6, 0.28);
}

.btn-gold:hover {
    filter: brightness(1.06);
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    color: var(--emerald-800);
    border: 1.5px solid var(--emerald-700);
}

.btn-outline:hover {
    background: var(--emerald-50);
}

.btn-outline-light {
    background: transparent;
    color: #fff;
    border: 1.5px solid rgba(255, 255, 255, 0.55);
}

.btn-outline-light:hover,
.btn-outline-light:focus {
    background: #fff;
    color: var(--ink-900);
    border-color: #fff;
}

.btn-white {
    background: #fff;
    color: var(--emerald-900);
}

.btn-white:hover {
    background: var(--emerald-50);
}

.mobile-toggle {
    display: none;
    background: var(--emerald-50);
    color: var(--emerald-900);
    border: 1px solid var(--emerald-100);
    border-radius: 10px;
    padding: 8px 12px;
    font-size: 1.2rem;
    cursor: pointer;
}

/* --- HERO BANNER SLIDER (Animated Ken Burns + Staggered Reveal) --- */
.hero-slider {
    position: relative;
    width: 100%;
    min-height: clamp(600px, 78vh, 760px);
    overflow: hidden;
    background: var(--emerald-950);
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.85s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.85s;
    display: flex;
    align-items: center;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
    position: relative;
    min-height: clamp(600px, 78vh, 760px);
}

.hero-slide-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center 22%;
    transform: scale(1.08);
    transition: transform 6.5s ease-out;
}

.hero-slide.active .hero-slide-bg {
    transform: scale(1);
}

.hero-slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(95deg, rgba(2, 44, 34, 0.86) 0%, rgba(6, 78, 59, 0.62) 52%, rgba(2, 44, 34, 0.28) 100%);
}

.hero-content {
    position: relative;
    z-index: 5;
    max-width: 720px;
    padding: 115px 0 145px;
    color: #fff;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(245, 158, 11, 0.2);
    border: 1px solid rgba(251, 191, 36, 0.45);
    color: #fde68a;
    padding: 6px 15px;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease 0.15s;
}

.hero-title {
    font-size: clamp(2rem, 4.2vw, 3.3rem);
    line-height: 1.15;
    margin: 0 0 18px;
    color: #fff;
    opacity: 0;
    transform: translateY(26px);
    transition: all 0.7s ease 0.28s;
}

.hero-subtitle {
    font-size: 1.04rem;
    color: #d1fae5;
    margin: 0 0 30px;
    max-width: 620px;
    opacity: 0;
    transform: translateY(24px);
    transition: all 0.7s ease 0.42s;
}

.hero-cta-group {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.7s ease 0.55s;
}

.hero-slide.active .hero-badge,
.hero-slide.active .hero-title,
.hero-slide.active .hero-subtitle,
.hero-slide.active .hero-cta-group {
    opacity: 1;
    transform: translateY(0);
}

.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: rgba(2, 44, 34, 0.45);
    backdrop-filter: blur(6px);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.25rem;
    transition: all 0.2s ease;
}

.slider-nav:hover {
    background: var(--gold-600);
    border-color: var(--gold-500);
}

.slider-prev {
    left: 22px;
}

.slider-next {
    right: 22px;
}

.slider-dots {
    position: absolute;
    bottom: 66px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 10px;
}

.slider-dot {
    width: 11px;
    height: 11px;
    border-radius: 999px;
    border: none;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.slider-dot.active {
    width: 34px;
    background: var(--gold-500);
}

.slider-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 4px;
    width: 0;
    background: linear-gradient(90deg, var(--gold-500), #34d399);
    z-index: 10;
}

/* --- Sections & Headers --- */
.section {
    padding: 76px 0;
}

.section-alt,
.section-white {
    background: #fff;
}

    .section-soft {
        background: #f3f7f5;
        border-bottom: 1px solid #e4ede9;
    }

    .section-tint {
        background: #eaf3ef;
        border-top: 1px solid #dce9e3;
        border-bottom: 1px solid #dce9e3;
    }

    .section-warm {
        background: #f5f7f6;
        border-top: 1px solid #e5ebe8;
    }

    .section-emerald {
        background: linear-gradient(135deg, var(--emerald-950), var(--emerald-800));
        color: #fff;
    }

    .section-eyebrow {
        display: inline-block;
        font-size: 0.78rem;
        font-weight: 700;
        letter-spacing: 0.12em;
        text-transform: uppercase;
        color: var(--emerald-700);
        margin-bottom: 10px;
    }

    .section-title {
        font-size: clamp(1.75rem, 3vw, 2.45rem);
        color: var(--ink-900);
        margin: 0 0 12px;
        line-height: 1.2;
    }

    .section-desc {
        color: var(--ink-500);
        margin: 0;
        max-width: 640px;
    }

    .section-head-split {
        display: flex;
        flex-wrap: wrap;
        align-items: flex-end;
        justify-content: space-between;
        gap: 20px;
        margin-bottom: 42px;
    }

    .section-head-center {
        text-align: center;
        max-width: 720px;
        margin: 0 auto 48px;
    }

    .section-head-center .section-desc {
        margin: 0 auto;
    }

    /* --- 4 Layanan Utama Cards (Sesuai Screenshot 3) --- */
    .grid-4 {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 22px;
    }

    .grid-3 {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 24px;
    }

    .grid-2 {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 28px;
    }

    .split-layout {
        display: grid;
        grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
        gap: 32px;
        align-items: start;
    }

    .split-layout-wide {
        display: grid;
        grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
        gap: 32px;
        align-items: start;
    }

    .service-card {
        background: #fff;
        border: 1.5px solid var(--border);
        border-radius: var(--radius-lg);
        padding: 28px 24px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        transition: all 0.25s ease;
        cursor: pointer;
        box-shadow: var(--shadow-sm);
    }

    .service-card:hover {
        border-color: var(--emerald-700);
        transform: translateY(-5px);
        box-shadow: var(--shadow-md);
    }

    .service-badge {
        display: inline-block;
        align-self: flex-start;
        background: var(--emerald-50);
        color: var(--emerald-800);
        font-size: 0.76rem;
        font-weight: 700;
        padding: 5px 12px;
        border-radius: 8px;
        margin-bottom: 18px;
    }

    .service-card h3 {
        font-family: 'Plus Jakarta Sans', sans-serif;
        font-size: 1.18rem;
        font-weight: 700;
        color: var(--ink-900);
        margin: 0 0 10px;
    }

    .service-card p {
        font-size: 0.92rem;
        color: var(--ink-500);
        margin: 0 0 24px;
        line-height: 1.6;
    }

    .service-link {
        display: flex;
        align-items: center;
        justify-content: space-between;
        font-size: 0.88rem;
        font-weight: 700;
        color: var(--emerald-800);
        padding-top: 14px;
        border-top: 1px solid #f1f5f9;
    }

    /* --- Visi & Peran Strategis Cards (Sesuai Screenshot 4) --- */
    .role-card {
        background: #fff;
        border: 1px solid var(--border);
        border-radius: var(--radius-lg);
        padding: 30px 26px;
        box-shadow: var(--shadow-sm);
        transition: all 0.25s ease;
    }

    .role-card:hover {
        transform: translateY(-4px);
        box-shadow: var(--shadow-md);
        border-color: var(--emerald-100);
    }

    .role-num {
        width: 46px;
        height: 46px;
        border-radius: 12px;
        background: var(--emerald-900);
        color: #fde68a;
        font-weight: 800;
        font-size: 1.05rem;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-bottom: 20px;
    }

    .role-card h3 {
        font-family: 'Plus Jakarta Sans', sans-serif;
        font-size: 1.15rem;
        font-weight: 700;
        margin: 0 0 10px;
        color: var(--ink-900);
    }

    .role-card p {
        margin: 0;
        font-size: 0.93rem;
        color: var(--ink-500);
    }

    /* --- News & Opinion Cards --- */
    .post-card {
        background: #fff;
        border: 1px solid var(--border);
        border-radius: var(--radius-lg);
        overflow: hidden;
        display: flex;
        flex-direction: column;
        transition: all 0.25s ease;
        box-shadow: var(--shadow-sm);
    }

    .post-card:hover {
        transform: translateY(-5px);
        box-shadow: var(--shadow-md);
    }

    .post-thumb {
        position: relative;
        aspect-ratio: 16 / 10;
        overflow: hidden;
        background: var(--emerald-900);
    }

    .post-thumb img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.5s ease;
    }

    .post-card:hover .post-thumb img {
        transform: scale(1.06);
    }

    .post-cat {
        position: absolute;
        top: 14px;
        left: 14px;
        background: rgba(6, 78, 59, 0.92);
        color: #fff;
        font-size: 0.72rem;
        font-weight: 700;
        padding: 4px 11px;
        border-radius: 999px;
    }

    .post-body {
        padding: 20px 22px 24px;
        display: flex;
        flex-direction: column;
        flex: 1;
    }

    .post-meta {
        font-size: 0.78rem;
        color: var(--ink-500);
        margin-bottom: 8px;
        display: flex;
        gap: 10px;
        flex-wrap: wrap;
    }

    .post-title {
        font-family: 'Plus Jakarta Sans', sans-serif;
        font-size: 1.06rem;
        font-weight: 700;
        color: var(--ink-900);
        margin: 0 0 10px;
        line-height: 1.4;
    }

    .post-title:hover {
        color: var(--emerald-700);
    }

    .post-excerpt {
        font-size: 0.88rem;
        color: var(--ink-500);
        margin: 0 0 16px;
        flex: 1;
    }

    /* --- Prayer Times Widget Card --- */
    .prayer-card-strip {
        background: #fff;
        border: 1px solid var(--border);
        border-radius: 20px;
        padding: 24px 28px;
        box-shadow: var(--shadow-md);
        margin-top: -48px;
        position: relative;
        z-index: 20;
    }

    .prayer-grid-5 {
        display: grid;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 14px;
        margin-top: 16px;
    }

    .prayer-box {
        background: var(--surface);
        border: 1px solid var(--border);
        border-radius: 14px;
        padding: 14px 12px;
        text-align: center;
        transition: all 0.2s ease;
    }

    .prayer-box.is-next {
        background: linear-gradient(135deg, var(--emerald-900), var(--emerald-700));
        color: #fff;
        border-color: var(--emerald-800);
        box-shadow: 0 8px 20px rgba(6, 78, 59, 0.22);
    }

    .prayer-box .p-name {
        font-size: 0.8rem;
        font-weight: 600;
        opacity: 0.8;
    }

    .prayer-box .p-time {
        font-size: 1.38rem;
        font-weight: 800;
        margin-top: 4px;
        letter-spacing: 0.02em;
    }

    /* --- 2-Column Editorial News & Opini (Kemenag Style) --- */
    .editorial-grid {
        display: grid;
        grid-template-columns: minmax(0, 1.85fr) minmax(0, 1fr);
        gap: 36px;
        align-items: start;
    }

    .editorial-head {
        display: flex;
        align-items: flex-end;
        justify-content: space-between;
        margin-bottom: 22px;
        border-bottom: 1px solid var(--border);
        padding-bottom: 10px;
    }

    .editorial-title {
        margin: 0;
        font-size: 1.45rem;
        font-weight: 800;
        letter-spacing: 0.02em;
        color: var(--emerald-900);
        line-height: 1.1;
    }

    .editorial-title span {
        display: inline-block;
        position: relative;
        padding-bottom: 10px;
        margin-bottom: -11px;
        border-bottom: 3px solid var(--emerald-700);
    }

    .editorial-more {
        font-size: 0.86rem;
        font-weight: 700;
        color: var(--emerald-800);
        transition: color 0.18s ease;
    }

    .editorial-more:hover {
        color: var(--gold-600);
    }

    .news-featured-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 22px;
        margin-bottom: 24px;
    }

    .news-feat-card {
        display: flex;
        flex-direction: column;
    }

    .news-feat-thumb {
        display: block;
        aspect-ratio: 16 / 10;
        border-radius: 12px;
        overflow: hidden;
        background: var(--emerald-900);
        margin-bottom: 12px;
    }

    .news-feat-thumb img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.45s ease;
    }

    .news-feat-card:hover .news-feat-thumb img {
        transform: scale(1.05);
    }

    .news-cat-label {
        font-size: 0.72rem;
        font-weight: 700;
        letter-spacing: 0.06em;
        color: var(--emerald-700);
        margin-bottom: 5px;
    }

    .news-feat-title {
        margin: 0 0 8px;
        font-size: 1.03rem;
        font-weight: 700;
        line-height: 1.4;
        color: var(--ink-900);
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
        transition: color 0.18s ease;
    }

    .news-feat-title:hover,
    .news-compact-title:hover {
        color: var(--emerald-700);
    }

    .news-date-meta {
        font-size: 0.78rem;
        color: var(--ink-500);
    }

    .news-compact-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px 22px;
        padding-top: 20px;
        border-top: 1px solid var(--border);
    }

    .news-compact-item {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 12px;
    }

    .news-compact-text {
        flex: 1;
        min-width: 0;
    }

    .news-compact-title {
        margin: 0 0 6px;
        font-size: 0.92rem;
        font-weight: 700;
        line-height: 1.4;
        color: var(--ink-900);
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .news-compact-thumb {
        width: 88px;
        height: 70px;
        border-radius: 9px;
        overflow: hidden;
        flex-shrink: 0;
        background: var(--emerald-900);
    }

    .news-compact-thumb img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    /* Pojok Opini Column Stack */
    .opini-stack {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .opini-row-card {
        display: flex;
        align-items: flex-start;
        gap: 14px;
        background: #fff;
        border: 1px solid var(--border);
        border-radius: 14px;
        padding: 15px 16px;
        transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
    }

    .opini-row-card:hover {
        border-color: var(--emerald-600);
        box-shadow: var(--shadow-sm);
        transform: translateY(-2px);
    }

    .opini-icon-box {
        width: 44px;
        height: 44px;
        border-radius: 11px;
        background: #dcfce7;
        color: var(--emerald-800);
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.15rem;
        flex-shrink: 0;
    }

    .opini-row-body {
        flex: 1;
        min-width: 0;
    }

    .opini-row-title {
        margin: 0 0 7px;
        font-size: 0.92rem;
        font-weight: 700;
        line-height: 1.38;
        color: var(--ink-900);
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .opini-row-card:hover .opini-row-title {
        color: var(--emerald-800);
    }

    .opini-row-meta {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 8px;
        font-size: 0.75rem;
        color: var(--ink-500);
        margin-bottom: 4px;
    }

    .opini-tag {
        display: inline-block;
        background: #fef3c7;
        color: #92400e;
        font-weight: 700;
        font-size: 0.7rem;
        padding: 2px 8px;
        border-radius: 6px;
    }

    .opini-row-author {
        font-size: 0.77rem;
        font-weight: 600;
        color: var(--emerald-800);
    }

    @media (max-width: 1024px) {
        .editorial-grid {
            grid-template-columns: 1fr;
            gap: 40px;
        }
    }

    @media (max-width: 680px) {

        .news-featured-grid,
        .news-compact-grid {
            grid-template-columns: 1fr;
        }
    }

    /* --- FAQ Accordion Section --- */
    .faq-layout {
        display: grid;
        grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.65fr);
        gap: 52px;
        align-items: start;
    }

    .faq-pill {
        display: inline-block;
        padding: 5px 15px;
        border-radius: 999px;
        border: 1px solid var(--border);
        background: #fff;
        color: var(--emerald-800);
        font-size: 0.74rem;
        font-weight: 700;
        letter-spacing: 0.1em;
        text-transform: uppercase;
        margin-bottom: 14px;
    }

    .faq-divider {
        height: 1px;
        background: var(--border);
        margin: 0 0 22px;
    }

    .faq-list {
        display: flex;
        flex-direction: column;
    }

    .faq-item {
        border-bottom: 1px solid var(--border);
        padding: 4px 0;
    }

    .faq-item:first-child {
        border-top: 1px solid var(--border);
    }

    .faq-trigger {
        width: 100%;
        background: transparent;
        border: none;
        padding: 18px 4px;
        display: flex;
        align-items: flex-start;
        gap: 16px;
        text-align: left;
        font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
        font-size: 1.03rem;
        font-weight: 700;
        color: var(--ink-900);
        cursor: pointer;
        transition: color 0.18s ease;
    }

    .faq-trigger:hover {
        color: var(--emerald-800);
    }

    .faq-icon {
        width: 24px;
        height: 24px;
        border-radius: 6px;
        background: var(--emerald-50);
        color: var(--emerald-800);
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 1.1rem;
        font-weight: 700;
        flex-shrink: 0;
        margin-top: 1px;
    }

    .faq-item.open .faq-icon {
        background: var(--emerald-800);
        color: #fff;
    }

    .faq-answer {
        display: none;
        padding: 0 8px 18px 44px;
        color: var(--ink-700);
        font-size: 0.94rem;
        line-height: 1.72;
    }

    .faq-answer p {
        margin: 0;
    }

    .faq-item.open .faq-answer {
        display: block;
    }

    @media (max-width: 960px) {
        .faq-layout {
            grid-template-columns: 1fr;
            gap: 30px;
        }
    }

    /* --- Forms & Cards --- */
    .page-hero {
        background: linear-gradient(135deg, var(--emerald-950), var(--emerald-800));
        color: #fff;
        padding: 58px 0;
        position: relative;
        overflow: hidden;
    }

    .page-hero h1 {
        font-size: clamp(1.9rem, 3.4vw, 2.7rem);
        margin: 0 0 10px;
        color: #fff;
    }

    .page-hero p {
        color: #d1fae5;
        margin: 0;
        max-width: 680px;
    }

    .card-box {
        background: #fff;
        border: 1px solid var(--border);
        border-radius: 18px;
        padding: 30px;
        box-shadow: var(--shadow-sm);
    }

    .form-group {
        margin-bottom: 18px;
    }

    .form-label {
        display: block;
        font-size: 0.88rem;
        font-weight: 600;
        color: var(--ink-900);
        margin-bottom: 7px;
    }

    .form-control,
    .form-select {
        width: 100%;
        padding: 12px 15px;
        border: 1.5px solid #cbd5e1;
        border-radius: 11px;
        font-family: inherit;
        font-size: 0.94rem;
        color: var(--ink-900);
        background: #fff;
        transition: border-color 0.2s, box-shadow 0.2s;
    }

    .form-control:focus,
    .form-select:focus {
        outline: none;
        border-color: var(--emerald-600);
        box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.14);
    }

    /* Donation Nominal Pills */
    .nominal-grid {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 10px;
        margin-bottom: 14px;
    }

    .nominal-btn {
        border: 1.5px solid #cbd5e1;
        background: #fff;
        color: var(--ink-900);
        padding: 13px 10px;
        border-radius: 12px;
        font-weight: 700;
        font-size: 0.95rem;
        cursor: pointer;
        transition: all 0.2s ease;
        font-family: inherit;
    }

    .nominal-btn:hover {
        border-color: var(--emerald-600);
        color: var(--emerald-800);
    }

    .nominal-btn.active {
        background: var(--emerald-800);
        border-color: var(--emerald-800);
        color: #fff;
        box-shadow: 0 6px 16px rgba(6, 95, 70, 0.24);
    }

    /* Alerts */
    .alert {
        padding: 15px 18px;
        border-radius: 12px;
        margin-bottom: 20px;
        font-size: 0.92rem;
    }

    .alert-success {
        background: #ecfdf5;
        border: 1px solid #6ee7b7;
        color: #065f46;
    }

    .alert-danger {
        background: #fef2f2;
        border: 1px solid #fca5a5;
        color: #991b1b;
    }

    .alert-warning {
        background: #fffbeb;
        border: 1px solid #fcd34d;
        color: #92400e;
    }

    /* Modal */
    .modal-backdrop {
        position: fixed;
        inset: 0;
        background: rgba(2, 44, 34, 0.72);
        backdrop-filter: blur(4px);
        z-index: 999;
        display: none;
        align-items: center;
        justify-content: center;
        padding: 20px;
    }

    .modal-backdrop.open {
        display: flex;
    }

    .modal-dialog {
        background: #fff;
        border-radius: 20px;
        max-width: 680px;
        width: 100%;
        max-height: 90vh;
        overflow-y: auto;
        padding: 30px;
        position: relative;
        box-shadow: var(--shadow-lg);
        animation: modalPop 0.24s ease;
    }

    @keyframes modalPop {
        from {
            opacity: 0;
            transform: scale(0.94) translateY(10px);
        }

        to {
            opacity: 1;
            transform: scale(1) translateY(0);
        }
    }

    .modal-close {
        position: absolute;
        top: 16px;
        right: 16px;
        width: 36px;
        height: 36px;
        border-radius: 50%;
        border: none;
        background: #f1f5f9;
        font-size: 1.25rem;
        cursor: pointer;
        color: var(--ink-700);
    }

    /* --- Link Terkait & Mitra Strategis (Di atas Footer) --- */
    .mitra-section {
        background: #fff;
        border-top: 1px solid var(--border);
        padding: 60px 0 64px;
        margin-top: 40px;
        margin-top: 0;
    }

    .mitra-header {
        text-align: center;
        margin-bottom: 34px;
    }

    .mitra-title {
        font-size: clamp(1.45rem, 2.5vw, 1.9rem);
        color: var(--ink-900);
        margin: 0 0 8px;
    }

    .mitra-sub {
        color: var(--ink-500);
        font-size: 0.92rem;
        margin: 0;
    }

    .mitra-grid {
        display: grid;
        grid-template-columns: repeat(6, minmax(0, 1fr));
        gap: 16px;
    }

    .mitra-card {
        background: var(--surface);
        border: 1px solid var(--border);
        border-radius: 14px;
        padding: 18px 12px 16px;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    }

    .mitra-card:hover {
        background: #fff;
        border-color: var(--emerald-600);
        transform: translateY(-4px);
        box-shadow: var(--shadow-md);
    }

    .mitra-logo-wrap {
        height: 60px;
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-bottom: 12px;
    }

    .mitra-logo-wrap img {
        max-height: 56px;
        max-width: 96px;
        object-fit: contain;
    }

    .mitra-name {
        font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
        font-size: 0.82rem;
        font-weight: 700;
        color: var(--ink-900);
        line-height: 1.3;
        margin-bottom: 3px;
    }

    .mitra-role {
        font-size: 0.72rem;
        color: var(--ink-500);
        line-height: 1.3;
    }

    @media (max-width: 1100px) {
        .mitra-grid {
            grid-template-columns: repeat(4, minmax(0, 1fr));
        }
    }

    @media (max-width: 760px) {
        .mitra-grid {
            grid-template-columns: repeat(2, minmax(0, 1fr));
        }
    }

    /* Footer */
    .footer {
        background: var(--emerald-950);
        color: #cbd5e1;
        padding: 64px 0 28px;
        margin-top: 0;
    }

    .footer-grid {
        display: grid;
        grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
        gap: 36px;
        margin-bottom: 44px;
    }

    .footer h4 {
        color: #fff;
        font-family: 'Plus Jakarta Sans', sans-serif;
        font-size: 1rem;
        margin: 0 0 16px;
    }

    .footer ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .footer ul li {
        margin-bottom: 10px;
        font-size: 0.9rem;
    }

    .footer ul li a:hover {
        color: #fde68a;
    }

    .footer-bottom {
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        padding-top: 22px;
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        gap: 12px;
        font-size: 0.83rem;
        color: #94a3b8;
    }

    /* Responsive */
    @media (max-width: 1024px) {
        .grid-4 {
            grid-template-columns: repeat(2, minmax(0, 1fr));
        }

        .grid-3 {
            grid-template-columns: repeat(2, minmax(0, 1fr));
        }

        .split-layout,
        .split-layout-wide {
            grid-template-columns: 1fr;
        }

        .footer-grid {
            grid-template-columns: repeat(2, minmax(0, 1fr));
        }

        .mobile-toggle {
            display: inline-flex;
        }

        .nav-links {
            display: none;
            position: absolute;
            top: 76px;
            left: 0;
            right: 0;
            background: #fff;
            flex-direction: column;
            align-items: stretch;
            padding: 16px 20px 24px;
            border-bottom: 1px solid var(--border);
            box-shadow: var(--shadow-md);
        }

        .nav-links.open {
            display: flex;
        }

        .dropdown-menu {
            position: static;
            opacity: 1;
            visibility: visible;
            transform: none;
            box-shadow: none;
            border: none;
            padding-left: 16px;
            background: var(--surface);
            margin-top: 4px;
        }
    }

    @media (max-width: 680px) {
        .container {
            padding: 0 16px;
        }

        .topbar-inner {
            justify-content: center;
            text-align: center;
            gap: 6px;
            padding: 8px 0;
        }

        .topbar-dates {
            justify-content: center;
            gap: 6px;
        }

        .date-sep {
            display: none;
        }

        .date-badge {
            font-size: 0.73rem;
            padding: 3px 10px;
        }

        .topbar-hours {
            font-size: 0.73rem;
        }

        .navbar-inner {
            height: 68px;
            gap: 10px;
        }

        .brand {
            gap: 9px;
        }

        .brand img {
            width: 38px;
            height: 38px;
        }

        .brand-text .brand-title {
            font-size: 0.98rem;
        }

        .brand-text .brand-sub {
            font-size: 0.66rem;
            max-width: 100%;
        }

        .mobile-toggle {
            flex-shrink: 0;
            padding: 7px 11px;
        }

        .hero-slider,
        .hero-slide.active {
            min-height: 460px;
        }

        .hero-content {
            padding: 56px 0 92px;
        }

        .hero-title {
            font-size: 1.75rem;
        }

        .hero-subtitle {
            font-size: 0.92rem;
        }

        .prayer-card-strip {
            padding: 18px 16px;
            margin-top: -36px;
        }

        .section {
            padding: 52px 0;
        }

        .card-box {
            padding: 20px 16px;
        }

        .grid-4,
        .grid-3,
        .grid-2 {
            grid-template-columns: 1fr;
        }

        .prayer-grid-5 {
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 10px;
        }

        .prayer-grid-5 .prayer-box:last-child {
            grid-column: span 2;
        }

        .nominal-grid {
            grid-template-columns: repeat(2, minmax(0, 1fr));
        }

        .footer-grid {
            grid-template-columns: 1fr;
        }

        .slider-nav {
            display: none;
        }
    }

    /* ============================================================================
   ACCESSIBILITY FLOATING BUTTON & PANEL (RAMAH DISABILITAS)
   ============================================================================ */
    .a11y-fab {
        position: fixed;
        right: 22px;
        bottom: 24px;
        z-index: 950;
        width: 56px;
        height: 56px;
        border-radius: 50%;
        border: 2px solid rgba(253, 230, 138, 0.7);
        background: linear-gradient(135deg, var(--emerald-900), var(--emerald-700));
        color: #fff;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        box-shadow: 0 10px 28px rgba(6, 78, 59, 0.35);
        transition: transform 0.2s ease, box-shadow 0.2s ease;
    }

    .a11y-fab:hover {
        transform: translateY(-2px) scale(1.04);
        box-shadow: 0 14px 34px rgba(6, 78, 59, 0.45);
    }

    .a11y-panel {
        position: fixed;
        right: 22px;
        bottom: 92px;
        z-index: 960;
        width: 318px;
        max-width: calc(100vw - 32px);
        background: #fff;
        border: 1px solid var(--border);
        border-radius: 20px;
        box-shadow: 0 22px 55px rgba(15, 23, 42, 0.22);
        opacity: 0;
        visibility: hidden;
        transform: translateY(14px) scale(0.97);
        transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
        overflow: hidden;
    }

    .a11y-panel.open {
        opacity: 1;
        visibility: visible;
        transform: translateY(0) scale(1);
    }

    .a11y-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 16px 20px;
        border-bottom: 1px solid #f1f5f9;
    }

    .a11y-header h2 {
        margin: 0;
        font-size: 1.08rem;
        font-weight: 800;
        color: var(--ink-900);
    }

    .a11y-close {
        background: transparent;
        border: none;
        font-size: 1.55rem;
        line-height: 1;
        color: var(--ink-700);
        cursor: pointer;
        padding: 2px 6px;
        border-radius: 8px;
    }

    .a11y-close:hover {
        background: #f1f5f9;
    }

    .a11y-body {
        padding: 16px 20px 20px;
    }

    .a11y-section-label {
        font-size: 0.85rem;
        font-weight: 600;
        color: var(--ink-700);
        margin-bottom: 10px;
    }

    .a11y-size-grid {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
        margin-bottom: 16px;
    }

    .a11y-size-btn {
        padding: 11px 6px;
        border-radius: 12px;
        border: 1.5px solid #e2e8f0;
        background: #fff;
        color: var(--ink-700);
        font-size: 0.83rem;
        font-weight: 600;
        font-family: inherit;
        cursor: pointer;
        line-height: 1.25;
        transition: all 0.16s ease;
    }

    .a11y-size-btn:hover {
        border-color: var(--emerald-600);
        color: var(--emerald-800);
    }

    .a11y-size-btn.active {
        background: var(--emerald-50);
        border-color: var(--emerald-700);
        color: var(--emerald-900);
        font-weight: 700;
    }

    .a11y-row {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 12px 14px;
        border-radius: 12px;
        background: #f8fafc;
        margin-bottom: 10px;
        font-size: 0.88rem;
        font-weight: 600;
        color: var(--ink-900);
        cursor: pointer;
    }

    .a11y-switch {
        position: relative;
        display: inline-block;
        width: 44px;
        height: 24px;
        flex-shrink: 0;
    }

    .a11y-switch input {
        opacity: 0;
        width: 0;
        height: 0;
    }

    .a11y-slider {
        position: absolute;
        inset: 0;
        background: #cbd5e1;
        border-radius: 999px;
        transition: background 0.2s ease;
    }

    .a11y-slider::before {
        content: '';
        position: absolute;
        height: 18px;
        width: 18px;
        left: 3px;
        bottom: 3px;
        background: #fff;
        border-radius: 50%;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
        transition: transform 0.2s ease;
    }

    .a11y-switch input:checked+.a11y-slider {
        background: var(--emerald-700);
    }

    .a11y-switch input:checked+.a11y-slider::before {
        transform: translateX(20px);
    }

    .a11y-speak-btn {
        width: 100%;
        margin-top: 6px;
        padding: 10px 14px;
        border-radius: 11px;
        border: 1.5px solid var(--emerald-700);
        background: var(--emerald-50);
        color: var(--emerald-900);
        font-size: 0.85rem;
        font-weight: 700;
        font-family: inherit;
        cursor: pointer;
        transition: all 0.16s ease;
    }

    .a11y-speak-btn.speaking {
        background: var(--emerald-800);
        color: #fff;
    }

    .a11y-reset-btn {
        width: 100%;
        margin-top: 10px;
        padding: 10px 14px;
        border-radius: 11px;
        border: 1.5px solid #cbd5e1;
        background: #fff;
        color: var(--ink-700);
        font-size: 0.86rem;
        font-weight: 600;
        font-family: inherit;
        cursor: pointer;
        transition: background 0.16s ease;
    }

    .a11y-reset-btn:hover {
        background: #f1f5f9;
    }

    /* --- ACTIVE ACCESSIBILITY MODES --- */
    html.a11y-text-large {
        font-size: 114%;
    }

    html.a11y-text-xlarge {
        font-size: 128%;
    }

    body.a11y-dyslexia,
    body.a11y-dyslexia h1,
    body.a11y-dyslexia h2,
    body.a11y-dyslexia h3,
    body.a11y-dyslexia p,
    body.a11y-dyslexia a,
    body.a11y-dyslexia li {
        font-family: Verdana, 'Trebuchet MS', Arial, sans-serif !important;
        letter-spacing: 0.055em !important;
        word-spacing: 0.14em !important;
        line-height: 1.85 !important;
    }

    body.a11y-highlight-links a,
    body.a11y-highlight-links button.btn {
        text-decoration: underline !important;
        text-underline-offset: 4px !important;
        outline: 2px solid #f59e0b !important;
        outline-offset: 2px !important;
    }

    body.a11y-reduce-motion *,
    body.a11y-reduce-motion *::before,
    body.a11y-reduce-motion *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }

    body.a11y-high-contrast {
        background: #000 !important;
        color: #fff !important;
    }

    body.a11y-high-contrast .navbar,
    body.a11y-high-contrast .section-alt,
    body.a11y-high-contrast .card-box,
    body.a11y-high-contrast .service-card,
    body.a11y-high-contrast .role-card,
    body.a11y-high-contrast .post-card,
    body.a11y-high-contrast .prayer-card-strip,
    body.a11y-high-contrast .prayer-box,
    body.a11y-high-contrast .dropdown-menu {
        background: #111 !important;
        color: #fff !important;
        border-color: #facc15 !important;
    }

    body.a11y-high-contrast h1,
    body.a11y-high-contrast h2,
    body.a11y-high-contrast h3,
    body.a11y-high-contrast p,
    body.a11y-high-contrast .brand-title,
    body.a11y-high-contrast .brand-sub,
    body.a11y-high-contrast .nav-link,
    body.a11y-high-contrast .post-title,
    body.a11y-high-contrast .post-excerpt,
    body.a11y-high-contrast .section-desc,
    body.a11y-high-contrast .form-label {
        color: #fff !important;
    }

    body.a11y-high-contrast a,
    body.a11y-high-contrast .section-eyebrow,
    body.a11y-high-contrast .service-link {
        color: #fde047 !important;
    }