/*
 * Theme Name: DP3AKB Majalengka
 * Theme URI: https://dp3akb.majalengkakab.go.id
 * Description: Tema resmi Dinas Pemberdayaan Perempuan, Perlindungan Anak, dan Keluarga Berencana Kabupaten Majalengka
 * Author: Tim IT DP3AKB
 * Version: 1.0.0
 * Text Domain: dp3akb
 */

/* =============================================================
   1. DESIGN TOKENS / CSS VARIABLES
   ============================================================= */
:root {
    /* Primary Palette (Government Navy) */
    --color-navy: #0B5394;
    --color-navy-dark: #073763;
    --color-navy-light: #146CBE;
    --color-navy-subtle: #E6F0F9;
    --color-blue-main: #1976D2;
    /* Used by Sejarah Dinas section */

    /* Accent (Formal Gold) */
    --color-gold: #F1C40F;
    --color-gold-light: #F7DC6F;
    --color-gold-dark: #B7950B;

    /* Neutrals */
    --color-white: #FFFFFF;
    --color-off-white: #F8F9FA;
    --color-light-gray: #f1f4f8;
    --color-border: #dee2e6;
    --color-text: #2c3e50;
    --color-text-muted: #6c757d;

    /* Status */
    --color-success: #198754;
    --color-whatsapp: #25D366;
    --color-whatsapp-dk: #128C7E;

    /* Typography */
    --font-primary: 'Poppins', 'Roboto', Arial, sans-serif;
    --font-heading: 'Poppins', 'Roboto', Arial, sans-serif;

    /* Spacing */
    --section-py: 5rem;
    --section-py-sm: 3rem;

    /* Borders & Shadows */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --shadow-sm: 0 2px 8px rgba(13, 43, 85, 0.08);
    --shadow-md: 0 6px 24px rgba(13, 43, 85, 0.12);
    --shadow-lg: 0 12px 40px rgba(13, 43, 85, 0.18);

    /* Navbar */
    --navbar-height: 72px;
    --topbar-height: 38px;
    --header-total: calc(var(--navbar-height) + var(--topbar-height));

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-base: 0.35s ease;
    --transition-slow: 0.55s ease;
}

/* =============================================================
   2. RESET & BASE
   ============================================================= */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-total) + 2rem);
}

body {
    font-family: var(--font-primary);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--color-text);
    background-color: var(--color-white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Override Bootstrap Rounded Corners to Strict 0px */
.btn,
.form-control,
.card,
.dropdown-menu,
.modal-content,
.alert,
.progress,
.nav-pills .nav-link {
    border-radius: 0;
}

body.menu-open {
    overflow: hidden;
}

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

a {
    color: var(--color-navy);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--color-gold);
}

/* =============================================================
   UTILITY CLASSES (shared across templates)
   ============================================================= */

/* Color utility — supplements Bootstrap; used in templates instead of inline style="color:var(--color-navy)" */
.text-navy { color: var(--color-navy) !important; }

/* Section subheading — replaces repeated inline h4 styles across profil/layanan/program templates */
.section-subheading {
    color: var(--color-navy);
    font-weight: 700;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

/* Gallery placeholder — pure CSS fallback when a gallery post has no featured image.
   Replaces placehold.co external requests. */
.gallery-placeholder-img {
    width: 100%;
    background: linear-gradient(135deg, var(--color-navy-subtle) 0%, #d0e4f7 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    position: relative;
}
.gallery-placeholder-img::after {
    content: '\F3EF'; /* bi-image Bootstrap Icons unicode */
    font-family: 'bootstrap-icons';
    font-size: 2.5rem;
    color: var(--color-navy-light);
    opacity: 0.4;
    position: absolute;
}


h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.25;
    color: var(--color-navy);
}

/* =============================================================
   3. UTILITY CLASSES
   ============================================================= */
.section-py {
    padding-top: var(--section-py);
    padding-bottom: var(--section-py);
}

.section-py-sm {
    padding-top: var(--section-py-sm);
    padding-bottom: var(--section-py-sm);
}

.text-navy {
    color: var(--color-navy) !important;
}

.text-gold {
    color: var(--color-gold) !important;
}

.bg-navy {
    background-color: var(--color-navy) !important;
}

.bg-gold {
    background-color: var(--color-gold) !important;
}

.bg-subtle {
    background-color: var(--color-light-gray) !important;
}

/* Section Titles */
.section-eyebrow {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-gold);
    margin-bottom: 0.5rem;
}

.section-title {
    font-size: clamp(1.6rem, 3vw, 2.25rem);
    font-weight: 800;
    color: var(--color-navy);
    margin-bottom: 1rem;
}

.section-desc {
    color: var(--color-text-muted);
    font-size: 1.05rem;
    max-width: 600px;
}

.section-divider {
    width: 56px;
    height: 4px;
    background: var(--color-gold);
    margin: 0.75rem auto 1.5rem;
}

.section-divider.left {
    margin-left: 0;
}

/* =============================================================
   4. BUTTONS
   ============================================================= */
.btn {
    font-weight: 600;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    letter-spacing: 0.01em;
}

.btn-navy {
    background-color: var(--color-navy);
    border-color: var(--color-navy);
    color: var(--color-white);
}

.btn-navy:hover {
    background-color: var(--color-navy-dark);
    border-color: var(--color-navy-dark);
    color: var(--color-white);
}

.btn-gold {
    background: var(--color-gold);
    border-color: var(--color-gold);
    color: var(--color-navy-dark);
    font-weight: 700;
}

.btn-gold:hover {
    background: var(--color-gold-dark);
    border-color: var(--color-gold-dark);
    color: var(--color-white);
}

.btn-outline-navy {
    border-color: var(--color-navy);
    color: var(--color-navy);
    background: transparent;
}

.btn-outline-navy:hover {
    background-color: var(--color-navy);
    color: var(--color-white);
}

.btn-whatsapp {
    background-color: var(--color-whatsapp);
    border-color: var(--color-whatsapp);
    color: var(--color-white);
    font-weight: 700;
}

.btn-whatsapp:hover {
    background-color: var(--color-whatsapp-dk);
    border-color: var(--color-whatsapp-dk);
    color: var(--color-white);
}

.btn-nav-search {
    background: transparent;
    border: 1.5px solid rgba(255, 255, 255, 0.25);
    color: var(--color-white);
    border-radius: 50%;
    width: 38px;
    height: 38px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.btn-nav-search:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--color-gold);
    color: var(--color-gold);
}

