/* ==========================================================================
   SITUS RESMI DESA TAPEN - VIBRANT & SMOOTH CIVIC DESIGN SYSTEM
   Kecamatan Kudu, Kabupaten Jombang, Jawa Timur
   ========================================================================== */

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

:root {
    --brand-dark: #0f172a;
    --brand-primary: #1e40af;       /* Royal Sapphire */
    --brand-secondary: #3b82f6;     /* Bright Blue */
    --brand-accent: #f59e0b;        /* Vibrant Amber Gold */
    --brand-rose: #e11d48;          /* Coral Crimson Accent */
    --brand-purple: #6366f1;        /* Deep Indigo */
    
    --bg-page: #f8fafc;
    --bg-card: #ffffff;
    --bg-alt: #f1f5f9;
    
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;
    
    --border-light: #e2e8f0;
    
    --transition-smooth: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-soft: 0 4px 20px -2px rgba(30, 64, 175, 0.08);
    --shadow-hover: 0 20px 35px -5px rgba(30, 64, 175, 0.18);
    --shadow-card: 0 10px 25px -5px rgba(15, 23, 42, 0.06);
    
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 22px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

html {
    scroll-behavior: smooth;
    font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body {
    background-color: var(--bg-page);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Header Top Bar */
.top-header-bar {
    background: linear-gradient(90deg, #0f172a 0%, #1e3a8a 50%, #312e81 100%);
    color: #e2e8f0;
    padding: 10px 0;
    font-size: 0.85rem;
    border-bottom: 3px solid var(--brand-accent);
}

.top-bar-flex {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.top-bar-identity {
    display: flex;
    align-items: center;
    gap: 12px;
}

.top-emblem {
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 3px;
    flex-shrink: 0;
}

.top-emblem img,
.top-bar-logo-img {
    width: 28px !important;
    height: 28px !important;
    max-width: 28px !important;
    max-height: 28px !important;
    object-fit: contain !important;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
    display: block !important;
    flex-shrink: 0 !important;
}

.top-bar-title h2 {
    color: white;
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.top-bar-title p {
    color: #93c5fd;
    font-size: 0.75rem;
    font-weight: 500;
}

.top-bar-info {
    display: flex;
    gap: 20px;
    font-size: 0.8rem;
    color: #cbd5e1;
}

/* Navbar */
.site-navbar {
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(16px);
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition-smooth);
}

.nav-flex {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 72px;
}

.site-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    flex-shrink: 0;
    min-width: 0;
}

.brand-logo-jombang {
    width: 38px !important;
    height: 38px !important;
    max-width: 38px !important;
    max-height: 38px !important;
    object-fit: contain !important;
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.12));
    transition: transform 0.3s ease;
    display: block !important;
    flex-shrink: 0 !important;
}

.site-brand:hover .brand-logo-jombang {
    transform: scale(1.05);
}

.brand-icon-box {
    display: none;
}

.brand-title h1 {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--brand-primary);
    line-height: 1.15;
}

.brand-title p {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 600;
}

/* Backdrop Overlay for Mobile/PC Menu */
.nav-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.4);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    z-index: 999;
}

.nav-backdrop.show {
    opacity: 1;
    visibility: visible;
}

/* Modern 3-Line Hamburger Icon Button (Right-Aligned) */
.nav-hamburger-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 42px !important;
    height: 42px !important;
    padding: 0 !important;
    background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 50%, #3b82f6 100%) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.28) !important;
    border-radius: 14px !important;
    cursor: pointer !important;
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
    transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1) !important;
    position: relative !important;
    z-index: 100001 !important;
    outline: none !important;
    user-select: none;
    flex-shrink: 0 !important;
}

.nav-hamburger-btn:hover {
    background: linear-gradient(135deg, #1e40af 0%, #1d4ed8 50%, #2563eb 100%) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.48), inset 0 1px 0 rgba(255, 255, 255, 0.4) !important;
}

.nav-hamburger-btn:active {
    transform: translateY(0) scale(0.96);
}

.nav-hamburger-btn.active {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%) !important;
    box-shadow: 0 0 0 3.5px rgba(59, 130, 246, 0.4), 0 8px 24px rgba(15, 23, 42, 0.3) !important;
}

/* Icon Morphing Container */
.hamburger-icon-wrapper {
    position: relative;
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.hamburger-icon-wrapper i {
    position: absolute;
    top: 50%;
    left: 50%;
    margin: 0 !important;
    line-height: 1 !important;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.25s ease;
    font-size: 1.05rem;
}

.hamburger-icon-wrapper .icon-bars {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1) rotate(0deg);
}

.hamburger-icon-wrapper .icon-times {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.4) rotate(-90deg);
}

.nav-hamburger-btn.active .hamburger-icon-wrapper .icon-bars {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.4) rotate(90deg);
}

.nav-hamburger-btn.active .hamburger-icon-wrapper .icon-times {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1) rotate(0deg);
}

.hamburger-btn-text {
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1;
}

/* Nav Menu Links - Crisp Floating Panel */
.nav-menu-links {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: #ffffff;
    width: 350px;
    max-width: 94vw;
    max-height: calc(85vh - 60px);
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
    border-radius: 22px;
    box-shadow: 0 20px 48px rgba(15, 23, 42, 0.18), 0 8px 20px rgba(15, 23, 42, 0.08);
    border: 1px solid #e2e8f0;
    padding: 12px;
    flex-direction: column;
    gap: 4px;
    list-style: none;
    z-index: 10000 !important;
    opacity: 0;
    visibility: hidden;
    transform: translateY(14px) scale(0.96);
    transform-origin: top right;
    transition: opacity 0.26s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.26s cubic-bezier(0.16, 1, 0.3, 1),
                visibility 0.26s;
}

