/**
 * ============================================
 * WEBSITE DESA - SEMUA CSS DALAM SATU FILE
 * ============================================
 *
 * DAFTAR ISI (urut dari atas ke bawah sesuai halaman):
 *
 *  0. VARIABEL & DASAR    → Warna, font, variabel global
 *  1. NAVIGASI / HEADER   → Menu atas & tombol hamburger mobile
 *  2. HERO                → Area selamat datang (background, scroll)
 *  3. STATISTIK DESA      → Section data statistik
 *  4. PROFIL DESA         → Section profil lokasi, penduduk, potensi
 *  5. PEMERINTAHAN        → Section struktur kepemimpinan desa
 *  6. LAYANAN             → Section layanan publik
 *  7. BERITA              → Section berita desa
 *  8. PENGUMUMAN          → Section pengumuman resmi
 *  9. KEGIATAN            → Section kegiatan warga
 * 10. GALERI              → Section galeri foto
 * 11. KONTAK              → Section informasi kontak
 * 12. FOOTER              → Bagian bawah website
 * 13. UTILITY / GLOBAL    → Style umum (container, card-hover, dll)
 *
 */

/* ============================================
   0. VARIABEL & DASAR
   Warna, font, reset dasar
   ============================================ */
:root {
    --primary: #0284c7;
    --primary-dark: #0369a1;
    --primary-light: #38bdf8;
    --sky-900: #0c4a6e;
    --sky-100: #e0f2fe;
    --sky-50: #f0f9ff;
    --gray-50: #f8fafc;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --white: #ffffff;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--gray-800);
    background: linear-gradient(180deg, #e0f2fe 0%, #bae6fd 50%, #7dd3fc 100%);
    background-attachment: fixed;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

.container {
    width: 100%;
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

.container--wide {
    max-width: 1440px;
}


/* ============================================
   1. NAVIGASI / HEADER
   Bagian: Menu navigasi di atas, tombol toggle mobile
   ============================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.95) 100%);
    backdrop-filter: blur(12px);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.06), 0 0 0 1px rgba(0, 0, 0, 0.03);
    border-bottom: 3px solid var(--primary);
}

.header ul,
.header li {
    list-style: none !important;
    list-style-type: none !important;
}

.header li::marker {
    content: none !important;
    display: none !important;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    transition: opacity 0.2s;
}

.logo:hover {
    opacity: 0.9;
}

.logo .logo-icon {
    font-size: 1.6rem;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: var(--white);
    border-radius: 10px;
    flex-shrink: 0;
}

.logo .logo-img {
    width: 56px;
    height: 56px;
    max-width: 56px;
    max-height: 56px;
    min-width: 56px;
    object-fit: contain;
    border-radius: 10px;
    flex-shrink: 0;
    display: block;
}

.logo .logo-text-wrap {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.logo .logo-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--gray-900);
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.logo .logo-tagline {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--gray-600);
    letter-spacing: 0.02em;
    line-height: 1.2;
}

.logo:hover .logo-text,
.logo:hover .logo-tagline {
    color: var(--primary);
}

.logo:hover .logo-icon {
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.35);
}

.nav-toggle {
    display: none;
    padding: 0.5rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--gray-800);
}

.nav-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: currentColor;
    margin: 4px 0;
    transition: all 0.3s ease;
}

.nav-toggle span:first-child {
    margin-top: 0;
}

.nav-toggle span:nth-child(1) {
    transform-origin: top left;
}

.nav-toggle span:nth-child(3) {
    transform-origin: bottom left;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none !important;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    line-height: 1;
    list-style: none !important;
    list-style-type: none !important;
}

.nav-link {
    color: var(--gray-600);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    padding: 0.5rem 0;
    position: relative;
    transition: color 0.2s;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--primary);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link-dropdown {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.nav-link-dropdown .nav-arrow {
    font-size: 0.5em;
}

.nav-login-wrap {
    margin-left: 0.5rem;
}

.nav-btn {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    font-size: 0.9375rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 0.5rem;
    transition: all 0.2s;
}

.nav-btn-outline {
    border: 2px solid var(--primary);
    color: var(--primary);
}

.nav-btn-outline:hover {
    background: var(--primary);
    color: var(--white);
}

.nav-btn-primary {
    background: var(--primary);
    color: var(--white);
}

.nav-btn-primary:hover {
    background: var(--primary-dark);
}

.nav-arrow {
    transition: transform 0.2s;
}

.nav-dropdown-wrap {
    position: relative;
}

.nav-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    margin-top: 0.5rem;
    padding: 0.5rem 0;
    background: var(--white);
    border-radius: 0.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
    border: 1px solid var(--gray-100);
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.25s, transform 0.25s, visibility 0.25s;
}

.nav-dropdown-wrap:hover .nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown-wrap:hover .nav-arrow {
    transform: rotate(180deg);
}

.nav-dropdown li {
    padding: 0;
}

.nav-dropdown a {
    display: block;
    padding: 0.6rem 1.25rem;
    color: var(--gray-600);
    text-decoration: none;
    font-weight: 500;
    border-left: 3px solid transparent;
    margin: 0 0.25rem;
    border-radius: 0 4px 4px 0;
    transition: all 0.2s;
}

.nav-dropdown a:hover {
    background: var(--sky-50);
    color: var(--primary);
    border-left-color: var(--primary);
}

.mobile-dropdown-wrap {
    margin: 0;
}

.mobile-login-btn {
    display: inline-block;
    margin-top: 0.75rem;
    padding: 0.6rem 1.25rem;
    background: var(--primary);
    color: var(--white) !important;
    font-weight: 600;
    border-radius: 0.5rem;
    text-align: center;
}

.mobile-login-btn:hover {
    background: var(--primary-dark);
    color: var(--white) !important;
}

.mobile-dropdown-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0;
    color: var(--gray-600);
    text-decoration: none;
    cursor: pointer;
}

.mobile-dropdown-trigger:hover,
.mobile-dropdown-trigger.active {
    color: var(--primary);
}

.mobile-dropdown-trigger .nav-arrow {
    transition: transform 0.2s;
}

.mobile-dropdown-trigger.active .nav-arrow {
    transform: rotate(180deg);
}

.mobile-dropdown {
    max-height: 0;
    overflow: hidden;
    margin: 0;
    padding: 0;
    list-style: none;
    transition: max-height 0.3s ease;
}

.mobile-dropdown.active {
    max-height: 280px;
}

.mobile-dropdown li {
    padding: 0;
}

.mobile-dropdown a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 0.5rem 0 0.5rem 1rem;
    color: var(--gray-600);
    text-decoration: none;
    border-left: 2px solid var(--gray-200);
    margin-left: 0.5rem;
}

.mobile-dropdown a:hover {
    color: var(--primary);
}

.mobile-menu {
    display: none;
}

.mobile-menu ul {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0 1rem 1rem;
    list-style: none;
    margin: 0;
}

.mobile-menu a {
    display: block;
    padding: 0.5rem 0;
    color: var(--gray-600);
    text-decoration: none;
}

.mobile-menu a:hover {
    color: var(--primary);
}

@media (max-width: 767px) {
    .nav-toggle {
        display: block;
    }

    .nav-menu {
        display: none;
    }

    .mobile-menu.active {
        display: block;
    }
}

@media (min-width: 768px) {
    .mobile-menu {
        display: none !important;
    }
}


/* ============================================
   2. HERO
   Bagian: Area selamat datang, background pattern, animasi scroll
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 50%, var(--sky-900) 100%);
    overflow: hidden;
    padding-top: 5rem;
}

/* Hero Slider - full layar, foto tidak terlalu zoom */
.hero--slider { height: 100vh; min-height: 500px; background: transparent !important; }
.hero--slider .hero-slides {
    position: absolute; top: 0; right: 0; bottom: 0; left: 0;
    z-index: 0; overflow: hidden; background: #000;
}
.hero-slide {
    position: absolute; top: 0; right: 0; bottom: 0; left: 0;
    opacity: 0; visibility: hidden;
    transition: opacity 0.6s ease, visibility 0.6s;
    display: flex; align-items: center; justify-content: center;
}
.hero-slide.active { opacity: 1; visibility: visible; z-index: 1; }
.hero-slide-bg {
    position: absolute; top: 0; right: 0; bottom: 0; left: 0;
    background-size: cover; background-position: center;
}
/* Foto hero: full lebar & tinggi, tidak ada ruang kosong */
.hero--slider .hero-slide-bg.hero-slide-photo {
    background-size: cover;
    background-position: center center;
}
.hero-slide-photo { background-color: #111; }
.hero-slide-video {
    overflow: hidden;
}
.hero-slide-video iframe {
    position: absolute;
    top: 50%; left: 50%;
    width: 100vw; height: 56.25vw; min-height: 100vh; min-width: 177.78vh;
    transform: translate(-50%, -50%);
    border: none;
}
.hero-slide-overlay {
    display: none;
}
.hero--slider .hero-slide .hero-content { position: relative; z-index: 2; }
.hero-slider-arrow {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 48px; height: 48px; border-radius: 50%;
    background: rgba(255,255,255,0.2); border: none;
    color: #fff; font-size: 1.75rem; cursor: pointer; z-index: 10;
    display: flex; align-items: center; justify-content: center;
    transition: background 0.2s; line-height: 1;
}
.hero-slider-arrow:hover { background: rgba(255,255,255,0.4); }
.hero-slider-prev { left: 1.5rem; }
.hero-slider-next { right: 1.5rem; }
.hero-slider-dots {
    position: absolute; bottom: 4rem; left: 50%; transform: translateX(-50%);
    display: flex; gap: 0.5rem; z-index: 10;
}
.hero-dot {
    width: 10px; height: 10px; border-radius: 50%;
    background: rgba(255,255,255,0.4); cursor: pointer;
    transition: background 0.2s;
}
.hero-dot:hover, .hero-dot.active { background: rgba(255,255,255,1); }

.hero-pattern {
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    color: var(--white);
    text-shadow: 0 1px 3px rgba(0,0,0,0.8), 0 2px 6px rgba(0,0,0,0.5);
}

.hero-content .hero-btn-primary,
.hero-content .hero-btn-outline { text-shadow: 0 1px 2px rgba(0,0,0,0.6); }

.hero-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 9999px;
    backdrop-filter: blur(4px);
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.25rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: rgba(224, 242, 254, 1);
    max-width: 42rem;
    margin: 0 auto 2rem;
}

.hero-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
    align-items: center;
}

.hero-btn-primary {
    display: inline-block;
    padding: 0.75rem 2rem;
    background: var(--white);
    color: var(--primary);
    font-weight: 600;
    border-radius: 0.5rem;
    text-decoration: none;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transition: background 0.2s;
}

.hero-btn-primary:hover {
    background: var(--sky-50);
}

.hero-btn-outline {
    display: inline-block;
    padding: 0.75rem 2rem;
    border: 2px solid var(--white);
    color: var(--white);
    font-weight: 600;
    border-radius: 0.5rem;
    text-decoration: none;
    transition: background 0.2s;
}

.hero-btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
}

.hero-scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
}