.scrolled .btn-nav-search {
    border-color: rgba(13, 43, 85, 0.3);
    color: var(--color-navy);
}

.scrolled .btn-nav-search:hover {
    background: var(--color-navy-subtle);
    border-color: var(--color-navy);
    color: var(--color-navy);
}

/* =============================================================
   5. TOP INFO BAR
   ============================================================= */
.top-info-bar {
    background: var(--color-navy-dark);
    height: var(--topbar-height);
    display: flex;
    align-items: center;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.8);
    position: relative;
    z-index: 1031;
}

.top-bar-item {
    display: flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.85);
}

.top-bar-divider {
    color: rgba(255, 255, 255, 0.25);
}

.top-bar-label {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.75rem;
}

.top-bar-social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.85rem;
    transition: all var(--transition-fast);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.top-bar-social:hover {
    background: var(--color-gold);
    border-color: var(--color-gold);
    color: var(--color-navy-dark);
    transform: translateY(-1px);
}

/* =============================================================
   6. NAVBAR
   ============================================================= */
.site-header {
    position: absolute;
    width: 100%;
    top: 0;
    z-index: 1030;
    background: transparent;
}

.header-banner {
    background: transparent;
    border-bottom: none;
}

/* ---- PILL NAVBAR (matches prototype) ---- */
.dp3akb-navbar {
    background: transparent;
    height: auto;
    padding: 0 0 14px 0;
    border-bottom: none;
    transition: none;
}

/* The inner pill container — constrained to container, not full viewport */
.dp3akb-navbar .container-xl {
    background: #ffffff;
    border-radius: 40px;
    padding: 5px 8px 5px 28px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    /* fit-content + 100% cap prevents overflow when nav has many items */
    max-width: 100%;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    overflow-x: visible;
    flex-wrap: nowrap;
}

/* Scrolled state — keep the pill */
.site-header.scrolled .dp3akb-navbar {
    background: transparent;
    box-shadow: none;
    height: auto;
    border-bottom: none;
}

.site-header.scrolled .dp3akb-navbar .container-xl {
    box-shadow: 0 6px 20px rgba(15, 68, 146, 0.18);
}


/* Brand */
.dp3akb-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    flex-shrink: 0;
}

.brand-logo-wrapper {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    transition: background var(--transition-fast);
    overflow: hidden;
}

.brand-logo-wrapper img,
.brand-logo-wrapper .custom-logo {
    width: 38px;
    height: 38px;
    object-fit: contain;
}

.dp3akb-brand:hover .brand-logo-wrapper {
    background: rgba(255, 255, 255, 0.25);
}

.scrolled .brand-logo-wrapper {
    background: var(--color-navy-subtle);
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.brand-name {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--color-white);
    letter-spacing: 0.03em;
    transition: color var(--transition-fast);
}

.brand-sub {
    font-size: 0.65rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 0.04em;
    transition: color var(--transition-fast);
}

.scrolled .brand-name {
    color: var(--color-navy);
}

.scrolled .brand-sub {
    color: var(--color-text-muted);
}

/* Nav Links */
.dp3akb-navbar .navbar-nav {
    gap: 4px;
}

.dp3akb-navbar .nav-link {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-navy);
    padding: 0.55rem 0.9rem;
    border-radius: 30px;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all var(--transition-fast);
    letter-spacing: 0.01em;
    position: relative;
}

/* Remove the underline indicator — using pill highlight instead */
.dp3akb-navbar .nav-link::before {
    display: none;
}

.dp3akb-navbar .nav-link:hover {
    color: var(--color-navy);
    background: rgba(11, 83, 148, 0.05);
}

/* Scrolled nav links — pill stays dark */
.scrolled .dp3akb-navbar .nav-link {
    color: var(--color-navy);
}

/* Nav icons always visible on desktop */
.dp3akb-navbar .navbar-nav .nav-link i {
    display: inline;
}

.dp3akb-dropdown {
    border: none;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: 0.5rem;
    min-width: 220px;
    max-width: 300px;
    background: var(--color-white);
    border-top: 3px solid var(--color-gold);
    animation: dropdownFadeIn 0.2s ease;
}

@keyframes dropdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

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

.dp3akb-dropdown .dropdown-item {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-text);
    border-radius: var(--radius-sm);
    padding: 0.55rem 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: normal; /* Allow text wrapping for long items on small devices */
    line-height: 1.35;
    transition: all var(--transition-fast);
}

.dp3akb-dropdown .dropdown-item:hover {
    background-color: var(--color-navy-subtle);
    color: var(--color-navy);
    padding-left: 1.2rem;
}

.dp3akb-dropdown .dropdown-item::before {
    content: '›';
    color: var(--color-gold);
    font-weight: 700;
    font-size: 1rem;
    flex-shrink: 0;
    transition: transform var(--transition-fast);
}

.dp3akb-dropdown .dropdown-item:hover::before {
    transform: translateX(3px);
}

/* Submenu Dropdown Logic */
.dp3akb-navbar .dropend .dropdown-toggle::after {
    display: none !important; /* Hide default Bootstrap caret on nested menus only */
}

