
        :root {
            /* Primary Emerald Government Palette */
            --color-primary: #15803d;
            --color-primary-hover: #166534;
            --color-primary-dark: #14532d;
            --color-primary-light: #22c55e;
            --color-primary-subtle: #f0fdf4;
            --color-primary-border: #bbf7d0;

            /* Accent & Supporting Colors */
            --color-secondary: #e2e8f0;
            --color-teal: #0d9488;
            --color-teal-subtle: #f0fdfa;
            --color-teal-border: #99f6e4;
            --color-forest: #064e3b;
            --color-forest-subtle: #ecfdf5;

            /* Neutrals & Typography */
            --color-bg: #f8fafc;
            --color-bg-alt: #f1f5f9;
            --color-bg-light: #f8fafc;
            --color-surface: #ffffff;
            --color-white: #ffffff;
            --color-text: #0f172a;
            --color-text-body: #334155;
            --color-text-muted: #64748b;
            --color-text-light: #94a3b8;
            --color-border: #e2e8f0;
            --color-border-subtle: #f1f5f9;

            /* Border Radii */
            --border-radius-sm: 8px;
            --border-radius-md: 12px;
            --border-radius-lg: 16px;
            --border-radius-xl: 22px;
            --border-radius-full: 9999px;

            /* Shadows */
            --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
            --shadow-soft: 0 4px 16px -2px rgba(15, 23, 42, 0.06), 0 2px 6px -1px rgba(15, 23, 42, 0.03);
            --shadow-md: 0 8px 24px -4px rgba(15, 23, 42, 0.08), 0 4px 8px -2px rgba(15, 23, 42, 0.03);
            --shadow-lg: 0 16px 36px -4px rgba(15, 23, 42, 0.1), 0 6px 14px -2px rgba(15, 23, 42, 0.04);
            --shadow-hover: 0 20px 38px -4px rgba(21, 128, 61, 0.12), 0 6px 16px -2px rgba(15, 23, 42, 0.04);
        }

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

        body {
            font-family: 'Plus Jakarta Sans', 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
            line-height: 1.6;
            color: var(--color-text-body);
            background-color: var(--color-bg);
            transition: all 0.3s ease;
            -webkit-font-smoothing: antialiased;
        }

        a {
            text-decoration: none;
            color: var(--color-primary);
            transition: color 0.2s ease;
        }

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

        /* Utility Classes */
        .container {
            width: 92%;
            max-width: 1240px;
            margin: 0 auto;
        }

        .card {
            background-color: var(--color-surface);
            border-radius: var(--border-radius-xl);
            border: 1px solid var(--color-border);
            box-shadow: var(--shadow-soft);
            padding: 24px;
            margin-bottom: 24px;
            transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
        }

        .btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            padding: 10px 22px;
            border-radius: var(--border-radius-md);
            font-weight: 600;
            font-size: 0.92rem;
            cursor: pointer;
            transition: all 0.25s ease;
            text-align: center;
            border: none;
            line-height: 1.4;
        }

        .btn-primary {
            background-color: var(--color-primary);
            color: var(--color-white);
            box-shadow: 0 4px 12px rgba(21, 128, 61, 0.25);
        }

        .btn-primary:hover {
            background-color: var(--color-primary-hover);
            color: var(--color-white);
            box-shadow: 0 6px 18px rgba(21, 128, 61, 0.35);
            transform: translateY(-2px);
        }

        .btn-secondary {
            background-color: var(--color-primary-subtle);
            color: var(--color-primary-dark);
            border: 1px solid var(--color-primary-border);
        }

        .btn-secondary:hover {
            background-color: var(--color-primary);
            color: var(--color-white);
            border-color: var(--color-primary);
            box-shadow: 0 4px 12px rgba(21, 128, 61, 0.2);
            transform: translateY(-1px);
        }

        /* Header and Navigation */
        .header {
            background-color: rgba(255, 255, 255, 0.96);
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
            border-bottom: 1px solid rgba(226, 232, 240, 0.85);
            box-shadow: 0 2px 16px -2px rgba(0, 0, 0, 0.04);
            position: sticky;
            top: 0;
            z-index: 1040;
            transition: all 0.3s ease;
        }

        .navbar {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 12px 0;
        }
        
        .logo {
            display: flex;
            align-items: center;
            gap: 12px;
            cursor: pointer;
            text-decoration: none;
            user-select: none;
            min-width: 260px;
        }

        .logo-img {
            height: 42px;
            width: auto;
            object-fit: contain;
            filter: drop-shadow(0 2px 4px rgba(0,0,0,0.06));
        }

        .logo-text-group {
            display: flex;
            flex-direction: column;
        }

        .logo-title {
            font-size: 1.15rem;
            font-weight: 800;
            color: var(--color-primary-dark);
            letter-spacing: -0.01em;
            line-height: 1.2;
        }

        .logo-subtitle {
            font-size: 0.72rem;
            font-weight: 500;
            color: var(--color-text-muted);
            letter-spacing: 0.02em;
        }
        
        .nav-links {
            list-style: none;
            display: flex;
            align-items: center;
            gap: 4px;
            margin: 0;
            padding: 0;
        }
        
        .nav-links > li {
            margin: 0;
            position: relative;
            display: inline-flex;
            align-items: center;
        }

        .nav-item-link,
        .nav-links > li > a {
            display: inline-flex;
            align-items: center;
            gap: 7px;
            padding: 8px 14px;
            font-size: 0.9rem;
            font-weight: 500;
            color: var(--color-text-body);
            border-radius: var(--border-radius-full);
            transition: all 0.2s ease;
            text-decoration: none;
            cursor: pointer;
            line-height: 1.2;
        }

        .nav-item-link i,
        .nav-links > li > a i {
            font-size: 0.92rem;
            color: var(--color-text-muted);
            transition: color 0.2s ease;
        }

        .nav-item-link:hover,
        .nav-links > li > a:hover,
        .nav-links > li > a.active {
            background-color: var(--color-primary-subtle);
            color: var(--color-primary-dark);
        }

        .nav-item-link:hover i,
        .nav-links > li > a:hover i,
        .nav-links > li > a.active i {
            color: var(--color-primary);
        }

        .dropdown-toggle::after {
            display: none !important;
        }

        .dropdown-arrow {
            font-size: 0.68rem !important;
            opacity: 0.6;
            margin-left: 2px;
            transition: transform 0.25s ease, opacity 0.25s ease;
        }

        .dropdown:hover .dropdown-arrow {
            transform: rotate(180deg);
            opacity: 1;
            color: var(--color-primary);
        }

        /* Dropdown Menu */
        .dropdown {
            position: relative;
        }

        .dropdown-menu {
            display: none;
            position: absolute;
            top: 100%;
            left: 50%;
            transform: translateX(-50%);
            min-width: 220px;
            background-color: #ffffff;
            border: 1px solid var(--color-border);
            border-radius: var(--border-radius-lg);
            box-shadow: var(--shadow-lg);
            padding: 8px;
            z-index: 1050;
            flex-direction: column;
            gap: 2px;
            margin-top: 4px;
            animation: dropdownFade 0.2s cubic-bezier(0.16, 1, 0.3, 1);
        }

        /* Invisible bridge so cursor never leaves hover zone */
        .dropdown-menu::before {
            content: '';
            position: absolute;
            top: -14px;
            left: 0;
            right: 0;
            height: 14px;
            background: transparent;
        }

        @keyframes dropdownFade {
            from {
                opacity: 0;
                transform: translateX(-50%) translateY(4px);
            }
            to {
                opacity: 1;
                transform: translateX(-50%) translateY(0);
            }
        }

        .dropdown:hover .dropdown-menu {
            display: flex;
        }

        .dropdown-menu li {
            list-style: none;
            margin: 0;
            width: 100%;
        }

        .dropdown-menu a {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 10px 14px;
            color: var(--color-text-body);
            font-size: 0.88rem;
            font-weight: 500;
            text-decoration: none;
            border-radius: var(--border-radius-md);
            border-bottom: none;
            transition: all 0.2s ease;
            white-space: nowrap;
        }

        .dropdown-menu a i {
            color: var(--color-primary);
            font-size: 0.95rem;
            width: 18px;
            text-align: center;
            flex-shrink: 0;
        }

        .dropdown-menu a:hover {
            background-color: var(--color-primary-subtle);
            color: var(--color-primary-dark);
            transform: translateX(3px);
        }

        /* Modern Login Button */
        .btn-login {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
            color: #ffffff !important;
            padding: 8px 18px;
            font-size: 0.88rem;
            font-weight: 600;
            border-radius: var(--border-radius-full);
            text-decoration: none;
            box-shadow: 0 3px 12px rgba(21, 128, 61, 0.25);
            transition: all 0.25s ease;
            border: none;
            margin-left: 8px;
            cursor: pointer;
            line-height: 1.2;
        }

        .btn-login:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 18px rgba(21, 128, 61, 0.35);
            background: linear-gradient(135deg, var(--color-primary-hover) 0%, #0d3b19 100%);
            color: #ffffff !important;
        }

        .btn-login i,
        .nav-links > li > a.btn-login i,
        .nav-item-btn a i {
            font-size: 0.88rem;
            color: #ffffff !important;
            transition: transform 0.2s ease;
        }

        .btn-login:hover i,
        .nav-links > li > a.btn-login:hover i {
            color: #ffffff !important;
            transform: translateX(2px);
        }

        /* Mobile Menu Toggle */
        .menu-toggle {
            display: none;
            width: 42px;
            height: 42px;
            align-items: center;
            justify-content: center;
            border-radius: var(--border-radius-md);
            background-color: var(--color-primary-subtle);
            color: var(--color-primary-dark);
            font-size: 1.2rem;
            cursor: pointer;
            transition: all 0.2s ease;
            border: 1px solid var(--color-primary-border);
        }

        .menu-toggle:hover {
            background-color: var(--color-primary);
            color: #ffffff;
        }

        /* Main Content */
        .page-section {
            padding: 0;
            display: none; /* All pages are hidden by default */
        }

        .page-section.active {
            display: block; /* Only the active page is visible */
        }

        h1, h2, h3 {
            color: var(--color-text);
            font-weight: 700;
            letter-spacing: -0.015em;
        }

        /* ==================================================
           Hero Section (Galesong Reference Layout)
           ================================================== */
        .hero-galesong {
            position: relative;
            overflow: hidden;
            background: #082918 url('../../img/village_hero_bg.jpg') no-repeat center center / cover;
            color: #ffffff;
            padding: 75px 0 65px;
            min-height: 520px;
            display: flex;
            align-items: center;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        }

        .hero-galesong-overlay {
            position: absolute;
            inset: 0;
            background: linear-gradient(90deg, 
                rgba(6, 38, 23, 0.94) 0%, 
                rgba(11, 56, 34, 0.88) 42%, 
                rgba(6, 44, 26, 0.60) 75%, 
                rgba(4, 30, 18, 0.82) 100%
            );
            z-index: 1;
        }

        .hero-galesong-container {
            position: relative;
            z-index: 2;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 40px;
            width: 92%;
            max-width: 1240px;
            margin: 0 auto;
        }

        .hero-galesong-left {
            flex: 1 1 58%;
            max-width: 660px;
            padding-bottom: 0;
            text-align: left;
        }

        .hero-galesong-kicker {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            font-size: 0.82rem;
            font-weight: 700;
            color: #facc15;
            text-transform: uppercase;
            letter-spacing: 0.14em;
            margin-bottom: 18px;
            text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
        }

        .kicker-dot {
            color: #fef08a;
            font-size: 0.9rem;
        }

        .hero-galesong-title {
            font-size: clamp(2.3rem, 4.4vw, 3.6rem);
            font-weight: 800;
            color: #ffffff;
            line-height: 1.15;
            margin-bottom: 22px;
            letter-spacing: -0.02em;
            text-shadow: 0 2px 14px rgba(0, 0, 0, 0.4);
        }

        .hero-galesong-highlight {
            color: #facc15;
            display: inline-block;
        }

        .hero-galesong-quote {
            font-size: clamp(0.92rem, 1.2vw, 1.02rem);
            font-weight: 400;
            color: rgba(255, 255, 255, 0.92);
            line-height: 1.7;
            margin-bottom: 20px;
            max-width: 580px;
            text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
        }

        .hero-galesong-author {
            display: flex;
            align-items: center;
            gap: 10px;
            font-size: 0.98rem;
            font-weight: 600;
            color: #ffffff;
            font-style: italic;
            margin-bottom: 28px;
        }

        .galesong-author-bar {
            color: #facc15;
            font-size: 1.4rem;
            font-weight: 800;
            line-height: 1;
        }

        .galesong-author-name {
            color: rgba(255, 255, 255, 0.95);
        }

        .hero-galesong-actions {
            display: flex;
            flex-wrap: wrap;
            gap: 12px;
        }

        .btn-galesong-action {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            padding: 10px 22px;
            font-size: 0.88rem;
            font-weight: 600;
            border-radius: var(--border-radius-full);
            text-decoration: none;
            transition: all 0.25s ease;
        }

        .btn-galesong-primary {
            background: #ffffff;
            color: #14532d !important;
            box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
        }

        .btn-galesong-primary:hover {
            background: #fef08a;
            color: #0f3d20 !important;
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
        }

        .btn-galesong-outline {
            background: rgba(255, 255, 255, 0.12);
            color: #ffffff !important;
            border: 1.5px solid rgba(255, 255, 255, 0.35);
            backdrop-filter: blur(6px);
            -webkit-backdrop-filter: blur(6px);
        }

        .btn-galesong-outline:hover {
            background: rgba(255, 255, 255, 0.24);
            border-color: #ffffff;
            color: #ffffff !important;
            transform: translateY(-2px);
        }

        .btn-galesong-ghost {
            background: transparent;
            color: #ffffff !important;
            border: 1.5px solid rgba(255, 255, 255, 0.2);
        }

        .btn-galesong-ghost:hover {
            background: rgba(255, 255, 255, 0.15);
            border-color: #facc15;
            color: #facc15 !important;
            transform: translateY(-2px);
        }

        /* Right Kades Showcase */
        .hero-galesong-right {
            flex: 0 0 340px;
            display: flex;
            justify-content: center;
            align-items: center;
            align-self: center;
            padding-bottom: 20px;
        }

        .kades-showcase {
            position: relative;
            display: flex;
            flex-direction: column;
            align-items: center;
            text-align: center;
        }

        .kades-aura-glow {
            position: absolute;
            width: 260px;
            height: 260px;
            border-radius: 50%;
            background: radial-gradient(circle, rgba(250, 204, 21, 0.25) 0%, rgba(22, 101, 52, 0.15) 60%, transparent 70%);
            bottom: 40px;
            filter: blur(20px);
            pointer-events: none;
            z-index: 1;
        }

        .kades-showcase-img {
            width: auto;
            max-width: 290px;
            max-height: 380px;
            object-fit: cover;
            border-radius: 20px;
            border: 3px solid rgba(250, 204, 21, 0.45);
            box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45);
            position: relative;
            z-index: 2;
            display: block;
            margin-bottom: 0;
        }

        .kades-signature-tag {
            position: relative;
            z-index: 3;
            margin-top: -24px;
            background: rgba(5, 36, 21, 0.94);
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
            border: 1.5px solid rgba(250, 204, 21, 0.5);
            padding: 8px 24px;
            border-radius: 14px;
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
            text-align: center;
            min-width: 220px;
        }

        .kades-tag-name {
            font-family: 'Dancing Script', cursive;
            font-size: 1.8rem;
            font-weight: 700;
            color: #fef08a;
            line-height: 1.15;
            margin-bottom: 2px;
            text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
            letter-spacing: 0.02em;
        }

        .kades-tag-role {
            font-size: 0.76rem;
            font-weight: 600;
            color: #ffffff;
            text-transform: uppercase;
            letter-spacing: 0.08em;
            opacity: 0.92;
        }

        .feature-chip-sep {
            width: 4px;
            height: 4px;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.4);
        }

        /* Main Section Header */
        .main-content-container {
            padding-top: 55px;
            padding-bottom: 75px;
        }

        .section-intro {
            text-align: center;
            max-width: 660px;
            margin: 0 auto 42px;
        }

        .section-badge-tag {
            display: inline-block;
            background: var(--color-primary-subtle);
            color: var(--color-primary-dark);
            font-size: 0.78rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.06em;
            padding: 4px 14px;
            border-radius: var(--border-radius-full);
            border: 1px solid var(--color-primary-border);
            margin-bottom: 12px;
        }

        .section-title-modern {
            font-size: clamp(1.65rem, 3.2vw, 2.15rem);
            font-weight: 800;
            color: var(--color-text);
            margin-bottom: 12px;
            letter-spacing: -0.02em;
            line-height: 1.25;
        }

        .section-desc-modern {
            font-size: 0.98rem;
            color: var(--color-text-muted);
            line-height: 1.6;
            margin: 0;
        }
        
        /* Dashboard Quick Info Grid */
        .quick-info-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 28px;
            margin-bottom: 40px;
            align-items: stretch;
        }

        .info-card {
            background-color: var(--color-surface);
            border-radius: var(--border-radius-xl);
            border: 1px solid var(--color-border);
            box-shadow: var(--shadow-soft);
            padding: 26px;
            display: flex;
            flex-direction: column;
            transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
            position: relative;
        }

        .info-card:hover {
            transform: translateY(-5px);
            box-shadow: var(--shadow-hover);
            border-color: var(--color-primary-border);
        }

        .card-header-clean {
            display: flex;
            align-items: center;
            gap: 14px;
            padding-bottom: 18px;
            margin-bottom: 20px;
            border-bottom: 1px solid var(--color-border-subtle);
        }

        .card-icon-badge {
            width: 48px;
            height: 48px;
            border-radius: var(--border-radius-md);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.25rem;
            flex-shrink: 0;
        }

        .bg-icon-emerald {
            background: #ecfdf5;
            color: #15803d;
            border: 1px solid #bbf7d0;
        }

        .bg-icon-teal {
            background: #f0fdfa;
            color: #0d9488;
            border: 1px solid #99f6e4;
        }

        .bg-icon-forest {
            background: #f0fdf4;
            color: #166534;
            border: 1px solid #bbf7d0;
        }

        .card-header-text h3 {
            font-size: 1.15rem;
            font-weight: 700;
            color: var(--color-text);
            margin: 0;
            line-height: 1.3;
        }

        .card-header-text span {
            font-size: 0.78rem;
            color: var(--color-text-muted);
            display: block;
            margin-top: 2px;
        }

        /* News List in Card */
        .news-list {
            display: flex;
            flex-direction: column;
            gap: 14px;
            flex: 1;
            margin-bottom: 22px;
        }

        .news-list .article {
            display: flex;
            align-items: center;
            gap: 14px;
            padding: 10px;
            border-radius: var(--border-radius-md);
            border: 1px solid transparent;
            background-color: var(--color-surface);
            cursor: pointer;
            transition: all 0.25s ease;
        }
        
        .news-list .article:hover {
            background-color: var(--color-primary-subtle);
            border-color: var(--color-primary-border);
            transform: translateX(4px);
        }

        .article-thumb-wrapper {
            width: 68px;
            height: 68px;
            border-radius: var(--border-radius-sm);
            overflow: hidden;
            flex-shrink: 0;
            background-color: var(--color-border);
        }

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

        .news-list .article:hover .article-thumb {
            transform: scale(1.08);
        }

        .article-info-wrapper {
            flex: 1;
            min-width: 0;
        }

        .article-info-wrapper h4 {
            font-size: 0.92rem;
            font-weight: 600;
            color: var(--color-text);
            margin: 0 0 6px;
            line-height: 1.35;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
            transition: color 0.2s ease;
        }

        .news-list .article:hover h4 {
            color: var(--color-primary-dark);
        }
        
        .article-date {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            font-size: 0.78rem;
            color: var(--color-text-muted);
            font-weight: 500;
        }

        .article-date i {
            color: var(--color-primary);
            font-size: 0.8rem;
        }

        /* Activity List in Card */
        .activity-list {
            list-style: none;
            padding: 0;
            margin: 0 0 22px;
            display: flex;
            flex-direction: column;
            gap: 12px;
            flex: 1;
        }

        .activity-item {
            display: flex;
            align-items: center;
            gap: 14px;
            padding: 10px 12px;
            border-radius: var(--border-radius-md);
            border: 1px solid var(--color-border-subtle);
            background-color: var(--color-surface);
            transition: all 0.25s ease;
        }

        .activity-item:hover {
            background-color: #f0fdfa;
            border-color: #99f6e4;
            transform: translateX(4px);
        }

        .activity-date-chip {
            width: 50px;
            height: 50px;
            border-radius: var(--border-radius-sm);
            background: linear-gradient(135deg, #0d9488, #0f766e);
            color: #ffffff;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
            box-shadow: 0 2px 6px rgba(13, 148, 136, 0.25);
        }

        .chip-day {
            font-size: 1.1rem;
            font-weight: 800;
            line-height: 1;
        }

        .chip-month {
            font-size: 0.65rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.06em;
            line-height: 1;
            margin-top: 3px;
        }

        .activity-details {
            flex: 1;
            min-width: 0;
        }

        .activity-title {
            font-size: 0.92rem;
            font-weight: 600;
            color: var(--color-text);
            margin: 0 0 4px;
            line-height: 1.35;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .activity-time {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            font-size: 0.78rem;
            color: var(--color-text-muted);
            font-weight: 500;
        }

        .activity-time i {
            color: #0d9488;
        }

        /* Village Head Card */
        .village-head-card .village-content {
            display: flex;
            flex-direction: column;
            align-items: center;
            text-align: center;
            flex: 1;
            margin-bottom: 22px;
        }

        .village-avatar-container {
            position: relative;
            margin: 6px auto 14px;
            width: 106px;
            height: 106px;
        }

        .village-avatar {
            width: 106px;
            height: 106px;
            object-fit: cover;
            border-radius: 50%;
            border: 3px solid #ffffff;
            box-shadow: 0 0 0 3px var(--color-primary-border), 0 8px 18px rgba(0, 0, 0, 0.08);
        }

        .village-verified {
            position: absolute;
            bottom: 2px;
            right: 2px;
            width: 24px;
            height: 24px;
            border-radius: 50%;
            background: var(--color-primary);
            color: #ffffff;
            border: 2px solid #ffffff;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.65rem;
            box-shadow: 0 2px 5px rgba(0,0,0,0.15);
        }

        .village-name {
            font-size: 1.22rem;
            font-weight: 700;
            color: var(--color-text);
            margin: 0 0 6px;
            line-height: 1.25;
        }

        .village-position-tag {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            background: var(--color-primary-subtle);
            color: var(--color-primary-dark);
            border: 1px solid var(--color-primary-border);
            font-size: 0.78rem;
            font-weight: 600;
            padding: 4px 12px;
            border-radius: var(--border-radius-full);
            margin-bottom: 14px;
        }

        .village-head-card .duties {
            font-size: 0.86rem;
            color: var(--color-text-muted);
            line-height: 1.55;
            margin-bottom: 16px;
            display: -webkit-box;
            -webkit-line-clamp: 3;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }

        .quote-card {
            background: #f8fafc;
            border: 1px dashed var(--color-border);
            border-radius: var(--border-radius-md);
            padding: 12px 14px;
            position: relative;
            margin-top: auto;
            width: 100%;
        }

        .quote-mark {
            color: var(--color-primary);
            opacity: 0.4;
            font-size: 0.85rem;
            margin-bottom: 4px;
            display: block;
        }

        .quote-text {
            font-size: 0.8rem;
            font-style: italic;
            color: var(--color-text-body);
            line-height: 1.45;
            margin: 0;
        }

        /* Unified Card Action Button */
        .btn-card-action {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            width: 100%;
            padding: 11px 16px;
            border-radius: var(--border-radius-md);
            background-color: var(--color-primary-subtle);
            color: var(--color-primary-dark);
            font-size: 0.88rem;
            font-weight: 600;
            text-decoration: none;
            border: 1px solid var(--color-primary-border);
            transition: all 0.25s ease;
            margin-top: auto;
        }

        .btn-card-action i {
            font-size: 0.82rem;
            transition: transform 0.25s ease;
        }

        .btn-card-action:hover {
            background-color: var(--color-primary);
            color: #ffffff;
            border-color: var(--color-primary);
            box-shadow: 0 4px 14px rgba(21, 128, 61, 0.25);
        }

        .btn-card-action:hover i {
            transform: translateX(4px);
            color: #ffffff;
        }

        /* Empty State */
        .empty-state-card {
            padding: 28px 16px;
            text-align: center;
            color: var(--color-text-muted);
            font-size: 0.86rem;
            flex: 1;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
        }

        .empty-state-card i {
            font-size: 2rem;
            opacity: 0.35;
            margin-bottom: 10px;
            color: var(--color-primary);
        }

        /* News Grid (Used for News Page) */
        .news-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 30px;
        }
        
        .news-item img {
            width: 100%;
            height: 200px;
            object-fit: cover;
            border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
            margin-bottom: 15px;
        }
        
        .news-item .content {
            padding: 0 15px 15px;
        }

        .news-item .category {
            display: inline-block;
            background-color: var(--color-secondary);
            color: var(--color-primary-dark);
            padding: 3px 8px;
            border-radius: 4px;
            font-size: 0.8rem;
            font-weight: 500;
            margin-bottom: 10px;
        }
        
        .news-item h4 {
            font-size: 1.2rem;
            font-weight: 600;
            margin-bottom: 8px;
        }
        
        .news-item p {
            font-size: 0.9rem;
            color: var(--color-text-light);
            margin-bottom: 15px;
        }
        
        .news-item span {
            font-size: 0.8rem;
            color: var(--color-text-light);
        }

        /* Filtering and Search */
        .filter-bar {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 30px;
        }

        .search-bar input, .filter-bar select {
            padding: 10px 15px;
            border: 1px solid #ddd;
            border-radius: 8px;
            font-family: inherit;
        }

        /* News Detail Page */
        #news-detail-page img {
            width: 100%;
            max-height: 400px;
            object-fit: cover;
            border-radius: var(--border-radius-lg);
            margin-bottom: 20px;
        }

        #news-detail-page h1 {
            font-size: 2rem;
            margin-bottom: 10px;
        }

        #news-detail-page .meta {
            color: var(--color-text-light);
            margin-bottom: 20px;
        }

        /* Agenda List */
        .agenda-list li {
            list-style: none;
            background-color: var(--color-white);
            border-radius: var(--border-radius-lg);
            box-shadow: var(--shadow-soft);
            padding: 20px;
            margin-bottom: 15px;
            display: flex;
            align-items: center;
            transition: transform 0.2s;
        }

        .agenda-list li:hover {
            transform: translateY(-3px);
            box-shadow: var(--shadow-md);
        }

        .agenda-list .icon {
            font-size: 2rem;
            color: var(--color-primary);
            margin-right: 20px;
        }

        .agenda-list .details h4 {
            margin-bottom: 5px;
            font-size: 1.2rem;
        }

        .agenda-list .details span {
            color: var(--color-text-light);
            font-size: 0.9rem;
        }
        
        /* Gallery Albums */
        .album-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 20px;
        }
        
        .album-card {
            text-align: center;
            cursor: pointer;
            transition: transform 0.2s;
            overflow: hidden;
            padding: 0;
        }

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

        .album-card img {
            width: 100%;
            height: 200px;
            object-fit: cover;
            display: block;
            border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
        }
        
        .album-card .album-name {
            padding: 15px 10px;
            font-weight: 600;
            font-size: 1.1rem;
        }

        /* Gallery Photos (Detail) */
        .photo-gallery {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 15px;
        }
        
        .photo-gallery img {
            width: 100%;
            height: 200px;
            object-fit: cover;
            border-radius: 8px;
            cursor: pointer;
            transition: transform 0.2s;
        }

        .photo-gallery img:hover {
            transform: scale(1.03);
        }

        /* Village Government Grid */
        .gov-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 30px;
        }
        
        .official-card {
            text-align: center;
            padding: 30px;
            box-shadow: var(--shadow-soft);
        }

        .official-card img {
            width: 150px;
            height: 150px;
            object-fit: cover;
            border-radius: 50%;
            margin-bottom: 15px;
            border: 5px solid var(--color-secondary);
        }

        .official-card h4 {
            font-size: 1.3rem;
            margin-bottom: 5px;
        }

        .official-card .position {
            font-size: 1rem;
            color: var(--color-primary-dark);
            font-weight: 500;
            margin-bottom: 10px;
        }

        .official-card .duties {
            font-size: 0.9rem;
            color: var(--color-text-light);
            font-style: italic;
        }

        /* Forms (Complaints and Services) */
        .form-group {
            margin-bottom: 20px;
        }

        .form-group label {
            display: block;
            margin-bottom: 5px;
            font-weight: 500;
        }

        .form-group input, .form-group textarea, .form-group select {
            width: 100%;
            padding: 12px;
            border: 1px solid #ddd;
            border-radius: 8px;
            font-family: inherit;
            transition: border-color 0.2s;
        }

        .form-group input:focus, .form-group textarea:focus, .form-group select:focus {
            border-color: var(--color-primary);
            outline: none;
        }

        .checkbox-group {
            display: flex;
            align-items: center;
        }

        .checkbox-group input {
            width: auto;
            margin-right: 10px;
        }

        /* Complaints Section */
        .status-badge {
            display: inline-block;
            padding: 5px 10px;
            border-radius: 4px;
            color: var(--color-white);
            font-weight: 500;
            font-size: 0.9rem;
        }

        .status-in-process { background-color: var(--color-primary); } /* Green */
        .status-rejected { background-color: #f44336; } /* Red */
        .status-completed { background-color: #2196F3; } /* Blue */

        .complaint-history .card {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 15px 20px;
            margin-bottom: 10px;
            cursor: pointer;
        }

        .complaint-history .card h4 {
            margin: 0;
            font-size: 1.1rem;
        }

        /* Services Menu */
        .service-menu-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 20px;
        }
        
        .service-card {
            text-align: center;
            padding: 30px 15px;
            cursor: pointer;
            transition: background-color 0.2s;
        }

        .service-card:hover {
            background-color: var(--color-secondary);
            box-shadow: var(--shadow-md);
        }

        .service-card i {
            font-size: 3rem;
            color: var(--color-primary-dark);
            margin-bottom: 10px;
        }

        .service-card h4 {
            font-size: 1.1rem;
            line-height: 1.3;
        }

        /* Profile Page */
        .profile-layout {
            display: flex;
            gap: 30px;
        }
        
        .profile-avatar {
            text-align: center;
            flex: 0 0 250px;
            padding: 30px;
        }

        .profile-avatar img {
            width: 150px;
            height: 150px;
            object-fit: cover;
            border-radius: 50%;
            border: 5px solid var(--color-secondary);
            margin-bottom: 15px;
        }

        .profile-details {
            flex-grow: 1;
            padding: 30px;
        }

        .profile-details p {
            margin-bottom: 10px;
            border-bottom: 1px dashed #eee;
            padding-bottom: 8px;
        }

        .profile-details strong {
            display: inline-block;
            width: 80px;
            color: var(--color-primary-dark);
        }

        .profile-buttons {
            margin-top: 30px;
            display: flex;
            gap: 15px;
            flex-wrap: wrap;
        }
        
        /* Auth Pages (Login/Register) */
        .auth-page {
            min-height: calc(100vh - 120px); /* Adjust based on header/footer height */
            display: flex;
            justify-content: center;
            align-items: center;
            background: linear-gradient(135deg, var(--color-secondary) 10%, var(--color-bg-light) 90%);
        }
        
        .auth-container {
            width: 90%;
            max-width: 400px;
            padding: 40px;
            text-align: center;
        }

        .auth-wrapper {
            display: flex;
            justify-content: center;
            align-items: center;
            min-height: 90vh;
        }
        .auth-container .logo {
            justify-content: center;
            margin-bottom: 30px;
        }
        
        .auth-container h2 {
            margin-bottom: 25px;
        }

        /* ==================================================
           Modern Footer
           ================================================== */
        .footer {
            background: linear-gradient(180deg, #14532d 0%, #052e16 100%);
            color: var(--color-white);
            padding: 65px 0 25px;
            border-top: 4px solid var(--color-primary);
            position: relative;
        }

        .footer-container {
            width: 92%;
            max-width: 1240px;
            margin: 0 auto;
        }
        
        .footer-grid {
            display: grid;
            grid-template-columns: 2.2fr 1.2fr 1.8fr 1.6fr;
            gap: 36px;
            align-items: start;
            margin-bottom: 45px;
        }

        .footer-col-brand {
            padding-right: 15px;
        }
        
        .footer-logo {
            display: flex;
            align-items: center;
            gap: 12px;
            margin-bottom: 16px;
        }
        
        .footer-logo-img {
            width: 44px;
            height: 44px;
            object-fit: contain;
            filter: drop-shadow(0 2px 4px rgba(0,0,0,0.15));
        }

        .footer-logo-text h4 {
            font-size: 1.2rem;
            font-weight: 800;
            color: #ffffff;
            margin: 0 0 2px;
            letter-spacing: -0.01em;
            line-height: 1.2;
        }

        .footer-logo-text span {
            font-size: 0.72rem;
            font-weight: 500;
            color: #86efac;
            text-transform: uppercase;
            letter-spacing: 0.05em;
        }
        
        .footer-desc {
            font-size: 0.88rem;
            color: #cbd5e1;
            line-height: 1.65;
            margin-bottom: 22px;
            text-align: left;
        }

        .footer-social-wrap {
            display: flex;
            flex-direction: column;
            gap: 10px;
        }

        .social-title {
            font-size: 0.78rem;
            color: #94a3b8;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.04em;
        }
        
        .social-links {
            display: flex;
            gap: 10px;
        }
        
        .social-btn {
            width: 38px;
            height: 38px;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.08);
            border: 1px solid rgba(255, 255, 255, 0.16);
            color: #ffffff !important;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            font-size: 0.9rem;
            transition: all 0.25s ease;
        }
        
        .social-btn:hover {
            background: var(--color-primary-light);
            color: #ffffff !important;
            transform: translateY(-3px);
            box-shadow: 0 6px 16px rgba(34, 197, 94, 0.35);
            border-color: transparent;
        }

        .footer-heading {
            font-size: 1.05rem;
            font-weight: 700;
            color: #ffffff;
            margin-bottom: 20px;
            position: relative;
            padding-bottom: 10px;
            letter-spacing: -0.01em;
        }

        .footer-heading::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 28px;
            height: 2.5px;
            background: var(--color-primary-light);
            border-radius: 2px;
        }
        
        .footer-links {
            list-style: none;
            padding: 0;
            margin: 0;
            display: flex;
            flex-direction: column;
            gap: 10px;
        }
        
        .footer-links a {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            color: #cbd5e1;
            font-size: 0.88rem;
            text-decoration: none;
            transition: all 0.2s ease;
        }

        .footer-links a i {
            font-size: 0.65rem;
            color: #86efac;
            transition: transform 0.2s ease;
        }
        
        .footer-links a:hover {
            color: #ffffff;
            transform: translateX(4px);
        }

        .footer-links a:hover i {
            color: #ffffff;
            transform: translateX(2px);
        }

        /* Footer Contacts */
        .footer-contact-list {
            display: flex;
            flex-direction: column;
            gap: 14px;
        }

        .contact-item {
            display: flex;
            align-items: flex-start;
            gap: 12px;
        }

        .contact-icon {
            width: 34px;
            height: 34px;
            border-radius: var(--border-radius-sm);
            background: rgba(255, 255, 255, 0.08);
            border: 1px solid rgba(255, 255, 255, 0.14);
            color: #86efac;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.85rem;
            flex-shrink: 0;
            margin-top: 2px;
        }

        .contact-text strong {
            display: block;
            font-size: 0.76rem;
            color: #86efac;
            text-transform: uppercase;
            letter-spacing: 0.04em;
            margin-bottom: 2px;
        }

        .contact-text p {
            font-size: 0.86rem;
            color: #cbd5e1;
            margin: 0;
            line-height: 1.45;
        }

        /* Footer Maps */
        .footer-map-card {
            border-radius: var(--border-radius-md);
            overflow: hidden;
            border: 2px solid rgba(255, 255, 255, 0.12);
            box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
            background: rgba(0,0,0,0.2);
        }

        .footer-map-placeholder {
            height: 150px;
            border-radius: var(--border-radius-md);
            background: rgba(255, 255, 255, 0.05);
            border: 1px dashed rgba(255, 255, 255, 0.18);
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            color: #94a3b8;
            font-size: 0.84rem;
            gap: 8px;
        }

        .footer-map-placeholder i {
            font-size: 1.6rem;
            color: #86efac;
        }

        /* Footer Bottom Bar */
        .footer-bottom {
            border-top: 1px solid rgba(255, 255, 255, 0.12);
            padding-top: 22px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            font-size: 0.84rem;
            color: #94a3b8;
            flex-wrap: wrap;
            gap: 12px;
        }

        .footer-bottom strong {
            color: #ffffff;
        }

        .footer-bottom-badge {
            display: inline-flex;
            align-items: center;
            gap: 7px;
            color: #86efac;
            font-size: 0.8rem;
            background: rgba(255, 255, 255, 0.06);
            padding: 4px 14px;
            border-radius: var(--border-radius-full);
            border: 1px solid rgba(255, 255, 255, 0.1);
        }

        /* ==================================================
           Modern Responsive Design
           ================================================== */
        @media (max-width: 1024px) {
            .quick-info-grid {
                grid-template-columns: repeat(2, 1fr);
                gap: 24px;
            }

            .village-head-card {
                grid-column: span 2;
                max-width: 540px;
                margin-left: auto;
                margin-right: auto;
                width: 100%;
            }

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

        @media (max-width: 768px) {
            .header-container {
                position: relative;
            }

            .navbar {
                padding: 10px 0;
            }

            .menu-toggle {
                display: flex;
            }

            .nav-links {
                display: none;
                flex-direction: column;
                position: absolute;
                top: 100%;
                left: 0;
                width: 100%;
                background-color: #ffffff;
                border-bottom: 3px solid var(--color-primary);
                box-shadow: var(--shadow-lg);
                padding: 16px 20px 24px;
                gap: 6px;
                z-index: 1050;
            }

            .nav-links.active {
                display: flex;
                animation: navSlideDown 0.25s ease;
            }

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

            .nav-links > li {
                width: 100%;
                margin: 0;
            }

            .nav-item-link,
            .nav-links > li > a {
                width: 100%;
                padding: 11px 16px;
                border-radius: var(--border-radius-md);
                justify-content: flex-start;
            }

            .dropdown {
                width: 100%;
            }

            .dropdown-toggle {
                justify-content: space-between;
                width: 100%;
            }

            .dropdown-menu {
                position: static;
                transform: none !important;
                box-shadow: none;
                border: 1px solid var(--color-border);
                border-radius: var(--border-radius-md);
                margin: 6px 0 10px 14px;
                width: calc(100% - 14px);
                min-width: unset;
                display: flex;
            }

            .nav-item-btn {
                width: 100%;
                margin-top: 8px;
            }

            .btn-login {
                width: 100%;
                justify-content: center;
                margin-left: 0;
                padding: 12px;
            }

            /* Hero Galesong Responsive */
            .hero-galesong {
                padding: 45px 0 0;
            }

            .hero-galesong-container {
                flex-direction: column;
                align-items: center;
                text-align: center;
                gap: 24px;
            }

            .hero-galesong-left {
                max-width: 100%;
                text-align: center;
                padding-bottom: 0;
            }

            .hero-galesong-title {
                font-size: 2rem;
            }

            .hero-galesong-quote {
                font-size: 0.88rem;
                margin-left: auto;
                margin-right: auto;
            }

            .hero-galesong-author {
                justify-content: center;
            }

            .hero-galesong-actions {
                flex-direction: column;
                width: 100%;
                max-width: 320px;
                margin: 0 auto 20px;
                gap: 10px;
            }

            .btn-galesong-action {
                width: 100%;
                justify-content: center;
            }

            .hero-galesong-right {
                align-self: center;
                margin-top: 10px;
            }

            .kades-showcase-img {
                max-height: 280px;
                max-width: 240px;
            }

            .kades-tag-name {
                font-size: 1.45rem;
            }

            .main-content-container {
                padding-top: 40px;
                padding-bottom: 50px;
            }

            .section-intro {
                margin-bottom: 28px;
            }

            .quick-info-grid {
                grid-template-columns: 1fr;
                gap: 20px;
            }

            .village-head-card {
                grid-column: auto;
                max-width: 100%;
            }

            .footer {
                padding: 45px 0 20px;
            }

            .footer-grid {
                grid-template-columns: 1fr;
                gap: 28px;
                margin-bottom: 30px;
            }

            .footer-bottom {
                flex-direction: column;
                text-align: center;
                gap: 10px;
            }
        }


  .dashboard-container {
    max-width: 1300px;
    margin: auto;
    padding: 30px;
  }

  .stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
  }

  .stat-card {
    padding: 22px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.06);
    transition: .25s;
  }
  .stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.12);
  }

  .stat-title {
    font-size: 15px;
    color: #64748b;
    margin-bottom: 6px;
  }

  .stat-value {
    font-size: 28px;
    font-weight: 700;
    color: #0f172a;
  }

  .chart-layout {
    display: flex;
    gap: 22px;
    margin-top: 20px;
  }

  .chart-card {
    flex: 1;
    background: #fff;
    border-radius: 14px;
    padding: 25px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.06);
  }

  .filter-card {
    width: 300px;
    background: #fff;
    border-radius: 14px;
    padding: 20px;
    height: fit-content;
    box-shadow: 0 6px 18px rgba(0,0,0,0.06);
  }

  @media(max-width: 992px){
    .chart-layout { flex-direction: column; }
    .filter-card { width: 100%; }
  }


  .table-card {
    background: #ffffff;
    padding: 25px;
    border-radius: 12px;
    margin-top: 40px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.06);
}

