/* ============================================================
   TABANAN THEME — Tridatu Color System
   Inspired by Kabupaten Tabanan, Bali
   Colors: Red #c1121f, White #ffffff, Black #111111
   ============================================================ */

/* ── CSS Variables ── */
:root {
    --tb-red: #c1121f;
    --tb-red-dark: #9b0f1a;
    --tb-red-light: #e8434e;
    --tb-red-bg: #fef2f2;
    --tb-black: #111111;
    --tb-black-soft: #1a1a1a;
    --tb-white: #ffffff;
    --tb-gray-50: #fafafa;
    --tb-gray-100: #f5f5f5;
    --tb-gray-200: #e5e5e5;
    --tb-gray-300: #d4d4d4;
    --tb-gray-400: #a3a3a3;
    --tb-gray-500: #737373;
    --tb-gray-600: #525252;
    --tb-gray-700: #404040;
    --tb-gray-800: #262626;
    --tb-gold: #d4a843;
    --tb-gold-light: #f0d78c;

    --tb-font-primary: 'Plus Jakarta Sans', 'Segoe UI', sans-serif;
    --tb-font-heading: 'Plus Jakarta Sans', 'Segoe UI', sans-serif;

    --tb-shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --tb-shadow: 0 4px 12px rgba(0,0,0,0.08);
    --tb-shadow-md: 0 8px 24px rgba(0,0,0,0.1);
    --tb-shadow-lg: 0 16px 40px rgba(0,0,0,0.12);
    --tb-shadow-red: 0 4px 20px rgba(193,18,31,0.2);

    --tb-radius-sm: 6px;
    --tb-radius: 10px;
    --tb-radius-lg: 16px;
    --tb-radius-xl: 24px;

    --tb-transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
    font-family: var(--tb-font-primary);
    font-size: 15px;
    line-height: 1.7;
    color: var(--tb-gray-700);
    background: var(--tb-white);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
a { color: var(--tb-red); text-decoration: none; transition: color var(--tb-transition); }
a:hover { color: var(--tb-red-dark); }
img { max-width: 100%; height: auto; }
h1,h2,h3,h4,h5,h6 {
    font-family: var(--tb-font-heading);
    color: var(--tb-black);
    font-weight: 700;
    line-height: 1.3;
}

/* ── Container ── */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ── Tridatu Stripe (Red-White-Black) ── */
.tridatu-stripe {
    display: flex;
    height: 4px;
    width: 100%;
}
.tridatu-stripe span:nth-child(1) { flex: 1; background: var(--tb-red); }
.tridatu-stripe span:nth-child(2) { flex: 1; background: var(--tb-white); border-top: 1px solid var(--tb-gray-200); }
.tridatu-stripe span:nth-child(3) { flex: 1; background: var(--tb-black); }

/* ============================================================
   NAVBAR — Single row, Tridatu color stripes (CSS)
   ============================================================ */
.navbar-tabanan {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: box-shadow var(--tb-transition);
}
.navbar-tabanan.scrolled {
    box-shadow: var(--tb-shadow-md);
}

/* Top stripe — hidden, replaced by Tridatu diagonal on red navbar */
.navbar-stripe-top-black {
    height: 0;
}
.navbar-stripe-top-red {
    height: 0;
}

/* Main navbar area — Tridatu red with diagonal glass stripes */
.navbar-bg-wrap {
    background: var(--tb-red);
    border-bottom: none;
    position: relative;
    overflow: visible;
}
/* Diagonal glass Tridatu stripes (black + white, shallow sweep) */
.navbar-bg-wrap::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        -18deg,
        transparent 0%,
        transparent 25%,
        rgba(0, 0, 0, 0.18) 25%,
        rgba(0, 0, 0, 0.18) 29%,
        transparent 29%,
        transparent 34%,
        rgba(255, 255, 255, 0.16) 34%,
        rgba(255, 255, 255, 0.16) 52%,
        transparent 52%,
        transparent 100%
    );
    pointer-events: none;
    z-index: 1;
    clip-path: inset(0);
}
.navbar-bg-wrap .container {
    max-width: 100%;
    padding: 0;
    position: relative;
    z-index: 2;
}

/* Bottom accent stripes: black + white (matching Tridatu on red bg) */
.navbar-stripe-bottom {
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
}
.navbar-stripe-bottom .nbs-black {
    display: block;
    height: 3px;
    background: var(--tb-black);
}
.navbar-stripe-bottom .nbs-white {
    display: block;
    height: 3px;
    background: var(--tb-white);
}
.navbar-stripe-bottom .nbs-red {
    display: block;
    height: 0;
}

/* Inner flex layout: Logo | Menu+Search */
.navbar-inner {
    display: flex;
    align-items: center;
    height: 65px;
    gap: 0;
    position: relative;
    padding: 0 12px;
}

/* Logo */
.navbar-brand {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    text-decoration: none;
    margin-right: 20px;
    position: relative;
    z-index: 2;
}
.navbar-logo {
    height: 60px;
    width: auto;
    object-fit: contain;
    filter:
        drop-shadow(0 0 8px rgba(255,255,255,0.9))
        drop-shadow(0 0 18px rgba(255,255,255,0.6))
        drop-shadow(0 0 30px rgba(255,255,255,0.35));
}

/* Right section: Menu + Search */
.navbar-right {
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 0;
    justify-content: flex-end;
    gap: 16px;
    overflow: visible;
    order: 2;
}

/* Menu */
.navbar-menu {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 0;
    margin: 0;
    padding: 0;
    flex-shrink: 1;
    min-width: 0;
    flex-wrap: nowrap;
}
.navbar-menu > li {
    position: relative;
}
/* Active underline indicator */
.navbar-menu > li.nav-active > .navbar-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 16px;
    right: 16px;
    height: 3px;
    background: var(--tb-white);
    border-radius: 3px 3px 0 0;
    box-shadow: 0 0 8px rgba(255,255,255,0.4);
}
.navbar-menu > li > .navbar-link {
    position: relative;
}
.navbar-link {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 600;
    color: rgba(255,255,255,0.9);
    letter-spacing: 0.2px;
    text-decoration: none;
    transition: all var(--tb-transition);
    white-space: nowrap;
}
.navbar-link:hover,
.navbar-menu > li.nav-active > .navbar-link {
    color: var(--tb-white);
    text-shadow: 0 0 8px rgba(255,255,255,0.4);
}
.navbar-link i { font-size: 10px; transition: transform var(--tb-transition); }
.navbar-menu > li.has-dropdown:hover > .navbar-link i { transform: rotate(180deg); }

/* Search inline */
.navbar-search-inline {
    display: flex;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: var(--tb-radius-sm);
    overflow: hidden;
    flex-shrink: 1;
    min-width: 0;
    transition: border-color var(--tb-transition);
    background: rgba(255,255,255,0.15);
}
.navbar-search-inline:focus-within { border-color: rgba(255,255,255,0.6); background: rgba(255,255,255,0.2); }
.navbar-search-inline input {
    border: none;
    padding: 7px 14px;
    font-size: 13px;
    outline: none;
    font-family: var(--tb-font-primary);
    width: 140px;
    min-width: 80px;
    max-width: 180px;
    background: transparent;
    color: var(--tb-white);
    box-sizing: border-box;
}
.navbar-search-inline input::placeholder { color: rgba(255,255,255,0.5); }
.navbar-search-inline button {
    border: none;
    background: rgba(0,0,0,0.2);
    color: white;
    padding: 7px 14px;
    cursor: pointer;
    transition: background var(--tb-transition);
    font-size: 13px;
}
.navbar-search-inline button:hover { background: rgba(0,0,0,0.35); }

/* Dropdown */
.navbar-menu .dropdown-menu {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    min-width: 230px;
    background: var(--tb-white);
    border: none;
    border-radius: var(--tb-radius);
    box-shadow: 0 10px 40px rgba(0,0,0,0.15), 0 2px 8px rgba(0,0,0,0.08);
    padding: 6px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--tb-transition);
    list-style: none;
    z-index: 9999;
}
/* Invisible bridge to prevent gap hover-out */
.navbar-menu > li.has-dropdown::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 8px;
    background: transparent;
    display: none;
}
.navbar-menu > li.has-dropdown:hover::after {
    display: block;
}
.navbar-menu > li.has-dropdown:hover > .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
/* Red accent bar at top of dropdown */
.navbar-menu .dropdown-menu::before {
    content: '';
    position: absolute;
    top: 0;
    left: 12px;
    right: 12px;
    height: 3px;
    background: var(--tb-red);
    border-radius: 0 0 3px 3px;
}
.dropdown-menu li {
    position: relative;
}
.dropdown-menu li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 18px;
    font-size: 13px;
    font-weight: 500;
    color: var(--tb-gray-700);
    transition: all var(--tb-transition);
    text-decoration: none;
    gap: 8px;
}
.dropdown-menu li a:hover {
    background: var(--tb-red-bg);
    color: var(--tb-red);
    padding-left: 22px;
}
.dropdown-menu li a i {
    font-size: 9px;
    color: var(--tb-gray-400);
    transition: all var(--tb-transition);
    flex-shrink: 0;
}
.dropdown-menu li a:hover i {
    color: var(--tb-red);
}
/* Sub-dropdown (level 2) */
.dropdown-menu .has-dropdown > .dropdown-menu {
    top: -6px;
    left: calc(100% + 4px);
    border-radius: var(--tb-radius);
}
.dropdown-menu .has-dropdown > .dropdown-menu::before {
    display: none;
}
/* Invisible bridge for sub-dropdown */
.dropdown-menu .has-dropdown::after {
    content: '';
    position: absolute;
    top: 0;
    right: -8px;
    bottom: 0;
    width: 8px;
    background: transparent;
    display: none;
}
.dropdown-menu .has-dropdown:hover::after {
    display: block;
}
.dropdown-menu .has-dropdown:hover > .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* "Lainnya" (More) dropdown — scrollable item list */
.navbar-menu > li.nav-more > .dropdown-menu.nm-list {
    left: auto;
    right: 0;
    max-height: 70vh;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: var(--tb-red) rgba(0,0,0,0.06);
}
.navbar-menu > li.nav-more > .dropdown-menu.nm-list::-webkit-scrollbar { width: 4px; }
.navbar-menu > li.nav-more > .dropdown-menu.nm-list::-webkit-scrollbar-track { background: rgba(0,0,0,.04); border-radius: 4px; }
.navbar-menu > li.nav-more > .dropdown-menu.nm-list::-webkit-scrollbar-thumb { background: var(--tb-red); border-radius: 4px; }

.navbar-menu > li.nav-more > .navbar-link {
    color: rgba(255,255,255,0.9);
}
.navbar-menu > li.nav-more:hover > .navbar-link,
.navbar-menu > li.nav-more.nav-active > .navbar-link {
    color: var(--tb-white);
}