/* Make the right chevron turn gold and move slightly on hover */
.dp3akb-dropdown .dropend > .dropdown-item i.bi-chevron-right {
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.dp3akb-dropdown .dropend > .dropdown-item:hover i.bi-chevron-right {
    color: var(--color-gold) !important;
    transform: translateX(3px);
}

.dp3akb-dropdown .submenu {
    display: none;
    position: absolute;
    top: 0;
    left: 100%;
    margin-top: -1px;
    min-width: 220px;
    max-width: 290px;
    background: var(--color-white);
    border: none;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: 0.5rem;
    z-index: 1000;
}

/* Auto Flip to Left when Submenu overflows right edge of screen */
.dp3akb-dropdown .submenu.open-left {
    left: auto !important;
    right: 100% !important;
    margin-left: 0 !important;
    margin-right: -1px !important;
}

@media (min-width: 992px) {
    /* Ensure desktop navbar collapse is always a clean horizontal layout */
    .dp3akb-navbar .navbar-collapse {
        display: flex !important;
        flex-basis: auto !important;
        background: transparent !important;
        padding: 0 !important;
        margin: 0 !important;
        width: auto !important;
        max-height: none !important;
        overflow: visible !important;
        box-shadow: none !important;
        border: none !important;
        height: auto !important;
    }

    /* Never show mobile backdrop on desktop */
    .navbar-backdrop {
        display: none !important;
    }

    /* Prevent body lock on desktop */
    body.menu-open {
        overflow: auto !important;
    }

    .dp3akb-navbar .dropdown:hover > .dropdown-menu {
        display: block !important;
    }
    .dp3akb-navbar .dropend:hover > .submenu {
        display: block !important;
    }
}

/* Custom Toggler */
.dp3akb-toggler {
    background: rgba(11, 83, 148, 0.08);
    border: 1px solid rgba(11, 83, 148, 0.18);
    border-radius: var(--radius-sm);
    padding: 0.45rem 0.65rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.dp3akb-toggler:hover,
.dp3akb-toggler:focus {
    background: rgba(11, 83, 148, 0.15);
    outline: none;
    box-shadow: 0 0 0 3px rgba(11, 83, 148, 0.15);
}

.toggler-icon {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 22px;
}

.toggler-icon span {
    display: block;
    height: 2.5px;
    border-radius: 2px;
    background: var(--color-navy); /* Dark blue visible on white background */
    transition: all var(--transition-base);
}

.toggler-icon span:nth-child(1) {
    width: 100%;
}

.toggler-icon span:nth-child(2) {
    width: 75%;
}

.toggler-icon span:nth-child(3) {
    width: 50%;
}

.dp3akb-toggler[aria-expanded="true"] .toggler-icon span:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
    width: 100%;
    background: var(--color-navy);
}

.dp3akb-toggler[aria-expanded="true"] .toggler-icon span:nth-child(2) {
    opacity: 0;
}

.dp3akb-toggler[aria-expanded="true"] .toggler-icon span:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
    width: 100%;
    background: var(--color-navy);
}

/* Scrolled toggler */
.scrolled .toggler-icon span {
    background: var(--color-navy);
}


/* Search Bar */
.navbar-search-bar {
    background: var(--color-navy-dark);
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-base);
}

.navbar-search-bar.open {
    max-height: 80px;
}

.search-input-main {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--color-white);
    border-radius: var(--radius-sm);
}

.search-input-main::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.search-input-main:focus {
    background: rgba(255, 255, 255, 0.18);
    border-color: var(--color-gold);
    box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.2);
    color: var(--color-white);
}