.nav-menu-links::-webkit-scrollbar {
    width: 5px;
}

.nav-menu-links::-webkit-scrollbar-track {
    background: transparent;
}

.nav-menu-links::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

.nav-menu-links.show {
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) scale(1) !important;
}

/* Header inside Dropdown Menu Panel */
.menu-dropdown-header {
    padding: 0;
    border-bottom: none;
    margin-bottom: 8px;
    width: 100%;
}

.menu-header-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, #f8fafc 0%, #eff6ff 100%);
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 10px 14px;
}

.menu-header-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    font-weight: 800;
    color: #1e293b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.menu-header-badge {
    font-size: 0.72rem;
    font-weight: 700;
    color: #2563eb;
    background: rgba(37, 99, 235, 0.1);
    padding: 3px 10px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.25);
    animation: pulseBadgeDot 2s infinite;
}

@keyframes pulseBadgeDot {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.4); opacity: 0.6; }
}

.nav-menu-links li {
    width: 100%;
}

/* Menu Item Links */
.nav-menu-links a {
    text-decoration: none;
    color: #334155;
    font-weight: 600;
    font-size: 0.88rem;
    padding: 9px 12px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    width: 100%;
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    white-space: nowrap;
    border-bottom: none !important;
    min-height: 44px;
}

.nav-menu-links a::after {
    display: none !important;
}

/* Icon Badges inside Links */
.nav-menu-links a i {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    flex-shrink: 0;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.icon-blue { color: #2563eb !important; background: rgba(37, 99, 235, 0.1) !important; }
.icon-indigo { color: #6366f1 !important; background: rgba(99, 102, 241, 0.1) !important; }
.icon-emerald { color: #10b981 !important; background: rgba(16, 185, 129, 0.1) !important; }
.icon-amber { color: #f59e0b !important; background: rgba(245, 158, 11, 0.1) !important; }
.icon-purple { color: #8b5cf6 !important; background: rgba(139, 92, 246, 0.1) !important; }
.icon-cyan { color: #06b6d4 !important; background: rgba(6, 182, 212, 0.1) !important; }
.icon-pink { color: #ec4899 !important; background: rgba(236, 72, 153, 0.1) !important; }
.icon-teal { color: #14b8a6 !important; background: rgba(20, 184, 166, 0.1) !important; }
.icon-rose { color: #f43f5e !important; background: rgba(244, 63, 94, 0.1) !important; }

/* Link Hover State */
.nav-menu-links a:hover {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    color: #0284c7;
    transform: translateX(4px);
    box-shadow: 0 4px 14px rgba(2, 132, 199, 0.1);
}

.nav-menu-links a:hover i {
    transform: scale(1.1) rotate(-4deg);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Active Link State */
.nav-menu-links a.active {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    color: #1d4ed8;
    font-weight: 700;
    border-left: 3.5px solid #2563eb !important;
    padding-left: 14px;
}

/* Accordion Submenu Styles */
.dropdown-toggle-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-dropdown {
    width: 100%;
}

.dropdown-arrow {
    font-size: 0.72rem;
    margin-left: auto;
    transition: transform 0.28s ease, color 0.28s ease;
    color: #94a3b8;
}

.nav-dropdown.open .dropdown-arrow {
    transform: rotate(180deg);
    color: #2563eb;
}

.nav-dropdown .dropdown-menu {
    display: none;
    position: static !important;
    transform: none !important;
    box-shadow: none !important;
    border: 1px solid #e2e8f0 !important;
    background: #f8fafc !important;
    border-radius: 14px !important;
    margin: 6px 0 6px 12px !important;
    padding: 6px !important;
    list-style: none !important;
    min-width: unset !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

.nav-dropdown .dropdown-menu::before {
    display: none !important;
}

.nav-dropdown.open .dropdown-menu {
    display: block !important;
    animation: submenuSlideDown 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.nav-dropdown .dropdown-menu a {
    padding: 9px 12px !important;
    font-size: 0.85rem !important;
    color: #475569 !important;
    font-weight: 600 !important;
    border-radius: 10px !important;
    min-height: 40px;
    justify-content: flex-start !important;
}

.nav-dropdown .dropdown-menu a:hover {
    background: #ffffff !important;
    color: #2563eb !important;
    transform: translateX(4px) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05) !important;
}

.mobile-toggle-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--brand-primary);
    cursor: pointer;
}

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

/* Hero Banner - Clear Transparent Parallax */
.hero-vibrant {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0.6) 100%), #0f172a;
    color: white;
    padding: 70px 0 90px;
    position: relative;
    overflow: hidden;
}

.hero-vibrant::before {
    display: none;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.7fr 1fr;
    gap: 40px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    color: #fef08a;
    margin-bottom: 20px;
}

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

.hero-sub-text {
    font-size: 1.1rem;
    color: #cbd5e1;
    margin-bottom: 32px;
    line-height: 1.6;
}

.hero-action-btns {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn-vibrant-primary {
    background: linear-gradient(135deg, var(--brand-accent), #d97706);
    color: white;
    font-weight: 700;
    padding: 14px 28px;
    border-radius: var(--radius-md);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.35);
    transition: var(--transition-smooth);
}

.btn-vibrant-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(245, 158, 11, 0.5);
    color: white;
}

.btn-vibrant-outline {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    font-weight: 600;
    padding: 14px 28px;
    border-radius: var(--radius-md);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition-smooth);
}

.btn-vibrant-outline:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
    color: white;
}

/* Sambutan Kades Card */
.kades-hero-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-lg);
    padding: 28px;
    text-align: center;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
    transition: var(--transition-smooth);
}

.kades-hero-card:hover {
    transform: translateY(-5px);
}

.kades-avatar-img {
    width: 105px;
    height: 105px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--brand-accent);
    margin: 0 auto 14px;
    box-shadow: 0 6px 15px rgba(0,0,0,0.3);
}

.kades-name {
    font-size: 1.15rem;
    font-weight: 800;
    color: white;
}

.kades-role {
    font-size: 0.82rem;
    color: #93c5fd;
    font-weight: 600;
    margin-bottom: 14px;
}

.kades-quote {
    font-size: 0.88rem;
    color: #e2e8f0;
    font-style: italic;
    line-height: 1.5;
}

/* Ribbon Stats Container */
.ribbon-stats-wrap {
    margin-top: -40px;
    position: relative;
    z-index: 10;
    margin-bottom: 60px;
}

.ribbon-stats-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
    background: white;
    padding: 24px 28px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-light);
    align-items: center;
}

.ribbon-stat-item {
    display: flex;
    align-items: center;
    gap: 12px;
    border-right: 1px solid var(--border-light);
    padding-right: 12px;
}

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

.ribbon-stat-icon {
    width: 52px;
    height: 52px;
    background: #eff6ff;
    color: var(--brand-primary);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    transition: var(--transition-smooth);
}

.ribbon-stat-item:hover .ribbon-stat-icon {
    background: var(--brand-primary);
    color: white;
    transform: scale(1.08);
}

.ribbon-stat-num {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--brand-dark);
    line-height: 1.1;
}

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