.scroll-indicator {
    width: 24px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 12px;
    position: relative;
    overflow: hidden;
}

.scroll-indicator::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: white;
    border-radius: 2px;
    animation: scrollBounce 2s infinite;
}

@keyframes scrollBounce {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
    50% {
        transform: translateX(-50%) translateY(12px);
        opacity: 0.5;
    }
}

@media (min-width: 640px) {
    .hero-actions {
        flex-direction: row;
    }
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 3rem;
    }

    .hero-subtitle {
        font-size: 1.25rem;
    }
}

@media (min-width: 1024px) {
    .hero-title {
        font-size: 3.75rem;
    }
}


/* ============================================
   3. STATISTIK DESA
   Bagian: Data statistik desa (penduduk, KK, luas wilayah, RW, RT)
   ============================================ */
.section-statistik {
    padding: 4rem 0;
    background: rgba(224, 242, 254, 0.5);
}

.statistik-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}
@media (min-width: 640px) {
    .statistik-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }
}
@media (min-width: 768px) {
    .statistik-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1.5rem;
    }
}
/* Satu baris: semua item mengikuti lebar, tidak ada yang sendirian ke bawah */
@media (min-width: 1024px) {
    .statistik-grid {
        grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr));
        gap: 1.5rem;
    }
}

.statistik-item {
    background: #fff;
    border-radius: 0.75rem;
    padding: 1.75rem 1.25rem;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s, box-shadow 0.2s;
}

.statistik-item .icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
    background: rgba(2, 132, 199, 0.12);
    border-radius: 0.75rem;
}

.statistik-item .nilai {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.35rem;
    line-height: 1.2;
}

.statistik-item .label {
    font-size: 0.875rem;
    color: var(--gray-600);
    font-weight: 500;
    margin: 0;
}

@media (min-width: 1024px) {
    .statistik-item .icon {
        width: 3.5rem;
        height: 3.5rem;
        font-size: 1.75rem;
    }

    .statistik-item .nilai {
        font-size: 2rem;
    }
}


/* Grafik statistik (Kelompok Usia, Jenis Kelamin) di beranda — tampilan modern */
.statistik-charts {
    margin-top: 3.5rem;
    padding-top: 3rem;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}
.statistik-charts-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--gray-800);
    margin: 0 0 0.25rem 0;
    text-align: center;
    letter-spacing: -0.02em;
}
.statistik-charts-subtitle {
    font-size: 0.875rem;
    color: var(--gray-500);
    margin: 0 0 2rem 0;
    text-align: center;
}
.statistik-charts-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    max-width: 720px;
    margin: 0 auto;
}
@media (min-width: 640px) {
    .statistik-charts-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 100%;
        gap: 2rem;
    }
}
.statistik-chart-card--modern {
    background: #fff;
    border-radius: 1.25rem;
    padding: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.06), 0 10px 25px -5px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid rgba(0, 0, 0, 0.04);
    overflow: hidden;
}
.statistik-chart-card--modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px -8px rgba(0, 0, 0, 0.12);
}
.statistik-chart-card-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.statistik-chart-card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.statistik-chart-icon {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}
.statistik-chart-icon--purple {
    background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
    color: #4f46e5;
}
.statistik-chart-icon--blue {
    background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
    color: #0284c7;
}
.statistik-chart-card-header .statistik-chart-heading {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--gray-800);
    margin: 0 0 0.15rem 0;
    text-align: left;
}
.statistik-chart-card-header .statistik-chart-desc {
    font-size: 0.8rem;
    color: var(--gray-500);
    margin: 0;
    text-align: left;
}
.statistik-chart-canvas-wrap {
    position: relative;
    width: 100%;
    max-width: 260px;
    margin: 0 auto 1.25rem;
}
.statistik-chart-legend-modern {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.statistik-legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    padding: 0.4rem 0.6rem;
    border-radius: 0.5rem;
    background: rgba(0, 0, 0, 0.02);
    transition: background 0.15s ease;
}
.statistik-legend-item:hover {
    background: rgba(0, 0, 0, 0.04);
}
.statistik-legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}
.statistik-legend-label {
    flex: 1;
    color: var(--gray-700);
    font-weight: 500;
}
.statistik-legend-value {
    color: var(--gray-600);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}
.statistik-legend-value small {
    font-weight: 500;
    color: var(--gray-500);
    font-size: 0.8em;
}
.statistik-chart-wrap {
    background: #fff;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s, box-shadow 0.2s;
    text-align: center;
}
.statistik-chart-legend {
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 0.8rem;
    color: var(--gray-600);
}