/* ── nm-expandable: item with accordion children ── */
/* Items in nm-list with children: show chevron-right, highlight on hover */
.nm-list .nm-expandable > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
.nm-list .nm-expandable > a .nm-arrow {
    font-size: 9px;
    color: var(--tb-gray-400, #9ca3af);
    flex-shrink: 0;
    transition: color 0.2s;
}
.nm-list .nm-expandable:hover > a {
    color: var(--tb-red, #c1121f);
    background: var(--tb-red-bg, #fff1f2);
}
.nm-list .nm-expandable:hover > a .nm-arrow { color: var(--tb-red, #c1121f); }

/* nm-accordion: always hidden in nm-list (data source only, shown via portal) */
.nm-list .nm-accordion { display: none !important; }

/* ── nm-portal: floating sub-panel appended to <body> by JS ──
   Completely outside any overflow container → no clipping.      */
.nm-portal {
    display: none;
    position: fixed;
    z-index: 10500;
    list-style: none;
    margin: 0;
    padding: 6px 0;
    min-width: 220px;
    background: var(--tb-white, #fff);
    border-radius: var(--tb-radius, 8px);
    box-shadow: 0 10px 40px rgba(0,0,0,.15), 0 2px 8px rgba(0,0,0,.08);
}
.nm-portal::before {
    content: '';
    position: absolute;
    top: 0; left: 12px; right: 12px;
    height: 3px;
    background: var(--tb-red, #c1121f);
    border-radius: 0 0 3px 3px;
}
.nm-portal.nm-portal-open { display: block; }

/* Items in portal */
.nm-portal > li { position: relative; }
.nm-portal > li > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 18px;
    font-size: 13px;
    font-weight: 500;
    color: var(--tb-gray-700, #374151);
    text-decoration: none;
    gap: 8px;
    transition: all .2s;
    white-space: nowrap;
}
.nm-portal > li > a:hover,
.nm-portal > li.nm-expandable:hover > a {
    background: var(--tb-red-bg, #fff1f2);
    color: var(--tb-red, #c1121f);
    padding-left: 22px;
}
.nm-portal > li > a .nm-arrow {
    font-size: 9px;
    color: var(--tb-gray-400, #9ca3af);
    flex-shrink: 0;
    transition: color .2s;
}
.nm-portal > li > a:hover .nm-arrow,
.nm-portal > li.nm-expandable:hover > a .nm-arrow { color: var(--tb-red, #c1121f); }

/* Bridge: cursor can travel to grandchild panel */
.nm-portal > li.nm-expandable::after {
    content: '';
    position: absolute;
    top: 0; right: 100%; bottom: 0;
    width: 8px;
    background: transparent;
    display: none;
}
.nm-portal > li.nm-expandable:hover::after { display: block; }

/* Grandchild panel: CSS hover, opens to the LEFT (portal is not in overflow) */
.nm-portal > li.nm-expandable > .nm-accordion {
    display: none;
    position: absolute;
    top: -6px;
    right: calc(100% + 4px);
    left: auto;
    min-width: 200px;
    list-style: none;
    padding: 6px 0;
    background: var(--tb-white, #fff);
    border-radius: var(--tb-radius, 8px);
    box-shadow: 0 10px 40px rgba(0,0,0,.15), 0 2px 8px rgba(0,0,0,.08);
    z-index: 10501;
}
.nm-portal > li.nm-expandable:hover > .nm-accordion { display: block; }

/* Grandchild items */
.nm-portal > li.nm-expandable > .nm-accordion > li > a {
    display: flex;
    align-items: center;
    padding: 10px 18px;
    font-size: 13px;
    font-weight: 500;
    color: var(--tb-gray-700, #374151);
    text-decoration: none;
    transition: all .2s;
    white-space: nowrap;
}
.nm-portal > li.nm-expandable > .nm-accordion > li > a:hover {
    background: var(--tb-red-bg, #fff1f2);
    color: var(--tb-red, #c1121f);
    padding-left: 22px;
}

/* Navbar Login Button */
.navbar-login-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 7px 16px;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.35);
    border-radius: var(--tb-radius-sm);
    color: var(--tb-white);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: all var(--tb-transition);
    letter-spacing: 0.2px;
    flex-shrink: 0;
}
.navbar-login-btn i {
    font-size: 12px;
}
.navbar-login-btn:hover {
    background: rgba(255,255,255,0.28);
    border-color: rgba(255,255,255,0.6);
    color: var(--tb-white);
    text-decoration: none;
}

/* Navbar Toggle (Mobile) */
.navbar-toggle {
    display: none;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    color: var(--tb-white);
    font-size: 20px;
    cursor: pointer;
    border-radius: var(--tb-radius-sm);
    order: 0;
}
.navbar-toggle:hover {
    background: rgba(255,255,255,0.15);
}

/* Mobile search icon button (hidden on desktop) */
.navbar-search-toggle {
    display: none;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    color: var(--tb-white);
    font-size: 18px;
    cursor: pointer;
    border-radius: var(--tb-radius-sm);
    order: 3;
}
.navbar-search-toggle:hover {
    background: rgba(255,255,255,0.15);
}

/* Mobile search bar (slides down under navbar) */
.mobile-search-bar {
    padding: 0 16px 12px;
    background: transparent;
}
.mobile-search-bar-form {
    display: flex;
    border: 2px solid var(--tb-gray-300);
    border-radius: var(--tb-radius-sm);
    overflow: hidden;
    background: var(--tb-white);
}
.mobile-search-bar-form input {
    flex: 1;
    border: none;
    padding: 10px 14px;
    font-size: 14px;
    outline: none;
    font-family: var(--tb-font-primary);
    background: transparent;
    color: var(--tb-gray-700);
}
.mobile-search-bar-form input::placeholder { color: var(--tb-gray-400); }
.mobile-search-bar-form button {
    border: none;
    background: var(--tb-red);
    color: var(--tb-white);
    padding: 10px 16px;
    cursor: pointer;
    font-size: 14px;
    transition: background var(--tb-transition);
}
.mobile-search-bar-form button:hover { background: var(--tb-red-dark); }

/* ============================================================
   HERO — Full-width image with overlay
   ============================================================ */
.hero-tabanan {
    position: relative;
    min-height: 70vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-top: 71px;
    overflow: hidden;
    width: 100%;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}
.hero-bg-img {
    display: none; /* tidak dipakai lagi, diganti CSS background-image */
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(17,17,17,0.35) 0%, rgba(17,17,17,0.55) 100%);
    z-index: 1;
}
.hero-inner {
    position: relative;
    z-index: 2;
    padding: 20px 20px 60px;
    max-width: 800px;
}
.hero-title {
    font-size: clamp(2rem, 5vw, 3.2rem);
    color: var(--tb-white);
    font-weight: 800;
    margin-bottom: 12px;
    text-shadow: 0 2px 20px rgba(0,0,0,0.3);
    letter-spacing: 2px;
}
.hero-tagline {
    font-size: 16px;
    color: rgba(255,255,255,0.85);
    margin-bottom: 28px;
    font-style: italic;
}
.hero-buttons {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}
.hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 36px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: all var(--tb-transition);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}
.hero-btn-primary {
    background: var(--tb-red);
    color: var(--tb-white);
    box-shadow: var(--tb-shadow-red);
}
.hero-btn-primary:hover {
    background: var(--tb-red-dark);
    color: var(--tb-white);
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(193,18,31,0.35);
}
.hero-btn-outline {
    background: transparent;
    color: var(--tb-white);
    border: 2px solid rgba(255,255,255,0.6);
}
.hero-btn-outline:hover {
    background: rgba(255,255,255,0.1);
    border-color: var(--tb-white);
    color: var(--tb-white);
    transform: translateY(-2px);
}

/* Tridatu divider at bottom of hero */
.hero-tridatu-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 3;
    display: flex;
    height: 5px;
}
.hero-tridatu-bottom span:nth-child(1) { flex: 1; background: var(--tb-red); }
.hero-tridatu-bottom span:nth-child(2) { flex: 1; background: var(--tb-white); }
.hero-tridatu-bottom span:nth-child(3) { flex: 1; background: var(--tb-black); }

/* ============================================================
   DATA KEPENDUDUKAN — Full-width, overlapping hero and content
   ============================================================ */
.hero-statistik-wrap {
    position: relative;
    z-index: 10;
    margin-top: -70px; /* naik overlap ke hero */
    margin-bottom: 0;
    padding: 0; /* full-width, tanpa padding samping */
}
.hero-statistik-inner {
    background: rgba(17,17,17,0.90);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 22px 28px 20px;
}

/* Title with white tridatu stripes */
.hero-statistik-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-bottom: 18px;
}
.hero-statistik-title h2 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--tb-white);
    letter-spacing: 1px;
    white-space: nowrap;
    margin: 0;
    text-transform: uppercase;
}
.hero-statistik-title .nbs-white {
    display: block;
    flex: 1;
    height: 2px;
    background: var(--tb-white);
    opacity: 0.35;
}

/* Bottom red stripe */
.kependudukan-stripe-bottom {
    display: flex;
    flex-direction: column;
}
.kependudukan-stripe-bottom .nbs-red {
    display: block;
    height: 5px;
    background: var(--tb-red);
}

/* ── Counter Row: Total Jiwa, Laki-laki, Perempuan, KK (4 cols) ── */
.kependudukan-counters {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 18px;
}
.kependudukan-counter-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255,255,255,0.07);
    border-radius: 10px;
    padding: 14px 16px;
    border: 1px solid rgba(255,255,255,0.08);
    transition: all 0.3s ease;
}
.kependudukan-counter-item:hover {
    background: rgba(255,255,255,0.12);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}
.kependudukan-counter-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--tb-white);
    flex-shrink: 0;
}
.kependudukan-counter-total .kependudukan-counter-icon {
    background: var(--tb-red);
    box-shadow: 0 4px 12px rgba(193,18,31,0.4);
}
.kependudukan-counter-laki .kependudukan-counter-icon {
    background: #1565c0;
    box-shadow: 0 4px 12px rgba(21,101,192,0.4);
}
.kependudukan-counter-perempuan .kependudukan-counter-icon {
    background: #e91e90;
    box-shadow: 0 4px 12px rgba(233,30,144,0.4);
}
.kependudukan-counter-kk .kependudukan-counter-icon {
    background: #2d6a4f;
    box-shadow: 0 4px 12px rgba(45,106,79,0.4);
}
.kependudukan-counter-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.kependudukan-counter-number {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--tb-white);
    line-height: 1.2;
    letter-spacing: -0.5px;
}
.kependudukan-counter-label {
    font-size: 11px;
    font-weight: 600;
    color: rgba(255,255,255,0.6);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 2px;
}

/* Color accents on numbers */
.kependudukan-counter-total .kependudukan-counter-number { color: #ff6b6b; }
.kependudukan-counter-laki .kependudukan-counter-number { color: #64b5f6; }
.kependudukan-counter-perempuan .kependudukan-counter-number { color: #f48fb1; }
.kependudukan-counter-kk .kependudukan-counter-number { color: #81c784; }

/* ── Link Row: Agama, Pekerjaan, Pendidikan, Umur, Perkawinan, Wilayah ── */
.kependudukan-links {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
}
.kependudukan-link-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 12px 6px 10px;
    border-radius: 8px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.75);
    text-decoration: none;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    transition: all 0.3s ease;
}
.kependudukan-link-item i {
    font-size: 16px;
    color: var(--tb-gold);
    transition: transform 0.3s ease;
}
.kependudukan-link-item:hover {
    background: rgba(212,168,67,0.15);
    border-color: rgba(212,168,67,0.3);
    color: var(--tb-white);
    transform: translateY(-2px);
}
.kependudukan-link-item:hover i {
    transform: scale(1.15);
    color: var(--tb-gold);
}

/* ============================================================
   TICKER / TEKS BERJALAN — Running text below data penduduk
   ============================================================ */
.ticker-tabanan {
    display: flex;
    align-items: stretch;
    background: var(--tb-black-soft);
    overflow: hidden;
    position: relative;
    z-index: 9;
    border-bottom: 3px solid var(--tb-red);
}

/* Label "Info" badge — left side */
.ticker-label {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 10px 18px 10px 20px;
    background: var(--tb-red);
    color: var(--tb-white);
    font-family: var(--tb-font-heading);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    white-space: nowrap;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
}
.ticker-label i {
    font-size: 13px;
    animation: tickerPulse 2s ease-in-out infinite;
}
@keyframes tickerPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}
/* Diagonal cut on right side of label */
.ticker-label::after {
    content: '';
    position: absolute;
    top: 0;
    right: -14px;
    bottom: 0;
    width: 28px;
    background: var(--tb-red);
    transform: skewX(-15deg);
    z-index: -1;
}

/* Track wrapper — hides overflow */
.ticker-track-wrap {
    flex: 1;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    padding-left: 16px;
    mask-image: linear-gradient(90deg, transparent 0%, black 3%, black 97%, transparent 100%);
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 3%, black 97%, transparent 100%);
}

/* Scrolling track */
.ticker-track {
    display: flex;
    align-items: center;
    white-space: nowrap;
    animation: tickerScroll var(--ticker-duration, 30s) linear infinite;
    will-change: transform;
}
.ticker-track:hover {
    animation-play-state: paused;
}

@keyframes tickerScroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Individual text items */
.ticker-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 28px;
    font-size: 13px;
    font-weight: 500;
    color: rgba(255,255,255,0.85);
    line-height: 1;
    flex-shrink: 0;
}
.ticker-dot {
    font-size: 5px;
    color: var(--tb-red);
    flex-shrink: 0;
}
.ticker-link {
    color: var(--tb-gold);
    font-weight: 600;
    text-decoration: none;
    margin-left: 4px;
    transition: color var(--tb-transition);
}
.ticker-link:hover {
    color: var(--tb-gold-light);
    text-decoration: underline;
}
.ticker-link i {
    font-size: 9px;
    margin-left: 3px;
}

/* ============================================================
   SAMBUTAN KEPALA DESA — Premium Portrait Card
   ============================================================ */
.section-sambutan {
    padding: 32px 0 0;
    background: var(--tb-gray-50);
}

/* ── Card Shell ── */
.sambutan-card {
    background: var(--tb-white);
    border-radius: 24px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02),
                0 8px 24px rgba(0,0,0,0.06),
                0 24px 60px rgba(0,0,0,0.08);
    border: 1px solid rgba(0,0,0,0.04);
    overflow: hidden;
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s cubic-bezier(0.4,0,0.2,1),
                transform 0.7s cubic-bezier(0.4,0,0.2,1),
                box-shadow 0.5s ease;
}
.sambutan-card:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.04),
                0 12px 32px rgba(0,0,0,0.08),
                0 32px 72px rgba(0,0,0,0.1);
}
.sambutan-card.qa-visible {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* Tridatu accent bar — Full black animated strip */
.sambutan-accent {
    display: flex;
    height: 5px;
    position: relative;
    overflow: hidden;
    background: var(--tb-black);
}
.sambutan-accent .accent-red,
.sambutan-accent .accent-white,
.sambutan-accent .accent-black {
    display: none;
}
/* Animated shimmer sweep across the black strip */
.sambutan-accent::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(193,18,31,0.7) 30%, rgba(255,255,255,0.5) 50%, rgba(193,18,31,0.7) 70%, transparent);
    animation: sambutanStripSweep 3.5s ease-in-out infinite;
    z-index: 1;
}
/* Secondary trailing shimmer for depth */
.sambutan-accent::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 40%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3) 40%, rgba(212,168,67,0.5) 60%, transparent);
    animation: sambutanStripSweep 3.5s ease-in-out infinite 0.5s;
    z-index: 2;
}
@keyframes sambutanStripSweep {
    0%   { left: -100%; }
    100% { left: 200%; }
}

/* ── Split Layout ── */
.sambutan-wrapper {
    display: flex;
    min-height: 270px;
}

/* ══════════════════════════════════════
   LEFT PANEL — Red Glass Portrait
   ══════════════════════════════════════ */
.sambutan-panel-left {
    position: relative;
    width: 260px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px 18px 22px;
    gap: 12px;
    overflow: hidden;
    z-index: 1;
}

/* Dark gradient background layer → Full Red with Glass */
.sambutan-left-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(170deg, var(--tb-red) 0%, #b01020 35%, var(--tb-red-dark) 70%, #7a0c15 100%);
    z-index: 0;
}
/* Glass diagonal stripes (like navbar) */
.sambutan-left-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        -18deg,
        transparent 0%,
        transparent 20%,
        rgba(0,0,0,0.15) 20%,
        rgba(0,0,0,0.15) 26%,
        transparent 26%,
        transparent 32%,
        rgba(255,255,255,0.12) 32%,
        rgba(255,255,255,0.12) 55%,
        transparent 55%,
        transparent 100%
    );
    pointer-events: none;
    z-index: 1;
}
/* Glass overlay for frosted effect */
.sambutan-left-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255,255,255,0.06) 0%, transparent 30%, rgba(0,0,0,0.1) 100%);
    backdrop-filter: blur(1px);
    -webkit-backdrop-filter: blur(1px);
    pointer-events: none;
    z-index: 2;
}

/* Subtle light glow effects on red panel */
.sambutan-left-glow {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 45%;
    background: radial-gradient(ellipse at 50% 100%, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.03) 50%, transparent 80%);
    z-index: 3;
    pointer-events: none;
}
.sambutan-left-glow-2 {
    height: 30%;
    background: radial-gradient(ellipse at 30% 100%, rgba(0,0,0,0.15) 0%, transparent 60%);
}

/* ── Portrait Photo ── */
.sambutan-portrait {
    position: relative;
    z-index: 2;
    padding: 6px;
}

/* Glowing border frame — animated rotating border */
.sambutan-portrait-frame {
    position: relative;
    width: 140px;
    height: 182px;
    border-radius: 12px;
    padding: 3px;
    background: var(--tb-white);
    box-shadow: 0 0 16px rgba(255,255,255,0.2),
                0 12px 32px rgba(0,0,0,0.25);
    transition: box-shadow 0.5s ease, transform 0.5s cubic-bezier(0.4,0,0.2,1);
    z-index: 1;
}
/* Spinning conic-gradient border */
.sambutan-portrait-frame::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 20px;
    background: conic-gradient(
        from var(--frame-angle, 0deg),
        rgba(255,255,255,0.9),
        rgba(212,168,67,0.8),
        rgba(255,255,255,0.4),
        rgba(193,18,31,0.6),
        rgba(255,255,255,0.9),
        rgba(212,168,67,0.5),
        rgba(255,255,255,0.4),
        rgba(193,18,31,0.5),
        rgba(255,255,255,0.9)
    );
    z-index: -1;
    animation: frameRotate 4s linear infinite;
}
/* Soft outer glow pulse */
.sambutan-portrait-frame::after {
    content: '';
    position: absolute;
    inset: -8px;
    border-radius: 24px;
    background: conic-gradient(
        from var(--frame-angle, 0deg),
        transparent,
        rgba(255,255,255,0.15),
        transparent,
        rgba(212,168,67,0.12),
        transparent,
        rgba(255,255,255,0.15),
        transparent
    );
    z-index: -2;
    animation: frameRotate 4s linear infinite;
    filter: blur(6px);
}
@keyframes frameRotate {
    to { --frame-angle: 360deg; }
}
@property --frame-angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}
.sambutan-card:hover .sambutan-portrait-frame {
    box-shadow: 0 0 28px rgba(255,255,255,0.3),
                0 0 80px rgba(255,255,255,0.1),
                0 20px 50px rgba(0,0,0,0.3);
    transform: translateY(-4px);
}

.sambutan-portrait-inner {
    width: 100%;
    height: 100%;
    border-radius: 14px;
    overflow: hidden;
    background: #1a1a1a;
}
.sambutan-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
}
.sambutan-photo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
    color: rgba(255,255,255,0.2);
    font-size: 3.5rem;
}

/* ── Identity — Flip-Letter Animated Name ── */
.sambutan-identity {
    text-align: center;
    position: relative;
    z-index: 2;
    width: 100%;
}
.sambutan-kades-name {
    font-family: var(--tb-font-heading);
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--tb-white);
    line-height: 1.3;
    margin-bottom: 6px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0;
    perspective: 600px;
}
/* Each letter span */
.sambutan-kades-name .flip-char {
    display: inline-block;
    opacity: 0;
    animation: charFlipIn 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    transform-origin: center bottom;
    /* delay set by JS via --char-delay */
    animation-delay: var(--char-delay, 0s);
}
/* Space characters */
.sambutan-kades-name .flip-char.is-space {
    width: 0.35em;
    opacity: 1;
    animation: none;
}
/* The flip-in: rotate from top, land in place */
@keyframes charFlipIn {
    0% {
        opacity: 0;
        transform: rotateX(-90deg) translateY(-8px);
        filter: blur(3px);
    }
    60% {
        opacity: 1;
        transform: rotateX(20deg) translateY(0);
        filter: blur(0);
    }
    80% {
        transform: rotateX(-10deg);
    }
    100% {
        opacity: 1;
        transform: rotateX(0deg);
        filter: blur(0);
    }
}
/* Glow pulse after landing — sequential per letter */
.sambutan-kades-name .flip-char.landed {
    animation: charGlow 1.5s ease infinite;
    animation-delay: var(--char-delay, 0s);
}
@keyframes charGlow {
    0%, 100% { text-shadow: 0 0 0 transparent; }
    50%      { text-shadow: 0 0 8px rgba(255,255,255,0.35); }
}
.sambutan-kades-role {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: rgba(255,255,255,0.7);
    font-size: 0.76rem;
    font-weight: 500;
    animation: fadeInUp 1s ease 0.5s both;
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}
.sambutan-kades-role i {
    color: var(--tb-gold);
    font-size: 0.7rem;
}

/* ══════════════════════════════════════
   RIGHT PANEL — Content (Enhanced)
   ══════════════════════════════════════ */
.sambutan-panel-right {
    flex: 1;
    padding: 24px 32px 24px;
    display: flex;
    flex-direction: column;
    min-width: 0;
    position: relative;
    background: linear-gradient(160deg, var(--tb-white) 0%, #fafafa 50%, var(--tb-gray-50) 100%);
}
/* ── Balinese Motif Background — Inspired by Ukiran Bali ── */
.sambutan-panel-right::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        /* Swastika/pinwheel geometric — khas Bali */
        url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M40 35 L40 20 L45 20 L45 35 L60 35 L60 40 L45 40 L45 55 L40 55 L40 40 L25 40 L25 35 Z' fill='none' stroke='rgba(193,18,31,0.04)' stroke-width='0.5'/%3E%3Ccircle cx='40' cy='40' r='3' fill='none' stroke='rgba(212,168,67,0.05)' stroke-width='0.5'/%3E%3Ccircle cx='40' cy='40' r='12' fill='none' stroke='rgba(193,18,31,0.025)' stroke-width='0.3'/%3E%3C/svg%3E"),
        /* Poleng (checkered) pattern — khas Tabanan */
        url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='0' y='0' width='12' height='12' fill='rgba(193,18,31,0.012)'/%3E%3Crect x='12' y='12' width='12' height='12' fill='rgba(193,18,31,0.012)'/%3E%3C/svg%3E"),
        /* Padma (lotus) petal arcs */
        url("data:image/svg+xml,%3Csvg width='120' height='120' viewBox='0 0 120 120' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M60 30 Q75 45 60 60 Q45 45 60 30Z' fill='none' stroke='rgba(212,168,67,0.03)' stroke-width='0.4'/%3E%3Cpath d='M30 60 Q45 75 60 60 Q45 45 30 60Z' fill='none' stroke='rgba(193,18,31,0.025)' stroke-width='0.4'/%3E%3Cpath d='M60 90 Q45 75 60 60 Q75 75 60 90Z' fill='none' stroke='rgba(212,168,67,0.03)' stroke-width='0.4'/%3E%3Cpath d='M90 60 Q75 45 60 60 Q75 75 90 60Z' fill='none' stroke='rgba(193,18,31,0.025)' stroke-width='0.4'/%3E%3Ccircle cx='60' cy='60' r='6' fill='none' stroke='rgba(212,168,67,0.035)' stroke-width='0.3'/%3E%3C/svg%3E");
    background-size: 80px 80px, 24px 24px, 120px 120px;
    pointer-events: none;
    z-index: 0;
    opacity: 1;
}
/* Decorative corner — Balinese karang/ukiran inspired */
.sambutan-panel-right::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 220px;
    height: 220px;
    background:
        url("data:image/svg+xml,%3Csvg width='220' height='220' viewBox='0 0 220 220' xmlns='http://www.w3.org/2000/svg'%3E%3Cdefs%3E%3CradialGradient id='g' cx='100%25' cy='0%25' r='80%25'%3E%3Cstop offset='0%25' stop-color='rgba(193,18,31,0.06)'/%3E%3Cstop offset='100%25' stop-color='transparent'/%3E%3C/radialGradient%3E%3C/defs%3E%3Ccircle cx='220' cy='0' r='160' fill='url(%23g)'/%3E%3Cpath d='M180 0 Q200 20 180 40 Q160 20 180 0Z' fill='rgba(212,168,67,0.04)'/%3E%3Cpath d='M200 10 Q210 25 195 35 Q185 20 200 10Z' fill='rgba(193,18,31,0.03)'/%3E%3Cpath d='M160 5 Q175 18 158 28 Q148 15 160 5Z' fill='rgba(212,168,67,0.025)'/%3E%3C/svg%3E") no-repeat top right;
    pointer-events: none;
    z-index: 0;
}
.sambutan-panel-right > * {
    position: relative;
    z-index: 1;
}