/* Mobile navbar collapse */
@media (max-width: 991.98px) {

    .dp3akb-navbar {
        padding: 4px 12px 14px 12px;
    }

    /* Container expands to full width on mobile with sleek pill styling */
    .dp3akb-navbar .container-xl {
        width: 100% !important;
        max-width: 100% !important;
        border-radius: 16px;
        padding: 8px 16px;
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
        box-shadow: 0 4px 20px rgba(7, 55, 99, 0.12);
        background: #ffffff;
    }

    .mobile-nav-brand {
        font-family: var(--font-primary);
        font-size: 0.875rem;
        font-weight: 700;
        color: var(--color-navy);
        letter-spacing: 0.01em;
        text-transform: none;
    }

    /* Mobile Drawer Collapse Panel — Clean Light Card matching Desktop */
    .navbar-collapse {
        background: #ffffff;
        padding: 1.25rem 1rem;
        border-radius: var(--radius-md);
        margin: 10px 0 0 0;
        width: 100%;
        box-shadow: 0 14px 40px rgba(11, 83, 148, 0.16);
        border: 1px solid rgba(11, 83, 148, 0.12);
        max-height: calc(100vh - 160px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .dp3akb-navbar .navbar-nav {
        gap: 4px;
        width: 100%;
    }

    .dp3akb-navbar .nav-link {
        font-family: var(--font-primary);
        font-size: 0.875rem !important;
        font-weight: 500 !important;
        letter-spacing: 0.01em;
        color: var(--color-navy) !important;
        padding: 0.6rem 0.9rem !important;
        border-radius: var(--radius-sm);
        display: flex;
        align-items: center;
        transition: all var(--transition-fast);
    }

    .dp3akb-navbar .nav-link::before {
        display: none;
    }

    .dp3akb-navbar .nav-link i {
        color: var(--color-navy-light);
        font-size: 0.95rem;
        display: inline-block !important;
    }

    .dp3akb-navbar .nav-link:hover,
    .dp3akb-navbar .nav-link:focus {
        background: var(--color-navy-subtle) !important;
        color: var(--color-navy) !important;
    }

    .dp3akb-navbar .nav-item.active .nav-link {
        background: var(--color-navy-subtle) !important;
        color: var(--color-navy) !important;
        font-weight: 700 !important;
        border-left: 4px solid var(--color-gold);
        border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    }

    /* Mobile Dropdowns */
    .dp3akb-dropdown {
        background: #f8fafc;
        box-shadow: none;
        border-top: none;
        border-left: 3px solid var(--color-gold);
        border-radius: var(--radius-sm);
        padding: 0.4rem 0.5rem;
        margin: 4px 0 8px 8px;
        min-width: unset;
    }

    .dp3akb-dropdown .dropdown-item {
        font-family: var(--font-primary);
        font-size: 0.875rem !important;
        font-weight: 500 !important;
        letter-spacing: 0.01em;
        color: var(--color-text) !important;
        padding: 0.55rem 0.75rem;
        border-radius: var(--radius-sm);
        display: flex;
        align-items: center;
    }

    .dp3akb-dropdown .dropdown-item:hover,
    .dp3akb-dropdown .dropdown-item:focus {
        background: var(--color-navy-subtle) !important;
        color: var(--color-navy) !important;
        padding-left: 0.9rem;
    }

    .dp3akb-dropdown .dropdown-item::before {
        color: var(--color-gold-dark);
        font-size: 0.95rem;
    }

    /* Submenu on Mobile (expands downwards, accordion style) */
    .dp3akb-dropdown .submenu {
        position: static;
        display: none;
        background: #ffffff;
        border: 1px solid var(--color-border);
        border-left: 3px solid var(--color-navy-light);
        border-radius: var(--radius-sm);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
        padding: 0.3rem 0.5rem;
        margin: 4px 0 6px 12px;
        min-width: unset;
    }

    .dp3akb-dropdown .dropend.show > .submenu,
    .dp3akb-dropdown .dropend.open > .submenu {
        display: block !important;
        animation: submenuFadeIn 0.2s ease;
    }

    @keyframes submenuFadeIn {
        from {
            opacity: 0;
            transform: translateY(-4px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .dp3akb-dropdown .dropend > .dropdown-item i.bi-chevron-right {
        transition: transform var(--transition-fast);
        color: var(--color-navy-light) !important;
        font-size: 0.85rem;
    }

    .dp3akb-dropdown .dropend.show > .dropdown-item i.bi-chevron-right {
        transform: rotate(90deg);
        color: var(--color-gold-dark) !important;
    }

    /* Mobile Search */
    .mobile-search input[type="search"] {
        font-family: var(--font-primary);
        font-size: 0.875rem;
        background: #f8fafc;
        border: 1px solid var(--color-border);
        color: var(--color-text);
        border-radius: var(--radius-sm);
        padding: 0.5rem 0.85rem;
    }

    .mobile-search input[type="search"]::placeholder {
        color: var(--color-text-muted);
        font-family: var(--font-primary);
        font-size: 0.875rem;
    }

    .mobile-search input[type="search"]:focus {
        background: #ffffff;
        border-color: var(--color-navy-light);
        box-shadow: 0 0 0 3px rgba(11, 83, 148, 0.15);
        color: var(--color-text);
    }

    .mobile-search .btn-search-mobile,
    .mobile-search .btn-gold {
        font-family: var(--font-primary);
        font-size: 0.875rem;
        background: var(--color-navy) !important;
        color: #ffffff !important;
        border: none;
        border-radius: var(--radius-sm);
        font-weight: 600;
        transition: all var(--transition-fast);
    }

    .mobile-search .btn-search-mobile:hover,
    .mobile-search .btn-gold:hover {
        background: var(--color-navy-dark) !important;
    }

    /* Mobile CTA — Identical to Desktop .btn-kontak */
    .mobile-cta {
        border-top: 1px solid var(--color-border) !important;
    }

    .mobile-cta .btn-cta-mobile,
    .mobile-cta .btn-gold {
        font-family: var(--font-primary);
        font-size: 0.875rem;
        background: var(--color-navy) !important;
        color: #ffffff !important;
        border: none;
        border-radius: 40px !important;
        font-weight: 600;
        letter-spacing: 0.01em;
        box-shadow: 0 4px 14px rgba(11, 83, 148, 0.22);
        transition: all var(--transition-fast);
    }

    .mobile-cta .btn-cta-mobile:hover,
    .mobile-cta .btn-gold:hover {
        background: var(--color-navy-dark) !important;
        color: #ffffff !important;
        transform: translateY(-1px);
        box-shadow: 0 6px 18px rgba(11, 83, 148, 0.3);
    }

    .mobile-social span {
        font-family: var(--font-primary);
        font-size: 0.8rem;
        font-weight: 600;
        color: var(--color-text-muted);
    }
}

/* Compact nav at medium desktop: 9 nav items + search + CTA must fit in one line.
   Tighten padding and font-size between 992px and 1279px to prevent wrapping. */
@media (min-width: 992px) and (max-width: 1279px) {
    .dp3akb-navbar .container-xl {
        padding: 4px 6px 4px 18px;
        gap: 0;
    }
    .dp3akb-navbar .navbar-nav {
        gap: 1px;
    }
    .dp3akb-navbar .nav-link {
        font-size: 0.8rem;
        padding: 0.45rem 0.6rem;
    }
    .btn-kontak {
        font-size: 0.78rem !important;
        padding: 0.4rem 0.75rem !important;
    }
}

/* Navbar Backdrop */
.navbar-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(4, 32, 59, 0.65);
    z-index: 1029;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.navbar-backdrop.show {
    display: block;
}

/* Body offset removed as site-header is now sticky */
.site-main {
    padding-top: 0;
}

/* =============================================================
   AUDIT FIXES — Added 2026-07-29
   ============================================================= */

/* Skip Navigation Link (WCAG 2.4.1) */
.skip-link {
    position: absolute;
    top: -100px;
    left: 0;
    z-index: 9999;
    padding: 0.75rem 1.5rem;
    background: var(--color-navy);
    color: var(--color-white);
    font-weight: 700;
    border-bottom-right-radius: 4px;
    transition: top 0.15s ease;
}

.skip-link:focus {
    top: 0;
    color: var(--color-white);
}


/* Banner main title */
.banner-title-main {
    font-size: clamp(0.95rem, 2vw, 1.15rem);
    font-weight: 700;
    color: var(--color-white);
    line-height: 1.3;
    margin: 0;
    font-family: var(--font-heading);
}


/* Bootstrap 5 fw-bold fix — replaces deprecated font-weight-bold class */
.font-weight-bold {
    font-weight: 700 !important;
}

/* AJAX search results role="listbox" accessibility */
#ajaxSearchResults[aria-live] {
    min-height: 0;
}

/* ================================================================
   ACCESSIBILITY ADDITIONS (Round 3 Audit)
   ================================================================ */

/* 1. Global focus-visible indicator for all interactive elements
   Ensures keyboard focus is always clearly visible (WCAG 2.4.7, 2.4.11) */
:focus-visible {
    outline: 3px solid var(--color-gold, #c9a84c);
    outline-offset: 2px;
    border-radius: 3px;
}

/* 2. Suppress default :focus outline — :focus-visible replaces it */
:focus:not(:focus-visible) {
    outline: none;
}

/* 3. Decorative Bootstrap Icons — prevent screen reader announcement
   For any .bi icon not explicitly given aria-label or role="img",
   pointer-events:none ensures they don't accidentally receive focus */
i[class^="bi-"],
i[class*=" bi-"] {
    pointer-events: none;
}

/* 4. Color-independent closed status — add a strikethrough pattern
   to the Saturday-Sunday row (WCAG 1.4.1: color not sole indicator) */
.text-danger strong::after {
    content: ' (Tutup)';
    font-size: 0.75em;
    font-weight: 400;
    speak: never;
    /* legacy */
}

/* 5. PPID sortable column header focus indicator */
[data-sort]:focus-visible {
    outline: 3px solid var(--color-gold, #c9a84c);
    outline-offset: 2px;
}

/* 6. Reduced motion — disable AOS and CSS transitions for users
   who prefer reduced motion (WCAG 2.3.3) */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    [data-aos] {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}

/* Empty State Styles */
.empty-state {
    padding: 3rem 1rem;
}

.empty-state-icon {
    font-size: 4rem;
    color: var(--dp3akb-gray-400);
    margin-bottom: 1rem;
}

.empty-state-title {
    font-size: 1.5rem;
    color: var(--dp3akb-navy);
}

.empty-state-desc {
    font-size: 1rem;
    max-width: 500px;
    margin: 0 auto;
}

/* =============================================================
   HEADER BANNER — Search + Social Icons
   ============================================================= */
/* .header-banner bg already set via sticky header rule */
/* keeping banner-title-top standalone */
.banner-title-top {
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    letter-spacing: 0.5px;
}

/* Search form in the banner */

.banner-search-form {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 40px;
    padding: 6px 14px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all var(--transition-fast);
    backdrop-filter: blur(5px);
}

.banner-search-form:focus-within {
    border-color: rgba(255, 255, 255, 0.6);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.25);
}

.banner-search-input {
    border: none;
    background: transparent;
    outline: none;
    font-family: var(--font-primary);
    font-size: 0.85rem;
    color: var(--color-white);
    width: 200px;
}

.banner-search-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.banner-search-btn {
    background: none;
    border: none;
    color: var(--color-white);
    cursor: pointer;
    padding: 0;
    font-size: 1rem;
    display: flex;
    align-items: center;
    transition: color var(--transition-fast);
}

.banner-search-btn:hover {
    color: var(--color-navy);
}

/* Social icons in banner */
.banner-social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: var(--color-white);
    font-size: 1rem;
    text-decoration: none;
    transition: opacity var(--transition-fast), transform var(--transition-fast);
}

.banner-social-icon:hover {
    opacity: 0.85;
    transform: translateY(-2px);
    color: var(--color-white);
}

.banner-social-instagram {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
}

.banner-social-facebook {
    background: #1877f2;
}

.banner-social-youtube {
    background: #ff0000;
}

/* =============================================================
   NAVBAR — Pill Design + Active Yellow Highlight + Kontak Button
   ============================================================= */

/* Active nav item on desktop */
@media (min-width: 992px) {
    .dp3akb-navbar .nav-item.active .nav-link {
        background-color: var(--color-navy-subtle) !important;
        color: var(--color-navy) !important;
        border-radius: 30px;
        padding: 0.55rem 1.1rem !important;
        font-weight: 700;
    }
}

.dp3akb-navbar .nav-item.active .nav-link::before {
    display: none;
}

/* Kontak Kami button — transparent with white border (matches prototype) */
.btn-kontak {
    background: var(--color-navy);
    color: var(--color-white);
    border: none;
    border-radius: 40px !important;
    padding: 0.65rem 1.4rem;
    font-size: 0.875rem;
    font-weight: 600;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all var(--transition-fast);
}

.btn-kontak:hover {
    background: #093c6c; /* Darker navy */
    color: var(--color-white);
}

/* On scrolled — keep same since pill always stays dark */
.scrolled .btn-kontak {
    border-color: rgba(255, 255, 255, 0.45);
    color: var(--color-white);
}

.scrolled .btn-kontak:hover {
    background: rgba(255, 255, 255, 0.12);
}

/* Search toggle button in navbar */
#navSearchToggle {
    border: 1.5px solid rgba(255, 255, 255, 0.6);
    color: var(--color-white);
    background: transparent;
    border-radius: 40px !important;
    padding: 0.5rem 0.85rem;
    font-size: 0.85rem;
    transition: all var(--transition-fast);
}
#navSearchToggle:hover,
#navSearchToggle:focus {
    background: rgba(255, 255, 255, 0.15);
    color: var(--color-white);
    border-color: white;
}
.scrolled #navSearchToggle {
    border-color: rgba(10, 61, 109, 0.5);
    color: var(--color-navy);
}
.scrolled #navSearchToggle:hover {
    background: rgba(10, 61, 109, 0.08);
}