/* Komposisi Penduduk — model bar (sama seperti halaman Profil) */
.statistik-charts--bar .statistik-charts-grid--bar {
    gap: 1.5rem;
}
@media (min-width: 640px) {
    .statistik-charts--bar .statistik-charts-grid--bar {
        grid-template-columns: repeat(2, 1fr);
    }
}
.statistik-chart-card--bar {
    background: #fff;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.06), 0 10px 25px -5px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.04);
}
.statistik-chart-card--bar .statistik-chart-heading {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--gray-800);
    margin: 0 0 0.25rem 0;
}
.statistik-chart-card--bar .statistik-chart-desc {
    font-size: 0.8rem;
    color: var(--gray-500);
    margin: 0 0 1rem 0;
}
.statistik-chart-card--bar .infografis-block {
    margin: 0;
    padding: 0;
    border: none;
    box-shadow: none;
}
.statistik-chart-card--bar .infografis-bar-item {
    margin-bottom: 1rem;
}
.statistik-chart-card--bar .infografis-bar-item:last-child {
    margin-bottom: 0;
}


/* ============================================
   4. PROFIL DESA
   Bagian: Section tentang lokasi, kependudukan, potensi desa
   ============================================ */
.section {
    padding: 5rem 0;
}

.section--gray {
    background: rgba(224, 242, 254, 0.7);
}

.section--white {
    background: rgba(255, 255, 255, 0.85);
}

.section-header {
    text-align: center;
    max-width: 42rem;
    margin: 0 auto 4rem;
}

.section-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--primary);
    background: var(--sky-100);
    border-radius: 9999px;
    margin-bottom: 1rem;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 1rem;
}

.section-desc {
    color: var(--gray-600);
}

.section-cta {
    text-align: center;
    margin-top: 2rem;
}

/* Kegiatan & Pengumuman satu baris (Kegiatan kiri, Pengumuman kanan) - masing-masing 3 card */
.section-kegiatan-pengumuman-row .section-side-by-side {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: start;
}
.section-kegiatan-pengumuman-row .section-side-col {
    min-width: 0;
}
.section-link-semua {
    display: inline-block;
    margin-top: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
}
.section-link-semua:hover {
    text-decoration: underline;
}
.berita-card-selengkapnya {
    display: inline-block;
    margin-top: 0.75rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
}
.berita-card-selengkapnya:hover {
    text-decoration: underline;
}
.section-kegiatan-pengumuman-row .section-header--left {
    text-align: left;
    margin-bottom: 1.5rem;
}
/* Kartu ke samping (3 kartu sejajar per kolom) biar halaman tidak panjang */
.section-kegiatan-pengumuman-row .berita-grid,
.section-kegiatan-pengumuman-row #kegiatan .berita-grid,
.section-kegiatan-pengumuman-row #pengumuman .berita-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}
@media (min-width: 1024px) {
    .section-kegiatan-pengumuman-row .berita-grid,
    .section-kegiatan-pengumuman-row #kegiatan .berita-grid,
    .section-kegiatan-pengumuman-row #pengumuman .berita-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (max-width: 900px) {
    .section-kegiatan-pengumuman-row .section-side-by-side {
        grid-template-columns: 1fr;
    }
    .section-kegiatan-pengumuman-row .berita-grid,
    .section-kegiatan-pengumuman-row #kegiatan .berita-grid,
    .section-kegiatan-pengumuman-row #pengumuman .berita-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (max-width: 600px) {
    .section-kegiatan-pengumuman-row .berita-grid,
    .section-kegiatan-pengumuman-row #kegiatan .berita-grid,
    .section-kegiatan-pengumuman-row #pengumuman .berita-grid {
        grid-template-columns: 1fr;
    }
}

/* Gaya kartu Kegiatan & Pengumuman seperti referensi: bersih, shadow halus, proporsi jelas */
#kegiatan .berita-card,
#pengumuman .berita-card {
    background: #fff;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
}
#kegiatan .berita-image,
#kegiatan .berita-foto-wrap,
#pengumuman .berita-image,
#pengumuman .berita-foto-wrap {
    height: auto;
    aspect-ratio: 4 / 3;
    min-height: 10rem;
    flex-shrink: 0;
}
#kegiatan .berita-foto-wrap img,
#pengumuman .berita-foto-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
#kegiatan .berita-content,
#pengumuman .berita-content {
    padding: 1.25rem 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}
#kegiatan .berita-content .date,
#pengumuman .berita-content .date {
    font-size: 0.8125rem;
    color: var(--gray-500);
    margin-bottom: 0.25rem;
}
#kegiatan .berita-content h3,
#pengumuman .berita-content h3 {
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--gray-900);
    margin: 0 0 0.5rem;
    line-height: 1.35;
}
#kegiatan .berita-content p,
#pengumuman .berita-content p {
    font-size: 0.875rem;
    color: var(--gray-600);
    line-height: 1.5;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
#kegiatan .berita-card-selengkapnya,
#pengumuman .berita-card-selengkapnya {
    margin-top: auto;
    padding-top: 0.75rem;
}