/* Top section */
.sambutan-right-top {
    margin-bottom: 12px;
}

/* Badge label — inline with title */
.sambutan-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 0;
    flex-wrap: wrap;
}
.sambutan-badge-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--tb-red) 0%, var(--tb-red-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--tb-white);
    font-size: 0.9rem;
    box-shadow: 0 4px 16px rgba(193,18,31,0.3);
    flex-shrink: 0;
    animation: badgePulse 2.5s ease-in-out infinite;
}
@keyframes badgePulse {
    0%, 100% { box-shadow: 0 4px 16px rgba(193,18,31,0.3); }
    50% { box-shadow: 0 4px 24px rgba(193,18,31,0.5), 0 0 0 4px rgba(193,18,31,0.08); }
}
.sambutan-badge-line {
    width: 36px;
    height: 2.5px;
    background: linear-gradient(90deg, var(--tb-red), var(--tb-gray-300));
    border-radius: 2px;
}
.sambutan-badge-text {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--tb-red);
}
.sambutan-badge-title {
    font-family: var(--tb-font-heading);
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--tb-black);
    line-height: 1;
}
.sambutan-badge-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--tb-gold);
    flex-shrink: 0;
}
.sambutan-badge-desa {
    font-size: 0.82rem;
    color: var(--tb-gray-400);
    font-weight: 500;
    letter-spacing: 0.02em;
}

/* Title — hidden (now inline in badge row) */
.sambutan-title {
    display: none;
}
.sambutan-subtitle {
    display: none;
}

/* Body text — enhanced with styled first-letter */
.sambutan-body {
    flex: 1;
    padding-top: 12px;
    border-top: 1px solid var(--tb-gray-100);
    margin-top: 2px;
}
.sambutan-text {
    font-size: 0.86rem;
    line-height: 1.75;
    color: var(--tb-gray-600);
    max-height: 130px;
    overflow: hidden;
    position: relative;
    transition: max-height 0.5s cubic-bezier(0.4,0,0.2,1);
    text-align: justify;
}
.sambutan-text.expanded {
    max-height: 3000px;
}
.sambutan-text:not(.expanded)::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 55px;
    background: linear-gradient(transparent, var(--tb-white) 70%);
    pointer-events: none;
    display: none;
}
.sambutan-text.has-overflow:not(.expanded)::after {
    display: block;
}

/* Toggle — enhanced */
.sambutan-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
    padding: 8px 24px;
    border: none;
    border-radius: 50px;
    background: linear-gradient(135deg, var(--tb-red) 0%, var(--tb-red-dark) 100%);
    color: var(--tb-white);
    font-family: var(--tb-font-primary);
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--tb-transition);
    box-shadow: 0 4px 16px rgba(193,18,31,0.25);
}
.sambutan-toggle:hover {
    background: linear-gradient(135deg, var(--tb-red-dark) 0%, #6a0a12 100%);
    color: var(--tb-white);
    box-shadow: 0 6px 24px rgba(193,18,31,0.35);
    transform: translateY(-2px);
}
.sambutan-toggle i {
    font-size: 0.65rem;
    transition: transform 0.3s;
}
.sambutan-toggle.active i {
    transform: rotate(180deg);
}

/* ── Signature — Hidden (already shown on left panel) ── */
.sambutan-signature {
    display: none;
}
.sambutan-sig-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--tb-gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--tb-white);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.sambutan-sig-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.sambutan-sig-avatar i {
    font-size: 1rem;
    color: var(--tb-gray-400);
}
.sambutan-sig-detail {
    display: flex;
    flex-direction: column;
    gap: 1px;
}
.sambutan-sig-detail strong {
    font-family: var(--tb-font-heading);
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--tb-black);
    line-height: 1.3;
}
.sambutan-sig-detail span {
    font-size: 0.73rem;
    color: var(--tb-gray-400);
    font-weight: 500;
}

/* Watermark quote — enhanced */
.sambutan-watermark {
    position: absolute;
    bottom: 16px;
    right: 24px;
    font-size: 4rem;
    color: var(--tb-red);
    line-height: 1;
    pointer-events: none;
    opacity: 0.06;
    z-index: 0;
}

/* ══════════════════════════════════════
   SAMBUTAN — Responsive
   ══════════════════════════════════════ */
@media (max-width: 899px) {
    .sambutan-wrapper {
        flex-direction: column;
        min-height: auto;
    }
    .sambutan-panel-left {
        width: 100%;
        flex-direction: row;
        padding: 28px 24px;
        gap: 20px;
        justify-content: flex-start;
    }
    .sambutan-portrait-frame {
        width: 130px;
        height: 165px;
        border-radius: 14px;
    }
    .sambutan-portrait-inner {
        border-radius: 10px;
    }
    .sambutan-identity {
        text-align: left;
    }
    .sambutan-kades-name {
        font-size: 0.92rem;
    }
    .sambutan-panel-right {
        padding: 20px 24px 20px;
    }
    .sambutan-badge-title { font-size: 1.1rem; }
    .sambutan-watermark { font-size: 3.5rem; bottom: 16px; right: 20px; }
}

@media (max-width: 479px) {
    .section-sambutan {
        padding: 30px 0 0;
    }
    .sambutan-card {
        border-radius: 18px;
    }
    .sambutan-panel-left {
        flex-direction: column;
        align-items: center;
        padding: 28px 20px 24px;
        gap: 16px;
    }
    .sambutan-portrait-frame {
        width: 140px;
        height: 180px;
    }
    .sambutan-identity {
        text-align: center;
    }
    .sambutan-kades-name { font-size: 0.88rem; }
    .sambutan-kades-role { font-size: 0.7rem; }
    .sambutan-panel-right {
        padding: 18px 16px 16px;
    }
    .sambutan-badge-title { font-size: 1rem; }
    .sambutan-badge-desa { font-size: 0.75rem; }
    .sambutan-text {
        font-size: 0.84rem;
        max-height: 130px;
    }
    .sambutan-watermark { font-size: 2.8rem; bottom: 12px; right: 14px; }
}

/* ============================================================
   SECTIONS — General
   ============================================================ */
.section-tabanan {
    padding: 70px 0;
}
.section-tabanan.section-alt {
    background: var(--tb-gray-50);
}

/* Content Background Wrapper */
.content-bg-wrap {
    position: relative;
    overflow: hidden;
}
.content-bg-wrap.content-bg-page {
    padding-top: 71px; /* offset for fixed navbar on inner pages */
}
.content-bg-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: 0.12;
    pointer-events: none;
}
.content-bg-wrap > .container,
.content-bg-wrap > .layout-tabanan {
    position: relative;
    z-index: 1;
}

/* Section Header Center with Title Ornament */
.section-header-center {
    text-align: center;
    margin-bottom: 48px;
}
.section-title-decorated {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    font-size: clamp(1.3rem, 3vw, 1.8rem);
    font-weight: 800;
    color: var(--tb-black);
    margin-bottom: 8px;
    position: relative;
}
.section-title-decorated span {
    position: relative;
    display: inline-block;
}
.section-title-decorated span::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -10px;
    width: 50px;
    height: 3px;
    border-radius: 4px;
    background: linear-gradient(90deg, var(--tb-red), var(--tb-gold));
}
.section-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: var(--tb-red-bg);
    color: var(--tb-red);
    border-radius: 50%;
    font-size: 20px;
    margin-bottom: 14px;
}
.section-title-big {
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: 8px;
}
.section-subtitle {
    font-size: 15px;
    color: var(--tb-gray-500);
    max-width: 500px;
    margin: 0 auto;
}
.section-tridatu-line {
    display: flex;
    width: 60px;
    height: 3px;
    margin: 14px auto 0;
    border-radius: 2px;
    overflow: hidden;
}
.section-tridatu-line span:nth-child(1) { flex: 1; background: var(--tb-red); }
.section-tridatu-line span:nth-child(2) { flex: 1; background: var(--tb-gray-300); }
.section-tridatu-line span:nth-child(3) { flex: 1; background: var(--tb-black); }

/* ============================================================
   STATISTIK DESA
   ============================================================ */
.statistik-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* Statistik Card (Info Desa panel) */
.statistik-panel {
    background: var(--tb-white);
    border-radius: var(--tb-radius-lg);
    padding: 28px;
    box-shadow: var(--tb-shadow);
    border: 1px solid var(--tb-gray-200);
}
.statistik-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px;
    border-radius: var(--tb-radius);
    border: 1px solid var(--tb-gray-200);
    text-decoration: none;
    transition: all var(--tb-transition);
    background: var(--tb-white);
    opacity: 0;
    transform: translateY(16px);
}
.statistik-card.card-visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.5s ease, transform 0.5s ease;
}
.statistik-card:hover {
    border-color: var(--card-color, var(--tb-red));
    box-shadow: var(--tb-shadow-md);
    transform: translateY(-3px);
}
.statistik-card-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--tb-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}
.statistik-card-info { flex: 1; min-width: 0; }
.statistik-card-info h4 { font-size: 13px; font-weight: 700; color: var(--tb-black); margin-bottom: 2px; }
.statistik-card-link { font-size: 11px; color: var(--card-color, var(--tb-red)); font-weight: 600; }
.statistik-card-link i { margin-left: 3px; font-size: 10px; transition: transform var(--tb-transition); }
.statistik-card:hover .statistik-card-link i { transform: translateX(3px); }
.statistik-footer {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--tb-gray-200);
}
.statistik-footer-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    border-radius: var(--tb-radius);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--tb-transition);
    color: var(--tb-white);
}
.btn-primary-gradient {
    background: linear-gradient(135deg, var(--tb-red), var(--tb-red-dark));
}
.btn-primary-gradient:hover {
    background: linear-gradient(135deg, var(--tb-red-dark), var(--tb-red));
    color: var(--tb-white);
    transform: translateY(-2px);
    box-shadow: var(--tb-shadow-red);
}
.btn-accent-gradient {
    background: linear-gradient(135deg, var(--tb-black), var(--tb-black-soft));
}
.btn-accent-gradient:hover {
    background: linear-gradient(135deg, var(--tb-black-soft), var(--tb-black));
    color: var(--tb-white);
    transform: translateY(-2px);
    box-shadow: var(--tb-shadow-md);
}

/* Penduduk Counter */
.penduduk-counter {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-bottom: 24px;
}
.penduduk-counter-item {
    background: var(--tb-gray-50);
    border-radius: var(--tb-radius);
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid var(--tb-gray-200);
}
.counter-total { background: var(--tb-red-bg); border-color: rgba(193,18,31,0.15); }
.counter-laki { background: #eff6ff; border-color: rgba(37,99,235,0.15); }
.counter-perempuan { background: #fdf2f8; border-color: rgba(219,39,119,0.15); }
.penduduk-counter-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--tb-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}
.counter-total .penduduk-counter-icon { color: var(--tb-red); }
.counter-laki .penduduk-counter-icon { color: #2563eb; }
.counter-perempuan .penduduk-counter-icon { color: #db2777; }
.penduduk-counter-data { min-width: 0; }
.penduduk-counter-num {
    display: block;
    font-size: 22px;
    font-weight: 800;
    color: var(--tb-black);
    line-height: 1.2;
}
.penduduk-counter-label {
    font-size: 11px;
    color: var(--tb-gray-500);
    font-weight: 500;
}
.counter-animated .penduduk-counter-item {
    animation: fadeInUp 0.5s ease forwards;
}

/* Info Desa Statistik Grid (inside panel) */
.statistik-panel .statistik-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

/* ============================================================
   APARATUR SECTION
   ============================================================ */
.aparatur-section {
    background: var(--tb-white);
    border-radius: var(--tb-radius-lg);
    padding: 24px;
    box-shadow: var(--tb-shadow);
    border: 1px solid var(--tb-gray-200);
    margin-top: 20px;
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.aparatur-section.is-visible { opacity: 1; transform: translateX(0); }
.aparatur-section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--tb-gray-200);
}
.aparatur-section-icon {
    width: 40px;
    height: 40px;
    background: var(--tb-red);
    color: white;
    border-radius: var(--tb-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}
.aparatur-section-header h3 { font-size: 15px; font-weight: 700; }
.aparatur-section-header p { font-size: 12px; color: var(--tb-gray-500); }
.aparatur-section-link {
    margin-left: auto;
    font-size: 12px;
    font-weight: 600;
    color: var(--tb-red);
    text-decoration: none;
    white-space: nowrap;
    transition: color var(--tb-transition);
}
.aparatur-section-link:hover { color: var(--tb-red-dark); }
.aparatur-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.aparatur-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border-radius: var(--tb-radius);
    border: 1px solid var(--tb-gray-200);
    transition: all var(--tb-transition);
}
.aparatur-card:hover { background: var(--tb-gray-50); border-color: var(--tb-red); }
.aparatur-hidden { display: none; }
.aparatur-card-photo {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}
.aparatur-card-photo img { width: 100%; height: 100%; object-fit: cover; }
.aparatur-card-info h4 { font-size: 13px; font-weight: 700; color: var(--tb-black); }
.aparatur-card-info span { font-size: 11px; color: var(--tb-gray-500); }
.aparatur-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--tb-gray-200);
}
.aparatur-nav-btn {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--tb-gray-200);
    border-radius: var(--tb-radius-sm);
    background: white;
    cursor: pointer;
    font-size: 12px;
    color: var(--tb-gray-600);
    transition: all var(--tb-transition);
}
.aparatur-nav-btn:hover:not(:disabled) { background: var(--tb-red); color: white; border-color: var(--tb-red); }
.aparatur-nav-btn:disabled { opacity: 0.3; cursor: not-allowed; }
.aparatur-nav-info { font-size: 12px; color: var(--tb-gray-500); }

/* ============================================================
   JAM KERJA
   ============================================================ */
.jamkerja-panel {
    background: var(--tb-white);
    border-radius: var(--tb-radius-lg);
    padding: 0;
    box-shadow: var(--tb-shadow);
    border: 1px solid var(--tb-gray-200);
    margin-top: 20px;
    overflow: hidden;
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.jamkerja-panel.is-visible { opacity: 1; transform: translateX(0); }
.jamkerja-panel-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: var(--tb-black);
    color: white;
}
.jamkerja-panel-icon {
    width: 40px;
    height: 40px;
    background: var(--tb-red);
    border-radius: var(--tb-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}
.jamkerja-panel-header h3 { font-size: 15px; color: white; }
.jamkerja-panel-header p { font-size: 12px; color: var(--tb-gray-400); }
.jamkerja-panel-body { padding: 0; }
.jamkerja-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}
.jamkerja-table th {
    background: var(--tb-gray-50);
    padding: 10px 16px;
    text-align: left;
    font-weight: 600;
    font-size: 12px;
    color: var(--tb-gray-500);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--tb-gray-200);
}
.jamkerja-table td {
    padding: 10px 16px;
    border-bottom: 1px solid var(--tb-gray-100);
    color: var(--tb-gray-700);
}
.jamkerja-today td {
    background: var(--tb-red-bg);
    font-weight: 600;
    color: var(--tb-red);
}
.jamkerja-today-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    background: var(--tb-red);
    border-radius: 50%;
    margin-right: 6px;
    vertical-align: middle;
    animation: pulse-dot 1.5s infinite;
}
@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}
.jamkerja-libur td { color: var(--tb-gray-400); }
.jamkerja-badge-libur {
    display: inline-block;
    padding: 2px 10px;
    background: #f0f9ff;
    color: #0284c7;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 600;
}

/* ============================================================
   KEHADIRAN PANEL (Extended)
   ============================================================ */