/* =============================================================
   FEATURE CARDS STRIP
   ============================================================= */
.feature-cards-section {
    margin-top: 0;
}

.fp-feature-card {
    padding: 24px 18px;
    border-radius: 16px;
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.fp-feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.1);
}

.fp-icon-circle {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 14px;
    color: var(--color-white);
    flex-shrink: 0;
}

.fp-card-title {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.3;
}

.fp-card-desc {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    line-height: 1.55;
    flex-grow: 1;
    margin-bottom: 16px;
}

.fp-card-link {
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 14px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.55);
    transition: background var(--transition-fast);
}

.fp-card-link:hover {
    background: rgba(255, 255, 255, 0.9);
}

.fp-card-pink {
    background-color: #fff0f5;
}

.fp-card-pink .fp-icon-circle {
    background-color: #e91e63;
}

.fp-card-pink .fp-card-title,
.fp-card-pink .fp-card-link {
    color: #c2185b;
}

.fp-card-green {
    background-color: #f0fdf4;
}

.fp-card-green .fp-icon-circle {
    background-color: #16a34a;
}

.fp-card-green .fp-card-title,
.fp-card-green .fp-card-link {
    color: #15803d;
}

.fp-card-yellow {
    background-color: #fffbeb;
}

.fp-card-yellow .fp-icon-circle {
    background-color: #d97706;
}

.fp-card-yellow .fp-card-title,
.fp-card-yellow .fp-card-link {
    color: #b45309;
}

.fp-card-purple {
    background-color: #faf5ff;
}

.fp-card-purple .fp-icon-circle {
    background-color: #9333ea;
}

.fp-card-purple .fp-card-title,
.fp-card-purple .fp-card-link {
    color: #7e22ce;
}

/* =============================================================
   STUNTING CTA BANNER
   ============================================================= */
.banner-stunting-section {
    border-radius: 16px;
    overflow: hidden;
}

.banner-stunting-inner {
    background: linear-gradient(90deg, #e0f2fe 0%, #bae6fd 100%);
    border-radius: 16px;
    padding: 22px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.banner-stunting-text h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--color-navy);
    margin-bottom: 4px;
}

.banner-stunting-text p {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin: 0;
}

.btn-stunting {
    background: var(--color-navy);
    color: var(--color-white);
    border-radius: 40px;
    padding: 10px 24px;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    transition: all var(--transition-fast);
    box-shadow: 0 4px 12px rgba(11, 83, 148, 0.2);
}

.btn-stunting:hover {
    background: var(--color-navy-dark);
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(11, 83, 148, 0.3);
}

@media (max-width: 575.98px) {
    .banner-stunting-inner {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }
}

/* =============================================================
   NEWS SECTION (front page)
   ============================================================= */
.fp-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--color-gold);
}

.fp-section-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-navy);
    margin: 0 0 16px;
}

.fp-section-header .fp-section-title {
    margin-bottom: 0;
}