.table-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
}

.table-penduduk {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 8px;
}

.table-penduduk thead th {
    background: #16a34a;
    color: #fff;
    font-weight: 600;
    text-align: left;
    padding: 12px 14px;
    border-radius: 6px;
}

.table-penduduk tbody tr {
    background: #ffffff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.table-penduduk tbody td {
    padding: 12px 14px;
    border: none !important;
    font-size: 15px;
}

.table-penduduk tbody tr:hover {
    background: #f0fdf4; /* warna hijau muda */
    transition: .2s;
}

.filter-bar {
    width: 100%;
    display: flex;
    justify-content: flex-end;
    padding: 10px 0;
    margin-bottom: 15px;
}

.search-bar {
    position: relative;
}

.search-bar input {
    width: 250px;
    padding: 10px 14px;
    padding-left: 40px;
    border-radius: 8px;
    border: 1px solid #ddd;
    font-size: 14px;
    background: #fff;
    outline: none;
    transition: all .2s ease-in-out;
}

.search-bar input:focus {
    border-color: #007bff;
    box-shadow: 0 0 5px rgba(0, 123, 255, .3);
}

.search-bar::before {
    content: "\f002";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    color: #888;
}

.gallery-item {
    cursor: pointer;
    transition: transform 0.3s ease;
    overflow: hidden;
    border-radius: 10px;
    position: relative;
    background: #f8f9fa;
}