.kehadiran-panel-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--tb-gray-100);
    opacity: 0;
    transform: translateY(10px);
}
.kehadiran-panel-item.item-visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.4s ease, transform 0.4s ease;
}
.kehadiran-panel-item:last-child { border-bottom: none; }
.kehadiran-avatar-wrap {
    position: relative;
    flex-shrink: 0;
}
.kehadiran-avatar-wrap .kehadiran-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
}
.kehadiran-dot {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid var(--tb-white);
}
.kehadiran-dot.status-hadir { background: #10b981; }
.kehadiran-dot.status-izin { background: #f59e0b; }
.kehadiran-dot.status-sakit { background: #ef4444; }
.kehadiran-dot.status-belum { background: var(--tb-gray-400); }
.kehadiran-dot.status-libur { background: #0ea5e9; }
.kehadiran-info { flex: 1; min-width: 0; }
.kehadiran-nama { display: block; font-size: 13px; font-weight: 600; color: var(--tb-black); }
.kehadiran-status-col { flex-shrink: 0; }
.badge-text { margin-left: 4px; }
.kehadiran-empty {
    text-align: center;
    padding: 30px 20px;
    color: var(--tb-gray-400);
}
.kehadiran-empty i { font-size: 28px; margin-bottom: 8px; display: block; }
.kehadiran-empty p { font-size: 13px; }
.status-row-hadir .kehadiran-badge { background: #ecfdf5; color: #059669; }
.status-row-izin .kehadiran-badge { background: #fffbeb; color: #d97706; }
.status-row-belum .kehadiran-badge { background: var(--tb-gray-100); color: var(--tb-gray-500); }
.status-row-libur .kehadiran-badge { background: #f0f9ff; color: #0284c7; }

/* ============================================================
   TRIO (Profil Desa: Peta + Alamat + Kantor)
   ============================================================ */
.section-trio {
    background: var(--tb-white);
}
.trio-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
}
.trio-card {
    background: var(--tb-white);
    border-radius: var(--tb-radius-lg);
    box-shadow: var(--tb-shadow);
    border: 1px solid var(--tb-gray-200);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.trio-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: var(--tb-gray-50);
    border-bottom: 1px solid var(--tb-gray-200);
}
.trio-card-header-icon {
    width: 36px;
    height: 36px;
    background: var(--tb-red);
    color: white;
    border-radius: var(--tb-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}
.trio-card-header-text h3 { font-size: 14px; font-weight: 700; }
.trio-card-header-text p { font-size: 11px; color: var(--tb-gray-500); }
.trio-card-body { flex: 1; padding: 0; }
.trio-map-wrap { position: relative; }
.trio-map {
    height: 300px;
    width: 100%;
    z-index: 1;
}
.trio-map-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 200px;
    color: var(--tb-gray-400);
}
.trio-map-empty i { font-size: 28px; margin-bottom: 8px; }
.trio-map-empty p { font-size: 13px; }

/* Alamat Kantor */
.alamat-kantor { padding: 20px; }
.alamat-kantor-logo-wrap { text-align: center; margin-bottom: 14px; }
.alamat-kantor-logo-ring {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 2px solid var(--tb-red);
    padding: 4px;
}
.alamat-kantor-logo { width: 100%; height: 100%; border-radius: 50%; object-fit: contain; }
.alamat-kantor-title {
    text-align: center;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--tb-black);
}
.ak-contact-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.ak-contact-card {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px;
    background: var(--tb-gray-50);
    border-radius: var(--tb-radius-sm);
}
.ak-contact-icon {
    width: 30px;
    height: 30px;
    background: var(--tb-red-bg);
    color: var(--tb-red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    flex-shrink: 0;
}
.ak-contact-label {
    display: block;
    font-size: 10px;
    color: var(--tb-gray-500);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}
.ak-contact-value { font-size: 12px; color: var(--tb-gray-700); line-height: 1.5; }

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInLeft {
    from { opacity: 0; transform: translateX(-30px); }
    to { opacity: 1; transform: translateX(0); }
}
@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
}
[data-animate] {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
[data-animate="fadeInLeft"] {
    transform: translateX(-30px);
}
[data-animate="fadeInRight"] {
    transform: translateX(30px);
}
[data-animate].is-visible {
    opacity: 1;
    transform: translate(0, 0);
}

/* ============================================================
   MENU DESA — Card Style, Tridatu Colors
   ============================================================ */
.section-menu-desa {
    padding: 30px 0 16px;
    background: var(--tb-gray-50);
}
.menu-desa-row {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    gap: 10px;
    padding: 4px 0;
}
.menu-desa-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 18px 8px 14px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(.4,0,.2,1);
    cursor: pointer;
    border-radius: var(--tb-radius);
    flex: 1 1 0;
    min-width: 0;
    background: var(--tb-white);
    border: 1px solid var(--tb-gray-200);
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.menu-desa-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(193,18,31,.13);
    border-color: var(--tb-red-light);
    background: var(--tb-red-bg);
}
.menu-desa-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(.4,0,.2,1);
    flex-shrink: 0;
}
.menu-desa-item:hover .menu-desa-icon {
    transform: scale(1.1);
}
.menu-desa-icon img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    /* No filter — show original SVG colors (Tridatu red/black) */
}
.menu-desa-label {
    font-family: var(--tb-font-primary);
    font-size: 11.5px;
    font-weight: 600;
    color: var(--tb-black);
    text-align: center;
    line-height: 1.3;
}
.menu-desa-item:hover .menu-desa-label {
    color: var(--tb-red);
}

/* ============================================================
   BERITA / ARTIKEL
   ============================================================ */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    padding-bottom: 14px;
    border-bottom: 2px solid var(--tb-gray-200);
}
.section-title {
    font-size: 18px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}
.section-title i { color: var(--tb-red); }

/* Category tabs */
.category-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}
.cat-tab {
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    color: var(--tb-gray-600);
    background: var(--tb-gray-100);
    border: 1px solid var(--tb-gray-200);
    text-decoration: none;
    transition: all var(--tb-transition);
}
.cat-tab.active, .cat-tab:hover {
    background: var(--tb-red);
    color: var(--tb-white);
    border-color: var(--tb-red);
}

/* Article Grid */
.article-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}
.article-card {
    display: flex;
    flex-direction: column;
    background: var(--tb-white);
    border-radius: 14px;
    border: 1px solid rgba(0,0,0,.06);
    overflow: hidden;
    transition: all .35s cubic-bezier(.4,0,.2,1);
    text-decoration: none;
    box-shadow: 0 2px 12px rgba(0,0,0,.04);
}
.article-card:hover {
    box-shadow: 0 12px 36px rgba(193,18,31,.1);
    border-color: rgba(193,18,31,.15);
    transform: translateY(-4px);
}
.article-card-img-link { display: block; text-decoration: none; }
.article-card-img {
    width: 100%;
    height: 160px;
    position: relative;
    overflow: hidden;
    background: #f7f8fa;
}
.article-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}
.article-card:hover .article-card-img img { transform: scale(1.06); }
.article-card-img-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}
.article-card-noimg .article-card-img {
    background: linear-gradient(135deg, #f8f9fb 0%, #eef0f4 100%);
    border-bottom: 1px solid rgba(0,0,0,.04);
}
.article-card-noimg .article-card-img img { opacity: 1; }
.article-card-noimg .article-card-img-placeholder { display: none; }
.article-card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 16px 18px 14px;
}
.article-card-cat {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    font-weight: 700;
    color: var(--tb-red);
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-bottom: 6px;
}
.article-card-cat i { font-size: 9px; opacity: .6; }
.article-card-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--tb-black);
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.45;
    text-decoration: none;
    transition: color .2s;
}
.article-card:hover .article-card-title { color: var(--tb-red); }
.article-card-excerpt {
    font-size: 12px;
    color: #718096;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 12px;
    flex: 1;
}
.article-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 10px;
    border-top: 1px solid rgba(0,0,0,.05);
}
.article-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 11px;
    color: #a0aec0;
}
.article-card-meta i { margin-right: 3px; font-size: 10px; }
.article-card-read {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 700;
    color: var(--tb-red);
    text-decoration: none;
    transition: gap .25s;
}
.article-card-read i { font-size: 10px; transition: transform .25s; }
.article-card:hover .article-card-read i { transform: translateX(3px); }

/* ============================================================
   HEADLINE
   ============================================================ */
.headline-hero {
    display: block;
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    margin-bottom: 30px;
    text-decoration: none;
    background: var(--tb-black);
    box-shadow: 0 8px 32px rgba(0,0,0,.12);
    transition: box-shadow .4s, transform .4s;
}
.headline-hero:hover {
    box-shadow: 0 16px 48px rgba(193,18,31,.15);
    transform: translateY(-3px);
}
.headline-hero-img { width: 100%; height: 340px; }
.headline-hero-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(.4,0,.2,1); }
.headline-hero:hover .headline-hero-img img { transform: scale(1.04); }
.headline-noimg .headline-hero-img { height: 300px; }
.headline-noimg .headline-hero-img img { opacity: 1; object-fit: cover; }
.headline-noimg {
    background: var(--tb-black);
}
.headline-noimg .headline-hero-overlay {
    background: linear-gradient(transparent 5%, rgba(17,17,17,0.7) 60%, rgba(17,17,17,0.95) 100%);
}
.headline-noimg .headline-hero-title { text-shadow: 0 2px 12px rgba(0,0,0,.3); }
.headline-noimg .headline-hero-badge { box-shadow: 0 2px 12px rgba(193,18,31,.45); }
.headline-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(transparent 20%, rgba(17,17,17,0.9) 100%);
}
.headline-hero-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 28px 32px;
    z-index: 2;
}
.headline-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--tb-red);
    color: white;
    padding: 5px 14px;
    border-radius: 50px;
    font-size: 10.5px;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: .3px;
    box-shadow: 0 2px 8px rgba(193,18,31,.35);
}
.headline-hero-badge i { font-size: 9px; }
.headline-hero-title {
    font-size: clamp(1.25rem, 2.5vw, 1.65rem);
    color: white;
    margin-bottom: 10px;
    line-height: 1.35;
    font-weight: 800;
    letter-spacing: -.3px;
}
.headline-hero-excerpt {
    font-size: 13px;
    color: rgba(255,255,255,0.7);
    margin-bottom: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.6;
}
.headline-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 11.5px;
    color: rgba(255,255,255,0.5);
    margin-bottom: 14px;
}
.headline-hero-meta i { margin-right: 4px; }
.headline-hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--tb-white);
    font-size: 13px;
    font-weight: 700;
    padding: 8px 20px;
    border-radius: 50px;
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.15);
    backdrop-filter: blur(4px);
    transition: all .3s;
}
.headline-hero:hover .headline-hero-btn {
    background: var(--tb-red);
    border-color: var(--tb-red);
    box-shadow: 0 4px 12px rgba(193,18,31,.35);
}
.headline-hero-btn i { font-size: 11px; transition: transform .25s; }
.headline-hero:hover .headline-hero-btn i { transform: translateX(3px); }

/* ============================================================
   LAYOUT (Content + Sidebar)
   ============================================================ */
.layout-tabanan {
    padding: 40px 0 60px;
}
.layout-main {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 30px;
    align-items: start;
}
.layout-reversed {
    grid-template-columns: 320px 1fr;
}
.content-area {
    min-width: 0;
}
.content-area.box {
    background: var(--tb-white);
    border-radius: var(--tb-radius-lg);
    padding: 28px;
    box-shadow: var(--tb-shadow);
    border: 1px solid var(--tb-gray-200);
}

/* ============================================================
   SIDEBAR — Tabanan Bali Premium
   ============================================================ */
.sidebar-tabanan {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* ── Base Widget Card ── */
.sidebar-widget {
    background: var(--tb-white);
    border-radius: 16px;
    padding: 0;
    margin-bottom: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04), 0 8px 24px rgba(0,0,0,0.06);
    border: 1px solid rgba(0,0,0,0.05);
    overflow: hidden;
    position: relative;
    transition: box-shadow 0.4s ease, transform 0.4s ease;
}
.sidebar-widget:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.06), 0 12px 32px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}

/* Subtle Balinese motif bg on every widget */
.sidebar-widget::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 15 Q37 22 30 30 Q23 22 30 15Z' fill='none' stroke='rgba(193,18,31,0.025)' stroke-width='0.3'/%3E%3Cpath d='M15 30 Q22 37 30 30 Q22 23 15 30Z' fill='none' stroke='rgba(212,168,67,0.02)' stroke-width='0.3'/%3E%3Cpath d='M30 45 Q23 38 30 30 Q37 38 30 45Z' fill='none' stroke='rgba(193,18,31,0.025)' stroke-width='0.3'/%3E%3Cpath d='M45 30 Q38 23 30 30 Q38 37 45 30Z' fill='none' stroke='rgba(212,168,67,0.02)' stroke-width='0.3'/%3E%3Ccircle cx='30' cy='30' r='3' fill='none' stroke='rgba(212,168,67,0.025)' stroke-width='0.2'/%3E%3C/svg%3E");
    background-size: 60px 60px;
    pointer-events: none;
    z-index: 0;
    opacity: 1;
}
.sidebar-widget > * {
    position: relative;
    z-index: 1;
}

/* ── Widget Header — Dark red bar with tridatu accent ── */
.sidebar-widget-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 0;
    padding: 14px 18px;
    background: linear-gradient(135deg, var(--tb-red) 0%, var(--tb-red-dark) 100%);
    border-bottom: none;
    position: relative;
    overflow: hidden;
}
/* Diagonal glass stripe on header */
.sidebar-widget-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        -20deg,
        transparent 0%,
        transparent 40%,
        rgba(255,255,255,0.08) 40%,
        rgba(255,255,255,0.08) 60%,
        transparent 60%
    );
    pointer-events: none;
}
/* Gold accent bottom line */
.sidebar-widget-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--tb-gold), rgba(212,168,67,0.3), transparent);
}
.sidebar-widget-header i {
    color: var(--tb-white);
    font-size: 14px;
    opacity: 0.85;
}
.sidebar-widget-header h3,
.sidebar-widget-header h4 {
    font-family: var(--tb-font-heading);
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--tb-white);
    margin: 0;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

/* ── Widget Body ── */
.sidebar-widget-body {
    padding: 16px;
}

/* ══════════════════════════════════════
   Widget: Tabs (Arsip & Profil)
   ══════════════════════════════════════ */
.warsip-tabs {
    display: flex;
    background: var(--tb-gray-50);
    border-bottom: 2px solid var(--tb-gray-100);
    position: relative;
    z-index: 1;
}
.warsip-tab,
.profil-tab {
    flex: 1;
    padding: 10px 8px;
    font-size: 11px;
    font-weight: 700;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--tb-gray-400);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}
.warsip-tab i { font-size: 10px; }
.warsip-tab.is-active,
.profil-tab.is-active {
    color: var(--tb-red);
    background: var(--tb-white);
}
.warsip-tab.is-active::after,
.profil-tab.is-active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--tb-red), var(--tb-gold));
}
.warsip-tab:not(.is-active):hover,
.profil-tab:not(.is-active):hover {
    color: var(--tb-gray-600);
    background: rgba(0,0,0,0.02);
}

/* ── Arsip List (numbered) ── */
.warsip-panel { display: none; }
.warsip-panel.is-active { display: block; }
.profil-panel { display: none; }
.profil-panel.is-active { display: block; }
.warsip-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.warsip-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 0;
    border-bottom: 1px solid var(--tb-gray-100);
    text-decoration: none;
    color: var(--tb-black);
    transition: all 0.25s ease;
}
.warsip-item:hover {
    padding-left: 4px;
}
.warsip-item:hover .warsip-num {
    background: var(--tb-red);
    color: var(--tb-white);
    border-color: var(--tb-red);
}
.warsip-item:hover .warsip-arrow {
    color: var(--tb-red);
    transform: translateX(2px);
}
.warsip-num {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    border: 1.5px solid var(--tb-gray-200);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 800;
    color: var(--tb-gray-400);
    flex-shrink: 0;
    transition: all 0.25s ease;
    font-family: var(--tb-font-heading);
}
.warsip-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.warsip-meta {
    font-size: 10px;
    color: var(--tb-gray-400);
}
.warsip-meta i {
    margin-right: 3px;
    font-size: 9px;
}
.warsip-title {
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--tb-black);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.warsip-arrow {
    font-size: 9px;
    color: var(--tb-gray-300);
    flex-shrink: 0;
    transition: all 0.25s ease;
}
.warsip-empty {
    text-align: center;
    padding: 2rem 1rem;
    color: var(--tb-gray-400);
}
.warsip-empty i {
    font-size: 24px;
    margin-bottom: 8px;
    display: block;
    opacity: 0.5;
}
.warsip-empty p {
    font-size: 12px;
    margin: 0;
}

/* ══════════════════════════════════════
   Widget: Kategori
   ══════════════════════════════════════ */
.wkat-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.wkat-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 16px;
    text-decoration: none;
    color: var(--tb-black);
    font-size: 12.5px;
    font-weight: 500;
    border-bottom: 1px solid var(--tb-gray-100);
    transition: all 0.25s ease;
}
.wkat-item:hover {
    background: linear-gradient(90deg, rgba(193,18,31,0.03), transparent);
    padding-left: 20px;
}
.wkat-item:hover .wkat-icon {
    background: var(--tb-red);
    color: var(--tb-white);
}
.wkat-icon {
    width: 26px;
    height: 26px;
    border-radius: 6px;
    background: var(--tb-gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.25s ease;
}
.wkat-icon i {
    font-size: 10px;
    color: var(--tb-red);
}
.wkat-item:hover .wkat-icon i {
    color: var(--tb-white);
}
.wkat-name {
    flex: 1;
}
.wkat-count {
    background: linear-gradient(135deg, var(--tb-red), var(--tb-red-dark));
    color: var(--tb-white);
    padding: 2px 9px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 700;
    min-width: 22px;
    text-align: center;
}
.wkat-sub {
    list-style: none;
    padding: 0;
    margin: 0;
    background: var(--tb-gray-50);
}
.wkat-sub-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px 8px 42px;
    color: var(--tb-gray-500);
    text-decoration: none;
    font-size: 11.5px;
    transition: color 0.2s;
}
.wkat-sub-item:hover { color: var(--tb-red); }
.wkat-sub-item i { font-size: 9px; color: var(--tb-gray-400); }