/* Kegiatan & Pengumuman side by side - isi lebar penuh, tidak ada space kosong kanan */
.section-kegiatan-pengumuman__inner {
    width: 100%;
    max-width: 100%;
    padding-left: 2rem;
    padding-right: 2rem;
    margin: 0;
    box-sizing: border-box;
}
.section-kegiatan-pengumuman .section-side-by-side {
    display: grid;
    grid-template-columns: 1.4fr 0.6fr;
    gap: 2.5rem;
    align-items: start;
}
.section-kegiatan-pengumuman .section-side-col {
    min-width: 0;
}
.section-kegiatan-pengumuman .section-header--left {
    text-align: left;
    margin-bottom: 1.5rem;
}
/* Proporsi kartu: area gambar sama seperti Berita (aspect ratio 16:9) */
.section-kegiatan-pengumuman .berita-image,
.section-kegiatan-pengumuman .berita-foto-wrap {
    height: auto;
    aspect-ratio: 16 / 9;
    min-height: 10rem;
}
.section-kegiatan-pengumuman .berita-foto-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
/* 3 kolom untuk kegiatan dan pengumuman di dalam masing-masing kolom */
.section-kegiatan-pengumuman .berita-grid--3col {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}
.section-kegiatan-pengumuman .section-carousel-track--col .berita-card {
    flex: 0 0 auto;
}
@media (max-width: 900px) {
    .section-kegiatan-pengumuman .section-side-by-side {
        grid-template-columns: 1fr;
    }
    .section-kegiatan-pengumuman__inner {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}
/* Di dalam side-col, di layar kecil: grid 3 kolom jadi 2 atau 1 */
@media (max-width: 700px) {
    .section-kegiatan-pengumuman .berita-grid--3col {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 480px) {
    .section-kegiatan-pengumuman .berita-grid--3col {
        grid-template-columns: 1fr;
    }
}

.btn-more {
    display: inline-block;
    padding: 0.6rem 1.5rem;
    background: var(--primary);
    color: var(--white);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    border-radius: 0.5rem;
    transition: background 0.2s;
}

.btn-more:hover {
    background: var(--primary-dark);
}

.profil-layout {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.profil-teks {
    order: 1;
}

.profil-nama {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1rem;
}

.profil-deskripsi {
    color: var(--gray-600);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.profil-info {
    color: var(--gray-600);
    font-size: 0.9rem;
}

.profil-info p {
    margin: 0.5rem 0;
}

.profil-btn-selengkapnya {
    display: inline-block;
    margin-top: 1.25rem;
    padding: 0.75rem 1.75rem;
    background: var(--primary);
    color: var(--white);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    border-radius: 0.5rem;
    transition: background 0.2s, transform 0.2s;
}

.profil-btn-selengkapnya:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.profil-info-full p {
    margin: 1rem 0;
}

.profil-foto {
    order: 2;
}

.profil-slideshow {
    position: relative;
    width: 100%;
    min-height: 200px;
    max-height: 320px;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.profil-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
}

.profil-slide.active {
    opacity: 1;
    position: relative;
    z-index: 1;
}

.profil-slide img {
    width: 100%;
    height: 100%;
    min-height: 200px;
    max-height: 320px;
    object-fit: cover;
    display: block;
}

.profil-slide .profil-foto-placeholder {
    width: 100%;
    min-height: 200px;
    max-height: 320px;
}

.profil-slideshow-dots {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 2;
}

.profil-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: background 0.3s;
}

.profil-dot:hover {
    background: rgba(255, 255, 255, 0.9);
}

.profil-dot.active {
    background: var(--white);
}

.profil-foto img {
    width: 100%;
    height: auto;
    min-height: 200px;
    max-height: 320px;
    object-fit: cover;
    border-radius: 0.75rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.profil-foto-placeholder {
    width: 100%;
    min-height: 200px;
    max-height: 320px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    border-radius: 0.75rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--white);
}

.profil-foto-placeholder span {
    font-size: 4rem;
    margin-bottom: 0.5rem;
}

.profil-foto-placeholder p {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
}

.profil-foto-placeholder small {
    font-size: 0.75rem;
    opacity: 0.8;
}

@media (min-width: 768px) {
    .section-title {
        font-size: 2.25rem;
    }

    .profil-layout {
        flex-direction: row;
        align-items: center;
        gap: 3rem;
    }

    .profil-teks {
        flex: 1;
        order: 1;
    }

    .profil-foto {
        flex: 1;
        order: 2;
        min-width: 0;
    }

    .profil-slideshow {
        max-height: 360px;
    }

    .profil-slide img,
    .profil-slide .profil-foto-placeholder {
        max-height: 360px;
    }

    .profil-foto img {
        min-height: 220px;
        max-height: 360px;
    }

    .profil-foto-placeholder {
        min-height: 220px;
        max-height: 360px;
    }
}

@media (min-width: 1024px) {
    .profil-teks {
        flex: 1;
    }

    .profil-foto {
        flex: 1;
        min-height: 0;
    }

    .profil-slideshow {
        min-height: 280px;
        max-height: 400px;
    }

    .profil-slide img {
        min-height: 280px;
        max-height: 400px;
    }

    .profil-slide .profil-foto-placeholder {
        min-height: 280px;
        max-height: 400px;
    }
}


/* ============================================
   5. PEMERINTAHAN
   Bagian: Section struktur Kepala Desa, Sekretaris, dll
   ============================================ */
.pemerintahan-grid {
    display: grid;
    gap: 2rem;
}

.pemerintahan-card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 0.75rem;
    padding: 2rem;
    text-align: center;
}

.pemerintahan-avatar {
    width: 5rem;
    height: 5rem;
    margin: 0 auto 1rem;
    border-radius: 9999px;
    background: var(--primary);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
}

.pemerintahan-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 0.25rem;
}

.pemerintahan-card .nama {
    color: var(--gray-700);
    font-weight: 500;
}

.pemerintahan-card .periode {
    font-size: 0.875rem;
    color: var(--gray-500);
    margin-top: 0.25rem;
}

@media (min-width: 768px) {
    .pemerintahan-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ============================================
   HALAMAN STRUKTUR - Design terpadu
   Layout: Kiri = Struktur menurun, Kanan = Visi + Misi
   ============================================ */
.page-hero--struktur {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 45%, var(--sky-900) 100%);
    padding: 3rem 0;
}

.struktur-utama {
    padding: 3.5rem 0;
    background: linear-gradient(180deg, var(--sky-50) 0%, rgba(224, 242, 254, 0.5) 100%);
}

.struktur-main-card {
    background: var(--white);
    border-radius: 1rem;
    box-shadow: 0 4px 24px rgba(2, 132, 199, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(2, 132, 199, 0.12);
    overflow: hidden;
    margin-top: 1.5rem;
}

.struktur-visi-misi-layout {
    display: grid;
    gap: 0;
    min-height: 1px;
}

.struktur-kiri {
    order: 1;
    padding: 2.5rem 1.75rem 2rem;
    background: linear-gradient(180deg, rgba(224, 242, 254, 0.4) 0%, var(--white) 100%);
    border-bottom: 1px solid var(--gray-200);
}

.struktur-panel-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.struktur-panel-icon {
    font-size: 1.5rem;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    border-radius: 0.5rem;
    box-shadow: 0 2px 6px rgba(2, 132, 199, 0.15);
}

.struktur-panel-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
    margin: 0;
}

/* Pengurus card - gaya vertikal (seperti Pengurus RT) */
.pengurus-stack {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.pengurus-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem 1.75rem;
    background: var(--white);
    border-radius: 0.75rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
    border: 1px solid var(--gray-200);
    transition: all 0.25s ease;
}

.pengurus-card:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.pengurus-card--utama {
    border-color: rgba(2, 132, 199, 0.3);
}

.pengurus-card--utama:hover {
    box-shadow: 0 6px 20px rgba(2, 132, 199, 0.12);
}

.pengurus-avatar {
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--white);
    flex-shrink: 0;
}

.pengurus-avatar--primary { background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%); }
.pengurus-avatar--amber { background: linear-gradient(135deg, #d97706 0%, #b45309 100%); }
.pengurus-avatar--violet { background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%); }
.pengurus-avatar--emerald { background: linear-gradient(135deg, #059669 0%, #047857 100%); }
.pengurus-avatar--rose { background: linear-gradient(135deg, #e11d48 0%, #be123c 100%); }
.pengurus-avatar--sky { background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%); }

.pengurus-foto {
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.pengurus-info {
    flex: 1;
    min-width: 0;
}

.pengurus-nama {
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--gray-900);
    margin: 0 0 0.25rem;
}

.pengurus-jabatan {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--primary);
    margin: 0;
}

.pengurus-periode {
    font-size: 0.8125rem;
    color: var(--gray-500);
    margin: 0.25rem 0 0;
}

.visi-misi-kanan {
    order: 2;
    padding: 2.5rem 1.75rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.visi-misi-panel {
    background: var(--white);
    border-radius: 0.75rem;
    border: 1px solid var(--gray-200);
    overflow: hidden;
    transition: box-shadow 0.25s ease;
}

.visi-misi-panel:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.visi-misi-panel-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.25rem 1.5rem;
    background: linear-gradient(135deg, var(--sky-100) 0%, var(--sky-50) 100%);
    border-bottom: 1px solid rgba(2, 132, 199, 0.15);
}

.visi-misi-icon {
    font-size: 1.25rem;
}

.visi-misi-panel-header h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--primary);
    margin: 0;
}

.visi-misi-panel-body {
    padding: 1.5rem 1.75rem;
}

.visi-misi-panel-body p {
    font-size: 1rem;
    line-height: 1.75;
    color: var(--gray-700);
    margin: 0;
}

.visi-misi-panel-body .data-kosong {
    font-size: 0.9375rem;
    color: var(--gray-500);
    font-style: italic;
}

.visi-misi-panel-body .data-kosong code {
    background: var(--gray-100);
    padding: 0.2rem 0.45rem;
    border-radius: 0.25rem;
    font-size: 0.8125rem;
    font-style: normal;
}

.misi-list {
    margin: 0;
    padding-left: 1.5rem;
}

.misi-list li {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--gray-700);
    margin-bottom: 0.75rem;
}

.misi-list li:last-child {
    margin-bottom: 0;
}

.misi-list li::marker {
    color: var(--primary);
    font-weight: 700;
}

@media (min-width: 768px) {
    .struktur-main-card {
        margin-top: 2rem;
    }

    .struktur-visi-misi-layout {
        grid-template-columns: 1fr 1.2fr;
        gap: 0;
    }

    .struktur-kiri {
        padding: 3rem 2.25rem 2.5rem;
        border-bottom: none;
        border-right: 1px solid var(--gray-200);
    }

    .visi-misi-kanan {
        padding: 3rem 2.25rem 2.5rem;
    }

    .pengurus-stack {
        gap: 1.75rem;
    }

    .visi-misi-kanan {
        gap: 2.25rem;
    }
}

/* Program Kerja */
.program-kerja-section {
    background: #e0f2fe;
}

.program-kerja-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    font-weight: 700;
    color: #0f172a;
    text-align: center;
    margin: 0 0 0.5rem;
}

.program-kerja-subtitle {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1rem;
    color: #1e3a5f;
    text-align: center;
    margin: 0 0 2.5rem;
    max-width: 42ch;
    margin-left: auto;
    margin-right: auto;
}

.struktur-utama + .section .section-header {
    margin-bottom: 2.5rem;
}