/* General Section Styling */
.section-wrap {
    padding: 75px 0;
}

.section-wrap-alt {
    background: var(--bg-alt);
}

.section-title-box {
    margin-bottom: 45px;
    border-left: 5px solid var(--brand-secondary);
    padding-left: 18px;
}

.section-subtitle-tag {
    color: var(--brand-rose);
    font-weight: 800;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    display: block;
    margin-bottom: 4px;
}

.section-main-heading {
    font-size: 2rem;
    color: var(--brand-dark);
    font-weight: 800;
}

.section-description {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-top: 6px;
}

/* Sejarah Section */
.sejarah-card-body {
    background: white;
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border-light);
    margin-bottom: 36px;
    line-height: 1.85;
    color: #334155;
}

.sejarah-timeline-list {
    position: relative;
    padding-left: 28px;
    border-left: 4px solid var(--brand-secondary);
    margin-top: 24px;
}

.timeline-row {
    position: relative;
    margin-bottom: 28px;
    transition: var(--transition-smooth);
}

.timeline-row::before {
    content: '';
    position: absolute;
    left: -36px;
    top: 5px;
    width: 14px;
    height: 14px;
    background: var(--brand-accent);
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 0 0 3px var(--brand-secondary);
}

.timeline-year-badge {
    font-weight: 800;
    color: var(--brand-primary);
    font-size: 1.1rem;
}

/* ==========================================================================
   Visi & Misi Desa Section Styles
   ========================================================================== */

.visi-misi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 32px;
}

.visi-card-box {
    background: #ffffff;
    border-radius: 22px;
    padding: 32px;
    border: 1px solid var(--border-light);
    box-shadow: 0 12px 36px rgba(15, 23, 42, 0.06);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.visi-card-box:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.12);
}

.visi-card-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, #1e40af, #3b82f6);
}

.visi-card-kades::before {
    background: linear-gradient(90deg, #f59e0b, #d97706);
}

.visi-card-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #eff6ff;
    color: #1e40af;
    font-size: 0.82rem;
    font-weight: 800;
    padding: 8px 18px;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    width: fit-content;
    margin-bottom: 20px;
    border: 1px solid #bfdbfe;
}

.badge-kades {
    background: #fef3c7;
    color: #b45309;
    border-color: #fde68a;
}

.visi-card-heading {
    font-size: 1.2rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.55;
    margin-bottom: 24px;
    font-style: italic;
    background: #f8fafc;
    padding: 20px;
    border-radius: 16px;
    border-left: 4px solid #3b82f6;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.02);
}

.visi-card-kades .visi-card-heading {
    border-left-color: #f59e0b;
    background: #fffbeb;
}

.misi-subheading {
    font-size: 1.05rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.misi-list-items {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.misi-list-items li {
    list-style: none !important;
    font-size: 0.92rem;
    color: #334155;
    line-height: 1.6;
    font-weight: 600;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 16px;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #f1f5f9;
    transition: all 0.2s ease;
}

.misi-list-items li:hover {
    background: #f1f5f9;
    transform: translateX(4px);
}

.misi-list-items li i {
    font-size: 1.1rem;
    margin-top: 2px;
    flex-shrink: 0;
}

/* ==========================================================================
   APBDes (Anggaran Pendapatan & Belanja Desa) Section Styles
   ========================================================================== */

.apbdes-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 36px;
}

.apbdes-stat-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 24px 28px;
    border: 1px solid var(--border-light);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.apbdes-stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.12);
}

.apbdes-stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    border-radius: 10px 0 0 10px;
}