.fp-link-all {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--color-navy-light);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: color var(--transition-fast);
}

.fp-link-all:hover {
    color: var(--color-gold-dark);
}

.fp-news-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.fp-news-item {
    display: flex;
    gap: 14px;
    background: var(--color-white);
    padding: 12px;
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
    align-items: center;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
    cursor: pointer;
}

.fp-news-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.fp-news-thumb {
    width: 100px;
    height: 70px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
}

.fp-news-thumb-placeholder {
    background: var(--color-light-gray);
    display: block;
    width: 100px;
    height: 70px;
}

.fp-news-body {
    flex: 1;
    min-width: 0;
}

.fp-news-title {
    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 6px;
}

.fp-news-title a {
    color: var(--color-text);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.fp-news-title a:hover {
    color: var(--color-navy);
}

.fp-news-date {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    display: flex;
    align-items: center;
    gap: 5px;
}

/* =============================================================
   QUICK LINKS WIDGET (front page)
   ============================================================= */
.fp-quick-links-widget {
    background: var(--color-white);
    border-radius: 12px;
    padding: 20px;
    box-shadow: var(--shadow-sm);
    height: 100%;
}

.fp-quick-links-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.fp-quick-links-list a {
    display: flex;
    align-items: center;
    background: var(--color-off-white);
    border-radius: 10px;
    padding: 12px 14px;
    text-decoration: none;
    color: var(--color-text);
    font-size: 0.875rem;
    font-weight: 500;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
}

.fp-quick-links-list a:hover {
    transform: translateX(4px);
    background: var(--color-navy-subtle);
    color: var(--color-navy);
    box-shadow: var(--shadow-sm);
}

.fp-ql-icon {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    color: var(--color-white);
    font-size: 0.95rem;
    flex-shrink: 0;
}

.fp-ql-red {
    background-color: #ef4444;
}

.fp-ql-green {
    background-color: #10b981;
}

.fp-ql-blue {
    background-color: #3b82f6;
}

.fp-ql-yellow {
    background-color: #f59e0b;
}

.fp-ql-purple {
    background-color: #8b5cf6;
}

.fp-ql-label {
    flex: 1;
}

.fp-ql-arrow {
    color: var(--color-text-muted);
    font-size: 0.75rem;
    margin-left: auto;
    transition: transform var(--transition-fast);
}

.fp-quick-links-list a:hover .fp-ql-arrow {
    transform: translateX(3px);
    color: var(--color-navy);
}

/* =============================================================
   SITE INFO BAR (pre-footer)
   ============================================================= */
.site-info-bar {
    background: var(--color-white);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    padding: 24px 0;
}

.sib-inner {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
    flex-wrap: wrap;
}

.sib-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    flex: 1;
    min-width: 160px;
}

.sib-icon {
    font-size: 1.5rem;
    color: var(--color-navy);
    margin-top: 2px;
    flex-shrink: 0;
}

.sib-item strong {
    display: block;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 3px;
}

.sib-item span,
.sib-item a {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    line-height: 1.5;
    text-decoration: none;
    transition: color var(--transition-fast);
}

.sib-item a:hover {
    color: var(--color-navy);
}

.sib-social {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

.sib-social-icons {
    display: flex;
    gap: 8px;
}

.sib-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    color: var(--color-white);
    font-size: 0.95rem;
    text-decoration: none;
    transition: opacity var(--transition-fast), transform var(--transition-fast);
}

.sib-social-link:hover {
    opacity: 0.85;
    transform: translateY(-2px);
    color: var(--color-white);
}

.sib-ig {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
}

.sib-fb {
    background: #1877f2;
}

.sib-yt {
    background: #ff0000;
}

@media (max-width: 767.98px) {
    .sib-inner {
        gap: 16px;
    }

    .sib-item {
        min-width: calc(50% - 16px);
    }
}

@media (max-width: 575.98px) {
    .sib-item {
        min-width: 100%;
    }
}

/* =============================================================
   REFERENCE-DESIGN HERO (matches provided mockup)
   ============================================================= */
.ref-hero-section {
    overflow: visible;
    margin-bottom: 0;
}

.ref-hero-inner {
    background-color: var(--color-navy);
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 190px 0 56px 0;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.hero-bg-wrapper {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}
.hero-bg-wrapper .carousel,
.hero-bg-wrapper .carousel-inner,
.hero-bg-wrapper .carousel-item {
    height: 100%;
    width: 100%;
}
.hero-bg-wrapper img,
.hero-bg-single-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
}
.hero-bg-wrapper::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    /* Stronger Blue tint so white text is readable everywhere */
    background-color: rgba(11, 83, 148, 0.85);
    mix-blend-mode: multiply;
    pointer-events: none;
    z-index: 1;
}

/* Text Content */
.ref-hero-content {
    flex: 1 1 100%;
    max-width: 650px;
    z-index: 2;
    min-width: 0;
    padding-bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    text-align: left;
}

.ref-hero-eyebrow {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--color-gold);
    margin-bottom: 12px;
}

.ref-hero-title {
    font-size: clamp(1.35rem, 2.4vw, 1.95rem);
    font-weight: 700;
    line-height: 1.25;
    color: var(--color-white);
    margin-bottom: 14px;
}

.ref-hero-highlight {
    color: var(--color-gold);
}

.ref-hero-desc {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.85);
    max-width: 500px;
    margin-bottom: 28px;
    line-height: 1.65;
}

.ref-hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    justify-content: flex-start;
}

.btn-ref-yellow {
    background: var(--color-gold);
    color: var(--color-navy-dark);
    border: 2px solid var(--color-gold);
    border-radius: 40px;
    padding: 11px 26px;
    font-size: 0.875rem;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all var(--transition-fast);
    box-shadow: 0 4px 14px rgba(241, 196, 15, 0.35);
}

.btn-ref-yellow:hover {
    background: var(--color-gold-dark);
    border-color: var(--color-gold-dark);
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(241, 196, 15, 0.4);
}

.btn-ref-white {
    background: rgba(255, 255, 255, 0.15);
    color: var(--color-white);
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 40px;
    padding: 11px 26px;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all var(--transition-fast);
    backdrop-filter: blur(4px);
}

.btn-ref-white:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.8);
    color: var(--color-white);
    transform: translateY(-2px);
}

/* Right: Illustration — truly transparent, floating animation */
.ref-hero-image {
    flex: 0 0 45%;
    width: 45%;
    z-index: 2;
    position: relative;
    align-self: stretch;
    overflow: visible;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
}