.gallery-item:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 26px -4px rgba(20, 20, 20, 0.15);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

/* .gallery-item::after {
    content: '\f002';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2rem;
    color: #fff;
    opacity: 0;
    transition: opacity 0.3s ease;
} */

.gallery-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0);
    transition: background 0.3s ease;
    z-index: 1;
}

.gallery-item:hover::before {
    background: rgba(0, 0, 0, 0.4);
}

/* .gallery-item:hover::after {
    opacity: 1;
    z-index: 2;
} */

.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
}

.lightbox.active {
    display: flex;
    justify-content: center;
    align-items: center;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

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

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10000;
    transition: color 0.3s ease;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-close:hover {
    color: #ff4444;
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
    padding: 15px 20px;
    user-select: none;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 5px;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-counter {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    background: rgba(0, 0, 0, 0.7);
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 14px;
    backdrop-filter: blur(5px);
}

.breadcrumb {
    background: transparent;
    padding: 0;
}

.breadcrumb-item a {
    color: #344767;
    text-decoration: none;
}

.breadcrumb-item a:hover {
    color: #2ca8ff;
}

.breadcrumb-item.active {
    color: #67748e;
}

.gallery-title {
    /* background: #fff; */
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.875rem;
    margin-top: 8px;
    display: block;
    text-align: center;
    color: #344767;
}

@media (max-width: 768px) {

    .lightbox-prev,
    .lightbox-next {
        font-size: 24px;
        padding: 10px 15px;
    }

    .lightbox-close {
        top: 10px;
        right: 10px;
        font-size: 30px;
    }

}

.gallery-item img {
    height: 200px;
}

.gallery-header {
    margin-bottom: 24px;
}

.gallery-header h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 4px;
    color: #111;
}

.gallery-header p {
    font-size: 14px;
    color: #6c757d;
    margin: 0;
}

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

.gallery-item img {
    height: 230px;
    border-radius: 12px;
}

/* .gallery-header h2::after {
            content: '';
            display: block;
            width: 100%;
            height: 2px;
            background: #5cb85c;
            margin-top: 8px;
        } */

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

.breadcrumb-item {
    display: flex;
    align-items: center;
    font-size: 14px;
    margin-top: 15px;
}

.breadcrumb-item+.breadcrumb-item::before {
    content: "/";
    margin: 0 6px;
    color: #999;
}

.breadcrumb-item a {
    display: flex;
    align-items: center;
    gap: 4px;
    text-decoration: none;
}

.breadcrumb-item a:hover {
    color: #1a73e8;

}

.breadcrumb-item.active {
    color: #555;
    font-weight: 500;
}

/* 
tampilan card statistik */
/* =========================
   CARD STATISTIK
========================= */

.stats-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:20px;
    margin-bottom:30px;
}