.card-pendapatan::before {
    background: linear-gradient(180deg, #10b981, #059669);
}

.card-belanja::before {
    background: linear-gradient(180deg, #2563eb, #1e40af);
}

.card-surplus::before {
    background: linear-gradient(180deg, #f59e0b, #d97706);
}

.apbdes-icon-box {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.card-pendapatan .apbdes-icon-box {
    background: #dcfce7;
    color: #059669;
}

.card-belanja .apbdes-icon-box {
    background: #dbeafe;
    color: #1d4ed8;
}

.card-surplus .apbdes-icon-box {
    background: #fef3c7;
    color: #b45309;
}

.apbdes-label {
    font-size: 0.88rem;
    font-weight: 700;
    color: #64748b;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.apbdes-value {
    font-size: 1.45rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.02em;
}

.card-pendapatan .apbdes-value {
    color: #047857;
}

.card-belanja .apbdes-value {
    color: #1e40af;
}

.card-surplus .apbdes-value {
    color: #059669;
}

/* APBDes Breakdown Grid */
.apbdes-breakdown-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
    margin-bottom: 36px;
}

.apbdes-column-box {
    background: #ffffff;
    border-radius: 18px;
    padding: 28px;
    border: 1px solid var(--border-light);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
}

.apbdes-box-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 22px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f1f5f9;
}

.apbdes-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Potensi Usaha Warga 4 Dusun (No E-Commerce) */
.dusun-filter-bar {
    display: flex;
    gap: 12px;
    margin-bottom: 28px;
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 6px 6px 14px 6px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    cursor: grab;
    user-select: none;
    touch-action: pan-x;
}

.dusun-filter-bar::-webkit-scrollbar {
    display: none;
}

.dusun-filter-bar.dragging {
    cursor: grabbing;
    scroll-behavior: auto;
}

.dusun-filter-btn {
    background: white;
    border: 1px solid var(--border-light);
    padding: 10px 22px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 2px 6px rgba(0,0,0,0.03);
    white-space: nowrap;
    flex-shrink: 0;
}

.dusun-filter-btn:hover,
.dusun-filter-btn.active {
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
    color: white;
    border-color: var(--brand-primary);
    box-shadow: 0 6px 16px rgba(30, 64, 175, 0.3);
}

.search-filter-wrap {
    margin-bottom: 36px;
}

.search-input-field {
    width: 100%;
    max-width: 480px;
    padding: 14px 22px;
    border-radius: 50px;
    border: 1px solid var(--border-light);
    font-size: 0.92rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    outline: none;
    transition: var(--transition-smooth);
}

.search-input-field:focus {
    border-color: var(--brand-secondary);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15);
}

.potensi-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 28px;
}

.potensi-item-card {
    background: white;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
    transition: var(--transition-smooth);
}

.potensi-item-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.potensi-card-img {
    height: 190px;
    width: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.potensi-item-card:hover .potensi-card-img {
    transform: scale(1.06);
}

.potensi-card-body {
    padding: 22px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.dusun-tag-pill {
    font-size: 0.75rem;
    font-weight: 700;
    background: #e0f2fe;
    color: #0369a1;
    padding: 4px 10px;
    border-radius: 50px;
    display: inline-block;
    margin-bottom: 10px;
    width: fit-content;
}

.potensi-card-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--brand-dark);
    margin-bottom: 6px;
}

.potensi-card-owner {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.potensi-card-desc {
    font-size: 0.88rem;
    color: #475569;
    line-height: 1.55;
    flex-grow: 1;
    margin-bottom: 16px;
}

.potensi-card-contact {
    font-size: 0.82rem;
    color: var(--brand-primary);
    font-weight: 700;
    border-top: 1px dashed var(--border-light);
    padding-top: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Sekolah Section */
.sekolah-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
    gap: 28px;
}

.sekolah-item-card {
    background: white;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-card);
    padding: 24px;
    display: flex;
    gap: 18px;
    align-items: flex-start;
    transition: var(--transition-smooth);
}

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

.sekolah-card-icon {
    width: 54px;
    height: 54px;
    background: #eff6ff;
    color: var(--brand-primary);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.sekolah-card-info h3 {
    font-size: 1.15rem;
    margin-bottom: 6px;
    color: var(--brand-dark);
}

.sekolah-card-meta {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Tempat Bersejarah / Unik */
.place-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 28px;
}

.place-item-card {
    background: white;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border-light);
    transition: var(--transition-smooth);
}

.place-item-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}

.place-card-img {
    width: 100%;
    height: 190px;
    object-fit: cover;
}

.place-card-body {
    padding: 20px;
}

.place-card-title {
    font-size: 1.15rem;
    margin-bottom: 6px;
    color: var(--brand-dark);
}

.place-card-desc {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.55;
}

/* Perangkat Desa Grid */
.org-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 24px;
}

.org-item-card {
    background: white;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-card);
    padding: 24px;
    text-align: center;
    transition: var(--transition-smooth);
}

.org-item-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}

.org-avatar-img {
    width: 95px;
    height: 95px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 14px;
    border: 4px solid #eff6ff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.org-card-name {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--brand-dark);
}

.org-card-role {
    font-size: 0.82rem;
    color: var(--brand-secondary);
    font-weight: 700;
    margin-bottom: 6px;
}

.org-card-dusun {
    font-size: 0.75rem;
    background: #f1f5f9;
    color: var(--text-muted);
    padding: 3px 10px;
    border-radius: 50px;
    display: inline-block;
    margin-bottom: 10px;
    font-weight: 600;
}

.org-card-tugas {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.45;
}

/* Layanan Administrasi Kependudukan Section */
.layanan-banner-box {
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
    color: white;
    border-radius: var(--radius-lg);
    padding: 30px;
    margin-bottom: 40px;
    box-shadow: 0 12px 30px rgba(30, 64, 175, 0.18);
}