.ref-hero-img {
    width: 100%;
    height: auto;
    max-height: 360px;
    object-fit: contain;
    object-position: center;
    display: block;
    filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.2));
}

/* Responsive */
@media (max-width: 991.98px) {
    .ref-hero-inner {
        padding: 190px 0 40px 0;
        min-height: 360px;
        background-image: none;
    }

    .hero-bg-wrapper::after {
        background-color: rgba(11, 83, 148, 0.9);
    }

    .ref-hero-content {
        max-width: 100%;
        padding-bottom: 0;
        padding-right: 0;
    }
}

@media (max-width: 767.98px) {
    .ref-hero-inner {
        padding: 170px 0 36px 0;
        min-height: auto;
        background-image: none;
    }

    .hero-bg-wrapper::after {
        background-color: rgba(11, 83, 148, 0.95);
    }

    .ref-hero-content {
        max-width: 100%;
        padding: 0;
    }

    /* Hide illustration on mobile — show text only */
    .ref-hero-image {
        display: none;
    }

    .ref-hero-desc {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    .ref-hero-buttons {
        justify-content: center;
    }
}

@media (max-width: 479.98px) {
    .ref-hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-ref-yellow,
    .btn-ref-white {
        justify-content: center;
    }
}

/* =============================================================
   GALLERY SECTION — compact padding on front page
   ============================================================= */
.section-gallery-fp {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
}

/* Suppress the large header when gallery is empty on front page */
.section-gallery-fp .text-center.mb-5 {
    margin-bottom: 1.5rem !important;
}

/* =============================================================
   FAQ SECTION — compact padding on front page
   ============================================================= */
.section-faq-fp {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

/* =============================================================
   SEJARAH DINAS PAGE
   ============================================================= */

/* --- Hero Banner --- */
.sejarah-hero {
    background: linear-gradient(90deg, #1565C0 0%, #1976D2 55%, #1976D2 100%);
    overflow: hidden;
    position: relative;
    min-height: 260px;
}

/* Building image: full-height right panel, absolutely positioned */
.sejarah-hero-building {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 42%;
    overflow: hidden;
}

.sejarah-building-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
}

/* Sharp S-curve divider perfectly matching the design */
.sejarah-hero-building::before {
    content: '';
    position: absolute;
    top: 0;
    left: -1px;
    bottom: 0;
    width: 18%;
    /* S-Curve: Starts wide at top, narrows to 0 at bottom */
    background: url("data:image/svg+xml,%3Csvg preserveAspectRatio='none' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0,0 L100,0 C100,40 0,60 0,100 Z' fill='%231976D2'/%3E%3C/svg%3E");
    background-size: 100% 100%;
    z-index: 1;
}





.sejarah-hero-inner {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    min-height: 260px;
    padding: 190px 0 3rem 0;
}

.sejarah-hero-text {
    flex: 0 0 55%;
    max-width: 55%;
    z-index: 2;
    padding-right: 24px;
}

.sejarah-breadcrumb .breadcrumb {
    background: transparent;
    padding: 0;
    margin-bottom: 8px;
}

.sejarah-breadcrumb .breadcrumb-item a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.82rem;
    text-decoration: none;
}

.sejarah-breadcrumb .breadcrumb-item.active {
    color: #fff;
    font-size: 0.82rem;
}

.sejarah-breadcrumb .breadcrumb-item+.breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.5);
}

.sejarah-hero-title {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 800;
    color: var(--color-white);
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.sejarah-hero-desc {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.125rem;
    font-weight: 400;
    margin-bottom: 1rem;
    max-width: 420px;
}


/* --- Content Section --- */
.sejarah-content-section {
    padding: 36px 0 56px;
    background: #f4f7fb;
}

/* Left column shrinks to content height — prevents Dasar Hukum from stretching */
.sejarah-left-col {
    align-self: flex-start;
}

/* --- Card base --- */
.sejarah-card {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 2px 16px rgba(25, 118, 210, 0.07);
}

/* --- Section Title --- */
.sejarah-section-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--color-navy);
    margin-bottom: 6px;
}

.sejarah-title-bar {
    width: 48px;
    height: 4px;
    background: var(--color-gold);
    border-radius: 2px;
    margin-bottom: 28px;
}

/* --- Timeline --- */
.sejarah-timeline {
    display: flex;
    gap: 0;
    position: relative;
}

/* Horizontal connector line through icon centers */
.sejarah-timeline::before {
    content: '';
    position: absolute;
    top: 28px;
    left: calc(28px / 2);
    right: calc(28px / 2);
    height: 2px;
    background: #dde4f0;
    z-index: 0;
}

.sejarah-tl-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 8px;
    position: relative;
    z-index: 1;
}

.sejarah-tl-icon-wrap {
    margin-bottom: 12px;
}

.sejarah-tl-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #e3edf9;
    color: var(--color-blue-main);
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid #fff;
    box-shadow: 0 0 0 3px #dde4f0;
    transition: all 0.3s;
}

.sejarah-tl-icon--active {
    background: var(--color-blue-main);
    color: #fff;
    box-shadow: 0 0 0 3px rgba(25, 118, 210, 0.25);
}

.sejarah-tl-year {
    display: block;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--color-blue-main);
    margin-bottom: 4px;
    letter-spacing: 0.02em;
}

.sejarah-tl-title {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--color-navy);
    margin-bottom: 6px;
}

.sejarah-tl-desc {
    font-size: 0.78rem;
    color: var(--color-text-muted);
    line-height: 1.5;
    margin: 0;
}

/* --- Dasar Hukum --- */
.sejarah-dasar-hukum {
    background: #f9f7ee;
    border-left: 5px solid var(--color-gold);
    padding: 18px 20px 14px;
}

.sejarah-dh-header {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 16px;
}

.sejarah-dh-icon-wrap {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    background: var(--color-gold);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.3rem;
    margin-top: 2px;
}

.sejarah-dh-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-navy);
    margin-bottom: 6px;
}

.sejarah-dh-text {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    line-height: 1.6;
}

.btn-sejarah-doc {
    background: var(--color-blue-main);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 10px 20px;
    font-size: 0.875rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    transition: all 0.2s;
}

.btn-sejarah-doc:hover {
    background: var(--color-navy);
    color: #fff;
    transform: translateY(-2px);
}

/* --- Sidebar --- */
.sejarah-sidebar-card {
    background: #fff;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 2px 16px rgba(25, 118, 210, 0.07);
}