.program-kerja-grid {
    display: grid;
    gap: 1.5rem;
    max-width: 1280px;
    margin: 0 auto;
}

.program-kerja-card {
    background: #fff;
    border-radius: 1rem;
    padding: 1.75rem 2rem;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
    transition: box-shadow 0.25s ease;
    position: relative;
}

.program-kerja-card:hover {
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
}

.program-kerja-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    background: #0f172a;
    color: #fff;
    font-weight: 700;
    font-size: 0.9375rem;
    border-radius: 50%;
    border: 2px solid #1e3a5f;
    margin-bottom: 1rem;
    flex-shrink: 0;
}

.program-kerja-card-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.125rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 0.5rem;
    line-height: 1.35;
}

.program-kerja-card-desc {
    font-size: 0.9375rem;
    line-height: 1.65;
    color: #334155;
    margin: 0;
}

.program-kerja-nomor {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    font-weight: 700;
    font-size: 0.875rem;
    border-radius: 50%;
    margin-bottom: 0.875rem;
}

.program-kerja-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--gray-900);
    margin: 0 0 0.5rem;
}

.program-kerja-card p {
    font-size: 0.9375rem;
    line-height: 1.65;
    color: var(--gray-600);
    margin: 0;
}

.program-kosong {
    background: var(--white);
    border-radius: 0.75rem;
    padding: 1.5rem 2rem;
    border: 1px dashed var(--gray-300);
}

.program-kosong .data-kosong {
    margin: 0;
    color: var(--gray-500);
}

@media (min-width: 768px) {
    .program-kerja-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.75rem;
    }
}

@media (min-width: 1024px) {
    .program-kerja-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ============================================
   6. LAYANAN
   Bagian: Section layanan publik (surat, administrasi, dll)
   ============================================ */
.layanan-grid {
    display: grid;
    gap: 1.5rem;
}

.layanan-card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    border-left: 4px solid var(--primary);
}

.layanan-card .number {
    font-size: 1.5rem;
    font-weight: 700;
    color: rgba(2, 132, 199, 0.3);
}

.layanan-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--gray-900);
    margin: 0.5rem 0;
}

.layanan-card p {
    color: var(--gray-600);
    font-size: 0.875rem;
}

@media (min-width: 768px) {
    .layanan-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .layanan-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}


/* ============================================
   7. BERITA
   Bagian: Section berita & pengumuman desa
   ============================================ */
.berita-grid {
    display: grid;
    gap: 2rem;
}

.berita-card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.berita-image {
    height: 18rem;
    display: block;
}

.berita-image--green {
    background: linear-gradient(135deg, #0284c7 0%, #0ea5e9 100%);
}

.berita-image--amber {
    background: linear-gradient(135deg, #92400e 0%, #d97706 100%);
}

.berita-image--violet {
    background: linear-gradient(135deg, #5b21b6 0%, #7c3aed 100%);
}

.kegiatan-foto-wrap {
    position: relative;
    height: 18rem;
    overflow: hidden;
}

/* Halaman detail kegiatan: foto utuh tidak kepotong, lebar dibatasi */
.kegiatan-detail-galeri {
    position: relative;
    max-width: 560px;
    margin: 0 auto 1.5rem;
    border-radius: 12px;
    overflow: visible;
    height: auto;
}

.kegiatan-detail-galeri .kegiatan-foto-slider {
    position: relative;
    height: auto;
    min-height: 280px;
}

.kegiatan-detail-galeri .kegiatan-foto-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.kegiatan-detail-galeri .kegiatan-foto-slide.active {
    position: relative;
    opacity: 1;
    pointer-events: auto;
}

.kegiatan-detail-galeri .kegiatan-foto-slide img {
    width: 100%;
    height: auto;
    max-height: 40vh;
    object-fit: contain;
    object-position: center;
    display: block;
    margin: 0 auto;
    border-radius: 12px;
    background: #f1f5f9;
}

.kegiatan-detail-galeri .kegiatan-foto-dots {
    position: relative;
    bottom: auto;
    left: auto;
    transform: none;
    margin-top: 0.75rem;
    justify-content: center;
}

/* Halaman detail berita: foto utuh tidak kepotong */
.berita-detail-foto {
    max-width: 560px;
    margin: 0 auto 1.5rem;
    border-radius: 12px;
    overflow: hidden;
}

.berita-detail-foto img {
    width: 100%;
    height: auto;
    max-height: 40vh;
    object-fit: contain;
    object-position: center;
    display: block;
    margin: 0 auto;
    border-radius: 12px;
    background: #f1f5f9;
}

.kegiatan-foto-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.kegiatan-foto-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.kegiatan-foto-slide.active {
    opacity: 1;
    position: relative;
    z-index: 1;
}

.kegiatan-foto-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.kegiatan-foto-dots {
    position: absolute;
    bottom: 0.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.35rem;
    z-index: 2;
}

.kegiatan-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background 0.2s;
}

.kegiatan-dot:hover,
.kegiatan-dot.active {
    background: rgba(255, 255, 255, 0.95);
}

.berita-foto-wrap {
    height: 18rem;
    overflow: hidden;
}
.berita-foto-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.pengumuman-banner {
    height: 18rem;
    overflow: hidden;
}
.pengumuman-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.pengumuman-files {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--gray-200);
}
.pengumuman-files-label {
    display: block;
    font-size: 0.875rem;
    color: var(--gray-600);
    margin-bottom: 0.35rem;
}
.pengumuman-file-link {
    display: inline-block;
    margin: 0.25rem 0.5rem 0.25rem 0;
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}
.pengumuman-file-link:hover {
    text-decoration: underline;
}

/* List layout - halaman index pengumuman */
.pengumuman-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    max-width: 800px;
    margin: 0 auto;
}

/* Halaman pengumuman: kartu berjejer ke kanan (horizontal) */
.pengumuman-list--row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    max-width: none;
    margin: 0;
}

@media (min-width: 640px) {
    .pengumuman-list--row {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .pengumuman-list--row {
        grid-template-columns: repeat(3, 1fr);
    }
}

.pengumuman-list--row .pengumuman-list-item {
    flex-direction: column;
    align-items: stretch;
    margin-bottom: 0;
}

.pengumuman-list--row .pengumuman-list-thumb {
    width: 100%;
    height: 140px;
}

.pengumuman-list--row .pengumuman-list-arrow {
    align-self: flex-end;
}

.pengumuman-list-item {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    padding: 1.25rem 1.5rem;
    background: #fff;
    border-radius: 0.75rem;
    margin-bottom: 0.75rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.2s ease;
}

.pengumuman-list-item:last-child {
    margin-bottom: 0;
}

.pengumuman-list-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.pengumuman-list-thumb {
    flex-shrink: 0;
    width: 72px;
    height: 72px;
    border-radius: 0.5rem;
    overflow: hidden;
    background: var(--gray-100);
}

.pengumuman-list-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pengumuman-list-body {
    flex: 1;
    min-width: 0;
}

.pengumuman-list-date {
    font-size: 0.8125rem;
    color: var(--gray-500);
}

.pengumuman-list-title {
    font-size: 1.0625rem;
    font-weight: 600;
    margin: 0.25rem 0 0.5rem;
    line-height: 1.35;
}

.pengumuman-list-title a {
    color: var(--gray-900);
    text-decoration: none;
}

.pengumuman-list-title a:hover {
    color: var(--primary);
}

.pengumuman-list-excerpt {
    font-size: 0.9375rem;
    color: var(--gray-600);
    line-height: 1.5;
    margin: 0;
}

.pengumuman-list-item .pengumuman-files {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--gray-200);
}

.pengumuman-list-arrow {
    flex-shrink: 0;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-400);
    text-decoration: none;
    font-size: 1.25rem;
    transition: color 0.2s ease;
}

.pengumuman-list-item:hover .pengumuman-list-arrow {
    color: var(--primary);
}

/* List pengumuman di beranda (dalam kolom samping) */
.pengumuman-list--beranda {
    max-width: none;
}

.pengumuman-list--beranda .pengumuman-list-item {
    padding: 1rem 1.25rem;
}