.layanan-banner-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 22px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    padding-bottom: 16px;
}

.layanan-banner-title {
    margin: 0;
    font-size: 1.35rem;
    color: white;
    font-weight: 800;
}

.layanan-banner-sub {
    margin: 4px 0 0;
    color: #cbd5e1;
    font-size: 0.88rem;
}

.layanan-banner-jam {
    background: rgba(255, 255, 255, 0.15);
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 0.84rem;
    font-weight: 700;
    backdrop-filter: blur(4px);
}

.alur-step-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
}

.step-card-item {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    border-radius: var(--radius-md);
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: var(--transition-smooth);
}

.step-card-item:hover {
    background: rgba(255, 255, 255, 0.18);
    transform: translateY(-3px);
}

.step-num-badge {
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--brand-accent);
    margin-bottom: 8px;
    line-height: 1;
}

.step-card-title {
    font-size: 1rem;
    margin: 0 0 6px;
    color: white;
    font-weight: 700;
}

.step-card-desc {
    font-size: 0.82rem;
    color: #e2e8f0;
    margin: 0;
    line-height: 1.5;
}

.layanan-grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.layanan-card-item {
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-card);
    padding: 26px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: var(--transition-smooth);
}

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

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

.layanan-card-icon {
    width: 48px;
    height: 48px;
    background: #eff6ff;
    color: var(--brand-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
}

.layanan-tag-badge {
    font-size: 0.74rem;
    font-weight: 800;
    padding: 4px 12px;
    border-radius: 50px;
    background: #eff6ff;
    color: var(--brand-primary);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.layanan-card-heading {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--brand-dark);
    margin-bottom: 8px;
}

.layanan-card-text {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
}

.layanan-req-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 14px;
    margin-bottom: 20px;
    font-size: 0.83rem;
}

.layanan-req-box strong {
    display: block;
    margin-bottom: 8px;
    font-size: 0.84rem;
    color: var(--text-primary);
}

.layanan-req-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.layanan-req-list li {
    margin-bottom: 6px;
    color: #475569;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    line-height: 1.4;
}

.layanan-req-list li:last-child {
    margin-bottom: 0;
}

.layanan-req-list li i {
    color: #10b981;
    font-size: 0.75rem;
    margin-top: 3px;
    flex-shrink: 0;
}

.layanan-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1px solid #f1f5f9;
    gap: 12px;
}

.layanan-time-info {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-muted);
}

.btn-layanan-wa {
    background: #10b981;
    color: white;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition-smooth);
}

.btn-layanan-wa:hover {
    background: #059669;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

/* Side-by-Side Two Column Maps */
.maps-two-column-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}

.map-side-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
    transition: var(--transition-smooth);
}

.map-side-card:hover {
    box-shadow: var(--shadow-hover);
}