/* ======================
   CARD STATISTIK
====================== */

.stat-card{
    position:relative;
    overflow:hidden;

    background:#ffffff;
    border-radius:20px;
    

    padding:25px 30px;

    display:flex;
    align-items:center;
    gap:18px;

    min-height:130px;

    box-shadow:0 8px 25px rgba(0,0,0,.08);

    transition:.3s ease;
    
}

.stat-card:hover{
    transform:translateY(-4px);
}

/* ======================
   GELOMBANG
====================== */

.kk-card::after,
.male-card::after,
.female-card::after{
    content:'';
    position:absolute;

    width:260px;
    height:140px;

    right:-90px;
    bottom:-85px;

    border-radius:50%;

    z-index:1;
    
}

.kk-card::after{
    content:'';
    position:absolute;

    width:260px;
    height:270px;

    background:linear-gradient(
        135deg,
        #60a5fa,
        #dbeafe
    );


    right:-100px;
    bottom:-120px;


    opacity:.3;
}
.male-card::after{
    content:'';
    position:absolute;

    width:260px;
    height:270px;

    background:linear-gradient(
        135deg,
        #83eca8,
        #dbeafe
    );


    right:-100px;
    bottom:-120px;


    opacity:.3;
}

.female-card::after{
    content:'';
    position:absolute;

    width:260px;
    height:270px;

    background:linear-gradient(
        135deg,
        #ebb5d4,
        #dbeafe
    );


    right:-100px;
    bottom:-120px;


    opacity:.3;
}