.pengumuman-list--beranda .pengumuman-list-excerpt {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.berita-content {
    padding: 1.5rem;
}

.berita-content .date {
    font-size: 0.875rem;
    color: var(--gray-500);
}

.berita-content h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--gray-900);
    margin: 0.5rem 0;
}

.berita-content p {
    color: var(--gray-600);
}

@media (min-width: 768px) {
    .berita-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .berita-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}


/* ============================================
   8. GALERI
   Bagian: Section galeri foto/dokumentasi desa
   ============================================ */
.galeri-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.galeri-item {
    aspect-ratio: 1;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 500;
    text-align: center;
    padding: 1rem;
    transition: transform 0.3s;
}

.galeri-item:hover {
    transform: scale(1.05);
}

.galeri-item--green {
    background: linear-gradient(135deg, #0284c7 0%, #0ea5e9 100%);
}

.galeri-item--amber {
    background: linear-gradient(135deg, #92400e 0%, #d97706 100%);
}

.galeri-item--violet {
    background: linear-gradient(135deg, #5b21b6 0%, #7c3aed 100%);
}

.galeri-item--sky {
    background: linear-gradient(135deg, #0c4a6e 0%, #0ea5e9 100%);
}

@media (min-width: 768px) {
    .galeri-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}


/* ============================================
   9. KONTAK
   Bagian: Section alamat, telepon, email, jam kerja
   ============================================ */
.kontak-grid {
    display: grid;
    gap: 1.5rem;
}

.kontak-card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 0.75rem;
    padding: 1.5rem;
    text-align: center;
}

.kontak-card .icon {
    font-size: 1.875rem;
    margin-bottom: 0.75rem;
}

.kontak-card h3 {
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}

.kontak-card p {
    color: var(--gray-600);
    font-size: 0.875rem;
}

@media (min-width: 768px) {
    .kontak-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .kontak-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.kontak-link {
    color: var(--primary);
    text-decoration: none;
}

.kontak-link:hover {
    text-decoration: underline;
}

/* ============================================
   HALAMAN DALAM (profil, berita, kegiatan, dll)
   ============================================ */
.page-main {
    padding-top: 5rem;
}

.page-hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 3rem 0;
    text-align: center;
    color: var(--white);
}

.page-back {
    display: inline-block;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    transition: color 0.2s;
}

.page-back:hover {
    color: var(--white);
}

.page-title {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
}

.page-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    margin: 0;
}

.berita-page-grid {
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .berita-page-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .berita-page-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    /* Index: berita, kegiatan, pengumuman - 4 kolom per baris */
    #berita .berita-grid,
    #kegiatan .berita-grid,
    #pengumuman .berita-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Section carousel - auto-slide saat data > 4 */
.section-carousel-viewport {
    overflow: hidden;
    width: 100%;
}
.section-carousel--active .section-carousel-viewport {
    position: relative;
}
.section-carousel--active .section-carousel-track {
    display: flex;
    flex-wrap: nowrap;
    gap: 2rem;
    transition: transform 0.5s ease;
    will-change: transform;
}
.section-carousel--active .section-carousel-track .berita-card {
    flex-shrink: 0;
    min-width: 0;
}
.section-carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
}
.section-carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: background 0.2s;
    border: none;
    padding: 0;
}
.section-carousel-dot:hover,
.section-carousel-dot.active {
    background: var(--primary, #0284c7);
}

/* Carousel paged: Kegiatan & Pengumuman di beranda (3 per slide, auto-gerak) */
.section-carousel-paged--active .section-carousel-viewport {
    overflow: hidden;
}

.section-carousel-track--paged {
    display: flex;
    flex-wrap: nowrap;
    transition: transform 0.45s ease;
    will-change: transform;
}

.section-carousel-track--paged .section-carousel-slide {
    flex: 0 0 100%;
    width: 100%;
    min-width: 0;
}

.section-carousel-paged--active .berita-grid--col {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.section-carousel-paged-dots {
    margin-top: 1rem;
}

/* Informasi Wilayah - di dalam halaman Profil Desa */
.section-subtitle {
    text-align: center;
    color: var(--gray-600);
    margin-bottom: 2rem;
}

.info-wilayah-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    max-width: 900px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .info-wilayah-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.info-wilayah-block {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 1rem;
    padding: 1.5rem;
    border: 1px solid var(--gray-200);
}

.info-wilayah-heading {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--gray-900);
    margin: 0 0 1rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary);
}

.info-wilayah-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.info-wilayah-list li {
    padding: 0.4rem 0;
    font-size: 0.95rem;
    color: var(--gray-700);
    border-bottom: 1px solid var(--gray-200);
}

.info-wilayah-list li:last-child {
    border-bottom: none;
}

/* Infografis - di dalam halaman Profil Desa */
.infografis-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--gray-900);
    text-align: center;
    margin-bottom: 0.5rem;
}

.infografis-subtitle {
    text-align: center;
    color: var(--gray-600);
    margin-bottom: 2.5rem;
}

.infografis-ringkasan {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.infografis-item {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 1rem;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
    border: 1px solid var(--gray-100);
}

.infografis-icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
}

.infografis-nilai {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.25rem;
}

.infografis-label {
    font-size: 0.875rem;
    color: var(--gray-600);
    font-weight: 500;
}

/* Komposisi Jenis Kelamin & Kelompok Usia - kanan kiri (2 kolom) */
.infografis-dua-kolom {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.infografis-dua-kolom .infografis-block {
    margin-bottom: 0;
    min-width: 0; /* prevent grid blowout */
}

@media (max-width: 767px) {
    .infografis-dua-kolom {
        grid-template-columns: 1fr !important;
    }
    .infografis-dua-kolom .infografis-block {
        margin-bottom: 1.5rem;
    }
    .infografis-dua-kolom .infografis-block:last-child {
        margin-bottom: 0;
    }
}

.infografis-block {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 1rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
    border: 1px solid var(--gray-100);
}

.infografis-block-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.35rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary);
}

.infografis-block-desc {
    font-size: 0.8rem;
    color: var(--gray-500);
    margin: 0 0 1rem 0;
}

.infografis-bar-item {
    margin-bottom: 1rem;
}

.infografis-bar-item:last-child {
    margin-bottom: 0;
}

.infografis-bar-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
    color: var(--gray-700);
    margin-bottom: 0.35rem;
}

.infografis-bar-track {
    height: 12px;
    background: var(--gray-100);
    border-radius: 6px;
    overflow: hidden;
}

.infografis-bar-track--small {
    height: 8px;
    border-radius: 4px;
}

.infografis-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary) 0%, var(--primary-light) 100%);
    border-radius: inherit;
    transition: width 0.5s ease;
}