.map-card-header {
    padding: 16px 20px;
    background: linear-gradient(135deg, #1e40af, #1d4ed8);
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.map-card-header-wilayah {
    background: linear-gradient(135deg, #065f46, #047857);
}

.map-card-title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 800;
    color: white;
    display: flex;
    align-items: center;
    gap: 10px;
}

.map-badge-tag {
    font-size: 0.75rem;
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 12px;
    border-radius: 30px;
    font-weight: 700;
}

.map-iframe-container {
    position: relative;
    width: 100%;
    height: 320px;
    background: #e2e8f0;
}

.map-iframe-element {
    width: 100%;
    height: 100%;
    border: 0;
}

.map-info-panel-side {
    padding: 24px;
    background: #0f172a;
    color: white;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.map-info-panel-wilayah {
    background: #064e3b;
}

.map-info-panel-side h4 {
    margin: 0 0 6px;
    font-size: 1.15rem;
    color: white;
    font-weight: 800;
}

.map-address-text {
    font-size: 0.86rem;
    color: #cbd5e1;
    margin-bottom: 16px;
    line-height: 1.5;
}

.map-info-panel-wilayah .map-address-text {
    color: #a7f3d0;
}

.map-meta-list {
    font-size: 0.84rem;
    margin-bottom: 20px;
    line-height: 1.8;
    color: #e2e8f0;
}

.map-info-panel-wilayah .map-meta-list {
    color: #ecfdf5;
}

.map-meta-list p {
    margin-bottom: 4px;
}

.map-btn-full {
    font-size: 0.85rem;
    text-align: center;
    justify-content: center;
    width: 100%;
    border-radius: 50px;
}

.map-btn-wilayah {
    background: #059669;
    border: none;
}

.map-btn-wilayah:hover {
    background: #047857;
}

/* Map Frame Container (Legacy) */
.map-card-wrap {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border-light);
    display: grid;
    grid-template-columns: 2fr 1fr;
}

.map-info-panel {
    padding: 36px;
    background: linear-gradient(180deg, #0f172a 0%, #1e3a8a 100%);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.map-info-panel h3 {
    color: white;
    font-size: 1.4rem;
    margin-bottom: 14px;
}

.map-info-panel p {
    font-size: 0.88rem;
    color: #cbd5e1;
    margin-bottom: 22px;
}

/* Footer Civic */
.site-footer {
    background: #0f172a;
    color: white;
    padding: 60px 0 24px;
    border-top: 4px solid var(--brand-accent);
}

.footer-grid-layout {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-heading {
    font-size: 1.25rem;
    color: white;
    margin-bottom: 14px;
}

.footer-text-content {
    color: #94a3b8;
    font-size: 0.88rem;
    line-height: 1.65;
}

.footer-nav-list {
    list-style: none;
}

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

.footer-nav-list a {
    color: #cbd5e1;
    font-size: 0.88rem;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.footer-nav-list a:hover {
    color: var(--brand-accent);
    padding-left: 4px;
}

.footer-copyright-bar {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 24px;
    font-size: 0.85rem;
    color: #94a3b8;
}

/* ==========================================================================
   ULTRA-RESPONSIVE MOBILE & TABLET STYLING (PERBAIKAN TAMPILAN HP)
   ========================================================================== */

@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .map-card-wrap,
    .maps-two-column-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .ribbon-stats-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px 16px;
    }
    .ribbon-stat-item {
        border-right: 1px solid var(--border-light);
    }
    .ribbon-stat-item:nth-child(3n) {
        border-right: none;
    }
    .footer-grid-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    /* Brand Logo Mobile Precision */
    .brand-logo-jombang {
        width: 32px !important;
        height: 32px !important;
        max-width: 32px !important;
        max-height: 32px !important;
    }
    .top-emblem {
        width: 30px;
        height: 30px;
        min-width: 30px;
        min-height: 30px;
    }
    .top-emblem img,
    .top-bar-logo-img {
        width: 24px !important;
        height: 24px !important;
        max-width: 24px !important;
        max-height: 24px !important;
    }
    .site-brand {
        gap: 8px;
        max-width: calc(100% - 60px);
    }

    /* Top Bar Header Mobile */
    .top-header-bar {
        padding: 8px 0;
    }
    .top-bar-flex {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
    .top-bar-identity {
        justify-content: center;
    }
    .top-bar-info {
        flex-direction: column;
        gap: 4px;
        font-size: 0.76rem;
        align-items: center;
    }

    /* Peta Lokasi & Wilayah Mobile Responsiveness */
    .maps-two-column-grid {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }
    .map-card-header {
        padding: 14px 16px;
        flex-wrap: wrap;
        gap: 8px;
    }
    .map-card-title {
        font-size: 1rem;
    }
    .map-badge-tag {
        font-size: 0.72rem;
        padding: 3px 10px;
    }
    .map-iframe-container {
        height: 260px;
    }
    .map-info-panel-side {
        padding: 18px 16px;
    }
    .map-info-panel-side h4 {
        font-size: 1.05rem;
    }
    .map-address-text {
        font-size: 0.82rem;
        margin-bottom: 12px;
    }
    .map-meta-list {
        font-size: 0.8rem;
        margin-bottom: 16px;
        line-height: 1.65;
    }
    .map-btn-full {
        padding: 10px 16px;
        font-size: 0.82rem;
    }

    /* Navbar Mobile / Responsive Menu */
    .nav-menu-links {
        left: 12px;
        right: 12px;
        width: auto;
        min-width: unset;
        max-width: calc(100vw - 24px);
        top: calc(100% + 10px);
        max-height: calc(80vh - 40px);
    }

    /* Hero Section Mobile */
    .hero-vibrant {
        padding: 45px 0 60px;
        text-align: center;
    }
    .hero-badge-pill {
        margin: 0 auto 16px;
        font-size: 0.8rem;
    }
    .hero-main-title {
        font-size: 1.95rem;
        line-height: 1.25;
        margin-bottom: 14px;
    }
    .hero-sub-text {
        font-size: 0.98rem;
        margin-bottom: 24px;
    }
    .hero-action-btns {
        justify-content: center;
        flex-direction: column;
        gap: 12px;
        width: 100%;
    }
    .btn-vibrant-primary,
    .btn-vibrant-outline {
        width: 100%;
        justify-content: center;
        padding: 12px 20px;
        font-size: 0.92rem;
    }

    /* Kades Hero Card Mobile */
    .kades-hero-card {
        padding: 22px 18px;
        margin-top: 10px;
    }
    .kades-avatar-img {
        width: 90px;
        height: 90px;
    }

    /* Stats Ribbon Mobile */
    .ribbon-stats-wrap {
        margin-top: -25px;
        margin-bottom: 45px;
    }
    .ribbon-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        padding: 20px 18px;
        gap: 16px 12px;
    }
    .ribbon-stat-item {
        border-right: 1px solid var(--border-light);
        border-bottom: none;
        padding-right: 10px;
    }
    .ribbon-stat-item:nth-child(2n) {
        border-right: none;
    }

    /* Sections Mobile */
    .section-wrap {
        padding: 50px 0;
    }
    .section-title-box {
        margin-bottom: 30px;
        padding-left: 14px;
    }
    .section-main-heading {
        font-size: 1.6rem;
    }
    .section-description {
        font-size: 0.9rem;
    }

    /* Cards & Grids Mobile */
    .potensi-card-grid,
    .sekolah-card-grid,
    .place-card-grid,
    .org-card-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .sekolah-item-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .sekolah-card-icon {
        margin: 0 auto;
    }

    /* Filter Buttons Mobile */
    .dusun-filter-bar {
        gap: 8px;
        padding-bottom: 12px;
    }
    .dusun-filter-btn {
        flex-shrink: 0;
        font-size: 0.84rem;
        padding: 8px 16px;
        white-space: nowrap;
    }

    /* Map Panel Mobile */
    .map-iframe-element {
        height: 280px;
    }
    .map-info-panel {
        padding: 26px 20px;
        text-align: center;
    }

    /* Footer Mobile */
    .site-footer {
        padding: 45px 0 20px;
    }
    .footer-grid-layout {
        text-align: center;
    }
}

/* Smartphone Layar Kecil (HP Portrait <= 480px) */
@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    .brand-logo-jombang {
        width: 28px !important;
        height: 28px !important;
        max-width: 28px !important;
        max-height: 28px !important;
    }
    .top-emblem {
        width: 26px;
        height: 26px;
        min-width: 26px;
        min-height: 26px;
    }
    .top-emblem img,
    .top-bar-logo-img {
        width: 20px !important;
        height: 20px !important;
        max-width: 20px !important;
        max-height: 20px !important;
    }
    .site-brand {
        gap: 6px;
        max-width: calc(100% - 50px);
    }
    .brand-title h1 {
        font-size: 1.05rem;
    }
    .brand-title p {
        font-size: 0.7rem;
    }
    .hero-main-title {
        font-size: 1.6rem;
    }
    .hero-sub-text {
        font-size: 0.9rem;
    }
    .ribbon-stats-grid {
        grid-template-columns: 1fr;
    }
    .ribbon-stat-item {
        border-bottom: 1px solid var(--border-light) !important;
        padding-bottom: 10px;
    }
    .ribbon-stat-item:last-child {
        border-bottom: none !important;
    }
    .dusun-filter-btn {
        flex-shrink: 0;
    }
    .sejarah-card-body {
        padding: 22px 18px;
    }
}

/* Visi & Misi Desa + Visi & Misi Kades Styles */
.visi-misi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 28px;
    margin-bottom: 36px;
}

.visi-card-box {
    background: white;
    padding: 32px 28px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-card);
    border-top: 5px solid var(--brand-primary);
    transition: var(--transition-smooth);
}

