/**
 * OFFICIAL GOVERNMENT PORTAL DESIGN SYSTEM - DINAS PUTRPKP
 * Pemerintah Kabupaten Indragiri Hilir - Provinsi Riau
 * Signature Theme: Kombinasi Utama LimeGreen (#32cd32) & Deep Forest Emerald (#031710 / #062a1e)
 * Desain: Minimalis, Elegan, Tenang, Bersih & Profesional (GovTech Modern)
 */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Outfit:wght@500;600;700;800&display=swap');

:root {
    /* Brand Accent Colors */
    --brand-lime: #32cd32;
    --brand-lime-hover: #2bb82b;
    --brand-lime-soft: #f0fdf4;
    --brand-lime-border: rgba(50, 205, 50, 0.4);

    /* Deep Forest Emerald Identity */
    --deep-forest: #062a1e;
    --deep-forest-dark: #031710;
    --deep-forest-card: #0a3d2e;
    --deep-forest-surface: #0b4534;

    /* Backgrounds */
    --bg-page: #f8fafc;
    --bg-surface: #ffffff;
    --bg-surface-subtle: #f1f5f9;

    /* Typography Colors */
    --text-heading: #0f172a;
    --text-body: #475569;
    --text-muted: #64748b;
    --text-white: #ffffff;

    /* Borders & Outlines */
    --border-light: #e2e8f0;
    --border-focus: #32cd32;

    /* Shadows */
    --shadow-subtle: 0 4px 20px -2px rgba(6, 42, 30, 0.05);
    --shadow-hover: 0 16px 32px -6px rgba(6, 42, 30, 0.1);
    --shadow-button: 0 4px 14px rgba(50, 205, 50, 0.35);

    /* Border Radii - Architectural & Precise (Bespoke GovTech) */
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-btn: 6px;
    --radius-pill: 6px; /* Transformed from 9999px pill to crisp 6px */
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--bg-page);
    color: var(--text-body);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    margin: 0;
    padding: 0;
}

h1, h2, h3, h4, h5, h6, .font-heading {
    font-family: 'Outfit', 'Plus Jakarta Sans', sans-serif;
    color: var(--text-heading);
    letter-spacing: -0.02em;
    line-height: 1.25;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.25s ease;
}

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ==========================================================================
   1. TOPBAR RESMI INSTANSI
   ========================================================================== */
.topbar {
    background: var(--deep-forest-dark);
    color: #94a3b8;
    font-size: 0.8rem;
    padding: 9px 0;
    border-bottom: 1px solid rgba(50, 205, 50, 0.2);
}

.topbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.topbar-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

.topbar-info span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.topbar-info i {
    color: var(--brand-lime);
}

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

.portal-btn {
    background: rgba(50, 205, 50, 0.15);
    color: var(--brand-lime);
    border: 1px solid var(--brand-lime-border);
    padding: 4px 14px;
    border-radius: var(--radius-pill);
    font-size: 0.75rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.portal-btn:hover {
    background: var(--brand-lime);
    color: var(--deep-forest-dark);
}

/* ==========================================================================
   2. HEADER & NAVBAR BERSIH & PRESISI
   ========================================================================== */
.navbar-wrap {
    background: #ffffff;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-light);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

.navbar-wrap .container {
    max-width: 1380px;
}

.navbar {
    display: flex !important;
    flex-wrap: nowrap !important; /* Kunci: Mencegah search box turun ke baris baru */
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 10px 0;
    gap: 16px;
}

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

.brand-logo {
    height: 48px;
    width: 33px;
    object-fit: contain;
    aspect-ratio: 33 / 48;
    flex-shrink: 0;
    display: block;
}

.brand-text h1, .brand-text .brand-title {
    font-size: 1rem;
    font-weight: 800;
    color: var(--deep-forest);
    line-height: 1.2;
    margin: 0 0 2px 0;
    white-space: nowrap;
}

.brand-text p, .brand-text .brand-sub {
    font-size: 0.70rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0;
    white-space: nowrap;
}

.nav-menu {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 18px;
    margin: 0;
    padding: 0;
    flex-shrink: 1;
}

.nav-item {
    position: relative;
    white-space: nowrap;
}

.nav-link {
    font-size: 0.86rem;
    font-weight: 600;
    color: #334155;
    position: relative;
    padding: 6px 0;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    white-space: nowrap;
}

.nav-link:hover, .nav-link.active {
    color: #15803d;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--brand-lime);
    border-radius: 2px;
}

/* Nav Dropdown */
.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 4px;
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.12), 0 4px 12px rgba(0, 0, 0, 0.04);
    min-width: 250px;
    padding: 8px;
    list-style: none;
    z-index: 1050;

    /* Smooth transition & anti-flicker */
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1), transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.2s;
    pointer-events: none;
}

/* Jembatan tak terlihat agar kursor tidak kehilangan hover saat bergerak ke arah card dropdown */
.nav-dropdown-menu::before {
    content: '';
    position: absolute;
    top: -16px;
    left: -20px;
    right: -20px;
    height: 20px;
    background: transparent;
    display: block;
}