/* ======================
   ICON
====================== */

.stat-icon{
    width:60px;
    height:60px;

    border-radius:50%;

    display:flex;
    justify-content:center;
    align-items:center;

    font-size:26px;

    flex-shrink:0;

    position:relative;
    z-index:2;
}

.kk-card .stat-icon{
    background:#e0f2fe;
}

.male-card .stat-icon{
    background:#dcfce7;
}

.female-card .stat-icon{
    background:#fce7f3;
}

/* ======================
   TEXT
====================== */

.stat-content{
    position:relative;
    z-index:2;
}

.stat-title{
    margin:0;
    font-size:13px;
    color:#64748b;
    font-weight:500;
}

.stat-value{
    margin-top:8px;
    font-size:42px;
    font-weight:700;
    line-height:1;
    color:#0f172a;
}

/* ======================
   BOOTSTRAP CARD
====================== */

.card{
    border-radius:20px !important;
}

.card-body{
    padding:25px !important;
}

/* ======================
   RESPONSIVE
====================== */

@media(max-width:992px){

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

} 

.total-penduduk-card{
    display:flex;
    align-items:center;
    gap:8px;

    background:#eef2ff;

    color:#4338ca;

    padding:10px 15px;

    border-radius:12px;

    font-weight:600;
}

/* ======================
   STATISTIK AGAMA
====================== */
.stat-card::after{
    content:'';
    position:absolute;

    width:260px;
    height:270px;

    right:-100px;
    bottom:-120px;

    border-radius:50%;

    opacity:.30;

    z-index:1;
}