.visi-card-box:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.visi-card-kades {
    border-top-color: var(--brand-accent);
}

.visi-card-badge {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(30, 64, 175, 0.1);
    color: var(--brand-primary);
    font-weight: 800;
    font-size: 0.8rem;
    border-radius: 50px;
    margin-bottom: 16px;
    text-transform: uppercase;
}

.badge-kades {
    background: rgba(245, 158, 11, 0.15);
    color: #d97706;
}

.visi-card-heading {
    font-size: 1.15rem;
    line-height: 1.6;
    color: var(--brand-dark);
    font-weight: 800;
    margin-bottom: 20px;
    font-style: italic;
}

.misi-subheading {
    font-size: 0.95rem;
    color: var(--text-primary);
    font-weight: 800;
    margin-bottom: 12px;
}

.misi-list-items {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: flex-start;
    flex-direction: column;
    gap: 10px;
}

.misi-list-items li {
    font-size: 0.9rem;
    color: #475569;
    line-height: 1.5;
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.misi-list-items li i {
    margin-top: 3px;
    flex-shrink: 0;
}

/* Accordion Sejarah Toggle */
.sejarah-accordion-wrap {
    margin-top: 28px;
}

.sejarah-toggle-btn {
    width: 100%;
    background: white;
    border: 1px solid var(--border-light);
    padding: 16px 24px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    color: var(--brand-dark);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
    transition: var(--transition-smooth);
}

.sejarah-toggle-btn:hover {
    background: var(--bg-alt);
    border-color: var(--brand-secondary);
}

/* APBDes Transparansi Section Styles */
.apbdes-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.apbdes-stat-card {
    background: white;
    padding: 24px 20px;
    border-radius: 14px;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-card);
    display: flex;
    align-items: center;
    gap: 16px;
}

.apbdes-icon-box {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}

.card-pendapatan .apbdes-icon-box {
    background: rgba(16, 185, 129, 0.12);
    color: #10b981;
}

.card-belanja .apbdes-icon-box {
    background: rgba(59, 130, 246, 0.12);
    color: #3b82f6;
}

.card-surplus .apbdes-icon-box {
    background: rgba(245, 158, 11, 0.12);
    color: #f59e0b;
}

.apbdes-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.apbdes-value {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--brand-dark);
}

.apbdes-breakdown-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 28px;
}

.apbdes-column-box {
    background: white;
    padding: 28px;
    border-radius: 16px;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-card);
    min-width: 0;
}

.apbdes-box-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--brand-dark);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--bg-alt);
    display: flex;
    align-items: center;
    gap: 10px;
}

.apbdes-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.apbdes-item-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.88rem;
    margin-bottom: 6px;
    color: #334155;
}

.apbdes-amount {
    font-weight: 800;
    color: var(--brand-primary);
}

.apbdes-progress-bg {
    width: 100%;
    height: 10px;
    background: #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
}

.apbdes-progress-fill {
    height: 100%;
    border-radius: 10px;
    transition: width 1s ease-in-out;
}

.fill-pendapatan {
    background: linear-gradient(90deg, #10b981, #059669);
}

/* APBDes Interactive Chart Cards */
.apbdes-charts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 28px;
    margin-top: 32px;
}

.apbdes-chart-card {
    background: white;
    padding: 28px;
    border-radius: 16px;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-card);
    transition: var(--transition-smooth);
    min-width: 0;
}

.apbdes-chart-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.apbdes-chart-card h4 {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--brand-dark);
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--bg-alt);
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Public Detail Modal Overlay Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999 !important;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-box {
    background: white;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
    transition: transform 0.3s ease;
}

.detail-thumb-box:hover {
    transform: scale(1.05);
    border-color: var(--brand-primary) !important;
}

/* ==========================================================================
   PUBLIC DETAIL MODAL MAIN IMAGE STYLES (INTACT & COMPLETE - FULL VIEW)
   ========================================================================== */

.modal-main-img-box {
    width: 100%;
    height: 340px;
    max-height: 45vh;
    background: #0f172a;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 16px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 0 24px rgba(0, 0, 0, 0.4), 0 4px 15px rgba(15, 23, 42, 0.1);
}