/* ══════════════════════════════════════
   Widget: Statistik Pengunjung
   ══════════════════════════════════════ */
.wstat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}
.wstat-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 16px 8px;
    position: relative;
    transition: background 0.3s ease;
}
.wstat-cell:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 20%;
    height: 60%;
    width: 1px;
    background: var(--tb-gray-200);
}
.wstat-cell:hover {
    background: var(--tb-gray-50);
}
.wstat-icon-wrap {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    margin-bottom: 2px;
}
.wstat-today .wstat-icon-wrap {
    background: rgba(193,18,31,0.08);
    color: var(--tb-red);
}
.wstat-yesterday .wstat-icon-wrap {
    background: rgba(17,17,17,0.06);
    color: var(--tb-black);
}
.wstat-total .wstat-icon-wrap {
    background: rgba(212,168,67,0.1);
    color: var(--tb-gold);
}
.wstat-num {
    font-size: 20px;
    font-weight: 800;
    font-family: var(--tb-font-heading);
    line-height: 1;
}
.wstat-today .wstat-num { color: var(--tb-red); }
.wstat-yesterday .wstat-num { color: var(--tb-black); }
.wstat-total .wstat-num { color: var(--tb-gold); }
.wstat-label {
    font-size: 10px;
    color: var(--tb-gray-400);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}
.wstat-online {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px;
    border-top: 1px solid var(--tb-gray-100);
    font-size: 11px;
    color: var(--tb-gray-400);
}
.wstat-online-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    animation: wstatPulse 2s ease-in-out infinite;
}
@keyframes wstatPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(34,197,94,0.4); }
    50% { box-shadow: 0 0 0 4px rgba(34,197,94,0); }
}

/* ══════════════════════════════════════
   Widget: Profil Desa Table
   ══════════════════════════════════════ */
.wprofil-table {
    width: 100%;
    font-size: 12px;
    border-collapse: collapse;
}
.wprofil-table tr {
    border-bottom: 1px solid var(--tb-gray-100);
    transition: background 0.2s;
}
.wprofil-table tr:hover {
    background: var(--tb-gray-50);
}
.wprofil-table th {
    padding: 8px 12px;
    text-align: left;
    width: 40%;
    font-weight: 600;
    color: var(--tb-gray-600);
}
.wprofil-table td {
    padding: 8px 12px;
    color: var(--tb-gray-500);
}
.wprofil-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 10px;
    border-radius: 6px;
    background: var(--tb-red);
    color: var(--tb-white);
    font-size: 10px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s;
}
.wprofil-link:hover {
    background: var(--tb-red-dark);
    color: var(--tb-white);
}

/* Widget: Agenda */
.widget-agenda-item {
    display: flex;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--tb-gray-100);
}
.widget-agenda-date {
    text-align: center;
    flex-shrink: 0;
    width: 48px;
    padding: 6px;
    background: var(--tb-red-bg);
    border-radius: var(--tb-radius-sm);
}
.widget-agenda-date-num { font-size: 18px; font-weight: 800; color: var(--tb-red); display: block; line-height: 1; }
.widget-agenda-date-mon { font-size: 10px; color: var(--tb-gray-500); text-transform: uppercase; font-weight: 600; }
.widget-agenda-body h5 {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 2px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.widget-agenda-body h5 a { color: var(--tb-black); }
.widget-agenda-body h5 a:hover { color: var(--tb-red); }
.widget-agenda-loc { font-size: 11px; color: var(--tb-gray-400); }
.widget-agenda-loc i { color: var(--tb-red); margin-right: 3px; }

/* Widget: Kehadiran */
.kehadiran-panel {
    background: var(--tb-white);
    border-radius: var(--tb-radius-lg);
    overflow: hidden;
    box-shadow: var(--tb-shadow);
    border: 1px solid var(--tb-gray-200);
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.kehadiran-panel.is-visible { opacity: 1; transform: translateX(0); }
.kehadiran-panel-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: var(--tb-black);
    color: white;
}
.kehadiran-panel-icon {
    width: 40px;
    height: 40px;
    background: var(--tb-red);
    border-radius: var(--tb-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}
.kehadiran-panel-header h3 { font-size: 15px; color: white; }
.kehadiran-panel-header p { font-size: 12px; color: var(--tb-gray-400); }
.kehadiran-panel-login {
    margin-left: auto;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    color: white;
    transition: background var(--tb-transition);
}
.kehadiran-panel-login:hover { background: var(--tb-red); color: white; }
.kehadiran-summary {
    display: flex;
    gap: 12px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--tb-gray-200);
}
.kehadiran-summary-item {
    flex: 1;
    text-align: center;
    padding: 8px;
    border-radius: var(--tb-radius-sm);
    background: var(--tb-gray-50);
}
.summary-hadir { background: #ecfdf5; }
.summary-izin { background: #fffbeb; }
.summary-belum { background: var(--tb-gray-100); }
.summary-num { display: block; font-size: 22px; font-weight: 800; color: var(--tb-black); }
.summary-label { font-size: 11px; color: var(--tb-gray-500); font-weight: 500; }
.kehadiran-panel-body { padding: 0; }
.kehadiran-panel-list { max-height: 300px; overflow-y: auto; padding: 0 20px; }
.kehadiran-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--tb-gray-100);
}
.kehadiran-item:last-child { border-bottom: none; }
.kehadiran-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}
.kehadiran-info { flex: 1; min-width: 0; }
.kehadiran-name { font-size: 13px; font-weight: 600; color: var(--tb-black); }
.kehadiran-jabatan { font-size: 11px; color: var(--tb-gray-400); }
.kehadiran-badge {
    padding: 3px 10px;
    border-radius: 50px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.badge-hadir { background: #ecfdf5; color: #059669; }
.badge-izin { background: #fffbeb; color: #d97706; }
.badge-sakit { background: #fef2f2; color: #dc2626; }
.badge-belum { background: var(--tb-gray-100); color: var(--tb-gray-500); }
.badge-libur { background: #f0f9ff; color: #0284c7; }

/* ============================================================
   PETA DESA
   ============================================================ */
.peta-container {
    border-radius: var(--tb-radius-lg);
    overflow: hidden;
    box-shadow: var(--tb-shadow-md);
    border: 1px solid var(--tb-gray-200);
}
.peta-container #map_canvas,
.peta-container .leaflet-container {
    height: 400px;
    width: 100%;
    z-index: 1;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer-tabanan {
    position: relative;
    color: rgba(255,255,255,0.7);
    overflow: hidden;
}
.footer-bg-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}
.footer-overlay {
    position: absolute;
    inset: 0;
    background: rgba(17,17,17,0.85);
    z-index: 1;
}
.footer-ornament {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    display: flex;
    z-index: 3;
}
.footer-ornament span:nth-child(1) { flex: 1; background: var(--tb-red); }
.footer-ornament span:nth-child(2) { flex: 1; background: var(--tb-white); }
.footer-ornament span:nth-child(3) { flex: 1; background: var(--tb-black-soft); }
.footer-content {
    position: relative;
    z-index: 2;
    padding: 50px 0 0;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1.2fr 0.8fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-col {}
.footer-brand-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    margin-bottom: 18px;
}
.footer-brand-logo {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    object-fit: contain;
    background: rgba(255,255,255,0.1);
    padding: 4px;
}
.footer-brand-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--tb-white);
}
.footer-brand-sub {
    font-size: 12px;
    color: rgba(255,255,255,0.5);
}
.footer-contacts { margin-top: 12px; }
.footer-contact {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    margin-bottom: 10px;
    color: rgba(255,255,255,0.6);
}
.footer-contact i { color: var(--tb-red); margin-top: 3px; font-size: 13px; }
.footer-heading {
    font-size: 15px;
    font-weight: 700;
    color: var(--tb-white);
    margin-bottom: 18px;
    position: relative;
    padding-bottom: 10px;
}
.footer-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--tb-red);
}
.footer-links {
    list-style: none;
}
.footer-links li a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 0;
    font-size: 13px;
    color: rgba(255,255,255,0.6);
    transition: all var(--tb-transition);
}
.footer-links li a:hover {
    color: var(--tb-white);
    padding-left: 4px;
}
.footer-links li a i { color: var(--tb-red); font-size: 10px; }
.footer-social {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.footer-social a {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.7);
    font-size: 15px;
    transition: all var(--tb-transition);
}
.footer-social a:hover {
    background: var(--tb-red);
    color: white;
    transform: translateY(-2px);
}
.footer-bsre { margin-top: 16px; }
.footer-bsre img { height: 28px; opacity: 0.7; }

/* Footer Map */
.footer-map-wrap {
    position: relative;
    border-radius: var(--tb-radius);
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.12);
}
.footer-map-canvas {
    height: 220px;
    width: 100%;
    filter: brightness(0.85) contrast(1.05);
    transition: filter var(--tb-transition);
}
.footer-map-wrap:hover .footer-map-canvas {
    filter: brightness(1) contrast(1);
}
.footer-map-expand {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: none;
    background: var(--tb-red);
    color: var(--tb-white);
    font-size: 13px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    transition: all var(--tb-transition);
    z-index: 10;
    opacity: 0;
}
.footer-map-wrap:hover .footer-map-expand {
    opacity: 1;
}
.footer-map-expand:hover {
    background: var(--tb-red-dark);
    transform: scale(1.1);
}
.footer-map-address {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 10px;
    font-size: 12px;
    color: rgba(255,255,255,0.5);
    line-height: 1.5;
}
.footer-map-address i {
    color: var(--tb-red);
    margin-top: 2px;
    font-size: 11px;
    flex-shrink: 0;
}
.footer-map-loc-btn {
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.15);
    background: rgba(193,18,31,0.25);
    color: var(--tb-red-light);
    font-size: 11px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--tb-transition);
    margin-left: auto;
}
.footer-map-loc-btn:hover {
    background: var(--tb-red);
    color: var(--tb-white);
    transform: scale(1.15);
    border-color: var(--tb-red);
}
.footer-map-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 220px;
    border-radius: var(--tb-radius);
    border: 1px dashed rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.3);
    gap: 8px;
}
.footer-map-empty i { font-size: 2rem; opacity: 0.5; }
.footer-map-empty p { font-size: 12px; margin: 0; }

/* Footer Map Modal */
.footer-map-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.35s ease;
    padding: 24px;
}
.footer-map-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}
.footer-map-modal {
    background: var(--tb-white);
    border-radius: var(--tb-radius-lg);
    overflow: hidden;
    width: 100%;
    max-width: 800px;
    max-height: 90vh;
    box-shadow: 0 24px 80px rgba(0,0,0,0.4);
    transform: translateY(20px) scale(0.97);
    transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
}
.footer-map-modal-overlay.active .footer-map-modal {
    transform: translateY(0) scale(1);
}
.footer-map-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: var(--tb-black);
    color: var(--tb-white);
    border-bottom: 3px solid var(--tb-red);
}
.footer-map-modal-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 15px;
}
.footer-map-modal-title i {
    color: var(--tb-red);
}
.footer-map-modal-close {
    width: 34px;
    height: 34px;
    border: none;
    background: rgba(255,255,255,0.1);
    color: var(--tb-white);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: all var(--tb-transition);
}
.footer-map-modal-close:hover {
    background: var(--tb-red);
    transform: rotate(90deg);
}
.footer-map-modal-canvas {
    height: 450px;
    width: 100%;
}
.footer-map-modal-info {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    font-size: 13px;
    color: var(--tb-gray-600);
    background: var(--tb-gray-50);
    border-top: 1px solid var(--tb-gray-200);
}
.footer-map-modal-info i {
    color: var(--tb-red);
    flex-shrink: 0;
}
.footer-map-modal-info span {
    flex: 1;
}
.footer-map-modal-osm {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: var(--tb-red);
    white-space: nowrap;
    font-weight: 600;
}
.footer-map-modal-osm:hover {
    color: var(--tb-red-dark);
}

.footer-bottom {
    padding: 20px 0;
    text-align: center;
    font-size: 12px;
    color: rgba(255,255,255,0.4);
}
.footer-bottom a { color: rgba(255,255,255,0.5); }
.footer-bottom a:hover { color: var(--tb-white); }

/* ============================================================
   APBDES
   ============================================================ */
.apbdes-section {
    background: var(--tb-gray-50);
    border-radius: var(--tb-radius-lg);
    padding: 30px;
    margin: 40px 0;
    border: 1px solid var(--tb-gray-200);
}
.apbdes-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}
.apbdes-header-icon {
    width: 44px;
    height: 44px;
    background: var(--tb-red);
    border-radius: var(--tb-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
}
.apbdes-header h3 { font-size: 16px; }
.apbdes-header p { font-size: 12px; color: var(--tb-gray-500); }
.apbdes-chart-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.apbdes-card {
    background: var(--tb-white);
    border-radius: var(--tb-radius);
    padding: 20px;
    text-align: center;
    border: 1px solid var(--tb-gray-200);
}
.apbdes-card-label { font-size: 12px; color: var(--tb-gray-500); text-transform: uppercase; font-weight: 600; letter-spacing: 0.5px; margin-bottom: 6px; }
.apbdes-card-value { font-size: 20px; font-weight: 800; color: var(--tb-black); }

/* ============================================================
   PAGINATION
   ============================================================ */
.pag-tabanan {
    text-align: center;
    margin: 30px 0 10px;
}
.pag-info {
    font-size: 13px;
    color: var(--tb-gray-500);
    margin-bottom: 12px;
}
.pag-list {
    display: flex;
    justify-content: center;
    gap: 4px;
    list-style: none;
    flex-wrap: wrap;
}
.pag-list li a, .pag-list li span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border-radius: var(--tb-radius-sm);
    font-size: 13px;
    font-weight: 600;
    color: var(--tb-gray-600);
    background: var(--tb-white);
    border: 1px solid var(--tb-gray-200);
    text-decoration: none;
    transition: all var(--tb-transition);
}
.pag-list li a:hover {
    background: var(--tb-red-bg);
    color: var(--tb-red);
    border-color: var(--tb-red);
}
.pag-list li.pag-active a, .pag-list li.pag-active span {
    background: var(--tb-red);
    color: white;
    border-color: var(--tb-red);
}
.pag-list li.pag-disabled span {
    color: var(--tb-gray-300);
    cursor: not-allowed;
}
.pag-list li.pag-dots span { border: none; background: none; }

/* ============================================================
   SHARE
   ============================================================ */
.share-tabanan {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 0;
    border-top: 1px solid var(--tb-gray-200);
    margin-top: 20px;
}
.share-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--tb-gray-600);
}
.share-buttons { display: flex; gap: 8px; }
.share-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 14px;
    color: white;
    transition: all var(--tb-transition);
}
.share-btn.facebook { background: #1877f2; }
.share-btn.twitter { background: #1da1f2; }
.share-btn.whatsapp { background: #25d366; }
.share-btn.telegram { background: #0088cc; }
.share-btn:hover { transform: translateY(-2px); opacity: 0.9; color: white; }

/* ============================================================
   404 PAGE
   ============================================================ */
.err404-wrap {
    text-align: center;
    padding: 80px 20px;
    position: relative;
    overflow: hidden;
}
.err404-shapes { position: absolute; inset: 0; pointer-events: none; }
.err404-shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.05;
    background: var(--tb-red);
}
.err404-shape-1 { width: 200px; height: 200px; top: -50px; left: -50px; }
.err404-shape-2 { width: 150px; height: 150px; bottom: -30px; right: -30px; }
.err404-shape-3 { width: 80px; height: 80px; top: 30%; right: 10%; }
.err404-content { position: relative; z-index: 1; }
.err404-number-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 20px;
}
.err404-digit {
    font-size: clamp(4rem, 10vw, 7rem);
    font-weight: 900;
    color: var(--tb-black);
    line-height: 1;
}
.err404-digit-icon { font-size: clamp(3rem, 8vw, 5rem); }
.err404-compass { color: var(--tb-red); animation: spin404 4s linear infinite; display: inline-block; }
@keyframes spin404 { 100% { transform: rotate(360deg); } }
.err404-subtitle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 14px;
}
.err404-line { width: 40px; height: 2px; background: var(--tb-gray-300); }
.err404-subtitle-text {
    font-size: 16px;
    font-weight: 700;
    color: var(--tb-gray-600);
    text-transform: uppercase;
    letter-spacing: 1px;
}
.err404-desc {
    font-size: 14px;
    color: var(--tb-gray-500);
    max-width: 500px;
    margin: 0 auto 24px;
    line-height: 1.7;
}
.err404-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 24px;
}
.err404-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--tb-transition);
    cursor: pointer;
    border: none;
    font-family: var(--tb-font-primary);
}
.err404-btn-primary { background: var(--tb-red); color: white; }
.err404-btn-primary:hover { background: var(--tb-red-dark); color: white; transform: translateY(-2px); box-shadow: var(--tb-shadow-red); }
.err404-btn-outline { background: var(--tb-white); color: var(--tb-gray-600); border: 2px solid var(--tb-gray-300); }
.err404-btn-outline:hover { border-color: var(--tb-red); color: var(--tb-red); }
.err404-hint {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--tb-gray-400);
    background: var(--tb-gray-50);
    padding: 8px 16px;
    border-radius: 50px;
}
.err404-hint i { color: var(--tb-gold); }

/* ============================================================
   ALERTS
   ============================================================ */