.islam-card::after{
    background:linear-gradient(
        135deg,
        #4ade80,
        #dcfce7
    );
}

.kristen-card::after{
    background:linear-gradient(
        135deg,
        #60a5fa,
        #dbeafe
    );
}

.hindu-card::after{
    background:linear-gradient(
        135deg,
        #facc15,
        #fef9c3
    );
}

.budha-card::after{
    background:linear-gradient(
        135deg,
        #fb923c,
        #ffedd5
    );
}

.katolik-card::after{
    background:linear-gradient(
        135deg,
        #a78bfa,
        #ede9fe
    );
}

.konghucu-card::after{
    background:linear-gradient(
        135deg,
        #f472b6,
        #fce7f3
    );
}


.islam-card .stat-icon{
    background:#dcfce7;
}

.kristen-card .stat-icon{
    background:#dbeafe;
}

.hindu-card .stat-icon{
    background:#fef9c3;
}

.budha-card .stat-icon{
    background:#ffedd5;
}

.katolik-card .stat-icon{
    background:#ede9fe;
}

.konghucu-card .stat-icon{
    background:#fce7f3;
}

/* ======================
   STATISTIK PEKERJAAN
====================== */

.stats-grid .stat-card:nth-child(1)::after{
    background: linear-gradient(135deg,#4ade80,#dcfce7);
}

.stats-grid .stat-card:nth-child(2)::after{
    background: linear-gradient(135deg,#facc15,#fef9c3);
}

.stats-grid .stat-card:nth-child(3)::after{
    background: linear-gradient(135deg,#60a5fa,#dbeafe);
}

.stats-grid .stat-card:nth-child(4)::after{
    background: linear-gradient(135deg,#f87171,#fee2e2);
}

.stats-grid .stat-card:nth-child(5)::after{
    background: linear-gradient(135deg,#a78bfa,#ede9fe);
}

.stats-grid .stat-card:nth-child(6)::after{
    background: linear-gradient(135deg,#fb7185,#ffe4e6);
}

.stats-grid .stat-card:nth-child(1) .stat-icon{
    background:#dcfce7;
}

.stats-grid .stat-card:nth-child(2) .stat-icon{
    background:#fef9c3;
}

.stats-grid .stat-card:nth-child(3) .stat-icon{
    background:#dbeafe;
}

.stats-grid .stat-card:nth-child(4) .stat-icon{
    background:#fee2e2;
}

.stats-grid .stat-card:nth-child(5) .stat-icon{
    background:#ede9fe;
}

.stats-grid .stat-card:nth-child(6) .stat-icon{
    background:#ffe4e6;
}

/* ======================
   STATISTIK PENDIDIKAN
====================== */

/* WARNA BLOB */

.tidak-sekolah-card::after{
    background:linear-gradient(
        135deg,
        #ef4444,
        #fee2e2
    );
}

.sd-card::after{
    background:linear-gradient(
        135deg,
        #22c55e,
        #dcfce7
    );
}

.smp-card::after{
    background:linear-gradient(
        135deg,
        #3b82f6,
        #dbeafe
    );
}

.sma-card::after{
    background:linear-gradient(
        135deg,
        #eab308,
        #fef9c3
    );
}

.diploma-card::after{
    background:linear-gradient(
        135deg,
        #8b5cf6,
        #ede9fe
    );
}

/* WARNA ICON */

.tidak-sekolah-card .stat-icon{
    background:#fee2e2;
}

.sd-card .stat-icon{
    background:#dcfce7;
}

.smp-card .stat-icon{
    background:#dbeafe;
}

.sma-card .stat-icon{
    background:#fef9c3;
}

.diploma-card .stat-icon{
    background:#ede9fe;
}


/* ikon gambar */

.gallery-card__meta i{
    color:#a1a7a4;
    font-size:18px;
}

/* =========================
   HEADER GALERI
========================= */

.gallery-header{
    margin-bottom:35px;
}

.gallery-breadcrumb{
    margin-bottom:15px;
    color:#64748b;
}

.gallery-breadcrumb a{
    color:#16a34a;
    text-decoration:none;
}

.gallery-page-title{
    margin:0;
    font-size:48px;
    font-weight:700;
    color:#0f172a;
}

.gallery-page-title i{
    color:#16a34a;
    margin-right:10px;
}

.gallery-page-desc{
    margin-top:10px;
    color:#64748b;
    font-size:18px;
}

/* =========================
   WRAPPER
========================= */

.gallery-wrapper{
    background:#fff;
    border-radius:24px;
    padding:35px;
    box-shadow:0 10px 30px rgba(0,0,0,.06);
}

.gallery-wrapper-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:30px;
}

.gallery-wrapper-header h3{
    margin:0;
    font-size:28px;
    font-weight:700;
}

.gallery-badge{
    background:#ecfdf5;
    color:#16a34a;

    padding:10px 18px;

    border-radius:12px;

    font-size:14px;
    font-weight:600;
}

/* ICON FOTO */

.gallery-card__meta i{
    color:#b7bdb9;
}
/* 
PENGAJUAN SURAT */
.dashboard-header h2{
    font-size:42px;
    font-weight:700;
    color:#15803d;
}

.page-desc{
    color:#64748b;
    margin-top:8px;
}

/* ==================================================
   LAYANAN ONLINE DASHBOARD (SURAT & PENGADUAN)
   ================================================== */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e2e8f0;
}

.dashboard-header h2 {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--color-primary);
    margin: 0;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    gap: 10px;
}

.breadcrumb-custom,
.header-right {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.84rem;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 0;
}

.breadcrumb-custom a,
.header-right a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb-custom a:hover,
.header-right a:hover {
    color: var(--color-primary-hover);
    text-decoration: underline;
}

.user-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 22px 26px;
    display: flex;
    align-items: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    margin-bottom: 24px;
    transition: all 0.25s ease;
}

.user-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
}

.user-avatar {
    width: 62px;
    height: 62px;
    border-radius: 18px;
    background: rgba(21, 128, 61, 0.1);
    border: 1.5px solid rgba(21, 128, 61, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.55rem;
    color: var(--color-primary);
    margin-right: 20px;
    flex-shrink: 0;
}

.user-info h4 {
    margin: 0 0 4px;
    font-size: 1.22rem;
    font-weight: 700;
    color: #1e293b;
}

.user-info p {
    margin: 0;
    font-size: 0.88rem;
    color: #64748b;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-logout-modern,
.user-card .btn-danger {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 9px 18px;
    border-radius: 12px;
    transition: all 0.2s ease;
}

.btn-logout-modern:hover,
.user-card .btn-danger:hover {
    background: #dc2626;
    color: #ffffff;
    border-color: #dc2626;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.25);
}

.info-alert {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    padding: 16px 20px;
    border-radius: 14px;
    color: #166534;
    font-size: 0.92rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 2px 10px rgba(21, 128, 61, 0.04);
    margin-bottom: 28px;
}

.info-alert i {
    font-size: 1.2rem;
    color: var(--color-primary);
    flex-shrink: 0;
}

.section-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title i {
    color: var(--color-primary);
    font-size: 1.15rem;
}

.service-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 28px 20px;
    text-align: center;
    height: 100%;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.03);
    transition: all 0.25s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.service-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--color-primary);
    transform: scaleX(0);
    transition: transform 0.25s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: #86efac;
    box-shadow: 0 12px 28px rgba(21, 128, 61, 0.12);
}

.service-card:hover::after {
    transform: scaleX(1);
}

.service-card i {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: rgba(21, 128, 61, 0.08);
    color: var(--color-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.45rem;
    margin-bottom: 16px;
    transition: all 0.25s ease;
}

.service-card:hover i {
    background: var(--color-primary);
    color: #ffffff;
    transform: scale(1.08);
}

.service-card h5 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 8px;
}

.service-card p {
    color: #64748b;
    font-size: 0.85rem;
    margin: 0;
    line-height: 1.45;
}

.history-wrapper {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 32px 26px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.empty-history {
    text-align: center;
    padding: 40px 20px;
}

.empty-history i {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: var(--color-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 16px;
}

.empty-history h5 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 6px;
}

.empty-history p {
    color: #64748b;
    font-size: 0.88rem;
    margin: 0;
}

/* Status badges */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    border-radius: 30px;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: capitalize;
}

.status-menunggu {
    background-color: #fef3c7;
    color: #b45309;
    border: 1px solid #fde68a;
}

.status-proses {
    background-color: #e0f2fe;
    color: #0369a1;
    border: 1px solid #bae6fd;
}