.sejarah-logo-card {
    overflow: hidden;
    padding: 0;
}

.sejarah-logo-badge {
    background: var(--color-navy);
    color: #fff;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.sejarah-badge-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.sejarah-badge-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.sejarah-badge-text strong {
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.05em;
}

.sejarah-badge-text span {
    font-size: 0.65rem;
    letter-spacing: 0.08em;
    opacity: 0.85;
}

.sejarah-sidebar-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-navy);
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 2px solid #eef2fb;
}

.sejarah-sidebar-text {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    line-height: 1.65;
    margin: 0;
}

/* --- Nilai Kami Grid --- */
.sejarah-nilai-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.sejarah-nilai-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: #f8faff;
    border-radius: 10px;
    padding: 10px 12px;
}

.sejarah-nilai-icon {
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    color: #fff;
}

.sejarah-nilai-icon--blue {
    background: var(--color-blue-main);
}

.sejarah-nilai-icon--gold {
    background: #e6a817;
}

.sejarah-nilai-icon--green {
    background: #27ae60;
}

.sejarah-nilai-icon--purple {
    background: #8e44ad;
}

.sejarah-nilai-body {
    display: flex;
    flex-direction: column;
}

.sejarah-nilai-name {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--color-navy);
    line-height: 1.2;
}

.sejarah-nilai-desc {
    font-size: 0.72rem;
    color: var(--color-text-muted);
    line-height: 1.4;
    margin-top: 2px;
}

/* --- CTA Strip --- */
.sejarah-cta-strip {
    background: var(--color-navy);
    padding: 20px 0;
}

.sejarah-cta-text {
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
}

.btn-sejarah-cta {
    background: var(--color-gold);
    color: var(--color-navy);
    font-weight: 700;
    border: none;
    border-radius: 8px;
    padding: 10px 24px;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    transition: all 0.2s;
}

.btn-sejarah-cta:hover {
    background: #f0c020;
    color: var(--color-navy);
    transform: translateY(-2px);
}

/* --- Responsive --- */
@media (max-width: 991.98px) {
    .sejarah-hero-building {
        width: 38%;
    }

    .sejarah-hero-text {
        flex: 0 0 58%;
        max-width: 58%;
    }
}

@media (max-width: 767.98px) {
    .sejarah-hero {
        min-height: auto;
    }

    .sejarah-hero-building {
        display: none;
        /* hide building on mobile, show text full width */
    }

    .sejarah-hero-inner {
        text-align: center;
        padding: 160px 16px 36px 16px;
    }

    .sejarah-hero-text {
        flex: 0 0 100%;
        max-width: 100%;
        padding-right: 0;
    }

    .sejarah-hero-desc {
        max-width: 100%;
    }

    .sejarah-timeline {
        flex-direction: column;
        gap: 20px;
    }

    .sejarah-timeline::before {
        top: 28px;
        left: 28px;
        right: auto;
        width: 2px;
        height: calc(100% - 28px);
    }

    .sejarah-tl-item {
        flex-direction: row;
        text-align: left;
        align-items: flex-start;
        gap: 14px;
    }

    .sejarah-tl-icon-wrap {
        margin-bottom: 0;
    }

    .sejarah-nilai-grid {
        grid-template-columns: 1fr;
    }
}

/* =============================================================
   STATIC PAGE HERO — Shared across all section templates
   ============================================================= */
.static-page-hero {
    padding: 190px 0 2.5rem;
    color: #fff;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.static-page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('assets/images/hero-bg/dp3akb-office.jpeg');
    background-size: cover;
    background-position: center 30%;
    background-repeat: no-repeat;
    background-blend-mode: multiply;
    z-index: -1;
}

.static-page-hero--blue::before,
.static-page-hero--green::before,
.static-page-hero--purple::before,
.static-page-hero--orange::before,
.static-page-hero--teal::before {
    background-color: rgba(11, 83, 148, 0.85);
}

.static-page-breadcrumb .breadcrumb-item,
.static-page-breadcrumb .breadcrumb-item a {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.85rem;
}

.static-page-breadcrumb .breadcrumb-item.active {
    color: #fff;
}

.static-page-breadcrumb .breadcrumb-item+.breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.5);
}

.static-page-hero-body {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-top: 1rem;
}

.static-page-hero-icon {
    display: none;
}

.sejarah-hero-title {
    font-size: clamp(1.25rem, 2.2vw, 1.75rem);
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: 0.4rem;
    line-height: 1.25;
}

.sejarah-hero-desc {
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.95rem;
    font-weight: 400;
    margin-bottom: 0.75rem;
}

/* Static Page Content Layout */
.static-page-content {
    padding: 3rem 0 4rem;
}

.static-page-card {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
    padding: 2rem 2.25rem;
    margin-bottom: 1.5rem;
}

.static-page-hero-title {
    font-size: clamp(1.25rem, 2.2vw, 1.75rem);
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: 0.4rem;
    line-height: 1.25;
}

.static-page-hero-subtitle {
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.95rem;
    font-weight: 400;
    margin-bottom: 0.75rem;
}

.static-page-section-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-navy);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--color-gold);
    display: inline-block;
}

.static-page-sidebar-nav {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    position: sticky;
    top: 80px;
}

.static-page-sidebar-nav .nav-header {
    background: var(--color-navy);
    color: #fff;
    padding: 1rem 1.25rem;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.static-page-sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.75rem 1.25rem;
    color: var(--color-text);
    text-decoration: none;
    border-bottom: 1px solid var(--color-border);
    font-size: 0.9rem;
    transition: background 0.2s, color 0.2s;
}

.static-page-sidebar-nav a:hover,
.static-page-sidebar-nav a.active {
    background: var(--color-navy-subtle);
    color: var(--color-navy);
    font-weight: 600;
}

.static-page-sidebar-nav a:last-child {
    border-bottom: none;
}

/* Info Card grid */
.sp-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.25rem;
}

.sp-info-card {
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    transition: box-shadow 0.2s, transform 0.2s;
}

.sp-info-card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.sp-info-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: var(--color-navy-subtle);
    color: var(--color-navy);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.sp-info-card-title {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--color-navy);
}

.sp-info-card-desc {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    line-height: 1.5;
}

@media (max-width: 991.98px) {
    .static-page-hero {
        padding: 180px 0 2rem;
    }
}

@media (max-width: 767.98px) {
    .static-page-hero {
        padding: 160px 0 1.5rem;
    }
}