.alert {
    padding: 14px 18px;
    border-radius: var(--tb-radius);
    margin-bottom: 16px;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.alert-success { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.alert-danger { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.alert-info { background: #eff6ff; color: #1e40af; border: 1px solid #bfdbfe; }
.alert-warning { background: #fffbeb; color: #92400e; border: 1px solid #fde68a; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border-radius: var(--tb-radius-sm);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--tb-transition);
    cursor: pointer;
    border: none;
    font-family: var(--tb-font-primary);
}
.btn-primary { background: var(--tb-red); color: white; }
.btn-primary:hover { background: var(--tb-red-dark); color: white; }
.btn-outline { background: transparent; color: var(--tb-gray-600); border: 1px solid var(--tb-gray-300); }
.btn-outline:hover { border-color: var(--tb-red); color: var(--tb-red); }
.btn-sm { padding: 5px 12px; font-size: 12px; }
.btn-block { display: flex; justify-content: center; width: 100%; }

/* ============================================================
   SLIDER (OWL)
   ============================================================ */
.slider-tabanan {
    position: relative;
    border-radius: var(--tb-radius-lg);
    overflow: hidden;
    margin-bottom: 30px;
}
.slider-item { position: relative; }
.slider-item img { width: 100%; height: 300px; object-fit: cover; }
.slider-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px 20px;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
}
.slider-caption a { color: white; font-size: 14px; font-weight: 600; }
.slider-nav-tabanan {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: rgba(255,255,255,0.9);
    color: var(--tb-black);
    font-size: 14px;
    cursor: pointer;
    transition: all var(--tb-transition);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
}
.slider-nav-tabanan:hover { background: var(--tb-red); color: white; }
.slider-nav-tabanan.prev { left: 12px; }
.slider-nav-tabanan.next { right: 12px; }

/* ============================================================
   MOBILE PANEL
   ============================================================ */
.mobile-panel {
    position: fixed;
    inset: 0;
    z-index: 10000;
}
.mobile-panel-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
}
.mobile-panel-body {
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    max-width: 85vw;
    height: 100%;
    background: var(--tb-white);
    box-shadow: -4px 0 30px rgba(0,0,0,0.15);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    animation: slideInRight 0.3s ease;
}
@keyframes slideInRight {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}
.mobile-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--tb-gray-200);
}
.mobile-panel-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}
.mobile-panel-brand img { width: 32px; height: 32px; border-radius: 50%; }
.mobile-panel-brand span { font-size: 14px; font-weight: 700; color: var(--tb-black); }
.mobile-panel-close {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: var(--tb-gray-100);
    border-radius: 50%;
    font-size: 16px;
    cursor: pointer;
    color: var(--tb-gray-600);
}
.mobile-search {
    display: flex;
    margin: 12px 16px;
    border: 1px solid var(--tb-gray-200);
    border-radius: var(--tb-radius);
    overflow: hidden;
}
.mobile-search input {
    flex: 1;
    border: none;
    padding: 10px 14px;
    font-size: 13px;
    outline: none;
}
.mobile-search button {
    border: none;
    background: var(--tb-red);
    color: white;
    padding: 10px 14px;
    cursor: pointer;
}
.mobile-menu-list {
    list-style: none;
    padding: 8px 0;
    flex: 1;
}
.mobile-menu-list > li > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 600;
    color: var(--tb-gray-700);
    text-decoration: none;
    transition: all var(--tb-transition);
}
.mobile-menu-list > li > a:hover,
.mobile-menu-list > li.mob-active > a {
    color: var(--tb-red);
    background: var(--tb-red-bg);
}
.mobile-submenu {
    list-style: none;
    padding-left: 20px;
}
.mobile-submenu li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 20px;
    font-size: 13px;
    color: var(--tb-gray-600);
    text-decoration: none;
}
.mobile-submenu li a:hover { color: var(--tb-red); }
.mobile-submenu.level-2 { padding-left: 16px; }
.mobile-panel-footer {
    padding: 16px 20px;
    border-top: 1px solid var(--tb-gray-200);
    margin-top: auto;
}
.mobile-panel-footer .btn { margin-top: 8px; }
.rotate-180 { transform: rotate(180deg) !important; }

/* ============================================================
   BACK TO TOP
   ============================================================ */
.back-to-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--tb-red);
    color: white;
    border-radius: 50%;
    font-size: 16px;
    text-decoration: none;
    box-shadow: var(--tb-shadow-red);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--tb-transition);
    z-index: 999;
}
.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.back-to-top:hover {
    background: var(--tb-red-dark);
    color: white;
    transform: translateY(-3px);
}

/* ============================================================
   DATA TABLE
   ============================================================ */
.dataTables_wrapper .dataTables_length select,
.dataTables_wrapper .dataTables_filter input {
    border: 1px solid var(--tb-gray-300);
    border-radius: var(--tb-radius-sm);
    padding: 6px 10px;
    font-size: 13px;
}
table.dataTable thead th {
    background: var(--tb-gray-50);
    font-weight: 600;
    font-size: 13px;
    color: var(--tb-gray-700);
    border-bottom: 2px solid var(--tb-gray-200) !important;
}
table.dataTable tbody td {
    font-size: 13px;
    padding: 10px;
    border-bottom: 1px solid var(--tb-gray-100) !important;
}
table.dataTable tbody tr:hover {
    background: var(--tb-red-bg) !important;
}

/* ============================================================
   AGENDA + KOMENTAR 2-Grid (Homepage)
   ============================================================ */
.agenda-komentar-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 30px;
}
.agenda-komentar-row.ak-row-single,
.agenda-komentar-row.ak-row-single-agenda {
    grid-template-columns: 1fr;
}
.ak-agenda, .ak-komentar { min-width: 0; }
.ak-card {
    background: var(--tb-white);
    border-radius: 14px;
    border: 1px solid var(--tb-gray-200);
    box-shadow: 0 2px 12px rgba(0,0,0,.04);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.ak-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: var(--tb-gray-50);
    border-bottom: 1px solid var(--tb-gray-200);
}
.ak-card-header-icon {
    width: 40px;
    height: 40px;
    background: var(--tb-red);
    color: white;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}
.ak-card-header-title { font-size: 15px; font-weight: 700; color: var(--tb-black); }
.ak-card-header-sub { font-size: 12px; color: var(--tb-gray-500); }
.ak-agenda-viewport, .ak-komentar-viewport { padding: 0 20px; flex: 1; }
.ak-agenda-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid var(--tb-gray-100);
    text-decoration: none;
    transition: all .2s ease;
}
.ak-agenda-item:last-child { border-bottom: none; }
.ak-agenda-item:hover { background: var(--tb-red-bg); margin: 0 -20px; padding: 14px 20px; border-radius: 8px; }
.ak-agenda-hidden, .ak-komentar-hidden { display: none !important; }
.ak-agenda-date {
    text-align: center;
    flex-shrink: 0;
    width: 50px;
    padding: 8px;
    background: var(--tb-red-bg);
    border-radius: 8px;
}
.ak-agenda-date-num { display: block; font-size: 20px; font-weight: 800; color: var(--tb-red); line-height: 1; }
.ak-agenda-date-mon { font-size: 10px; color: var(--tb-gray-500); text-transform: uppercase; font-weight: 600; }
.ak-agenda-info { flex: 1; min-width: 0; }
.ak-agenda-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 50px;
    font-size: 10px;
    font-weight: 700;
    margin-bottom: 3px;
}
.ak-badge-today { background: #ecfdf5; color: #059669; }
.ak-badge-upcoming { background: #eff6ff; color: #2563eb; }
.ak-badge-past { background: var(--tb-gray-100); color: var(--tb-gray-500); }
.ak-agenda-info h4 { font-size: 13px; font-weight: 600; color: var(--tb-black); margin-bottom: 2px; }
.ak-agenda-loc { font-size: 11px; color: var(--tb-gray-400); }
.ak-agenda-loc i { margin-right: 3px; }
.ak-agenda-arrow { color: var(--tb-gray-300); font-size: 12px; }
.ak-agenda-nav, .ak-komentar-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    background: var(--tb-gray-50);
    border-top: 1px solid var(--tb-gray-200);
    margin-top: auto;
}
.ak-agenda-info-text, .ak-komentar-info { font-size: 12px; color: var(--tb-gray-500); }
.ak-agenda-nav-btns, .ak-komentar-nav-btns { display: flex; gap: 4px; }
.ak-agenda-btn, .ak-komentar-btn {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--tb-gray-200);
    border-radius: 8px;
    background: white;
    cursor: pointer;
    font-size: 12px;
    color: var(--tb-gray-600);
    transition: all .2s ease;
}
.ak-agenda-btn:hover:not(:disabled), .ak-komentar-btn:hover:not(:disabled) { background: var(--tb-red); color: white; border-color: var(--tb-red); }
.ak-agenda-btn:disabled, .ak-komentar-btn:disabled { opacity: 0.3; cursor: not-allowed; }

/* Komentar */
.ak-komentar-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid var(--tb-gray-100);
    text-decoration: none;
    transition: all .2s ease;
}
.ak-komentar-item:last-child { border-bottom: none; }
.ak-komentar-item:hover { background: var(--tb-red-bg); margin: 0 -20px; padding: 14px 20px; border-radius: 8px; }
.ak-komentar-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--tb-red);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    flex-shrink: 0;
}
.ak-komentar-info { flex: 1; min-width: 0; }
.ak-komentar-author { display: block; font-size: 12px; font-weight: 700; color: var(--tb-black); margin-bottom: 2px; }
.ak-komentar-text { font-size: 12.5px; color: var(--tb-gray-500); margin: 0 0 2px; line-height: 1.4; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ak-komentar-date { font-size: 10.5px; color: var(--tb-gray-400); }
.ak-komentar-date i { margin-right: 3px; font-size: 9px; }
.ak-komentar-arrow { color: var(--tb-gray-300); font-size: 12px; flex-shrink: 0; }

/* ============================================================
   WIDGET SINERGI PROGRAM — Premium List
   ============================================================ */
.wsinergi-grid {
    display: flex;
    flex-direction: column;
}
.wsinergi-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    text-decoration: none;
    color: var(--tb-black);
    border-bottom: 1px solid var(--tb-gray-100);
    transition: all 0.25s ease;
}
.wsinergi-item:last-child { border-bottom: none; }
.wsinergi-item:hover {
    background: linear-gradient(90deg, rgba(193,18,31,0.03), transparent);
    padding-left: 20px;
}
.wsinergi-logo {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    overflow: hidden;
    background: var(--tb-gray-50);
    border: 1.5px solid var(--tb-gray-200);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
    flex-shrink: 0;
    transition: all 0.25s ease;
}
.wsinergi-item:hover .wsinergi-logo {
    border-color: var(--tb-red);
    box-shadow: 0 2px 8px rgba(193,18,31,0.12);
}
.wsinergi-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.wsinergi-logo i {
    font-size: 14px;
    color: var(--tb-gray-400);
    transition: color 0.25s;
}
.wsinergi-item:hover .wsinergi-logo i {
    color: var(--tb-red);
}
.wsinergi-info {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}
.wsinergi-name {
    flex: 1;
    font-size: 12px;
    font-weight: 600;
    color: var(--tb-gray-700);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.25s;
}
.wsinergi-item:hover .wsinergi-name { color: var(--tb-red); }
.wsinergi-arrow {
    flex-shrink: 0;
    font-size: 9px;
    color: var(--tb-gray-300);
    transition: all 0.25s;
}
.wsinergi-item:hover .wsinergi-arrow {
    color: var(--tb-red);
    transform: translateX(2px);
}