#detail-main-img {
    width: 100%;
    height: 100%;
    max-height: 100%;
    object-fit: contain !important;
    transition: opacity 0.3s ease;
}

/* ==========================================================================
   UNIFIED CARD SYSTEM FOR POTENSI UMKM, FASILITAS UMUM, & PENGUMUMAN
   ========================================================================== */

/* Grid Layout Alignment */
.potensi-card-grid,
.place-card-grid,
.pengumuman-grid-layout {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 22px;
    margin-top: 32px;
}

/* Unified Card Component Base */
.potensi-item-card,
.place-item-card,
.news-item-card {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 15px rgba(15, 23, 42, 0.04);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    height: 100%;
}

.potensi-item-card:hover,
.place-item-card:hover,
.news-item-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 32px rgba(30, 64, 175, 0.12), 0 4px 12px rgba(15, 23, 42, 0.05);
    border-color: #93c5fd;
}

/* Unified Image Container */
.potensi-card-img-box,
.place-card-img-box,
.news-card-img-box {
    position: relative;
    height: 155px;
    width: 100%;
    overflow: hidden;
    background: #0f172a;
}

.potensi-card-img,
.place-card-img,
.news-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), filter 0.4s ease;
}

.potensi-item-card:hover .potensi-card-img,
.place-item-card:hover .place-card-img,
.news-item-card:hover .news-card-img {
    transform: scale(1.06);
    filter: brightness(1.03);
}

/* Unified Category Badges */
.potensi-card-badge,
.place-card-badge,
.news-card-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    background: linear-gradient(135deg, #1e40af, #2563eb);
    color: #ffffff;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.place-card-badge {
    background: linear-gradient(135deg, #0284c7, #0369a1);
}

/* Unified Card Body */
.potensi-card-body,
.place-card-body,
.news-card-body {
    padding: 18px 20px 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    background: #ffffff;
}

/* Unified Meta Pills */
.potensi-card-tag,
.place-card-tag,
.news-card-date {
    font-size: 0.76rem;
    font-weight: 700;
    color: #475569;
    margin-bottom: 8px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f1f5f9;
    padding: 3px 10px;
    border-radius: 20px;
    width: fit-content;
}

.potensi-card-tag i,
.place-card-tag i,
.news-card-date i {
    color: #2563eb;
    font-size: 0.8rem;
}

/* Unified Titles */
.potensi-card-title,
.place-card-title,
.news-card-title {
    font-size: 1.02rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.4;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s ease;
}

.potensi-item-card:hover .potensi-card-title,
.place-item-card:hover .place-card-title,
.news-item-card:hover .news-card-title {
    color: #1e40af;
}

/* Unified Descriptions */
.potensi-card-desc,
.place-card-desc,
.news-card-desc {
    font-size: 0.84rem;
    color: #475569;
    line-height: 1.55;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
}

/* Unified Footer Section */
.potensi-card-footer,
.place-card-footer,
.news-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid #f1f5f9;
}

.potensi-card-owner,
.place-card-owner,
.news-card-author {
    font-size: 0.76rem;
    font-weight: 600;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 6px;
}

.potensi-card-owner i,
.place-card-owner i,
.news-card-author i {
    color: #f59e0b;
}

.btn-detail-card,
.news-card-btn-more {
    font-size: 0.76rem;
    font-weight: 800;
    color: #1e40af;
    background: #eff6ff;
    padding: 5px 12px;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.25s ease;
    border: 1px solid #dbeafe;
    cursor: pointer;
}

.btn-detail-card i,
.news-card-btn-more i {
    transition: transform 0.2s ease;
    font-size: 0.75rem;
}

.potensi-item-card:hover .btn-detail-card,
.place-item-card:hover .btn-detail-card,
.news-item-card:hover .news-card-btn-more {
    background: #1e40af;
    color: #ffffff;
    border-color: #1e40af;
}

.potensi-item-card:hover .btn-detail-card i,
.place-item-card:hover .btn-detail-card i,
.news-item-card:hover .news-card-btn-more i {
    transform: translateX(3px);
}

/* Empty State Cards */
.pengumuman-empty-card {
    grid-column: 1 / -1;
    text-align: center;
    color: #64748b;
    padding: 42px 24px;
    background: #ffffff;
    border-radius: 16px;
    border: 1px dashed #cbd5e1;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.02);
}

.pengumuman-empty-icon {
    width: 56px;
    height: 56px;
    background: #eff6ff;
    color: #1e40af;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
    font-size: 1.4rem;
    box-shadow: 0 4px 10px rgba(30, 64, 175, 0.1);
}

.pengumuman-empty-card h4 {
    font-size: 1.05rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 4px;
}

.pengumuman-empty-card p {
    font-size: 0.85rem;
    color: #64748b;
    margin: 0;
}

/* Mobile Responsiveness for Unified Cards & Modal */
@media (max-width: 768px) {
    #pengumuman {
        padding: 50px 0;
    }
    .potensi-card-grid,
    .place-card-grid,
    .pengumuman-grid-layout {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
        gap: 16px;
        margin-top: 20px;
    }
    .potensi-card-img-box,
    .place-card-img-box,
    .news-card-img-box {
        height: 140px;
    }
    .potensi-card-body,
    .place-card-body,
    .news-card-body {
        padding: 16px;
    }
    .potensi-card-title,
    .place-card-title,
    .news-card-title {
        font-size: 0.98rem;
    }
    .modal-main-img-box {
        height: 240px;
    }
}