.status-diterima {
    background-color: #dcfce7;
    color: #15803d;
    border: 1px solid #bbf7d0;
}

.status-tolak {
    background-color: #fee2e2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

.history-card-item {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 14px;
    transition: all 0.2s ease;
}

.history-card-item:hover {
    background: #ffffff;
    border-color: #cbd5e1;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
}

.ttd {
    width: 300px;
    margin-left: auto;
    margin-top: 20px;
    text-align: center;
}

/* ==================================================
   PROFIL DESA UNIFIED DESIGN SYSTEM
   ================================================== */

/* 1. Shared Page Hero Header */
.page-hero-header {
    background: linear-gradient(180deg, #f0fdf4 0%, #f8fafc 100%);
    border-bottom: 1px solid var(--color-border);
    padding: 48px 0 38px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-hero-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 180px;
    background: radial-gradient(circle, rgba(34, 197, 94, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.page-hero-header .container {
    position: relative;
    z-index: 2;
    max-width: 900px;
}

.page-hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: var(--color-primary-subtle);
    color: var(--color-primary);
    border: 1px solid var(--color-primary-border);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    padding: 5px 16px;
    border-radius: var(--border-radius-full);
    margin-bottom: 14px;
}

.page-hero-eyebrow i {
    font-size: 0.75rem;
    color: var(--color-primary);
}

.page-hero-title {
    font-size: clamp(2rem, 3.6vw, 2.75rem);
    font-weight: 800;
    color: var(--color-text);
    line-height: 1.2;
    margin: 0 0 12px;
    letter-spacing: -0.02em;
}

.page-hero-desc {
    font-size: 1.02rem;
    color: var(--color-text-muted);
    line-height: 1.65;
    max-width: 640px;
    margin: 0 auto 16px;
}

.page-hero-divider {
    width: 48px;
    height: 3px;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--color-primary), #facc15);
    margin: 0 auto;
}

.page-breadcrumbs {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.84rem;
    color: var(--color-text-light);
    margin-top: 14px;
}

.page-breadcrumbs a {
    color: var(--color-text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.page-breadcrumbs a:hover {
    color: var(--color-primary);
}

.page-breadcrumbs .sep {
    color: var(--color-border);
    font-size: 0.7rem;
}

.page-breadcrumbs .current {
    color: var(--color-primary-dark);
    font-weight: 600;
}

/* 2. Content Layout */
.profile-content-section {
    padding: 48px 0 80px;
    background-color: var(--color-bg);
}

.profile-content-container {
    max-width: 1180px;
    margin: 0 auto;
    width: 92%;
}

/* 3. Sejarah Desa: Modern Vertical Timeline */
.sejarah-timeline {
    position: relative;
    max-width: 860px;
    margin: 0 auto;
    padding: 20px 0;
}

.sejarah-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 28px;
    width: 3px;
    background: linear-gradient(180deg, var(--color-primary) 0%, #bbf7d0 100%);
    border-radius: 3px;
}

.sejarah-timeline-item {
    position: relative;
    display: flex;
    align-items: flex-start;
    margin-bottom: 40px;
}

.sejarah-timeline-item:last-child {
    margin-bottom: 0;
}

.sejarah-timeline-marker {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
    border: 4px solid #ffffff;
    box-shadow: 0 0 0 3px var(--color-primary-border), var(--shadow-md);
    z-index: 2;
    margin-right: 24px;
}

.sejarah-timeline-card {
    flex: 1;
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-lg);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    padding: 26px 30px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.sejarah-timeline-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-primary-border);
}

.sejarah-card-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--color-text);
    margin: 0 0 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sejarah-card-title i {
    color: var(--color-primary);
    font-size: 1.1rem;
}

.sejarah-card-image {
    width: 100%;
    max-height: 380px;
    object-fit: cover;
    border-radius: var(--border-radius-md);
    margin-bottom: 18px;
    border: 1px solid var(--color-border);
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.sejarah-card-text {
    font-size: 0.96rem;
    color: var(--color-text-body);
    line-height: 1.75;
    margin: 0;
    text-align: justify;
}

/* 4. Pemerintah Desa: Executive Grid & Cards */
.gov-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 28px;
}

.gov-card-modern {
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-xl);
    padding: 32px 24px 24px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    text-decoration: none !important;
}

.gov-card-modern:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
    border-color: var(--color-primary-border);
}

.gov-avatar-frame {
    position: relative;
    width: 140px;
    height: 140px;
    margin: 0 auto 18px;
}

.gov-avatar-img {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #ffffff;
    box-shadow: 0 0 0 3px var(--color-primary-border), 0 8px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
}

.gov-card-modern:hover .gov-avatar-img {
    transform: scale(1.04);
    box-shadow: 0 0 0 3px var(--color-primary), 0 10px 25px rgba(21, 128, 61, 0.2);
}

.gov-verified-badge {
    position: absolute;
    bottom: 4px;
    right: 4px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--color-primary);
    color: #ffffff;
    border: 2px solid #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.gov-name-modern {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-text);
    margin: 0 0 6px;
    line-height: 1.3;
}

.gov-role-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--color-primary-subtle);
    color: var(--color-primary-dark);
    border: 1px solid var(--color-primary-border);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 4px 14px;
    border-radius: var(--border-radius-full);
    margin-bottom: 14px;
}

.gov-tupoksi-excerpt {
    font-size: 0.86rem;
    color: var(--color-text-muted);
    line-height: 1.6;
    margin-bottom: 22px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.gov-btn-detail {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 10px 18px;
    background: var(--color-primary-subtle);
    color: var(--color-primary-dark);
    border: 1px solid var(--color-primary-border);
    border-radius: var(--border-radius-md);
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s ease;
    margin-top: auto;
}

.gov-card-modern:hover .gov-btn-detail {
    background: var(--color-primary);
    color: #ffffff;
    border-color: var(--color-primary);
    box-shadow: 0 4px 14px rgba(21, 128, 61, 0.25);
}

.gov-btn-detail i {
    font-size: 0.8rem;
    transition: transform 0.2s ease;
}

.gov-card-modern:hover .gov-btn-detail i {
    transform: translateX(4px);
}

/* 5. Detail Pemerintah Page */
.gov-detail-grid {
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 36px;
    align-items: flex-start;
}

.gov-detail-photo-card {
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-xl);
    padding: 24px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
}

.gov-detail-img {
    width: 100%;
    height: 380px;
    object-fit: cover;
    border-radius: var(--border-radius-lg);
    border: 3px solid var(--color-primary-border);
    margin-bottom: 18px;
    background: #f8fafc;
}

.gov-detail-info-card {
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-xl);
    padding: 36px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
}

.gov-detail-badge-group {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.gov-detail-name {
    font-size: 1.85rem;
    font-weight: 800;
    color: var(--color-text);
    margin: 0 0 16px;
    letter-spacing: -0.015em;
}

.gov-tupoksi-box {
    background: #f8fafc;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-lg);
    padding: 22px;
    margin-top: 24px;
    margin-bottom: 28px;
}

.gov-tupoksi-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--color-primary-dark);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.gov-tupoksi-content {
    font-size: 0.94rem;
    color: var(--color-text-body);
    line-height: 1.8;
    margin: 0;
}

/* 6. Galeri Desa: Unified Grid & Lightbox */
.galeri-batches-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 28px;
}

.galeri-batch-card {
    position: relative;
    height: 320px;
    border-radius: var(--border-radius-xl);
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    text-decoration: none;
    display: block;
}

.galeri-batch-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.16);
}

.galeri-batch-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s ease;
}

.galeri-batch-card:hover .galeri-batch-bg {
    transform: scale(1.06);
}

.galeri-batch-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.1) 0%, rgba(6, 40, 24, 0.75) 60%, rgba(5, 30, 18, 0.95) 100%);
}

.galeri-batch-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 24px;
    color: #ffffff;
}

.galeri-batch-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 8px;
    line-height: 1.25;
}

.galeri-batch-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 4px 12px;
    border-radius: var(--border-radius-full);
    font-size: 0.8rem;
    font-weight: 600;
    color: #fef08a;
    width: fit-content;
}

/* Galeri Photos Grid (show.blade.php) */
.galeri-photos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 22px;
}

.galeri-photo-card {
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
    transition: all 0.25s ease;
    cursor: pointer;
}

.galeri-photo-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-primary-border);
}

.galeri-photo-thumb-wrap {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: #f1f5f9;
}

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

.galeri-photo-card:hover .galeri-photo-thumb {
    transform: scale(1.06);
}

.galeri-photo-hover-overlay {
    position: absolute;
    inset: 0;
    background: rgba(20, 83, 45, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.25s ease;
    color: #ffffff;
    font-size: 1.5rem;
}

.galeri-photo-card:hover .galeri-photo-hover-overlay {
    opacity: 1;
}

.galeri-photo-title {
    padding: 12px 14px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--color-text);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    background: #ffffff;
}

/* Lightbox Modal */
.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(10px);
    align-items: center;
    justify-content: center;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    max-width: 90%;
    max-height: 82vh;
    border-radius: var(--border-radius-md);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: 24px;
    right: 28px;
    color: #ffffff;
    font-size: 2.2rem;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
}

.lightbox-close:hover {
    color: #facc15;
}

.lightbox-prev, .lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.25rem;
    transition: all 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.lightbox-prev:hover, .lightbox-next:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-prev { left: 24px; }
.lightbox-next { right: 24px; }

.lightbox-counter {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    font-size: 0.85rem;
    padding: 6px 16px;
    border-radius: var(--border-radius-full);
}

/* Responsive media queries */
@media (max-width: 992px) {
    .gov-detail-grid {
        grid-template-columns: 1fr;
    }
    
    .gov-detail-img {
        max-height: 340px;
    }
}