.nav-item:hover > .nav-dropdown-menu,
.nav-item.dropdown-open > .nav-dropdown-menu,
.nav-dropdown-menu:hover {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.nav-item .fa-chevron-down {
    transition: transform 0.25s ease;
}

.nav-item:hover .fa-chevron-down,
.nav-item.dropdown-open .fa-chevron-down {
    transform: rotate(180deg);
}

.nav-dropdown-item {
    padding: 10px 14px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #334155;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.2s ease;
    text-decoration: none;
}

.nav-dropdown-item:hover {
    background: var(--brand-lime-soft);
    color: #15803d;
    transform: translateX(3px);
}

.nav-dropdown-item i {
    width: 18px;
    text-align: center;
    color: #15803d;
    transition: transform 0.2s ease;
}

.nav-dropdown-item:hover i {
    transform: scale(1.15);
}

/* Profil Dropdown Menu - Sleek Binamarga Style */
.nav-dropdown-menu-profil {
    min-width: 255px;
    padding: 8px 6px;
}

.nav-dropdown-menu-profil .nav-dropdown-item {
    padding: 9px 14px;
    font-size: 0.88rem;
    font-weight: 500;
    color: #27272a;
    border-radius: 6px;
    display: block;
    white-space: nowrap;
    text-decoration: none;
    transition: all 0.2s ease;
}

.nav-dropdown-menu-profil .nav-dropdown-item:hover {
    background: #f0fdf4;
    color: #15803d;
    padding-left: 18px;
    font-weight: 600;
    transform: none;
}

[id] {
    scroll-margin-top: 90px;
}

/* Nav Actions & Search Box */
.nav-actions-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.nav-search-box {
    display: flex;
    align-items: center;
    background: #f1f5f9;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-pill);
    padding: 3px 5px 3px 12px;
    transition: all 0.25s ease;
    width: 175px;
    flex-shrink: 0;
}

.nav-search-box:focus-within {
    background: #ffffff;
    border-color: var(--brand-lime);
    box-shadow: 0 0 0 3px rgba(50, 205, 50, 0.18);
    width: 210px;
}

.nav-search-input {
    border: none;
    background: transparent;
    font-size: 0.82rem;
    color: var(--text-heading);
    outline: none;
    width: 100%;
    font-family: inherit;
}

.nav-search-input::placeholder {
    color: #94a3b8;
}

.nav-search-btn {
    background: var(--brand-lime);
    color: var(--deep-forest-dark);
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.8rem;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.nav-search-btn:hover {
    background: var(--brand-lime-hover);
    color: #ffffff;
    transform: scale(1.05);
}

/* Penyesuaian Responsif Layar Laptop (992px - 1260px) */
@media (min-width: 992px) and (max-width: 1260px) {
    .nav-menu {
        gap: 12px;
    }
    .nav-link {
        font-size: 0.82rem;
    }
    .nav-search-box {
        width: 145px;
    }
    .nav-search-box:focus-within {
        width: 175px;
    }
    .brand-logo {
        height: 42px;
    }
    .brand-text h1 {
        font-size: 0.92rem;
    }
}

/* ==========================================================================
   3. HERO SLIDER CAROUSEL (3 FOTO RESMI & ANIMASI FONT SILKY SMOOTH)
   ========================================================================== */
.hero-slider-container {
    position: relative;
    min-height: 580px;
    background-color: var(--deep-forest-dark);
    overflow: hidden;
}

.hero-slides {
    position: relative;
    width: 100%;
    min-height: 580px;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    min-height: 580px;
    background-size: cover;
    background-position: center center;
    display: flex;
    align-items: center;
    padding: 80px 0;
    color: var(--text-white);
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s cubic-bezier(0.4, 0, 0.2, 1), visibility 1s;
    z-index: 1;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.hero-inner {
    max-width: 800px;
    position: relative;
    z-index: 3;
}

.hero-kicker, .hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(3, 23, 16, 0.75);
    border: 1px solid rgba(50, 205, 50, 0.35);
    border-left: 3.5px solid var(--brand-lime);
    padding: 7px 16px;
    border-radius: 4px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #e2e8f0;
    margin-bottom: 22px;
    backdrop-filter: blur(8px);
}

.hero-kicker-sep {
    color: var(--brand-lime);
    font-weight: 800;
}

.hero-title {
    font-size: 2.85rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.18;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.hero-title span {
    color: var(--brand-lime);
}

.hero-desc {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #cbd5e1;
    margin-bottom: 32px;
    max-width: 660px;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.btn-primary-hero {
    background: var(--brand-lime);
    color: var(--deep-forest-dark);
    padding: 13px 26px;
    border-radius: var(--radius-btn);
    font-size: 0.95rem;
    font-weight: 700;
    box-shadow: 0 4px 14px rgba(50, 205, 50, 0.35);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.25s ease;
}

.btn-primary-hero:hover {
    background: var(--brand-lime-hover);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(50, 205, 50, 0.45);
}

.btn-secondary-hero {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
    color: #ffffff;
    border: 1.5px solid rgba(255, 255, 255, 0.35);
    padding: 12px 24px;
    border-radius: var(--radius-btn);
    font-size: 0.95rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.25s ease;
}

.btn-secondary-hero:hover {
    background: #ffffff;
    color: var(--deep-forest);
    border-color: #ffffff;
    transform: translateY(-2px);
}

/* === SLIDE 1: GRAND VERTICAL ELEVATION & LETTER SETTLE === */
@keyframes anim1SlideDown {
    from {
        opacity: 0;
        transform: translateY(-32px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
@keyframes anim1SlideUpTitle {
    from {
        opacity: 0;
        transform: translateY(60px);
        letter-spacing: 0.08em;
    }
    to {
        opacity: 1;
        transform: translateY(0);
        letter-spacing: -0.02em;
    }
}
@keyframes anim1SlideUpDesc {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
@keyframes anim1SlideUpActions {
    from {
        opacity: 0;
        transform: translateY(32px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-slide.slide-theme-1.active .anim-badge {
    animation: anim1SlideDown 1.15s cubic-bezier(0.22, 1, 0.36, 1) both;
    animation-delay: 0.15s;
}
.hero-slide.slide-theme-1.active .anim-title {
    animation: anim1SlideUpTitle 1.4s cubic-bezier(0.22, 1, 0.36, 1) both;
    animation-delay: 0.32s;
}
.hero-slide.slide-theme-1.active .anim-desc {
    animation: anim1SlideUpDesc 1.35s cubic-bezier(0.22, 1, 0.36, 1) both;
    animation-delay: 0.52s;
}
.hero-slide.slide-theme-1.active .anim-actions {
    animation: anim1SlideUpActions 1.35s cubic-bezier(0.22, 1, 0.36, 1) both;
    animation-delay: 0.72s;
}

/* === SLIDE 2: CINEMATIC LATERAL GLIDE & OPTICAL FOCUS === */
@keyframes anim2ScaleBadge {
    from {
        opacity: 0;
        transform: translateX(-40px) scale(0.85);
    }
    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}
@keyframes anim2SlideLeftFocus {
    from {
        opacity: 0;
        transform: translateX(-80px);
        filter: blur(8px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
        filter: blur(0);
    }
}
@keyframes anim2SlideLeftDesc {
    from {
        opacity: 0;
        transform: translateX(-55px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}
@keyframes anim2PopActions {
    from {
        opacity: 0;
        transform: translateX(-40px) translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateX(0) translateY(0);
    }
}

.hero-slide.slide-theme-2.active .anim-badge {
    animation: anim2ScaleBadge 1.15s cubic-bezier(0.22, 1, 0.36, 1) both;
    animation-delay: 0.15s;
}
.hero-slide.slide-theme-2.active .anim-title {
    animation: anim2SlideLeftFocus 1.4s cubic-bezier(0.22, 1, 0.36, 1) both;
    animation-delay: 0.32s;
}
.hero-slide.slide-theme-2.active .anim-desc {
    animation: anim2SlideLeftDesc 1.35s cubic-bezier(0.22, 1, 0.36, 1) both;
    animation-delay: 0.52s;
}
.hero-slide.slide-theme-2.active .anim-actions {
    animation: anim2PopActions 1.35s cubic-bezier(0.22, 1, 0.36, 1) both;
    animation-delay: 0.72s;
}

/* === SLIDE 3: ARCHITECTURAL DEPTH EMERGE & 3D PERSPECTIVE === */
@keyframes anim3DepthBadge {
    from {
        opacity: 0;
        transform: perspective(700px) rotateX(24deg) translateY(-22px);
    }
    to {
        opacity: 1;
        transform: perspective(700px) rotateX(0) translateY(0);
    }
}
@keyframes anim3DepthTitle {
    from {
        opacity: 0;
        transform: perspective(1000px) translateZ(-110px) translateY(45px) scale(0.86);
    }
    to {
        opacity: 1;
        transform: perspective(1000px) translateZ(0) translateY(0) scale(1);
    }
}
@keyframes anim3SmoothDesc {
    from {
        opacity: 0;
        transform: perspective(800px) translateZ(-50px) translateY(35px);
    }
    to {
        opacity: 1;
        transform: perspective(800px) translateZ(0) translateY(0);
    }
}
@keyframes anim3ScaleActions {
    from {
        opacity: 0;
        transform: perspective(800px) translateZ(-40px) translateY(24px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: perspective(800px) translateZ(0) translateY(0) scale(1);
    }
}

.hero-slide.slide-theme-3.active .anim-badge {
    animation: anim3DepthBadge 1.15s cubic-bezier(0.22, 1, 0.36, 1) both;
    animation-delay: 0.15s;
}
.hero-slide.slide-theme-3.active .anim-title {
    animation: anim3DepthTitle 1.45s cubic-bezier(0.22, 1, 0.36, 1) both;
    animation-delay: 0.32s;
}
.hero-slide.slide-theme-3.active .anim-desc {
    animation: anim3SmoothDesc 1.35s cubic-bezier(0.22, 1, 0.36, 1) both;
    animation-delay: 0.52s;
}
.hero-slide.slide-theme-3.active .anim-actions {
    animation: anim3ScaleActions 1.35s cubic-bezier(0.22, 1, 0.36, 1) both;
    animation-delay: 0.72s;
}

/* Kondisi awal teks sebelum terpicu animasi */
.hero-slide .anim-badge,
.hero-slide .anim-title,
.hero-slide .anim-desc,
.hero-slide .anim-actions {
    opacity: 0;
}

/* Slider Controls */
.hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(3, 23, 16, 0.65);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #ffffff;
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.25s ease;
}

.hero-arrow:hover {
    background: var(--brand-lime);
    color: var(--deep-forest-dark);
    border-color: var(--brand-lime);
    transform: translateY(-50%) scale(1.08);
    box-shadow: 0 4px 16px rgba(50, 205, 50, 0.4);
}

.hero-arrow-prev {
    left: 24px;
}

.hero-arrow-next {
    right: 24px;
}

.hero-indicators {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 10;
}

.indicator-dot {
    width: 28px;
    height: 6px;
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, 0.35);
    border: none;
    cursor: pointer;
    transition: all 0.35s ease;
}

.indicator-dot.active {
    width: 46px;
    background: var(--brand-lime);
    box-shadow: 0 0 12px rgba(50, 205, 50, 0.6);
}

/* ==========================================================================
   4. QUICK ACTION & SEARCH PORTAL (LAYANAN CEPAT PEMERINTAH)
   ========================================================================== */
.quick-portal-bar {
    background: #ffffff;
    border-bottom: 1px solid var(--border-light);
    position: relative;
    z-index: 10;
    margin-top: -34px;
    padding-bottom: 24px;
}

.quick-portal-card {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(3, 23, 16, 0.08);
    padding: 24px 28px;
}

.quick-search-form {
    display: flex;
    align-items: center;
    background: #f8fafc;
    border: 1.5px solid #cbd5e1;
    border-radius: 6px;
    overflow: hidden;
    transition: all 0.25s ease;
    margin-bottom: 20px;
}

.quick-search-form:focus-within {
    background: #ffffff;
    border-color: #15803d;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.16);
}

.quick-search-icon {
    padding-left: 18px;
    color: #64748b;
    font-size: 1rem;
}

.quick-search-input {
    border: none;
    background: transparent;
    padding: 13px 16px;
    width: 100%;
    font-size: 0.94rem;
    color: #0f172a;
    outline: none;
    font-family: inherit;
}

.quick-search-input::placeholder {
    color: #94a3b8;
}

.quick-search-btn {
    background: var(--deep-forest);
    color: #ffffff;
    border: none;
    padding: 13px 24px;
    font-weight: 700;
    font-size: 0.88rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.quick-search-btn:hover {
    background: #15803d;
}

.quick-tiles-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.quick-tile {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    transition: all 0.2s ease;
    text-decoration: none;
    color: inherit;
}

.quick-tile:hover {
    background: #ffffff;
    border-color: #32cd32;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.05);
}

.quick-tile-icon {
    width: 42px;
    height: 42px;
    border-radius: 6px;
    background: rgba(50, 205, 50, 0.15);
    color: #15803d;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.quick-tile-text strong {
    display: block;
    font-size: 0.88rem;
    color: #0f172a;
    font-weight: 700;
    line-height: 1.25;
}

.quick-tile-text span {
    font-size: 0.74rem;
    color: #64748b;
    line-height: 1.3;
}

/* ==========================================================================
   METRIC CAPAIAN INFRASTRUKTUR RESMI
   ========================================================================== */
.stat-strip {
    background: #f8fafc;
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
    padding: 32px 0;
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.stat-item {
    padding: 0 20px;
    border-right: 1px solid var(--border-light);
}

.stat-item:last-child {
    border-right: none;
}

.stat-num {
    font-family: 'Outfit', sans-serif;
    font-size: 2.1rem;
    font-weight: 800;
    color: var(--deep-forest);
    line-height: 1;
    margin-bottom: 6px;
}

.stat-num span {
    color: #15803d;
    font-size: 1.5rem;
}

.stat-label {
    font-size: 0.83rem;
    color: var(--text-muted);
    font-weight: 600;
}

/* ==========================================================================
   5. SECTION UMUM
   ========================================================================== */
.section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 50px;
}

.section-tag {
    font-size: 0.8rem;
    font-weight: 800;
    color: #15803d;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 10px;
    display: block;
}

.section-title {
    font-size: 2.1rem;
    font-weight: 800;
    color: var(--text-heading);
    margin-bottom: 12px;
}

.section-desc {
    font-size: 1rem;
    color: var(--text-body);
}

/* ==========================================================================
   6. 7 LAYANAN PUBLIK PRIORITAS (SLIDER 4 CARD -> GESER 3 CARD)
   ========================================================================== */
.services-header-wrapper {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 36px;
    gap: 20px;
    flex-wrap: wrap;
}

.services-header-text {
    max-width: 650px;
}

.services-controls {
    display: flex;
    align-items: center;
    gap: 14px;
}

.services-counter-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #ffffff;
    border: 1px solid var(--border-light);
    padding: 7px 16px;
    border-radius: var(--radius-pill);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-muted);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.services-counter-badge strong {
    color: #15803d;
    font-size: 0.95rem;
}

.services-nav-btns {
    display: flex;
    align-items: center;
    gap: 8px;
}

.services-arrow-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #ffffff;
    border: 1.5px solid var(--border-light);
    color: var(--deep-forest);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.services-arrow-btn:hover {
    background: var(--brand-lime);
    color: var(--deep-forest-dark);
    border-color: var(--brand-lime);
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(50, 205, 50, 0.35);
}

.services-carousel-box {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 6px 2px 16px;
}

.services-track {
    display: flex;
    gap: 24px;
    transition: transform 0.65s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: transform;
}

.service-card-item {
    flex: 0 0 calc((100% - (3 * 24px)) / 4);
    max-width: calc((100% - (3 * 24px)) / 4);
    box-sizing: border-box;
    display: flex;
}

.service-card {
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 30px 24px;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
    position: relative;
}

.service-card:hover {
    transform: translateY(-6px);
    border-color: var(--brand-lime-border);
    box-shadow: var(--shadow-hover);
}

.service-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.service-icon-box {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    background: var(--brand-lime-soft);
    color: #15803d;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    transition: all 0.3s ease;
}

.service-card:hover .service-icon-box {
    background: var(--brand-lime);
    color: var(--deep-forest-dark);
    transform: scale(1.05);
}

.service-number-tag {
    font-size: 0.75rem;
    font-weight: 800;
    color: #15803d;
    background: rgba(50, 205, 50, 0.12);
    padding: 4px 10px;
    border-radius: var(--radius-pill);
    letter-spacing: 0.05em;
}

.service-title {
    font-size: 1.12rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-heading);
    line-height: 1.35;
}

.service-text {
    font-size: 0.88rem;
    color: var(--text-body);
    line-height: 1.6;
    margin-bottom: 22px;
}

.service-link {
    font-size: 0.86rem;
    font-weight: 700;
    color: #15803d;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.service-link:hover {
    color: var(--brand-lime-hover);
    gap: 10px;
}

.services-pagination-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 26px;
}

.services-page-pill {
    background: #ffffff;
    border: 1px solid var(--border-light);
    padding: 9px 20px;
    border-radius: var(--radius-pill);
    cursor: pointer;
    font-size: 0.84rem;
    font-weight: 700;
    color: var(--text-muted);
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0,0,0,0.03);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.services-page-pill:hover {
    border-color: var(--brand-lime);
    color: var(--deep-forest);
}

.services-page-pill.active {
    background: var(--deep-forest);
    color: #ffffff;
    border-color: var(--deep-forest);
    box-shadow: 0 4px 14px rgba(3, 23, 16, 0.2);
}

.services-page-pill.active i {
    color: var(--brand-lime);
}

/* ==========================================================================
   7. SECTION SI-TUNTAS (ADUAN INFRASTRUKTUR CEPAT - 2 KOLOM RAPI)
   ========================================================================== */
.aduan-box {
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 44px;
    box-shadow: var(--shadow-subtle);
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 40px;
    align-items: center;
}

.aduan-content h3 {
    font-size: 1.85rem;
    font-weight: 800;
    margin-bottom: 12px;
    color: var(--text-heading);
}

.aduan-content p {
    font-size: 0.95rem;
    color: var(--text-body);
    margin-bottom: 24px;
}

.aduan-steps {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.step-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.step-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--brand-lime-soft);
    color: #15803d;
    font-size: 0.82rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid var(--brand-lime-border);
}

.step-text strong {
    font-size: 0.9rem;
    color: var(--text-heading);
    display: block;
}

.step-text span {
    font-size: 0.82rem;
    color: var(--text-muted);
}

.aduan-card-right {
    background: var(--bg-surface-subtle);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 30px;
    text-align: center;
}

.aduan-card-right h4 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.aduan-card-right p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.ticket-input-group {
    display: flex;
    gap: 8px;
    margin-bottom: 14px;
}

.ticket-input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    outline: none;
}

.ticket-input:focus {
    border-color: var(--brand-lime);
}

.btn-ticket-check {
    background: var(--deep-forest);
    color: #ffffff;
    border: none;
    padding: 10px 18px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    white-space: nowrap;
}

.btn-ticket-check:hover {
    background: #000000;
}

.btn-buat-aduan {
    display: block;
    width: 100%;
    background: var(--brand-lime);
    color: var(--deep-forest-dark);
    padding: 11px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: var(--shadow-button);
}

.btn-buat-aduan:hover {
    background: var(--brand-lime-hover);
    color: #ffffff;
}

/* ==========================================================================
   8. 6 BIDANG TEKNIS PELAKSANA (GRID 3x2 SIMETRIS & TENANG)
   ========================================================================== */
.bidang-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.bidang-card {
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 26px;
    transition: all 0.25s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.bidang-card:hover {
    border-color: var(--brand-lime);
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.bidang-top {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
}

.bidang-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    background: var(--bg-surface-subtle);
    color: var(--deep-forest);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    flex-shrink: 0;
    transition: all 0.25s ease;
}

.bidang-card:hover .bidang-icon {
    background: var(--brand-lime-soft);
    color: #15803d;
}

.bidang-name {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
}

.bidang-desc {
    font-size: 0.85rem;
    color: var(--text-body);
    line-height: 1.6;
    margin-bottom: 16px;
}

.bidang-link {
    font-size: 0.82rem;
    font-weight: 700;
    color: #15803d;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

/* ==========================================================================
   9. EDITORIAL REDAKSIONAL NEWS (PORTAL BERITA RESMI DAERAH)
   ========================================================================== */
.editorial-news-grid {
    display: grid;
    grid-template-columns: 1.35fr 1fr;
    gap: 30px;
    align-items: stretch;
}

/* Featured Article (Left Column) */
.featured-news-card {
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
    transition: all 0.25s ease;
    height: 100%;
}

.featured-news-card:hover {
    border-color: #15803d;
    box-shadow: 0 12px 30px rgba(6, 42, 30, 0.08);
}

.featured-thumb-wrap {
    position: relative;
    width: 100%;
    height: 310px;
    overflow: hidden;
    background: #0f172a;
}

.featured-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.featured-news-card:hover .featured-thumb {
    transform: scale(1.03);
}

.featured-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: #062a1e;
    color: var(--brand-lime);
    border: 1px solid rgba(50, 205, 50, 0.4);
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 5px 12px;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.featured-body {
    padding: 26px 28px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1;
}

.featured-meta {
    font-size: 0.8rem;
    color: #64748b;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.featured-meta i {
    color: #15803d;
}

.featured-title {
    font-size: 1.45rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.35;
    margin-bottom: 12px;
}

.featured-title a {
    color: inherit;
    text-decoration: none;
}

.featured-title a:hover {
    color: #15803d;
}

.featured-excerpt {
    font-size: 0.92rem;
    color: #475569;
    line-height: 1.65;
    margin-bottom: 20px;
}

.featured-link {
    font-size: 0.88rem;
    font-weight: 700;
    color: #15803d;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.featured-link:hover {
    color: #062a1e;
    transform: translateX(4px);
}

/* Compact Recent News List (Right Column) */
.editorial-news-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    height: 100%;
}

.editorial-list-item {
    display: flex;
    gap: 16px;
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 16px;
    transition: all 0.25s ease;
    align-items: center;
    flex: 1;
    text-decoration: none;
    color: inherit;
}

.editorial-list-item:hover {
    border-color: #cbd5e1;
    background: #f8fafc;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
}

.editorial-list-thumb {
    width: 105px;
    height: 85px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
    background: #e2e8f0;
}

.editorial-list-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.editorial-list-tag {
    font-size: 0.72rem;
    font-weight: 700;
    color: #15803d;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}

.editorial-list-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.35;
    margin-bottom: 6px;
}

.editorial-list-title:hover {
    color: #15803d;
}

.editorial-list-date {
    font-size: 0.75rem;
    color: #94a3b8;
}

/* Ornamen Geometris Tenun Songket / Pucuk Rebung Riau */
.riau-divider {
    height: 6px;
    width: 100%;
    background: repeating-linear-gradient(
        45deg,
        #15803d,
        #15803d 10px,
        #32cd32 10px,
        #32cd32 20px,
        #062a1e 20px,
        #062a1e 30px
    );
    opacity: 0.85;
}

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

.news-card {
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: var(--brand-lime-border);
}

.news-thumb {
    width: 100%;
    height: 190px;
    object-fit: cover;
    display: block;
    background: #cbd5e1;
}

.news-body {
    padding: 22px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.news-date {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 8px;
    display: block;
}

.news-title {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-heading);
    line-height: 1.35;
}

.news-title:hover {
    color: #15803d;
}

.news-snippet {
    font-size: 0.85rem;
    color: var(--text-body);
    line-height: 1.55;
    margin-bottom: 14px;
}

/* ==========================================================================
   10. FOOTER RESMI & BERWIBAWA
   ========================================================================== */
.footer {
    background: var(--deep-forest-dark);
    color: #94a3b8;
    padding: 60px 0 25px;
    border-top: 3px solid var(--brand-lime);
}

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

.footer-brand h4 {
    font-size: 1.15rem;
    color: #ffffff;
    font-weight: 800;
    margin-bottom: 12px;
}

.footer-brand p {
    font-size: 0.85rem;
    line-height: 1.6;
    margin-bottom: 16px;
}

.footer-socials {
    display: flex;
    gap: 10px;
}

.footer-social-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    transition: all 0.2s ease;
}

.footer-social-btn:hover {
    background: var(--brand-lime);
    color: var(--deep-forest-dark);
}

.footer-col h5 {
    font-size: 0.95rem;
    color: #ffffff;
    font-weight: 700;
    margin-bottom: 16px;
}

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

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    font-size: 0.85rem;
    color: #94a3b8;
}

.footer-links a:hover {
    color: var(--brand-lime);
    padding-left: 4px;
}

.footer-contact p {
    font-size: 0.85rem;
    margin-bottom: 10px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.footer-contact i {
    color: var(--brand-lime);
    margin-top: 3px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
}

/* =========================================================================
   SISTEM RESPONSIF MENYELURUH (LAPTOP 1080P, TABLET, DAN MOBILE)
   ========================================================================= */

/* 1. LAPTOP STANDAR & MONITOR 1080P (1025px - 1440px)
   Mencegah kesan 'kebesaran' pada layar 1080p dengan skala Windows 125%/150% */
@media (min-width: 993px) and (max-width: 1440px) {
    .container {
        max-width: 1180px;
        padding: 0 20px;
    }
    .hero-slider-container, .hero-slides, .hero-slide {
        min-height: 480px;
    }
    .hero-slide {
        padding: 48px 0;
    }
    .hero-badge {
        font-size: 0.75rem;
        padding: 5px 14px;
        margin-bottom: 18px;
    }
    .hero-title {
        font-size: 2.30rem;
        line-height: 1.2;
        margin-bottom: 16px;
    }
    .hero-desc {
        font-size: 0.98rem;
        line-height: 1.6;
        margin-bottom: 24px;
        max-width: 580px;
    }
    .btn-primary-hero, .btn-secondary-hero {
        padding: 10px 22px;
        font-size: 0.88rem;
    }
    .section {
        padding: 52px 0;
    }
    .section-header {
        margin-bottom: 34px;
    }
    .section-title {
        font-size: 1.75rem;
    }
    .section-desc {
        font-size: 0.92rem;
    }
    .service-card {
        padding: 22px 18px;
    }
    .stat-strip {
        padding: 24px 0;
    }
    .stat-num {
        font-size: 1.85rem;
    }
    .stat-label {
        font-size: 0.80rem;
    }
    .aduan-box {
        padding: 36px 30px;
    }
    .bidang-card {
        padding: 26px 20px;
    }
}

/* 2. TABLET LANDSCAPE & DESKTOP KECIL (769px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    .service-card-item {
        flex: 0 0 calc((100% - 24px) / 2);
        max-width: calc((100% - 24px) / 2);
    }
    .bidang-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .aduan-box {
        grid-template-columns: 1fr;
    }
    .hero-slider-container, .hero-slides, .hero-slide {
        min-height: 480px;
    }
    .hero-title {
        font-size: 2.15rem;
    }
    .hero-desc {
        font-size: 0.95rem;
    }
    .section {
        padding: 48px 0;
    }
    .section-title {
        font-size: 1.65rem;
    }
}

/* 3. MOBILE SMARTPHONE (< 768px) - ZERO COLLISION GUARANTEED */
@media (max-width: 768px) {
    /* Topbar Mobile */
    .topbar {
        padding: 5px 0;
        font-size: 0.74rem;
        min-height: 36px;
    }
    .topbar .container {
        padding: 0 16px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }
    .topbar-info {
        gap: 0;
        margin: 0;
    }
    .topbar-info span:not(.topbar-alamat):not(.topbar-instansi) {
        display: none !important;
    }
    .topbar-alamat, .topbar-instansi {
        font-size: 0.72rem;
        font-weight: 600;
        color: #e2e8f0;
        white-space: nowrap;
        max-width: 205px;
        overflow: hidden;
        text-overflow: ellipsis;
        display: inline-flex;
        align-items: center;
        gap: 5px;
    }
    .topbar-links {
        gap: 0;
    }
    .topbar-socials {
        display: none !important;
    }
    .portal-btn {
        padding: 3px 10px;
        font-size: 0.70rem;
        border-radius: var(--radius-pill);
        white-space: nowrap;
        gap: 4px;
    }

    /* Navbar Mobile */
    .navbar {
        padding: 8px 0 !important;
    }
    .brand-link {
        gap: 10px;
    }
    .brand-logo {
        height: 38px;
        width: auto;
    }
    .brand-text h1, .brand-text .brand-title {
        font-size: 0.85rem;
        line-height: 1.15;
        margin-bottom: 1px;
        white-space: nowrap;
    }
    .brand-text p, .brand-text .brand-sub {
        font-size: 0.60rem;
        letter-spacing: 0.03em;
        white-space: nowrap;
    }
    .nav-menu {
        display: none !important;
    }
    .nav-search-box {
        display: none !important;
    }

    /* Hero Slider Mobile */
    .hero-slider-container, .hero-slides {
        min-height: 570px;
        height: auto;
        position: relative;
    }
    .hero-slide {
        min-height: 570px;
        height: auto;
        padding: 32px 0 65px;
        display: flex;
        align-items: center;
        box-sizing: border-box;
    }
    .hero-inner {
        width: 100%;
        max-width: 100%;
    }
    /* Sembunyikan Tombol Panah Melayang di Mobile agar Tidak Menabrak Teks */
    .hero-arrow {
        display: none !important;
    }
    .hero-badge {
        font-size: 0.68rem;
        padding: 3px 10px;
        margin-bottom: 10px;
        max-width: 100%;
        white-space: normal;
        line-height: 1.30;
        box-sizing: border-box;
    }
    .hero-title {
        font-size: 1.45rem;
        line-height: 1.22;
        margin-bottom: 10px;
    }
    .hero-desc {
        font-size: 0.84rem;
        line-height: 1.48;
        margin-bottom: 16px;
    }
    .hero-actions {
        display: flex;
        flex-direction: column;
        width: 100%;
        gap: 8px;
        margin-bottom: 12px;
    }
    .btn-primary-hero, .btn-secondary-hero {
        width: 100%;
        justify-content: center;
        padding: 9px 16px;
        font-size: 0.84rem;
        box-sizing: border-box;
        text-align: center;
    }
    /* Posisi Indikator Slide Aman di Bawah Tombol */
    .hero-indicators {
        bottom: 18px;
        z-index: 10;
        gap: 8px;
    }
    .indicator-dot {
        width: 22px;
        height: 5px;
    }
    .indicator-dot.active {
        width: 36px;
    }

    /* Stat Strip Mobile */
    .stat-strip {
        padding: 20px 0;
    }
    .stat-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .stat-item {
        padding: 10px 12px;
        border-right: none;
        border-bottom: 1px solid var(--border-light);
    }
    .stat-item:nth-child(n+3) {
        border-bottom: none;
    }
    .stat-num {
        font-size: 1.6rem;
    }
    .stat-label {
        font-size: 0.72rem;
        line-height: 1.35;
    }

    /* Layanan Publik Mobile */
    .section {
        padding: 42px 0;
    }
    .section-header {
        margin-bottom: 24px;
        text-align: left;
    }
    .section-tag {
        font-size: 0.72rem;
    }
    .section-title {
        font-size: 1.45rem;
        line-height: 1.25;
    }
    .section-desc {
        font-size: 0.88rem;
    }
    .services-header-wrapper {
        margin-bottom: 20px;
        gap: 12px;
        flex-direction: column;
        align-items: flex-start;
    }
    .services-controls {
        width: 100%;
        justify-content: space-between;
        margin-top: 4px;
    }
    .service-card-item {
        flex: 0 0 100%;
        max-width: 100%;
    }
    .service-card {
        padding: 20px 16px;
    }
    .services-pagination-bar {
        display: flex;
        flex-direction: column;
        gap: 8px;
        width: 100%;
    }
    .services-page-pill {
        width: 100%;
        justify-content: center;
        font-size: 0.82rem;
        padding: 8px 14px;
    }

    /* SI-TUNTAS Aduan Mobile */
    .aduan-box {
        padding: 24px 16px;
        border-radius: var(--radius-md);
        gap: 20px;
        grid-template-columns: 1fr;
    }
    .aduan-content h3 {
        font-size: 1.35rem;
        line-height: 1.25;
    }
    .aduan-steps {
        flex-direction: column;
        gap: 14px;
    }
    .step-item {
        gap: 12px;
    }
    .step-num {
        width: 32px;
        height: 32px;
        font-size: 0.85rem;
        flex-shrink: 0;
    }

    /* 6 Bidang Teknis & Berita Mobile */
    .bidang-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    .bidang-card {
        padding: 20px 16px;
    }
    .news-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .news-img-wrap {
        height: 190px;
    }
    .news-body {
        padding: 16px;
    }
    .news-title {
        font-size: 1.0rem;
        line-height: 1.4;
    }

    /* Footer Mobile */
    .footer {
        padding: 40px 0 20px;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}

/* 4. PERANGKAT EXTRA SMALL (Layar Sangat Sempit <= 400px) */
@media (max-width: 400px) {
    .container {
        padding: 0 14px;
    }
    .topbar-instansi {
        max-width: 175px;
        font-size: 0.70rem;
    }
    .hero-title {
        font-size: 1.42rem;
    }
    .hero-desc {
        font-size: 0.82rem;
    }
    .hero-slider-container, .hero-slides, .hero-slide {
        min-height: 570px;
    }
}

/* =========================================================================
   ORNAMEN MOTIF BATIK / SONGKET MELAYU RIAU (DINONAKTIFKAN SEMENTARA)
   ========================================================================= */
.page-batik-wrapper {
    position: relative;
    width: 100%;
    box-sizing: border-box;
    padding: 0 !important;
}

.batik-side-left {
    display: none !important;
}



/* =========================================================================
   11. SISTEM DESAIN MENYELURUH (SUBPAGE & BOOTSTRAP HARMONIZATION)
   Menjamin 100% konsistensi warna, font, dan elemen pada seluruh sub-halaman:
   - Font resmi: Outfit (Headings) & Plus Jakarta Sans (Body & UI)
   - Warna resmi: Deep Forest (#020f0a / #031710 / #062a1e) & Brand Lime (#32cd32)
   - Menghilangkan seluruh warna biru default Bootstrap (#0d6efd / #002e5b)
   ========================================================================= */

/* Penegasan Tipografi Global */
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6,
.font-heading,
.section-title,
.card-title,
.page-title,
.subpage-title,
.news-title {
    font-family: 'Outfit', 'Plus Jakarta Sans', sans-serif !important;
    letter-spacing: -0.02em;
    line-height: 1.25;
}

body, p, span, a, input, select, textarea, button, table, td, th, label, .lead {
    font-family: 'Plus Jakarta Sans', sans-serif !important;
}

/* Subpage Header Banner */
.page-banner,
.subpage-banner {
    background: linear-gradient(135deg, #020f0a 0%, #062a1e 50%, #0a3d2e 100%) !important;
    border-bottom: 3px solid var(--brand-lime) !important;
    padding: 48px 0;
    color: #ffffff;
    position: relative;
}

.page-banner h1, .subpage-banner h1 {
    color: #ffffff !important;
    font-size: 2.1rem;
    font-weight: 800;
}

.page-banner .breadcrumb-item a,
.subpage-banner .breadcrumb-item a {
    color: var(--brand-lime) !important;
    text-decoration: none !important;
    font-weight: 600;
    transition: color 0.2s ease;
}

.page-banner .breadcrumb-item a:hover,
.subpage-banner .breadcrumb-item a:hover {
    color: #ffffff !important;
}

.page-banner .breadcrumb-item.active,
.subpage-banner .breadcrumb-item.active {
    color: #94a3b8 !important;
}

.page-banner .breadcrumb-item + .breadcrumb-item::before,
.subpage-banner .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.4) !important;
}

/* Netralisasi Warna Biru Bootstrap (Primary & Info) */
.text-primary,
.link-primary,
a.text-primary {
    color: #15803d !important;
}

.text-primary:hover,
.link-primary:hover,
a.text-primary:hover {
    color: #0f622c !important;
}

.bg-primary,
.bg-navy {
    background-color: var(--deep-forest) !important;
    color: #ffffff !important;
}

.bg-primary-subtle {
    background-color: var(--brand-lime-soft) !important;
    color: #15803d !important;
    border-color: var(--brand-lime-border) !important;
}

.border-primary,
.border-primary-subtle {
    border-color: var(--brand-lime-border) !important;
}

.text-info {
    color: #0d9488 !important;
}

.bg-info {
    background-color: rgba(13, 148, 136, 0.12) !important;
    color: #0f766e !important;
}

/* Penyeragaman Tombol (Buttons) */
.btn-primary {
    background-color: var(--brand-lime) !important;
    border-color: var(--brand-lime) !important;
    color: var(--deep-forest-dark) !important;
    font-weight: 700 !important;
    border-radius: var(--radius-sm) !important;
    padding: 8px 20px;
    transition: all 0.25s ease;
    box-shadow: var(--shadow-button);
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    background-color: var(--brand-lime-hover) !important;
    border-color: var(--brand-lime-hover) !important;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(50, 205, 50, 0.4);
}

.btn-outline-primary {
    color: #15803d !important;
    border-color: var(--brand-lime) !important;
    background-color: transparent !important;
    font-weight: 600 !important;
    border-radius: var(--radius-sm) !important;
    padding: 7px 18px;
    transition: all 0.25s ease;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-primary:active {
    background-color: var(--brand-lime) !important;
    border-color: var(--brand-lime) !important;
    color: var(--deep-forest-dark) !important;
    transform: translateY(-2px);
    box-shadow: var(--shadow-button);
}

/* Mengubah Tombol Warning (Kuning Lama) Menjadi Brand Lime Resmi */
.btn-warning {
    background-color: var(--brand-lime) !important;
    border-color: var(--brand-lime) !important;
    color: var(--deep-forest-dark) !important;
    font-weight: 700 !important;
    border-radius: var(--radius-sm) !important;
    transition: all 0.25s ease;
    box-shadow: var(--shadow-button);
}

.btn-warning:hover,
.btn-warning:focus,
.btn-warning:active {
    background-color: var(--brand-lime-hover) !important;
    border-color: var(--brand-lime-hover) !important;
    color: #ffffff !important;
    transform: translateY(-2px);
}

/* Penyeragaman Badge / Label */
.badge.bg-warning {
    background-color: var(--brand-lime-soft) !important;
    color: #15803d !important;
    border: 1px solid var(--brand-lime-border) !important;
    font-weight: 700 !important;
}

.badge.bg-primary {
    background-color: var(--deep-forest) !important;
    color: #ffffff !important;
    font-weight: 600 !important;
}

.badge.bg-info {
    background-color: rgba(14, 165, 233, 0.12) !important;
    color: #0369a1 !important;
    border: 1px solid rgba(14, 165, 233, 0.25) !important;
}

/* Header Kartu Resmi Dinas (Menggantikan #002e5b) */
.card-header-dinas {
    background: linear-gradient(135deg, #020f0a 0%, #062a1e 100%) !important;
    color: #ffffff !important;
    font-weight: 700;
    border-bottom: 2px solid var(--brand-lime) !important;
    padding: 14px 20px !important;
    border-top-left-radius: var(--radius-md) !important;
    border-top-right-radius: var(--radius-md) !important;
}

/* Penyeragaman Form Input & Select */
.form-control:focus,
.form-select:focus {
    border-color: var(--brand-lime) !important;
    box-shadow: 0 0 0 3px rgba(50, 205, 50, 0.2) !important;
    outline: none !important;
}

/* Penyeragaman Navigasi Halaman (Pagination) */
.page-item.active .page-link {
    background-color: var(--brand-lime) !important;
    border-color: var(--brand-lime) !important;
    color: var(--deep-forest-dark) !important;
    font-weight: 700 !important;
}

.page-link {
    color: #15803d !important;
    border-radius: var(--radius-sm);
    margin: 0 2px;
}

.page-link:hover {
    color: var(--deep-forest-dark) !important;
    background-color: var(--brand-lime-soft) !important;
    border-color: var(--brand-lime-border) !important;
}

/* Penyeragaman Kotak Ikon & Tag */
.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 14px;
    background: var(--brand-lime-soft);
    color: #15803d;
    border: 1px solid var(--brand-lime-border);
    border-radius: var(--radius-pill);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 12px;
}

.icon-box-dinas {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    background: var(--brand-lime-soft);
    color: #15803d;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.avatar-circle-dinas {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: var(--brand-lime-soft);
    border: 3px solid var(--brand-lime);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--deep-forest);
}


/* ==========================================================================
   BAGAN STRUKTUR POHON JABATAN (ORGANIZATIONAL TREE HIERARCHY)
   ========================================================================== */
.org-tree-wrapper {
    position: relative;
    width: 100%;
}

/* Legend & Filter Card */
.org-legend-box {
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
    padding: 16px 24px;
    margin-bottom: 40px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.org-legend-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 18px;
}

.org-legend-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    font-weight: 700;
    color: #334155;
}

.org-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}

.org-dot-kadis {
    background: #d97706;
    box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.2);
}

.org-dot-sekdis {
    background: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

.org-dot-kabid {
    background: #15803d;
    box-shadow: 0 0 0 3px rgba(21, 128, 61, 0.2);
}

/* Base Org Card */
.org-card {
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.org-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 36px rgba(3, 23, 16, 0.12);
}

/* LEVEL 1: KEPALA DINAS (PUCUK PIMPINAN) */
.org-card-kadis {
    max-width: 540px;
    margin: 0 auto;
    border: 2px solid #d97706;
    background: linear-gradient(180deg, #ffffff 0%, #fffdf8 100%);
    box-shadow: 0 16px 36px rgba(217, 119, 6, 0.14);
}

.org-card-kadis::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, #b45309, #d97706, #15803d);
}

.org-avatar-kadis {
    width: 105px;
    height: 105px;
    border-radius: 50%;
    background: #fffbeb;
    border: 3.5px solid #d97706;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #d97706;
    box-shadow: 0 8px 20px rgba(217, 119, 6, 0.2);
}

.badge-kadis {
    background: linear-gradient(135deg, #b45309, #d97706);
    color: #ffffff;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    padding: 6px 14px;
    border-radius: 20px;
    text-transform: uppercase;
}

/* LEVEL 2: SEKRETARIS DINAS */
.org-card-sekdis {
    max-width: 460px;
    margin: 0 auto;
    border: 1.5px solid #2563eb;
    background: linear-gradient(180deg, #ffffff 0%, #f8faff 100%);
    box-shadow: 0 12px 28px rgba(37, 99, 235, 0.1);
}

.org-card-sekdis::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #1d4ed8, #38bdf8);
}

.org-avatar-sekdis {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: #eff6ff;
    border: 3px solid #2563eb;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #2563eb;
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.18);
}

.badge-sekdis {
    background: linear-gradient(135deg, #1d4ed8, #2563eb);
    color: #ffffff;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    padding: 5px 12px;
    border-radius: 20px;
    text-transform: uppercase;
}

/* LEVEL 3: KEPALA BIDANG & UPT */
.org-card-kabid {
    border-top: 4px solid #15803d;
    background: #ffffff;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.org-avatar-kabid {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    background: var(--brand-lime-soft);
    border: 2.5px solid #15803d;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #15803d;
    margin-bottom: 12px;
    box-shadow: 0 4px 12px rgba(21, 128, 61, 0.15);
}

.badge-kabid {
    background: var(--brand-lime-soft);
    color: #15803d;
    border: 1px solid rgba(21, 128, 61, 0.25);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 14px;
}

/* TREE CONNECTORS (GARIS POHON JABATAN) */
.org-tree-trunk {
    width: 3px;
    height: 48px;
    margin: 0 auto;
    background: linear-gradient(180deg, #d97706 0%, #2563eb 100%);
    position: relative;
}

.org-tree-trunk::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.25);
}

.org-tree-stem {
    width: 3px;
    height: 44px;
    margin: 0 auto;
    background: linear-gradient(180deg, #2563eb 0%, #15803d 100%);
    position: relative;
}

.org-tree-stem::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #15803d;
    box-shadow: 0 0 0 3px rgba(21, 128, 61, 0.25);
}

.org-branch-wrap {
    position: relative;
    margin-bottom: 30px;
}

.org-branch-label-box {
    text-align: center;
    position: relative;
    z-index: 2;
}

.org-branch-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    border: 1.5px solid #15803d;
    color: #15803d;
    padding: 6px 20px;
    border-radius: 30px;
    font-size: 0.82rem;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(21, 128, 61, 0.1);
}

/* Horizontal Connector Line for Desktop Tree */
@media (min-width: 992px) {
    .org-branch-bar {
        position: relative;
        height: 24px;
        margin-bottom: 20px;
    }

    .org-branch-bar::before {
        content: '';
        position: absolute;
        top: 0;
        left: 8%;
        right: 8%;
        height: 3px;
        background: #cbd5e1;
    }

    .org-col-node {
        position: relative;
    }

    .org-col-node::before {
        content: '';
        position: absolute;
        top: -24px;
        left: 50%;
        transform: translateX(-50%);
        width: 3px;
        height: 24px;
        background: #cbd5e1;
    }

    .org-col-node::after {
        content: '';
        position: absolute;
        top: -27px;
        left: 50%;
        transform: translateX(-50%);
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: #15803d;
    }
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES: QUICK ACTION & EDITORIAL NEWS
   ========================================================================== */
@media (max-width: 991px) {
    .quick-tiles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .editorial-news-grid {
        grid-template-columns: 1fr;
    }
    .featured-thumb-wrap {
        height: 240px;
    }
    .hero-title {
        font-size: 2.2rem;
    }
    .stat-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    .stat-item {
        border-right: none;
        border-bottom: 1px solid var(--border-light);
        padding-bottom: 14px;
    }
    .stat-item:last-child {
        border-bottom: none;
    }
}

@media (max-width: 576px) {
    .quick-tiles-grid {
        grid-template-columns: 1fr;
    }
    .quick-portal-card {
        padding: 16px 18px;
    }
    .quick-search-form {
        flex-direction: column;
        align-items: stretch;
    }
    .quick-search-btn {
        width: 100%;
        justify-content: center;
        padding: 11px;
    }
    .hero-title {
        font-size: 1.85rem;
    }
    .hero-desc {
        font-size: 0.95rem;
    }
    .hero-kicker {
        font-size: 0.68rem;
        padding: 5px 10px;
    }
    .stat-grid {
        grid-template-columns: 1fr;
    }
    .editorial-list-item {
        flex-direction: column;
        align-items: flex-start;
    }
    .editorial-list-thumb {
        width: 100%;
        height: 160px;
    }
}