/* ------ Widget Jam Kerja (.wjk-*) ------ */
.wjk-list { display:flex; flex-direction:column; gap:0; }
.wjk-row { display:flex; align-items:center; gap:10px; padding:9px 16px; border-bottom:1px solid var(--tb-gray-100); transition:background .2s; }
.wjk-row:last-child { border-bottom:none; }
.wjk-row:hover { background:var(--tb-gray-50); }
.wjk-today { background:rgba(193,18,31,.04); border-left:3px solid var(--tb-red); }
.wjk-today:hover { background:rgba(193,18,31,.07); }
.wjk-day { font-size:13px; font-weight:600; color:var(--tb-black); min-width:72px; display:flex; align-items:center; gap:6px; }
.wjk-dot { width:6px; height:6px; border-radius:50%; background:var(--tb-red); display:inline-block; animation:pulse-dot 1.5s infinite; }
.wjk-time { display:flex; align-items:center; gap:6px; margin-left:auto; }
.wjk-badge { font-size:11px; font-weight:600; padding:3px 10px; border-radius:20px; display:inline-flex; align-items:center; gap:4px; }
.wjk-badge i { font-size:10px; }
.wjk-badge-masuk { background:rgba(34,197,94,.1); color:#16a34a; }
.wjk-badge-keluar { background:rgba(239,68,68,.1); color:var(--tb-red); }
.wjk-badge-libur { background:rgba(139,92,246,.1); color:#7c3aed; }
.wjk-sep { color:var(--tb-gray-300); font-size:10px; }

/* ------ Widget Kehadiran Perangkat (.wkh-*) ------ */
.wkh-widget { border-radius: 16px; overflow: hidden; box-shadow: 0 4px 24px rgba(0,0,0,.07); border: 1px solid rgba(0,0,0,.06); }
.wkh-widget::before { display: none; }
.wkh-header {
    display: flex; align-items: center; gap: 12px;
    padding: 16px 20px;
    background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
    color: #fff;
}
.wkh-header-icon {
    width: 40px; height: 40px;
    background: rgba(255,255,255,.12);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 16px; flex-shrink: 0;
}
.wkh-header-text h3 { font-size: 14px; font-weight: 700; margin: 0; color: #fff; }
.wkh-header-text p { font-size: 11px; margin: 2px 0 0; opacity: .65; }
.wkh-header-actions { margin-left: auto; display: flex; gap: 8px; }
.wkh-login-btn {
    width: 34px; height: 34px; border-radius: 9px;
    background: var(--tb-red); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 14px; text-decoration: none;
    transition: all .25s; flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(193,18,31,.3);
}
.wkh-login-btn:hover { background: var(--tb-red-dark); transform: scale(1.08); color: #fff; }
.wkh-summary {
    display: grid; grid-template-columns: repeat(3, 1fr);
    border-bottom: 1px solid rgba(0,0,0,.06);
    background: var(--tb-white);
}
.wkh-stat {
    display: flex; flex-direction: column; align-items: center;
    padding: 14px 8px; gap: 2px;
    border-right: 1px solid rgba(0,0,0,.05);
}
.wkh-stat:last-child { border-right: none; }
.wkh-stat-num { font-size: 22px; font-weight: 800; line-height: 1; }
.wkh-stat-label { font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .5px; }
.wkh-stat-hadir .wkh-stat-num { color: #276749; }
.wkh-stat-hadir .wkh-stat-label { color: #48bb78; }
.wkh-stat-izin .wkh-stat-num { color: #9c4221; }
.wkh-stat-izin .wkh-stat-label { color: #ed8936; }
.wkh-stat-belum .wkh-stat-num { color: #718096; }
.wkh-stat-belum .wkh-stat-label { color: #a0aec0; }
.wkh-body { background: var(--tb-white); }
.wkh-list { max-height: 320px; overflow-y: auto; }
.wkh-list::-webkit-scrollbar { width: 4px; }
.wkh-list::-webkit-scrollbar-thumb { background: rgba(0,0,0,.1); border-radius: 4px; }
.wkh-item { display: flex; align-items: center; gap: 10px; padding: 9px 18px; border-bottom: 1px solid var(--tb-gray-100); transition: background .2s; }
.wkh-item:last-child { border-bottom: none; }
.wkh-item:hover { background: rgba(0,0,0,.015); }
.wkh-avatar { position: relative; flex-shrink: 0; }
.wkh-avatar img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; border: 2px solid var(--tb-gray-100); }
.wkh-status-dot { position: absolute; bottom: 0; right: 0; width: 10px; height: 10px; border-radius: 50%; border: 2px solid #fff; }
.wkh-dot-hadir { background: #22c55e; }
.wkh-dot-izin { background: #f59e0b; }
.wkh-dot-belum { background: #94a3b8; }
.wkh-dot-libur { background: #8b5cf6; }
.wkh-info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.wkh-name { font-size: 12.5px; font-weight: 600; color: var(--tb-black); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wkh-jabatan { font-size: 11px; color: var(--tb-gray-400); }
.wkh-badge { font-size: 11px; font-weight: 600; padding: 3px 10px; border-radius: 20px; display: inline-flex; align-items: center; gap: 4px; flex-shrink: 0; }
.wkh-badge span { display: none; }
.wkh-badge i { font-size: 12px; }
.wkh-badge-hadir { background: rgba(34,197,94,.1); color: #22c55e; }
.wkh-badge-izin { background: rgba(245,158,11,.1); color: #f59e0b; }
.wkh-badge-belum { background: rgba(148,163,184,.1); color: #94a3b8; }
.wkh-badge-libur { background: rgba(139,92,246,.1); color: #8b5cf6; }
@media(min-width:768px) {
    .wkh-badge span { display: inline; }
}

/* ============================================================
   INFO DESA SECTION (Kehadiran + Statistik)
   ============================================================ */
.section-fullwidth {
    padding: 60px 0;
}
.section-info-desa {
    background: var(--tb-gray-50);
}
.info-desa-row {
    display: grid;
    grid-template-columns: 0.7fr 1.3fr;
    gap: 28px;
    align-items: start;
}

/* ============================================================
   JAM KERJA PANEL (New Compact)
   ============================================================ */
.jk-panel {
    background: var(--tb-white);
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0,0,0,.06);
    overflow: hidden;
    border: 1px solid rgba(0,0,0,.05);
}
.jk-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 20px;
    background: linear-gradient(135deg, var(--tb-red) 0%, var(--tb-red-dark) 100%);
    color: #fff;
}
.jk-header-icon {
    width: 40px; height: 40px;
    background: rgba(255,255,255,.2);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 17px;
    flex-shrink: 0;
}
.jk-header h3 { font-size: 15px; font-weight: 700; margin: 0; line-height: 1.2; color: #fff; }
.jk-header p { font-size: 11px; margin: 0; opacity: .8; color: #fff; }
.jk-body { padding: 6px 0; }
.jk-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    border-bottom: 1px solid rgba(0,0,0,.04);
    transition: background .2s;
}
.jk-row:last-child { border-bottom: none; }
.jk-row:hover { background: rgba(0,0,0,.015); }
.jk-today {
    background: linear-gradient(90deg, rgba(193,18,31,.06) 0%, rgba(193,18,31,.02) 100%);
    border-left: 3px solid var(--tb-red);
    padding-left: 17px;
}
.jk-today:hover { background: rgba(193,18,31,.08); }
.jk-day {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--tb-black);
    min-width: 80px;
}
.jk-today-dot {
    width: 7px; height: 7px;
    background: var(--tb-red);
    border-radius: 50%;
    animation: jkPulse 1.5s infinite;
    flex-shrink: 0;
}
@keyframes jkPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(193,18,31,.4); }
    50% { box-shadow: 0 0 0 5px rgba(193,18,31,0); }
}
.jk-time {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
}
.jk-separator { color: #ccc; font-size: 11px; }
.jk-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11.5px;
    font-weight: 600;
}
.jk-chip i { font-size: 10px; }
.jk-chip-masuk {
    background: rgba(72,187,120,.1);
    color: #276749;
}
.jk-chip-keluar {
    background: rgba(237,137,54,.1);
    color: #9c4221;
}
.jk-chip-libur {
    background: rgba(160,174,192,.12);
    color: #718096;
    font-style: italic;
}
.jk-libur .jk-day { color: #a0aec0; }
.jk-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    background: rgba(0,0,0,.02);
    border-top: 1px solid rgba(0,0,0,.04);
}
.jk-footer-left {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    color: #a0aec0;
}
.jk-footer-left i { color: var(--tb-red); opacity: .5; }
.jk-kehadiran-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 14px;
    border-radius: 20px;
    border: none;
    background: linear-gradient(135deg, var(--tb-red), var(--tb-red-dark));
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    transition: all .25s;
    box-shadow: 0 2px 8px rgba(193,18,31,.25);
    font-family: inherit;
}
.jk-kehadiran-btn i { font-size: 12px; }
.jk-kehadiran-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(193,18,31,.4);
}

/* ============================================================
   KEHADIRAN MODAL POPUP — Premium
   ============================================================ */
.kh-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.5);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all .3s;
    padding: 20px;
}
.kh-modal-overlay.kh-modal-open {
    opacity: 1;
    visibility: visible;
}
.kh-modal {
    background: var(--tb-white);
    border-radius: 20px;
    box-shadow: 0 25px 80px rgba(0,0,0,.22), 0 0 0 1px rgba(255,255,255,.05);
    width: 100%;
    max-width: 400px;
    overflow: hidden;
    transform: translateY(30px) scale(.95);
    transition: transform .35s cubic-bezier(.4,0,.2,1);
}
.kh-modal-open .kh-modal {
    transform: translateY(0) scale(1);
}
/* --- Header: Dark gradient with subtle red accent --- */
.kh-modal-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 22px 16px;
    background: linear-gradient(135deg, var(--tb-black) 0%, #1e1e24 60%, var(--tb-red-dark) 100%);
    color: #fff;
    position: relative;
    overflow: hidden;
}
.kh-modal-header::before {
    content: '';
    position: absolute;
    top: -30px; right: -30px;
    width: 100px; height: 100px;
    background: radial-gradient(circle, rgba(212,168,67,.12) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}
.kh-modal-header .kh-header-icon {
    width: 42px; height: 42px;
    background: linear-gradient(135deg, var(--tb-red), var(--tb-red-dark));
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 17px; flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(193,18,31,.35);
}
.kh-modal-header h3 {
    font-size: 15px; font-weight: 800; margin: 0;
    letter-spacing: -.2px; color: #fff;
}
.kh-modal-header p {
    font-size: 11.5px; margin: 2px 0 0; opacity: .55;
    font-weight: 400; color: #fff;
}
.kh-modal-actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    z-index: 1;
}
.kh-login-btn {
    width: 36px; height: 36px;
    border-radius: 10px;
    background: var(--tb-red);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 15px;
    text-decoration: none;
    transition: all .25s;
    flex-shrink: 0;
    box-shadow: 0 3px 10px rgba(193,18,31,.35);
}
.kh-login-btn:hover {
    background: #e01525;
    transform: scale(1.08);
    color: #fff;
}
.kh-modal-close {
    width: 36px; height: 36px;
    border-radius: 10px;
    background: rgba(255,255,255,.1);
    color: rgba(255,255,255,.7);
    border: 1px solid rgba(255,255,255,.08);
    display: flex; align-items: center; justify-content: center;
    font-size: 14px;
    cursor: pointer;
    transition: all .2s;
}
.kh-modal-close:hover { background: rgba(255,255,255,.2); color: #fff; }
/* --- Summary stats row --- */
.kh-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    background: linear-gradient(180deg, #f8f9fb 0%, var(--tb-white) 100%);
    border-bottom: 1px solid rgba(0,0,0,.06);
}
.kh-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px 8px;
    gap: 4px;
    border-right: 1px solid rgba(0,0,0,.05);
    transition: background .2s;
}
.kh-stat:last-child { border-right: none; }
.kh-stat:hover { background: rgba(0,0,0,.02); }
.kh-stat-num { font-size: 24px; font-weight: 800; line-height: 1; letter-spacing: -.5px; }
.kh-stat-label { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .8px; }
.kh-stat-hadir .kh-stat-num { color: #22c55e; }
.kh-stat-hadir .kh-stat-label { color: #86efac; }
.kh-stat-izin .kh-stat-num { color: #f59e0b; }
.kh-stat-izin .kh-stat-label { color: #fcd34d; }
.kh-stat-belum .kh-stat-num { color: #64748b; }
.kh-stat-belum .kh-stat-label { color: #94a3b8; }
/* --- List --- */
.kh-list {
    max-height: 340px;
    overflow-y: auto;
    padding: 6px 0;
}
.kh-list::-webkit-scrollbar { width: 3px; }
.kh-list::-webkit-scrollbar-track { background: transparent; }
.kh-list::-webkit-scrollbar-thumb { background: rgba(0,0,0,.08); border-radius: 4px; }
.kh-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 22px;
    transition: background .2s;
    border-bottom: 1px solid rgba(0,0,0,.03);
}
.kh-item:last-child { border-bottom: none; }
.kh-item:hover { background: rgba(0,0,0,.02); }
.kh-avatar {
    position: relative;
    width: 38px; height: 38px;
    flex-shrink: 0;
}
.kh-avatar img {
    width: 100%; height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(0,0,0,.06);
}
.kh-dot {
    position: absolute;
    bottom: 0; right: 0;
    width: 11px; height: 11px;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,.15);
}
.kh-dot-hadir { background: #22c55e; }
.kh-dot-izin { background: #f59e0b; }
.kh-dot-belum { background: #94a3b8; }
.kh-info { flex: 1; min-width: 0; }
.kh-nama {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: var(--tb-black);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: -.1px;
}
.kh-jabatan {
    display: block;
    font-size: 10.5px;
    color: #94a3b8;
    margin-top: 1px;
}
.kh-status-icon {
    font-size: 16px;
    flex-shrink: 0;
    width: 30px; height: 30px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 8px;
}
.kh-icon-hadir { color: #22c55e; background: rgba(34,197,94,.08); }
.kh-icon-izin { color: #f59e0b; background: rgba(245,158,11,.08); }
.kh-icon-belum { color: #cbd5e0; background: rgba(148,163,184,.08); }

/* ============================================================
   APARATUR DESA 3D CAROUSEL
   ============================================================ */
.apar-panel {
    background: var(--tb-white);
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0,0,0,.06);
    overflow: hidden;
    border: 1px solid rgba(0,0,0,.05);
}
.apar-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 24px;
    border-bottom: 1px solid rgba(0,0,0,.05);
}
.apar-header-icon {
    width: 40px; height: 40px;
    background: linear-gradient(135deg, var(--tb-red), var(--tb-red-dark));
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 16px;
    flex-shrink: 0;
}
.apar-header h3 { font-size: 15px; font-weight: 700; margin: 0; color: var(--tb-black); line-height: 1.2; }
.apar-header p { font-size: 11px; margin: 0; color: #a0aec0; }
.apar-header-link {
    margin-left: auto;
    font-size: 12px;
    font-weight: 600;
    color: var(--tb-red);
    text-decoration: none;
    display: flex; align-items: center; gap: 4px;
    white-space: nowrap;
    transition: color .2s;
}
.apar-header-link:hover { color: var(--tb-red-dark); }
.apar-carousel-wrap {
    position: relative;
    padding: 40px 20px 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 340px;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(0,0,0,.01) 0%, rgba(193,18,31,.03) 100%);
}
.apar-carousel {
    position: relative;
    width: 100%;
    height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1000px;
}
.apar-slide {
    position: absolute;
    width: 180px;
    border-radius: 14px;
    overflow: hidden;
    transition: all .5s cubic-bezier(.4,0,.2,1);
    cursor: pointer;
    box-shadow: 0 8px 30px rgba(0,0,0,.12);
}
.apar-slide.apar-active {
    z-index: 5;
    transform: translateX(0) scale(1);
    opacity: 1;
    box-shadow: 0 16px 48px rgba(193,18,31,.25);
}
.apar-slide.apar-left {
    z-index: 3;
    transform: translateX(-140px) scale(.82);
    opacity: .7;
    filter: brightness(.85);
}
.apar-slide.apar-right {
    z-index: 3;
    transform: translateX(140px) scale(.82);
    opacity: .7;
    filter: brightness(.85);
}
.apar-slide.apar-far-left {
    z-index: 1;
    transform: translateX(-240px) scale(.65);
    opacity: .35;
    filter: brightness(.7) blur(1px);
}
.apar-slide.apar-far-right {
    z-index: 1;
    transform: translateX(240px) scale(.65);
    opacity: .35;
    filter: brightness(.7) blur(1px);
}
.apar-slide.apar-hidden {
    opacity: 0;
    transform: scale(.5);
    pointer-events: none;
}
.apar-photo {
    width: 100%;
    height: 220px;
    overflow: hidden;
    position: relative;
}
.apar-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.apar-info {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 30px 12px 14px;
    background: linear-gradient(0deg, rgba(155,15,26,.95) 0%, rgba(193,18,31,.8) 50%, transparent 100%);
    color: #fff;
    text-align: center;
}
.apar-slide.apar-active .apar-info {
    background: linear-gradient(0deg, rgba(155,15,26,.97) 0%, rgba(193,18,31,.85) 55%, transparent 100%);
}
.apar-info h4 {
    font-size: 11.5px;
    font-weight: 800;
    letter-spacing: .5px;
    margin: 0 0 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.apar-info span {
    font-size: 10px;
    opacity: .85;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.apar-nav-arrow {
    position: absolute;
    top: 50%; z-index: 10;
    transform: translateY(-50%);
    width: 38px; height: 38px;
    border-radius: 50%;
    background: var(--tb-white);
    border: 1px solid rgba(0,0,0,.08);
    box-shadow: 0 4px 12px rgba(0,0,0,.1);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    font-size: 14px;
    color: var(--tb-red);
    transition: all .2s;
}
.apar-nav-arrow:hover {
    background: var(--tb-red);
    color: #fff;
    border-color: var(--tb-red);
    box-shadow: 0 4px 16px rgba(193,18,31,.3);
}
.apar-nav-prev { left: 10px; }
.apar-nav-next { right: 10px; }

/* ============================================================
   TRANSPARANSI ANGGARAN (APBDes) — Tabanan Elegant
   ============================================================ */
.apb-tabanan {
    position: relative;
    overflow: hidden;
}

/* Hero Header */
.apb-hero {
    position: relative;
    padding: 52px 0 80px;
    text-align: center;
    overflow: hidden;
}
.apb-hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d1215 40%, var(--tb-red-dark) 100%);
    z-index: 0;
}
.apb-hero-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(193,18,31,.2) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 30%, rgba(212,168,67,.12) 0%, transparent 50%);
}
.apb-hero-bg::after {
    content: '';
    position: absolute;
    bottom: -1px; left: 0; right: 0;
    height: 60px;
    background: linear-gradient(0deg, #f8f9fa 0%, transparent 100%);
}
.apb-hero-content {
    position: relative;
    z-index: 1;
}
.apb-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 18px;
    border-radius: 99px;
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.15);
    color: rgba(255,255,255,.85);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .5px;
    text-transform: uppercase;
    margin-bottom: 14px;
    backdrop-filter: blur(4px);
}
.apb-badge i { font-size: 10px; color: var(--tb-gold); }
.apb-hero-content h2 {
    font-size: 1.75rem;
    font-weight: 800;
    color: #fff;
    margin: 0 0 8px;
    letter-spacing: -.5px;
}
.apb-hero-content p {
    font-size: .88rem;
    color: rgba(255,255,255,.55);
    margin: 0;
}

/* Cards Wrapper */
.apb-cards-wrap {
    position: relative;
    margin-top: -45px;
    padding: 0 20px 50px;
    background: #f8f9fa;
}
.apb-cards {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 4px 0 16px;
    scrollbar-width: thin;
    scrollbar-color: var(--tb-red) transparent;
}
.apb-cards::-webkit-scrollbar { height: 4px; }
.apb-cards::-webkit-scrollbar-track { background: transparent; }
.apb-cards::-webkit-scrollbar-thumb { background: var(--tb-red); border-radius: 3px; }

/* Card */
.apb-card {
    flex: 1;
    min-width: 340px;
    max-width: 480px;
    background: var(--tb-white);
    border-radius: 18px;
    box-shadow: 0 4px 24px rgba(0,0,0,.06);
    border: 1px solid rgba(0,0,0,.04);
    scroll-snap-align: start;
    transition: box-shadow .35s, transform .35s;
    overflow: hidden;
}
.apb-card:hover {
    box-shadow: 0 12px 40px rgba(193,18,31,.1);
    transform: translateY(-4px);
}

/* Card Top — Ring + Title */
.apb-card-top {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 24px 24px 16px;
}
.apb-ring-wrap {
    position: relative;
    width: 90px; height: 90px;
    flex-shrink: 0;
}
.apb-ring {
    width: 100%; height: 100%;
    transform: rotate(0deg);
}
.apb-ring circle { transition: stroke-dashoffset 1.5s cubic-bezier(.4,0,.2,1); }
.apb-ring-text {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.apb-ring-num {
    font-size: 1.15rem;
    font-weight: 800;
    line-height: 1;
}
.apb-ring-label {
    font-size: 9px;
    color: #a0aec0;
    text-transform: uppercase;
    letter-spacing: .5px;
    font-weight: 600;
    margin-top: 2px;
}
.apb-card-title { flex: 1; min-width: 0; }
.apb-card-title h3 {
    font-size: .95rem;
    font-weight: 700;
    color: var(--tb-black);
    margin: 0 0 8px;
    line-height: 1.3;
}
.apb-card-totals {
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.apb-card-totals span {
    font-size: .7rem;
    color: #718096;
    display: flex;
    align-items: center;
    gap: 5px;
}
.apb-card-totals i { font-size: .6rem; color: var(--tb-red); }
.apb-card-totals span:first-child i { color: var(--tb-gold); }

/* Divider */
.apb-card-divider {
    height: 1px;
    margin: 0 24px;
    background: linear-gradient(90deg, transparent, rgba(0,0,0,.06), transparent);
}

/* Items */
.apb-card-items {
    padding: 16px 24px 22px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.apb-item { position: relative; }
.apb-item-head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 7px;
}
.apb-item-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
}
.apb-item-label {
    flex: 1;
    font-size: .76rem;
    font-weight: 600;
    color: var(--tb-black);
}
.apb-item-persen {
    font-size: .76rem;
    font-weight: 800;
    flex-shrink: 0;
}
.apb-bar-track {
    width: 100%;
    height: 6px;
    background: #edf2f7;
    border-radius: 99px;
    overflow: hidden;
}
.apb-bar-fill {
    height: 100%;
    border-radius: 99px;
    background: var(--bar-clr, #276749);
    transition: width 1s cubic-bezier(.4,0,.2,1);
    position: relative;
}
.apb-bar-fill::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.4), transparent);
    border-radius: 99px;
}
.apb-item-detail {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin-top: 5px;
    font-size: .65rem;
    color: #a0aec0;
}
.apb-item-detail strong { color: #4a5568; font-weight: 700; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
    .navbar-link { padding: 10px 10px; font-size: 13px; }
    .navbar-search-inline input { width: 110px; padding: 7px 10px; }
    .navbar-login-btn { padding: 6px 12px; font-size: 12px; }
    .layout-main, .layout-reversed {
        grid-template-columns: 1fr;
    }
    .statistik-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .statistik-panel .statistik-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    .info-desa-row {
        grid-template-columns: 1fr;
    }
    .trio-row {
        grid-template-columns: 1fr;
    }
    .penduduk-counter {
        grid-template-columns: repeat(3, 1fr);
    }
    .hero-statistik-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 10px;
    }
    .kependudukan-counters { gap: 10px; }
    .kependudukan-links { gap: 8px; }
}

@media (max-width: 768px) {
    /* Mobile layout: [hamburger] [---logo centered---] [search] */
    .navbar-right { display: none; }
    .navbar-toggle { display: flex; order: 0; flex-shrink: 0; }
    .navbar-search-toggle { display: flex; order: 3; flex-shrink: 0; }
    .navbar-brand {
        order: 1; flex: 1; justify-content: center; margin-right: 0;
        position: relative;
        z-index: 3;
    }
    .navbar-inner { height: 54px; padding: 0 8px; position: relative; z-index: 2; }
    .navbar-logo {
        height: 62px;
        filter:
            drop-shadow(0 0 10px rgba(255,255,255,0.95))
            drop-shadow(0 0 20px rgba(255,255,255,0.7))
            drop-shadow(0 0 35px rgba(255,255,255,0.4));
    }
    /* Total navbar: 0+0+54+3+3+0 = 60px */
    .hero-tabanan { min-height: 55vh; margin-top: 60px; }
    .hero-inner { padding: 24px 24px 50px; }
    .content-bg-wrap.content-bg-page { padding-top: 60px; }
    .hero-title { font-size: 1.8rem; letter-spacing: 1px; }
    .hero-btn { padding: 12px 24px; font-size: 13px; }
    .hero-statistik-wrap { margin-top: -50px; margin-bottom: 0; }
    .hero-statistik-inner { padding: 16px 16px 14px; }
    .hero-statistik-title { gap: 10px; margin-bottom: 12px; }
    .hero-statistik-title h2 { font-size: 0.85rem; }
    .kependudukan-counters { grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 14px; }
    .kependudukan-counter-item { padding: 10px 10px; gap: 8px; }
    .kependudukan-counter-icon { width: 36px; height: 36px; font-size: 15px; }
    .kependudukan-counter-number { font-size: 1.15rem; }
    .kependudukan-counter-label { font-size: 9px; }
    .kependudukan-links { grid-template-columns: repeat(6, 1fr); gap: 6px; }
    .kependudukan-link-item { padding: 10px 4px 8px; font-size: 9px; }
    .kependudukan-link-item i { font-size: 14px; }
    /* Ticker mobile */
    .ticker-label { padding: 8px 14px 8px 14px; font-size: 11px; gap: 5px; }
    .ticker-label::after { right: -10px; width: 20px; }
    .ticker-item { font-size: 12px; padding: 0 20px; }
    .ticker-track-wrap { padding-left: 10px; }
    .quick-access-grid { grid-template-columns: 1fr; }
    .menu-desa-row { gap: 6px; flex-wrap: wrap; justify-content: center; }
    .menu-desa-item { padding: 12px 6px 10px; gap: 8px; flex: 0 0 calc(33.333% - 6px); }
    .menu-desa-icon { width: 38px; height: 38px; }
    .menu-desa-icon img { width: 34px; height: 34px; }
    .menu-desa-label { font-size: 10px; }
    .article-grid { grid-template-columns: repeat(2, 1fr); }
    .statistik-grid { grid-template-columns: repeat(2, 1fr); }
    .statistik-panel .statistik-grid { grid-template-columns: repeat(2, 1fr); }
    .apbdes-chart-row { grid-template-columns: 1fr; }
    .agenda-komentar-row { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-map-modal-overlay { padding: 12px; }
    .footer-map-modal-canvas { height: 300px; }
    .footer-map-modal-info { flex-wrap: wrap; }
    .footer-map-expand { opacity: 1; }
    .section-tabanan { padding: 40px 0; }
    .section-fullwidth { padding: 40px 0; }
    /* Aparatur carousel mobile */
    .apar-slide { width: 140px; }
    .apar-slide.apar-left { transform: translateX(-100px) scale(.78); }
    .apar-slide.apar-right { transform: translateX(100px) scale(.78); }
    .apar-slide.apar-far-left { transform: translateX(-170px) scale(.6); }
    .apar-slide.apar-far-right { transform: translateX(170px) scale(.6); }
    .apar-carousel-wrap { min-height: 280px; padding: 30px 10px 40px; }
    .apar-carousel { height: 240px; }
    .apar-photo { height: 180px; }
    .apar-header-link { display: none; }
    /* APB mobile */
    .apb-hero { padding: 40px 20px 70px; }
    .apb-hero-content h2 { font-size: 1.35rem; }
    .apb-card { min-width: 290px; }
    .apb-card-top { padding: 18px 18px 12px; gap: 14px; }
    .apb-ring-wrap { width: 75px; height: 75px; }
    .apb-ring-num { font-size: 1rem; }
    .apb-card-items { padding: 14px 18px 18px; }
    .container { padding: 0 16px; }
    .section-title-decorated { font-size: 1.2rem; gap: 10px; }
    .title-ornament { height: 16px; }
    .penduduk-counter { grid-template-columns: 1fr; gap: 10px; }
    .trio-row { grid-template-columns: 1fr; gap: 16px; }
    .trio-map { height: 250px; }
    .statistik-footer { flex-direction: column; }
    .statistik-footer-btn { justify-content: center; }
    /* Animations disabled on mobile for performance */
    .kehadiran-panel,
    .jamkerja-panel,
    .aparatur-section,
    [data-animate],
    .statistik-card {
        opacity: 1 !important;
        transform: none !important;
    }
}

@media (max-width: 480px) {
    .article-grid { grid-template-columns: 1fr; }
    .hero-title { font-size: 1.4rem; letter-spacing: 0.5px; }
    .hero-tagline { font-size: 13px; margin-bottom: 20px; }
    .hero-btn { padding: 10px 20px; font-size: 12px; gap: 6px; }
    .navbar-logo { height: 46px; }
    .navbar-inner { height: 48px; }
    /* Total: 0+0+48+3+3+0 = 54px */
    .hero-tabanan { min-height: 45vh; margin-top: 54px; }
    .content-bg-wrap.content-bg-page { padding-top: 54px; }
    .statistik-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
    .statistik-panel .statistik-grid { grid-template-columns: 1fr; }
    .qa-menu-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
    .section-menu-desa { padding: 20px 0 8px; }
    .menu-desa-row { gap: 5px; flex-wrap: wrap; justify-content: center; }
    .menu-desa-item { padding: 10px 4px 8px; gap: 6px; flex: 0 0 calc(33.333% - 5px); }
    .menu-desa-icon { width: 34px; height: 34px; }
    .menu-desa-icon img { width: 30px; height: 30px; }
    .menu-desa-label { font-size: 9px; }
    .hero-buttons { flex-direction: column; align-items: center; }
    .hero-statistik-grid { grid-template-columns: repeat(2, 1fr); gap: 6px; }
    .hero-statistik-wrap { margin-top: -40px; margin-bottom: 0; }
    .hero-statistik-inner { padding: 14px 12px 12px; }
    .hero-statistik-title { gap: 8px; margin-bottom: 10px; }
    .hero-statistik-title h2 { font-size: 0.75rem; }
    .kependudukan-counters { grid-template-columns: repeat(2, 1fr); gap: 6px; margin-bottom: 10px; }
    .kependudukan-counter-item { padding: 8px 10px; gap: 8px; border-radius: 8px; }
    .kependudukan-counter-icon { width: 30px; height: 30px; font-size: 13px; }
    .kependudukan-counter-number { font-size: 1rem; }
    .kependudukan-counter-label { font-size: 8px; }
    .kependudukan-links { grid-template-columns: repeat(3, 1fr); gap: 6px; }
    .kependudukan-link-item { padding: 8px 4px 6px; font-size: 8px; }
    .kependudukan-link-item i { font-size: 13px; }
    /* Ticker small mobile */
    .ticker-label { padding: 7px 10px; font-size: 10px; gap: 4px; }
    .ticker-label span { display: none; }
    .ticker-label::after { right: -8px; width: 16px; }
    .ticker-item { font-size: 11px; padding: 0 16px; }
    .ticker-track-wrap { padding-left: 6px; }
    .ticker-tabanan { border-bottom-width: 2px; }
    .headline-hero-img { height: 220px; }
    .headline-noimg .headline-hero-img { height: 200px; }
    .headline-hero-content { padding: 24px 20px; }
    .headline-hero-btn { padding: 7px 16px; font-size: 12px; }
    .article-card-img { height: 140px; }
    .article-card-excerpt { display: none; }
    .section-title-decorated { font-size: 1rem; gap: 8px; }
    .title-ornament { height: 12px; }
    .penduduk-counter-num { font-size: 18px; }
    .aparatur-card-photo { width: 36px; height: 36px; }
}

/* ============================================================
   UTILITY
   ============================================================ */
.mt-4 { margin-top: 1rem; }
.mb-4 { margin-bottom: 1rem; }
.text-center { text-align: center; }
.text-muted { color: var(--tb-gray-500); }
.hidden { display: none; }

/* ============================================================
   IDM (Indeks Desa Membangun) PAGE
   ============================================================ */

/* ── Skor summary cards ── */
.idm-skor-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}
.idm-skor-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--tb-white);
    border-radius: 14px;
    padding: 18px 20px;
    border: 1px solid var(--tb-gray-200);
    box-shadow: 0 2px 12px rgba(0,0,0,.05);
    position: relative;
    overflow: hidden;
    transition: box-shadow .2s, transform .2s;
}
.idm-skor-card:hover { box-shadow: 0 8px 28px rgba(0,0,0,.1); transform: translateY(-2px); }
.idm-skor-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    border-radius: 14px 14px 0 0;
}
.idm-skor-blue::before  { background: #3b82f6; }
.idm-skor-amber::before { background: #f59e0b; }
.idm-skor-green::before { background: #22c55e; }
.idm-skor-red::before   { background: var(--tb-red); }

.idm-skor-icon {
    width: 48px; height: 48px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}
.idm-skor-blue  .idm-skor-icon { background: #eff6ff; color: #3b82f6; }
.idm-skor-amber .idm-skor-icon { background: #fffbeb; color: #f59e0b; }
.idm-skor-green .idm-skor-icon { background: #f0fdf4; color: #22c55e; }
.idm-skor-red   .idm-skor-icon { background: var(--tb-red-bg); color: var(--tb-red); }

.idm-skor-info { display: flex; flex-direction: column; min-width: 0; }
.idm-skor-number {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--tb-black);
    line-height: 1.2;
    letter-spacing: -.02em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.idm-skor-label {
    font-size: 11.5px;
    font-weight: 500;
    color: var(--tb-gray-500);
    margin-top: 3px;
    white-space: nowrap;
}

/* ── Identitas + Chart row ── */
.idm-overview-row {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 20px;
    margin-bottom: 24px;
    align-items: start;
}
.idm-identitas-card,
.idm-chart-card {
    background: var(--tb-white);
    border-radius: 14px;
    border: 1px solid var(--tb-gray-200);
    box-shadow: 0 2px 12px rgba(0,0,0,.05);
    overflow: hidden;
}
.idm-identitas-header,
.idm-chart-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 20px;
    background: var(--tb-gray-50);
    border-bottom: 1px solid var(--tb-gray-200);
    font-size: 13.5px;
    font-weight: 700;
    color: var(--tb-black);
}
.idm-identitas-header i,
.idm-chart-header i { color: var(--tb-red); }

.idm-identitas-body { padding: 12px 0; }
.idm-identitas-row {
    display: flex;
    align-items: baseline;
    padding: 10px 20px;
    border-bottom: 1px solid var(--tb-gray-100);
    gap: 12px;
}
.idm-identitas-row:last-child { border-bottom: none; }
.idm-identitas-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--tb-gray-500);
    width: 90px;
    flex-shrink: 0;
}
.idm-identitas-value {
    font-size: 13px;
    font-weight: 600;
    color: var(--tb-black);
}
.idm-chart-body { padding: 12px; }

/* ── Table section ── */
.tb-table-wrap {
    background: var(--tb-white);
    border-radius: 14px;
    border: 1px solid var(--tb-gray-200);
    box-shadow: 0 2px 12px rgba(0,0,0,.05);
    overflow: hidden;
    margin-bottom: 24px;
}
.idm-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 20px;
    background: var(--tb-gray-50);
    border-bottom: 1px solid var(--tb-gray-200);
    font-size: 13.5px;
    font-weight: 700;
    color: var(--tb-black);
}
.idm-section-title i { color: var(--tb-red); }
.tb-table-inner { padding: 16px 20px 20px; }

/* ── DataTable controls (IDM) ── */
.idm-dt-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    flex-wrap: wrap;
    gap: 10px;
}
.idm-dt-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 14px;
    flex-wrap: wrap;
    gap: 10px;
}
.idm-dt-top .dataTables_length,
.idm-dt-bottom .dataTables_info { font-size: 12.5px; color: var(--tb-gray-500); }
.idm-dt-top .dataTables_filter input {
    border: 1.5px solid var(--tb-gray-300);
    border-radius: 8px;
    padding: 7px 12px 7px 34px;
    font-size: 13px;
    width: 220px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%239ca3af'%3E%3Cpath d='M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001c.03.04.062.078.098.115l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85a1.007 1.007 0 0 0-.115-.099zm-5.242 1.156a5.5 5.5 0 1 1 0-11 5.5 5.5 0 0 1 0 11z'/%3E%3C/svg%3E") no-repeat 10px center / 14px;
    transition: border-color .2s, box-shadow .2s;
}
.idm-dt-top .dataTables_filter input:focus {
    outline: none;
    border-color: var(--tb-red);
    box-shadow: 0 0 0 3px rgba(193,18,31,.1);
}
.idm-dt-top .dataTables_filter label { font-size: 0; } /* hide "Search:" label */
.idm-dt-bottom .dataTables_paginate .paginate_button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 8px;
    border-radius: 7px;
    font-size: 12.5px;
    font-weight: 600;
    border: 1.5px solid var(--tb-gray-200);
    background: var(--tb-white);
    color: var(--tb-gray-600) !important;
    margin: 0 2px;
    cursor: pointer;
    transition: all .18s;
}
.idm-dt-bottom .dataTables_paginate .paginate_button:hover {
    background: var(--tb-red-bg);
    border-color: var(--tb-red);
    color: var(--tb-red) !important;
}
.idm-dt-bottom .dataTables_paginate .paginate_button.current {
    background: var(--tb-red) !important;
    border-color: var(--tb-red) !important;
    color: var(--tb-white) !important;
}
.idm-dt-bottom .dataTables_paginate .paginate_button.disabled,
.idm-dt-bottom .dataTables_paginate .paginate_button.disabled:hover {
    opacity: .4;
    cursor: not-allowed;
    background: var(--tb-white);
    color: var(--tb-gray-400) !important;
}

/* ── IDM Table ── */
table.idm-table {
    font-size: 12.5px;
    border-collapse: collapse;
    width: 100%;
}
table.idm-table thead th {
    background: #1e293b;
    color: #fff;
    font-weight: 600;
    font-size: 12px;
    padding: 11px 12px;
    border: 1px solid rgba(255,255,255,.08) !important;
    white-space: nowrap;
    vertical-align: middle;
    text-align: left;
}
table.idm-table thead th.idm-th-center { text-align: center; }
table.idm-table thead th.idm-th-group {
    background: #0f172a;
    text-align: center;
    letter-spacing: .03em;
    font-size: 11px;
    text-transform: uppercase;
}
table.idm-table tbody td {
    padding: 9px 12px;
    font-size: 12.5px;
    color: var(--tb-gray-700);
    border-bottom: 1px solid var(--tb-gray-100) !important;
    vertical-align: top;
    line-height: 1.5;
}
table.idm-table tbody tr:hover td { background: var(--tb-red-bg) !important; }

/* Group header rows (IKS / IKE / IKL) */
table.idm-table tbody tr.idm-tr-group td {
    background: linear-gradient(90deg, #fef2f2 0%, #fff7f7 100%) !important;
    font-weight: 700;
    font-size: 13px;
    color: var(--tb-red);
    border-top: 2px solid rgba(193,18,31,.25) !important;
    border-bottom: 2px solid rgba(193,18,31,.15) !important;
}

/* Specific column styles */
.idm-td-center { text-align: center !important; }
.idm-td-indikator { min-width: 160px; font-weight: 500; color: var(--tb-black); }
.idm-td-skor {
    font-weight: 700;
    color: #3b82f6;
    font-size: 13px;
}
.idm-td-keterangan { min-width: 180px; color: var(--tb-gray-600); font-size: 12px; }
.idm-td-kegiatan { min-width: 220px; font-size: 12px; color: var(--tb-gray-600); line-height: 1.6; }
.idm-td-nilai {
    font-weight: 700;
    color: #22c55e;
    font-size: 13px;
}
.idm-td-pelaksana { font-size: 12px; }

/* Odd/even striping */
table.idm-table tbody tr:not(.idm-tr-group):nth-child(even) td {
    background: #fafafa;
}

/* Error card */
.idm-error-card {
    text-align: center;
    padding: 48px 24px;
    background: var(--tb-white);
    border-radius: 14px;
    border: 1px solid var(--tb-gray-200);
    color: var(--tb-gray-500);
}
.idm-error-card i { font-size: 2.5rem; color: #f59e0b; margin-bottom: 12px; display: block; }
.idm-error-card p { font-size: 14px; margin: 0; }

/* ── Responsive ── */
@media (max-width: 1024px) {
    .idm-skor-grid { grid-template-columns: repeat(2, 1fr); }
    .idm-overview-row { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
    .idm-skor-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .idm-skor-card { padding: 14px; }
    .idm-skor-number { font-size: 1.1rem; }
    .idm-dt-top { flex-direction: column; align-items: stretch; }
    .idm-dt-top .dataTables_filter input { width: 100%; }
}