.infografis-bar--0 { background: linear-gradient(90deg, #0284c7, #38bdf8) !important; }
.infografis-bar--1 { background: linear-gradient(90deg, #0c4a6e, #0ea5e9) !important; }
.infografis-bar--2 { background: linear-gradient(90deg, #92400e, #d97706) !important; }
.infografis-bar--edu { background: linear-gradient(90deg, #5b21b6, #7c3aed) !important; }
.infografis-bar--kerja { background: linear-gradient(90deg, #0369a1, #38bdf8) !important; }
.infografis-bar--luas { background: linear-gradient(90deg, #0891b2, #22d3ee) !important; }

.infografis-row {
    display: grid;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.infografis-luas-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}

.infografis-luas-item {
    background: rgba(255, 255, 255, 0.85);
    padding: 1rem;
    border-radius: 0.5rem;
}

.infografis-luas-nilai {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.infografis-luas-nilai small {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--gray-600);
}

.infografis-luas-label {
    font-size: 0.875rem;
    color: var(--gray-600);
    margin-bottom: 0.5rem;
}

.infografis-luas-persen {
    font-size: 0.75rem;
    color: var(--gray-500);
    margin-top: 0.25rem;
}

/* Orbitasi (di halaman Profil/Desa) */
.orbitasi-desc {
    color: var(--gray-600);
    font-size: 0.95rem;
    margin: 0 0 1.5rem 0;
}
.orbitasi-grid--inline {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}
.orbitasi-item--inline {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, #f0fdfa 0%, #ccfbf1 100%);
    border-radius: 12px;
    border: 1px solid rgba(20, 184, 166, 0.2);
}
.orbitasi-item--inline .orbitasi-item-label {
    font-size: 0.875rem;
    color: var(--gray-600);
}
.orbitasi-item--inline .orbitasi-item-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f766e;
}
@media (max-width: 767px) {
    .orbitasi-grid--inline { grid-template-columns: 1fr; }
}

.infografis-table-wrap {
    overflow-x: auto;
}

.infografis-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.infografis-table th,
.infografis-table td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--gray-200);
}

.infografis-table th {
    background: var(--primary);
    color: var(--white);
    font-weight: 600;
}

.infografis-table tbody tr:hover {
    background: rgba(224, 242, 254, 0.6);
}

@media (min-width: 640px) {
    .infografis-ringkasan {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 768px) {
    .infografis-row {
        grid-template-columns: repeat(2, 1fr);
    }

    .infografis-luas-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 1024px) {
    .infografis-ringkasan {
        grid-template-columns: repeat(5, 1fr);
        gap: 1.5rem;
    }

    .infografis-item {
        padding: 2rem;
    }

    .infografis-icon {
        font-size: 3rem;
    }

    .infografis-nilai {
        font-size: 2rem;
    }

    .infografis-block {
        padding: 2rem;
    }
}

.berita-isi {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--gray-100);
}

.galeri-page-grid {
    grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 768px) {
    .galeri-page-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1024px) {
    .galeri-page-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.kontak-page-grid {
    max-width: 900px;
    margin: 0 auto;
}


/* ============================================
   10. FOOTER
   Bagian: Footer multi kolom (style OpenDesa)
   ============================================ */
.footer {
    background: rgba(186, 230, 253, 0.9);
    color: var(--gray-700);
    padding: 2.5rem 0 0;
    border-top: 1px solid rgba(2, 132, 199, 0.25);
}

.footer .container {
    max-width: 1200px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    padding-bottom: 2rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--gray-200);
}

.footer-col-brand {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-logos {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
}

.footer-logo-item {
    width: 72px;
    height: 72px;
    object-fit: contain;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    padding: 4px;
    flex-shrink: 0;
}

.footer-brand {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.footer-logo {
    font-size: 2rem;
    line-height: 1;
}

.footer-brand-text {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.footer-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-900);
    letter-spacing: -0.02em;
}

.footer-tagline {
    font-size: 0.875rem;
    color: var(--gray-600);
    line-height: 1.4;
}

.footer-heading {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--gray-900);
    margin: 0 0 1rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--gray-600);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-kontak.footer-links li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.footer-ico {
    font-size: 0.9rem;
    flex-shrink: 0;
}

.footer-kontak.footer-links li a,
.footer-kontak.footer-links .footer-kontak-txt {
    word-break: break-word;
}

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding-bottom: 1.5rem;
}

.footer-copy {
    margin: 0;
    font-size: 0.8125rem;
    color: var(--gray-500);
}

.footer-social {
    display: flex;
    gap: 0.5rem;
}

.footer-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    background: var(--primary);
    color: var(--white);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 50%;
    transition: background 0.2s;
}

.footer-social-link:hover {
    background: var(--primary-dark);
}

/* Tablet: 2 kolom */
@media (min-width: 640px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Desktop: 4 kolom */
@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: 1.2fr 1fr 1fr 1.2fr;
        gap: 2rem 3rem;
    }
}


/* ============================================
   11. UTILITY / GLOBAL
   Bagian: Style umum yang dipakai di banyak tempat
   ============================================ */
html {
    scroll-behavior: smooth;
}

.card-hover {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

.section-statistik .section-header {
    margin-bottom: 3rem;
}

/* ============================================
   HALAMAN LOGIN
   ============================================ */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.login-wrap {
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

.login-bg {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 45%, var(--sky-900) 100%);
    z-index: -1;
}

.login-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.06'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.login-container {
    width: 100%;
    max-width: 420px;
}

.login-back {
    display: inline-block;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 0.9375rem;
    margin-bottom: 1.5rem;
    transition: color 0.2s;
}

.login-back:hover {
    color: var(--white);
}

.login-card {
    background: var(--white);
    border-radius: 1rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    padding: 2.5rem;
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 0.75rem;
}

.login-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-900);
    margin: 0 0 0.25rem;
}

.login-subtitle {
    font-size: 0.9375rem;
    color: var(--gray-500);
    margin: 0;
}

.login-alert {
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
    font-size: 0.9375rem;
}

.login-alert--error {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.login-field label {
    display: block;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--gray-700);
    margin-bottom: 0.5rem;
}

.login-field input {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border: 1px solid var(--gray-300);
    border-radius: 0.5rem;
    font-family: inherit;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.login-field input:focus {
    outline: none;
    border-color: var(--primary);
}

.login-field input::placeholder {
    color: var(--gray-400);
}

.login-btn {
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--white);
    background: var(--primary);
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.2s;
    margin-top: 0.25rem;
}

.login-btn:hover {
    background: var(--primary-dark);
}

/* ============================================
   TAMPILAN MOBILE - Perbaikan khusus layar kecil
   ============================================ */
@media (max-width: 767px) {
    html, body {
        overflow-x: hidden;
    }

    .container,
    .container--wide {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .nav {
        padding: 0.75rem 0;
    }

    .mobile-menu {
        padding-top: 0.5rem;
    }

    .mobile-menu a {
        padding: 0.75rem 0;
        min-height: 44px;
        display: flex;
        align-items: center;
    }

    .mobile-dropdown-trigger {
        min-height: 44px;
        display: flex;
        align-items: center;
    }

    .hero-content {
        padding: 1rem 1rem 1.5rem;
    }

    .hero-title {
        font-size: 1.5rem;
        line-height: 1.25;
    }

    .hero-subtitle {
        font-size: 0.95rem;
    }

    .hero-actions {
        flex-wrap: wrap;
        gap: 0.75rem;
        justify-content: center;
    }

    .hero-btn-primary,
    .hero-btn-outline {
        min-height: 44px;
        padding: 0.75rem 1.25rem;
        font-size: 0.95rem;
    }

    .hero-slider-arrow {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }

    .hero-slider-prev {
        left: 0.5rem;
    }

    .hero-slider-next {
        right: 0.5rem;
    }

    .hero-slider-dots {
        bottom: 2.5rem;
    }

    .section {
        padding-top: 2.5rem;
        padding-bottom: 2.5rem;
    }

    .section-header {
        margin-bottom: 1.5rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .berita-grid,
    .berita-page-grid {
        gap: 1.25rem;
    }

    .berita-card {
        min-width: 0;
    }

    .page-hero {
        padding: 2rem 0;
    }

    .page-title {
        font-size: 1.6rem;
    }

    .page-back {
        padding: 0.5rem 0;
        min-height: 44px;
        display: inline-flex;
        align-items: center;
    }

    .footer-grid {
        gap: 1.5rem;
    }

    .footer-col {
        text-align: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    /* Statistik - 2 kolom di mobile */
    .statistik-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .statistik-item {
        padding: 1rem 0.5rem;
    }

    .statistik-item .nilai {
        font-size: 1.25rem;
    }

    /* Profil layout - stacking vertikal di mobile */
    .profil-layout {
        gap: 1.5rem;
    }

    .profil-teks .profil-nama {
        font-size: 1.4rem;
    }

    .profil-btn-selengkapnya {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
    }

    /* Logo & header mobile */
    .header .logo {
        font-size: 0.95rem;
    }

    .logo-img {
        width: 36px;
        height: 36px;
    }

    /* Footer kontak - hindari overflow teks panjang */
    .footer-kontak-txt {
        word-break: break-word;
    }

    .footer-links a {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
    }

    /* Program Kerja - mobile */
    .program-kerja-title {
        font-size: 1.5rem;
    }
    .program-kerja-subtitle {
        font-size: 0.9375rem;
        margin-bottom: 1.75rem;
    }
    .program-kerja-grid {
        gap: 1rem;
    }
    .program-kerja-card {
        padding: 1.25rem 1.25rem;
    }
    .program-kerja-card-title {
        font-size: 1rem;
    }
    .program-kerja-card-desc {
        font-size: 0.875rem;
    }

    /* Pengumuman list (row) - mobile */
    .pengumuman-list--row {
        gap: 0.75rem;
    }
    .pengumuman-list--row .pengumuman-list-item {
        padding: 1rem 1rem;
    }
    .pengumuman-list--row .pengumuman-list-thumb {
        height: 120px;
    }
    .pengumuman-list--row .pengumuman-list-title {
        font-size: 1rem;
    }
    .pengumuman-list--row .pengumuman-list-excerpt {
        -webkit-line-clamp: 2;
    }

    /* Pengumuman list di beranda - mobile */
    .pengumuman-list--beranda .pengumuman-list-item {
        padding: 0.875rem 1rem;
    }
    .pengumuman-list--beranda .pengumuman-list-thumb {
        width: 56px;
        height: 56px;
    }

    /* Foto detail berita & kegiatan - mobile */
    .berita-detail-foto,
    .kegiatan-detail-galeri {
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
        border-radius: 10px;
    }
    .berita-detail-foto img,
    .kegiatan-detail-galeri .kegiatan-foto-slide img {
        max-height: 35vh;
        border-radius: 10px;
    }
    .kegiatan-detail-galeri .kegiatan-foto-slider {
        min-height: 200px;
    }
    .kegiatan-detail-galeri .kegiatan-foto-dots {
        margin-top: 0.5rem;
    }

    /* Carousel kegiatan & pengumuman di beranda - mobile */
    .section-carousel-paged--active .section-carousel-viewport {
        margin: 0 -0.25rem;
    }
    .section-carousel-paged-dots {
        margin-top: 0.75rem;
    }
    .section-carousel-paged-dots .section-carousel-dot {
        width: 8px;
        height: 8px;
    }
    .section-carousel-paged--active .berita-grid--col {
        gap: 0.75rem;
    }

    /* Struktur - foto/avatar pejabat proporsional di mobile */
    .pengurus-avatar,
    .pengurus-foto {
        width: 3rem;
        height: 3rem;
    }
    .pengurus-card {
        gap: 1rem;
    }
    .pengurus-nama {
        font-size: 1rem;
    }
    .pengurus-jabatan {
        font-size: 0.875rem;
    }

    /* Tombol Baca Selengkapnya / Selengkapnya - area tap nyaman di mobile */
    .berita-card-selengkapnya {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
    }

    /* ========== Statistik Desa - mobile */
    .section-statistik {
        padding: 2.5rem 0;
    }
    .section-statistik .section-header {
        margin-bottom: 1.25rem;
    }
    .section-statistik .section-title {
        font-size: 1.35rem;
    }
    .section-statistik .section-desc {
        font-size: 0.9rem;
        line-height: 1.45;
    }
    .statistik-charts {
        margin-top: 2rem;
        padding-top: 2rem;
    }
    .statistik-charts-title {
        font-size: 1.15rem;
        margin-bottom: 0.2rem;
    }
    .statistik-charts-subtitle {
        font-size: 0.8rem;
        margin-bottom: 1.25rem;
    }
    .statistik-charts-grid--bar,
    .statistik-charts--bar .statistik-charts-grid--bar {
        gap: 1.25rem;
    }
    .statistik-chart-card--bar {
        padding: 1.25rem 1rem;
        border-radius: 0.875rem;
    }
    .statistik-chart-card--bar .statistik-chart-heading {
        font-size: 1rem;
    }
    .statistik-chart-card--bar .statistik-chart-desc {
        font-size: 0.75rem;
        margin-bottom: 0.75rem;
    }
    .statistik-chart-card--bar .infografis-bar-item {
        margin-bottom: 0.75rem;
    }
    .statistik-chart-card--bar .infografis-bar-label {
        font-size: 0.8125rem;
        flex-wrap: wrap;
        gap: 0.25rem;
    }
    .statistik-chart-card--bar .infografis-bar-label span:last-child {
        width: 100%;
        text-align: right;
    }
    .statistik-chart-card--bar .infografis-bar-track {
        height: 10px;
        border-radius: 5px;
    }

    /* Infografis (Profil & bar) - mobile */
    .infografis-bar-label {
        font-size: 0.8125rem;
        flex-wrap: wrap;
        gap: 0.2rem;
    }
    .infografis-bar-track {
        height: 10px;
        border-radius: 5px;
    }
    .infografis-block {
        padding: 1.25rem 1rem;
        margin-bottom: 1.25rem;
    }
    .infografis-block-title {
        font-size: 1rem;
    }
    .infografis-ringkasan {
        gap: 0.75rem;
    }
    .infografis-item {
        padding: 1rem;
    }
    .infografis-icon {
        font-size: 1.5rem;
    }
    .infografis-nilai {
        font-size: 1.5rem;
    }
    .infografis-label {
        font-size: 0.8rem;
    }

    /* Info wilayah (Profil) - mobile */
    .info-wilayah-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    .info-wilayah-block {
        padding: 1rem;
    }
    .info-wilayah-heading {
        font-size: 1rem;
    }

    /* Tabel infografis (Data RW/RT) - scroll horizontal aman di mobile */
    .infografis-table-wrap {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin: 0 -0.5rem;
        padding: 0 0.5rem;
    }
    .infografis-table {
        font-size: 0.8125rem;
        min-width: 260px;
    }
    .infografis-table th,
    .infografis-table td {
        padding: 0.5rem 0.5rem;
    }

    /* Section side-by-side (Kegiatan & Pengumuman) - stack penuh di mobile */
    .section-side-by-side {
        flex-direction: column;
        gap: 2rem;
    }
    .section-side-col {
        width: 100%;
        min-width: 0;
    }
    .section-header--left .section-link-semua {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
    }

    /* Page hero & back link - mobile */
    .page-hero .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    .page-subtitle {
        font-size: 0.95rem;
    }

    /* Card hover - kurangi transform di mobile agar tidak mengganggu scroll */
    .card-hover:active {
        transform: none;
    }
}

/* Layar sangat kecil (≤480px) - penyempurnaan tambahan */
@media (max-width: 480px) {
    .container,
    .container--wide {
        padding-left: 0.875rem;
        padding-right: 0.875rem;
    }
    .section-statistik {
        padding: 2rem 0;
    }
    .statistik-item {
        padding: 0.875rem 0.5rem;
    }
    .statistik-item .icon {
        width: 2.5rem;
        height: 2.5rem;
        font-size: 1.25rem;
    }
    .statistik-item .nilai {
        font-size: 1.15rem;
    }
    .statistik-item .label {
        font-size: 0.75rem;
    }
    .statistik-charts-title {
        font-size: 1.05rem;
    }
    .statistik-chart-card--bar {
        padding: 1rem 0.875rem;
    }
    .statistik-chart-card--bar .statistik-chart-heading {
        font-size: 0.9375rem;
    }
    .section-title {
        font-size: 1.35rem;
    }
    .section-badge {
        font-size: 0.75rem;
    }
    .page-title {
        font-size: 1.4rem;
    }
    .hero-title {
        font-size: 1.35rem;
    }
    .footer-grid {
        gap: 1.25rem;
    }
}

/* Paksa section Kegiatan & Pengumuman full width - harus menang atas rule lain */
#kegiatan-pengumuman.section-kegiatan-pengumuman {
    width: 100vw !important;
    max-width: 100vw !important;
    position: relative !important;
    left: 50% !important;
    margin-left: -50vw !important;
    right: auto !important;
    margin-right: 0 !important;
    box-sizing: border-box !important;
    overflow-x: visible !important;
}
.section-kegiatan-pengumuman__inner {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: visible !important;
}
.section-kegiatan-pengumuman .section-side-by-side {
    overflow-x: visible !important;
}
.section-kegiatan-pengumuman .section-side-col {
    overflow-x: visible !important;
    min-width: 0;
}