@media (max-width: 768px) {
    .sejarah-timeline::before {
        left: 20px;
    }
    
    .sejarah-timeline-marker {
        width: 44px;
        height: 44px;
        font-size: 1rem;
        margin-right: 14px;
    }
    
    .sejarah-timeline-card {
        padding: 18px 20px;
    }
    
    .gov-grid-modern {
        grid-template-columns: 1fr;
    }

    .galeri-batches-grid {
        grid-template-columns: 1fr;
    }
    
    .page-hero-header {
        padding: 38px 0 28px;
    }
}

/* ==================================================
   BERITA & AGENDA UNIFIED DESIGN SYSTEM
   ================================================== */

/* 1. Kategori Berita Grid */
.kategori-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 26px;
}

.kategori-card-modern {
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-xl);
    padding: 30px 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.kategori-card-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary), #facc15);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.kategori-card-modern:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
    border-color: var(--color-primary-border);
}

.kategori-card-modern:hover::before {
    opacity: 1;
}

.kategori-icon-wrap {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    background: var(--color-primary-subtle);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    border: 1px solid var(--color-primary-border);
}

.kategori-card-modern:hover .kategori-icon-wrap {
    background: var(--color-primary);
    color: #ffffff;
    transform: scale(1.08);
}

.kategori-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-text);
    margin: 0 0 8px;
    line-height: 1.3;
}

.kategori-count-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--color-text-muted);
    margin-bottom: 22px;
}

.kategori-btn-view {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 9px 14px;
    background: #f8fafc;
    color: var(--color-primary-dark);
    border-radius: var(--border-radius-md);
    font-size: 0.84rem;
    font-weight: 600;
    border: 1px solid var(--color-border);
    transition: all 0.2s ease;
    margin-top: auto;
}

.kategori-card-modern:hover .kategori-btn-view {
    background: var(--color-primary);
    color: #ffffff;
    border-color: var(--color-primary);
}

.kategori-btn-view i {
    font-size: 0.78rem;
    transition: transform 0.2s ease;
}

.kategori-card-modern:hover .kategori-btn-view i {
    transform: translateX(4px);
}

/* 2. Editorial News Grid */
.news-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 28px;
}

.news-card-modern {
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-xl);
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    text-decoration: none;
}

.news-card-modern:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
    border-color: var(--color-primary-border);
}

.news-card-thumb-wrap {
    position: relative;
    height: 210px;
    overflow: hidden;
    background: #f1f5f9;
}

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

.news-card-modern:hover .news-card-thumb {
    transform: scale(1.06);
}

.news-card-category-tag {
    position: absolute;
    top: 14px;
    left: 14px;
    background: rgba(21, 128, 61, 0.92);
    backdrop-filter: blur(6px);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 4px 12px;
    border-radius: var(--border-radius-full);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}

.news-card-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.news-card-date {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: var(--color-text-light);
    margin-bottom: 10px;
}

.news-card-date i {
    color: var(--color-primary);
}

.news-card-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-text);
    margin: 0 0 10px;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s ease;
}

.news-card-modern:hover .news-card-title {
    color: var(--color-primary);
}

.news-card-excerpt {
    font-size: 0.88rem;
    color: var(--color-text-muted);
    line-height: 1.65;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.news-card-readmore {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-top: auto;
    transition: gap 0.2s ease;
}

.news-card-modern:hover .news-card-readmore {
    gap: 10px;
    color: var(--color-primary-dark);
}

/* 3. Detail Berita (Editorial Layout) */
.article-editorial-container {
    max-width: 860px;
    margin: 0 auto;
}

.article-card-box {
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-xl);
    padding: 40px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.04);
}

.article-featured-image-wrap {
    width: 100%;
    max-height: 480px;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    margin-bottom: 30px;
    border: 1px solid var(--color-border);
    background: #f8fafc;
}

.article-featured-image {
    width: 100%;
    height: 100%;
    max-height: 480px;
    object-fit: cover;
}

.article-meta-bar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    padding-bottom: 20px;
    margin-bottom: 28px;
    border-bottom: 1px solid var(--color-border);
    font-size: 0.86rem;
    color: var(--color-text-muted);
}

.article-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.article-meta-item i {
    color: var(--color-primary);
}

.article-body-content {
    font-size: 1.05rem;
    color: var(--color-text-body);
    line-height: 1.85;
    text-align: justify;
}

.article-body-content p {
    margin-bottom: 1.4rem;
}

.article-bottom-actions {
    margin-top: 38px;
    padding-top: 24px;
    border-top: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
}

/* 4. Agenda Kegiatan Desa Grid */
.agenda-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 26px;
}

.agenda-card-modern {
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-xl);
    padding: 26px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.agenda-card-modern:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: var(--color-primary-border);
}

.agenda-calendar-box {
    width: 62px;
    height: 62px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(21, 128, 61, 0.25);
    font-size: 1.4rem;
}

.agenda-card-info {
    flex: 1;
}

.agenda-card-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--color-text);
    margin: 0 0 10px;
    line-height: 1.35;
}

.agenda-time-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--color-primary-subtle);
    color: var(--color-primary-dark);
    font-size: 0.82rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: var(--border-radius-full);
    border: 1px solid var(--color-primary-border);
}

@media (max-width: 768px) {
    .kategori-grid-modern,
    .news-grid-modern,
    .agenda-grid-modern {
        grid-template-columns: 1fr;
    }

    .article-card-box {
        padding: 24px 18px;
    }
}

/* ==================================================
   DATA STATISTIK UNIFIED DESIGN SYSTEM
   ================================================== */

/* 1. Metric Stats Cards Grid */
.stats-metric-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 22px;
    margin-bottom: 36px;
}

.stats-metric-card {
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-xl);
    padding: 24px 20px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
    display: flex;
    align-items: center;
    gap: 18px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stats-metric-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--color-primary);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.stats-metric-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-primary-border);
}

.stats-metric-card:hover::before {
    opacity: 1;
}

.stats-metric-icon {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.stats-icon-emerald { background: #ecfdf5; color: #059669; border: 1px solid #a7f3d0; }
.stats-icon-blue    { background: #eff6ff; color: #2563eb; border: 1px solid #bfdbfe; }
.stats-icon-pink    { background: #fdf2f8; color: #db2777; border: 1px solid #fbcfe8; }
.stats-icon-amber   { background: #fffbeb; color: #d97706; border: 1px solid #fde68a; }
.stats-icon-purple  { background: #faf5ff; color: #9333ea; border: 1px solid #e9d5ff; }
.stats-icon-teal    { background: #f0fdfa; color: #0d9488; border: 1px solid #99f6e4; }

.stats-metric-info {
    flex: 1;
}

.stats-metric-title {
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-muted);
    margin: 0 0 4px;
}

.stats-metric-value {
    font-size: 1.65rem;
    font-weight: 800;
    color: var(--color-text);
    margin: 0;
    line-height: 1.2;
}

/* 2. Chart Card Box */
.chart-card-box {
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-xl);
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.chart-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--color-border);
}

.chart-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-text);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.chart-card-title i {
    color: var(--color-primary);
}

.chart-badge-total {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--color-primary-subtle);
    color: var(--color-primary-dark);
    border: 1px solid var(--color-primary-border);
    font-size: 0.84rem;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: var(--border-radius-full);
}

/* 3. Filter Card Box */
.filter-card-box {
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-xl);
    padding: 26px 22px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    height: fit-content;
    align-self: flex-start;
    position: sticky;
    top: 96px;
}

.filter-header-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--color-text);
    margin: 0 0 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--color-border);
}

.filter-header-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--color-primary-subtle);
    color: var(--color-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    border: 1px solid var(--color-primary-border);
    flex-shrink: 0;
}

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

.filter-form-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-muted);
    margin-bottom: 8px;
}

.filter-select-modern {
    width: 100%;
    padding: 11px 16px;
    border: 1.5px solid #cbd5e1;
    border-radius: 12px;
    background-color: #f8fafc;
    font-size: 0.9rem;
    color: var(--color-text);
    font-weight: 600;
    transition: all 0.2s ease;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%2364748b' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 14px 10px;
    appearance: none;
    -webkit-appearance: none;
}

.filter-select-modern:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(21, 128, 61, 0.12);
    background-color: #ffffff;
}

.filter-btn-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 18px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 700;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(21, 128, 61, 0.25);
    transition: all 0.25s ease;
    margin-top: 4px;
}

.filter-btn-submit:hover {
    background: linear-gradient(135deg, var(--color-primary-hover) 0%, #0f3d1b 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(21, 128, 61, 0.35);
}

.filter-reset-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    text-align: center;
    margin-top: 12px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--color-text-muted);
    text-decoration: none;
    transition: color 0.2s;
    padding: 6px 0;
}

.filter-reset-link:hover {
    color: #dc2626;
    text-decoration: underline;
}

.filter-info-box {
    margin-top: 20px;
    padding: 14px 16px;
    border-radius: 12px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    font-size: 0.82rem;
    color: #166534;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    line-height: 1.5;
}

.filter-info-box i {
    color: #15803d;
    font-size: 1.05rem;
    margin-top: 2px;
    flex-shrink: 0;
}

/* 4. Chart Breakdown Pills / Grid */
.chart-breakdown-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 14px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--color-border);
}

.chart-breakdown-item {
    background: #f8fafc;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-md);
    padding: 12px 14px;
    text-align: center;
    transition: all 0.2s ease;
}

.chart-breakdown-item:hover {
    background: #ffffff;
    border-color: var(--color-primary-border);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.chart-breakdown-label {
    font-size: 0.76rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--color-text-muted);
    margin-bottom: 4px;
}

.chart-breakdown-val {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-text);
    margin: 0;
}

