/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    color: #2c3e50;
    position: relative;
}

.section-subtitle {
    font-size: 1.5rem;
    font-weight: 400;
    text-align: center;
    margin-bottom: 3rem;
    color: #2c3e50;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(45deg, #3498db, #2ecc71);
    margin: 1rem auto;
    border-radius: 2px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(45deg, #3498db, #2980b9);
    color: white;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: #3498db;
}

.bg-light {
    background-color: #f8f9fa;
}


/* Header Styles */
.header {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.title-section h1 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
}

.title-section p {
    font-size: 0.8rem;
    opacity: 0.9;
}

.nav-menu ul {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    margin: 0;
    align-items: center;
}

.nav-menu .dropdown {
    position: relative;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 0.1rem;
    border-radius: 5px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-link:hover {
    background: rgba(255,255,255,0.1);
    color: #3498db;
}

.nav-link.active {
    background: rgba(52, 152, 219, 0.2);
    color: #3498db;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: white;
    transition: 0.3s;
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    margin-top: 90px;
}

.hero-overlay {
    position: relative;
    width: 100%;
    height: 100vh;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.hero-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(44, 62, 80, 0.8), rgba(52, 73, 94, 0.6));
    z-index: -1;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 2rem;
}

.hero-title {
    font-size: 3.5rem;
    line-height: 110%;
    margin-top: 10%;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    font-weight: 300;
}

.hero-text {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2.5rem;
    opacity: 0.9;
}

.hero-text p {
    margin-bottom: 1.5rem;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* JELAJAH DESA BERANDA */
    .explore-services {
        background-color: #fff; /* White background for the section */
        padding: 10px 0;
    }

    .explore-services .container {
        max-width: 1140px;
        margin: 0 auto;
        padding: 0 15px;
        display: flex;
        align-items: center;
        gap: 40px; /* Space between text and cards */
    }

/* --- Left Column: Text Content --- */
    .section-intro {
        flex: 1 1 35%; /* Takes up about 35% of the width */
    }

    .section-intro h2 {
        font-size: 2.5rem; /* Large font size for the title */
        color: #2c3e50; 
        font-weight: 700;
        margin-bottom: 15px;
        }

    .section-intro p {
        font-size: 1.1rem;
        color: #6c757d; /* Soft grey for the paragraph text */
        line-height: 1.6;
    }
        
/* --- Right Column: Service Cards Grid --- */
    .services-grid {
        flex: 1 1 40%; /* Takes up about 60% of the width */
        display: grid;
        grid-template-columns: repeat(2, 1fr); /* 2x2 grid */
        grid-template-rows: repeat(2, 1fr);
        gap: 25px; /* Space between the cards */
    }

.service-card {
    background-color: #fdfdfd;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 30px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none; /* Remove underline from links */
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    min-height: 180px; /* Ensures all cards are the same height */
}

.service-card:hover {
    transform: translateY(-5px); /* Lifts the card on hover */
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08); /* Adds shadow on hover */
}

.service-card i {
    font-size: 4rem; /* Large icons */
    color: #3498db;  /* Green icon color from the image */
    margin-bottom: 20px; /* Space between icon and text */
}

.service-card .card-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #343a40; /* Dark color for the title */
}

/* --- Bagian Utama Sambutan --- */
.welcome-section {
    padding: 80px;
}

.welcome-section .container {
    display: flex;
    align-items: center; /* Membuat logo dan teks sejajar secara vertikal */
    gap: 100px; /* Jarak antara logo dan kolom teks */
}

/* --- Kolom Kiri: Logo --- */
.welcome-emblem {
    flex-shrink: 0; /* Mencegah logo menyusut */
}

.welcome-emblem img {
    width: 300px; /* Ukuran logo */
    height: auto;
    filter: drop-shadow(0px 5px 10px rgba(0,0,0,0.1)); /* Memberi efek bayangan halus */
}

/* --- Kolom Kanan: Teks Sambutan --- */
.welcome-text {
    flex-grow: 1; /* Memastikan kolom teks mengisi sisa ruang */
}

.welcome-text .subtitle {
    font-size: 2.5rem;
    font-weight: 900;
    color: #34495e; /* Warna merah seperti di gambar */
    margin-bottom: 1px;
}

.welcome-text .name {
    font-size: 1.5rem;
    font-weight: 700;
    color: #212529; /* Hitam pekat */
    text-transform: uppercase;
    margin: 0;
}

.welcome-text .title {
    font-size: 1rem;
    color: #6c757d; /* Abu-abu untuk jabatan */
    margin-top: 1px;
    margin-bottom: 10px;
}

.welcome-message {
    position: relative; /* Diperlukan untuk garis vertikal */
    padding-right: 25px; /* Memberi ruang untuk garis */
}

.welcome-message p {
    max-height: 200px;
    overflow-y: auto;
    padding-right: 15px;
    font-size: 1rem;
    line-height: 1.7; /* Jarak antar baris agar mudah dibaca */
    color: #495057; /* Warna teks paragraf */
    text-align: justify;
    margin: 0;
}

.welcome-message p strong {
    display: block; /* Membuat salam menjadi satu baris sendiri */
    margin-bottom: 8px;
    margin-top: 10px;
}

/* --- Penyesuaian untuk Layar Kecil (Mobile) --- */
@media (max-width: 768px) {
.welcome-section .container {
    flex-direction: column; /* Mengubah tata letak menjadi vertikal */
    text-align: center; /* Teks menjadi rata tengah */
}
.welcome-message {
    padding-right: 0; /* Hapus padding */
    text-align: left; /* Kembalikan perataan teks paragraf */
}
.welcome-message::after {
    display: none; /* Sembunyikan garis vertikal di layar kecil */
}
}

/* STOK */
 /* --- Section & Container --- */
        .structure-section {
            max-width: 1200px;
            margin: auto;
            margin-bottom: 40px;
        }

        /* --- Judul Section --- */
        .structure-header {
            text-align: left;
            margin-bottom: 40px;
        }

        .structure-header__main-title {
            font-size: 2.8rem;
            font-weight: 700;
            color: #2c3e50; /* Warna Biru Utama */
            margin: 0;
            text-transform: uppercase;
        }

        .structure-header__subtitle {
            font-size: 1.2rem;
            color: #555;
            margin: 0px 0 0 0;
        }

        /* --- Grid untuk Semua Kartu Pejabat --- */
        .structure-grid {
            display: grid;
            gap: 25px; /* Default: 4 kolom untuk layar besar */
            grid-template-columns: repeat(4, 1fr);
        }

        /* --- Kartu Profil Pejabat --- */
        .official-card {
            position: relative;
            border-radius: 12px;
            overflow: hidden;
            box-shadow: 0 6px 12px rgba(0, 0, 0, 0.08);
            transition: transform 0.3s ease, box-shadow 0.3s ease;
        }

        .official-card:hover {
            transform: translateY(-8px);
            box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);
        }

        .official-card__image {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
            background-color: #ccc; /* Fallback jika gambar tidak ada */
        }

        .official-card__info {
            position: absolute;
            bottom: 0;
            left: 0;
            width: 100%;
            padding: 16px;
            box-sizing: border-box;
            background: #0d6efd; /* Latar belakang biru untuk info */
            color: white;
            text-align: center;
        }
        
        .official-card__name {
            margin: 0;
            font-size: 1.1rem;
            font-weight: 700;
            text-transform: uppercase;
        }

        .official-card__title {
            margin: 4px 0 0 0;
            font-size: 0.85rem;
            font-weight: 400;
            opacity: 0.9;
        }

        /* --- Footer dengan Link --- */
        .structure-footer {
            text-align: right;
            margin-top: 20px;
        }
        
        .structure-footer__view-more {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            padding: 5px 15px;
            background-color: #e9ecef;
            border-radius: 8px;
            text-decoration: none;
            color: #343a40;
            font-weight: 600;
            transition: background-color 0.2s;
        }

        .structure-footer__view-more:hover {
            background-color: #ced4da;
        }

        /* --- CSS Responsif --- */
        
        /* Layar Laptop Kecil / Tablet Besar */
        @media (max-width: 1200px) {
            .structure-grid {
                grid-template-columns: repeat(3, 1fr);
            }
        }
        
        /* Tablet */
        @media (max-width: 768px) {
            .structure-grid {
                grid-template-columns: repeat(2, 1fr);
            }
            .structure-header__main-title {
                font-size: 2.2rem;
            }
            .structure-header__subtitle {
                font-size: 1rem;
            }
        }
        
        /* Ponsel */
        @media (max-width: 576px) {
            .structure-grid {
                grid-template-columns: 1fr;
            }
            .structure-footer {
                text-align: center; /* Tombol menjadi di tengah */
            }
        }


        
/* Content Sections */
.content-section {
    padding: 5rem 0;
}

.intro-text {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 3rem;
    color: #555;
    text-align: center;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* Profile Section */
.profile-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    align-items: start;
}

.profile-image {
    position: sticky;
    top: 120px;
}

.profile-img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.profile-text h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: #2c3e50;
}

.profile-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    text-align: justify;
}

/* Visi Misi */
.visi-misi-content {
    max-width: 1000px;
    margin: 0 auto;
}

.visi-misi-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 3rem;
}

.visi-card, .misi-card {
    background: white;
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-top: 5px solid #3498db;
}

.misi-card {
    border-top-color: #2ecc71;
}

.visi-card h3, .misi-card h3 {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: #2c3e50;
}

.visi-card i {
    color: #3498db;
}

.misi-card i {
    color: #2ecc71;
}

.visi-content p {
    font-size: 1.2rem;
    line-height: 1.8;
    font-style: italic;
    color: #34495e;
    text-align: center;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 4px solid #3498db;
}

.misi-content ol {
    counter-reset: misi-counter;
    list-style: none;
}

.misi-content li {
    counter-increment: misi-counter;
    margin-bottom: 1.5rem;
    padding-left: 3rem;
    position: relative;
    line-height: 1.7;
}

.misi-content li::before {
    content: counter(misi-counter);
    position: absolute;
    left: 0;
    top: 0;
    width: 2rem;
    height: 2rem;
    background: #2ecc71;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9rem;
}

/* Struktur Organisasi */
.struktur-content {
    max-width: 1200px;
    margin: 0 auto;
}

.org-chart {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    margin-top: 3rem;
}

.org-level-1, .org-level-2{
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.org-level-3{
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: nowrap;
}

.org-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    min-width: 280px;
    transition: transform 0.3s ease;
}

.org-card:hover {
    transform: translateY(-5px);
}

.org-card.kepala-desa {
    border-top: 5px solid #e74c3c;
    background: linear-gradient(135deg, #fff, #fdf2f2);
}

.org-card.sekdes {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    min-width: 280px;
    transition: transform 0.3s ease;
}


.org-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1.5rem;
    border: 4px solid #ecf0f1;
}

.org-card h4 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

.position {
    font-weight: 600;
    color: #3498db;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.description {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Statistik */
.statistik-content {
    max-width: 1000px;
    margin: 0 auto;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    padding: 2.5rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.3);
}

.stat-card i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.stat-card h3 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.stat-card p {
    font-size: 1.1rem;
    opacity: 0.9;
}

.demographics-section h3 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: #2c3e50;
    text-align: center;
}

.age-distribution {
    margin-bottom: 3rem;
}

.age-group {
    margin-bottom: 1.5rem;
}

.age-group h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: #34495e;
}

.progress-bar {
    width: 100%;
    height: 20px;
    background: #ecf0f1;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.progress {
    height: 100%;
    background: linear-gradient(45deg, #3498db, #2ecc71);
    border-radius: 10px;
    transition: width 0.3s ease;
}

.age-group span {
    font-weight: 600;
    color: #2c3e50;
}

.livelihood-section h3 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: #2c3e50;
    text-align: center;
}

.livelihood-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.livelihood-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.livelihood-item i {
    font-size: 2rem;
    color: #3498db;
}

.livelihood-item span {
    font-weight: 600;
    color: #2c3e50;
}

/* Peta Desa */
.peta-content {
    max-width: 1000px;
    margin: 0 auto;
}

.map-container {
    position: relative;
    margin-bottom: 3rem;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.map-image {
    width: 100%;
    height: 500px;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.map-container:hover .map-image {
    transform: scale(1.05);
}

.map-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: white;
    padding: 2rem;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.map-container:hover .map-overlay {
    opacity: 1;
}

.legend-dot {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    flex-shrink: 0;
}

.boundary-info {
    margin-top: 3rem;
}

.boundary-info h3 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: #2c3e50;
    text-align: center;
}

.boundary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
}

.boundary-item {
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.boundary-item i {
    font-size: 1rem;
    color: #3498db;
}

.boundary-item strong {
    color: #2c3e50;
    margin-right: 0.3rem;
}

        /* Kontainer Utama Section */
        .shop-section {
            padding: 50px 20px;
        }

        .container {
            max-width: 1200px;
            margin: 0 auto;
        }

        /* Header Judul Section */
        .shop-header {
            margin-bottom: 30px;
        }

        .shop-header .title {
            font-size: 2.5rem;
            font-weight: 900;
            color: #3498db; /* Warna Merah */
            margin: 0;
            text-transform: uppercase;
            text-align: center;
        }

        .shop-header .subtitle {
            font-size: 1.1rem;
            color: #555;
            margin-top: 5px;
        }
        
        /* Grid untuk Produk */
        .product-grid {
            display: grid;
            gap: 25px;
            /* Membuat kolom yang responsif */
            grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        }

        /* Kartu Produk Individual */
        .product-card {
            background-color: #ffffff;
            border-radius: 8px;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.07);
            overflow: hidden;
            display: flex;
            flex-direction: column;
            transition: transform 0.2s ease, box-shadow 0.2s ease;
        }

        .product-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
        }

        .product-card .card-image {
            width: 100%;
            height: 200px;
            object-fit: cover;
        }

        .product-card .card-body {
            padding: 15px;
            border-top: 1px solid #f0f0f0;
            display: flex;
            flex-direction: column;
            flex-grow: 1;
        }

        .product-card .product-name {
            font-size: 1.1rem;
            font-weight: 600;
            color: #333;
            margin: 0 0 5px 0;
        }

        .product-card .product-rating {
            color: #bdc3c7; /* Warna bintang abu-abu */
            font-size: 0.9rem;
            margin-bottom: 10px;
        }

        .product-card .product-price {
            margin-top: auto; /* Mendorong harga ke bawah */
            font-weight: 700;
            color: #555;
            text-align: right;
        }
        
        /* Footer untuk Tombol */
        .shop-footer {
            margin-top: 40px;
            display: flex;
            justify-content: flex-end; /* Mendorong tombol ke kanan */
        }

        .view-more-button {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            background-color: #e9ecef;
            color: #333;
            padding: 10px 15px;
            border-radius: 5px;
            text-decoration: none;
            font-weight: 600;
            font-size: 0.9rem;
            transition: background-color 0.2s;
        }
        
        .view-more-button:hover {
            background-color: #ced4da;
        }

/* Berita Section */
.berita-content {
    max-width: 1200px;
    margin: 0 auto;
}

.news-grid-horizontal {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 20px;
    padding: 1rem 0;
}

.news-grid-horizontal::-webkit-scrollbar {
    display: none;
}
.news-grid-horizontal {
    scrollbar-width: none; /* Firefox */
}


.news-card {
    flex: 0 0 auto;
    scroll-snap-align: start;
    width: 300px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.news-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

.news-content {
    padding: 15px;
}

.news-meta {
    font-size: 0.8rem;
    color: #888;
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.news-card h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.news-card p {
    font-size: 0.95rem;
    color: #444;
}

.read-more {
    display: inline-block;
    margin-top: 10px;
    color: #0066cc;
    font-weight: bold;
    text-decoration: none;
}

.berita-footer {
    text-align: right;
    margin-top: 0.5px;
}

/* Galeri Beranda */
        /* Kontainer Utama Section (Full Width) */
        .gallery-section-full {
            /* Padding hanya di atas dan bawah */
            padding: 50px 50px; 
            background-color: #fff; /* Warna latar belakang abu-abu terang */
        }
        
        /* Kontainer untuk membatasi lebar konten seperti header */
        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 0.1px;
        }

        /* Header Judul Section (BARU) */
        .section-header {
            /* Beri padding kiri-kanan agar teks tidak menempel di tepi layar */
            padding: 0 1px; 
            text-align: center;
            margin-bottom: 15px;
            /* Batasi lebar header dan tengahkan, agar sejajar dengan konten lain di situs Anda */
            max-width: 1200px;
            margin-left: auto;
            margin-right: auto;
        }

        .section-header .title {
            font-size: 2.5rem;
            font-weight: 900;
            color: #2c3e50; /* Warna Merah */
            margin: 0;
            text-transform: uppercase;
        }

        .section-header .subtitle {
            font-size: 1.1rem;
            color: #555;
            margin-top: 5px;
        }

        /* Grid untuk Galeri Foto */
        .gallery-grid-full {
            display: grid;
            /* Membuat 3 kolom yang sama besar */
            grid-template-columns: repeat(3, 1fr);
            /* Jarak antar gambar sangat kecil */
            gap: 5px; 
        }

        /* Item Foto Individual */
        .gallery-item-full {
            overflow: hidden;
            position: relative; /* Diperlukan untuk overlay */
        }
        
        .gallery-item-full a {
            display: block;
            height: 100%;
        }

        .gallery-item-full img {
            width: 100%;
            height: 100%;
            object-fit: cover; 
            display: block; /* Menghilangkan spasi bawah pada gambar */
            transition: transform 0.3s ease, filter 0.3s ease;
        }

        /* Efek saat hover */
        .gallery-item-full:hover img {
            transform: scale(1.05);
            filter: brightness(0.7);
        }
        
        /* Footer untuk Tombol */
        .gallery-footer-full {
            /* Gunakan padding agar sejajar dengan konten lain jika ada */
            padding: 0 20px; 
            max-width: 1200px; /* Sesuaikan dengan lebar konten utama Anda */
            margin: 20px auto 0 auto; /* Jarak atas dan tengahkan */
            display: flex;
            justify-content: flex-end; /* Mendorong tombol ke kanan */
        }

        .view-more-button {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            background-color: #e9ecef;
            color: #333;
            padding: 10px 15px;
            border-radius: 5px;
            text-decoration: none;
            font-weight: 600;
            font-size: 0.9rem;
            transition: background-color 0.2s;
        }
        
        .view-more-button:hover {
            background-color: #ced4da;
        }

        /* Aturan Responsif */
        @media (max-width: 768px) {
            .gallery-grid-full {
                grid-template-columns: repeat(2, 1fr);
            }
        }

        @media (max-width: 576px) {
            .gallery-grid-full {
                grid-template-columns: 1fr;
            }
        }

/* GALERI FULL */
/* Kontainer Utama Section */
.gallery-section {
    padding: 100px 100px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Header Judul Section */
.section-header {
    margin-bottom: 30px;
}

.section-header .title {
    font-size: 2.5rem;
    font-weight: 900;
    color: #3498db; /* Warna Merah */
    margin: 0;
    text-transform: uppercase;
}

.section-header .subtitle {
    font-size: 1.1rem;
    color: #555;
    margin-top: 3px;
}

/* Grid untuk Galeri Foto */
.gallery-grid {
    display: grid;
    gap: 15px;
    /* Membuat 4 kolom di layar besar */
    grid-template-columns: repeat(4, 1fr);
}

/* Item Foto Individual */
.gallery-item {
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    aspect-ratio: 4 / 3; /* Menjaga rasio aspek gambar */
}

.gallery-item a {
    display: block;
    height: 100%;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Navigasi Halaman (Pagination) */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 40px;
    gap: 8px;
}

.pagination a {
    color: #333;
    text-decoration: none;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-weight: 600;
    transition: background-color 0.2s, color 0.2s;
}

.pagination a:hover {
    background-color: #f0f0f0;
    border-color: #ccc;
}

.pagination a.active {
    background-color: #3498db; /* Warna Merah */
    color: white;
    border-color: #3498db;
}

/* Aturan Responsif */
@media (max-width: 992px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}

/* APBDes Section */
.apbdes-content {
    max-width: 1200px;
    margin: 0 auto;
}

.apbdes-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.apbdes-card {
    padding: 3rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    color: white;
}

.apbdes-card.pendapatan {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
}

.apbdes-card.belanja {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
}

.apbdes-card.saldo {
    background: linear-gradient(135deg, #f39c12, #e67e22);
}

.apbdes-card h3 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.amount {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.apbdes-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.pendapatan-section, .belanja-section {
    background: white;
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.pendapatan-section {
    border-top: 5px solid #2ecc71;
}

.belanja-section {
    border-top: 5px solid #e74c3c;
}

.pendapatan-section h3, .belanja-section h3 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: #2c3e50;
    text-align: center;
}

.budget-items {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.budget-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.item-name {
    font-weight: 600;
    color: #2c3e50;
}

.item-amount {
    font-weight: 700;
    color: #3498db;
    font-size: 1.1rem;
}

.item-percentage {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.item-percentage .progress-bar {
    flex: 1;
    height: 12px;
}

.item-percentage span {
    min-width: 50px;
    font-weight: 600;
    color: #666;
}

/* PPID Section */
.ppid-content {
    max-width: 1200px;
    margin: 0 auto;
}

.ppid-info {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

.ppid-card {
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    border-top: 5px solid #3498db;
}

.ppid-card h3 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: #2c3e50;
}

.officer-info {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.officer-photo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #ecf0f1;
}

.officer-details h4 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

.officer-details .position {
    color: #3498db;
    font-weight: 600;
    margin-bottom: 1rem;
}

.officer-details .contact {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #666;
}

.info-categories h3 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: #2c3e50;
    text-align: center;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.category-item {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    border-top: 4px solid #3498db;
}

.category-item i {
    font-size: 2.5rem;
    color: #3498db;
    margin-bottom: 1.5rem;
    display: block;
}

.category-item h4 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.category-item p {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.category-item ul {
    list-style: none;
}

.category-item li {
    padding: 0.3rem 0;
    color: #555;
    position: relative;
    padding-left: 1.5rem;
}

.category-item li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: #2ecc71;
    font-size: 0.8rem;
}

.ppid-services {
    background: white;
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    margin-bottom: 3rem;
}

.ppid-services h3 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: #2c3e50;
    text-align: center;
}

.services-list {
    display: flex;
    gap: 2rem;
    justify-content: space-between;
}

.service-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.step-content h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

.step-content p {
    color: #666;
    line-height: 1.6;
}

.ppid-contact {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 10px;
    border-left: 5px solid #3498db;
}

.ppid-contact h4 {
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    color: #2c3e50;
}

.contact-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.contact-item {
    text-align: center;
    padding: 0.5rem;
}

.contact-item i {
    font-size: 2rem;
    color: #3498db;
    margin-bottom: 1rem;
    display: block;
}

.contact-item strong {
    display: block;
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

.contact-item p {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Kontak Section */
.kontak-content {
    max-width: 1200px;
    margin: 0 auto;
}

.kontak-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.kontak-info h3, .kontak-form h3 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: #2c3e50;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.contact-item i {
    font-size: 1.5rem;
    color: #3498db;
    margin-top: 0.3rem;
    min-width: 24px;
}

.contact-item strong {
    display: block;
    margin-bottom: 0.5rem;
    color: #2c3e50;
    font-size: 1.1rem;
}

.contact-item p {
    color: #666;
    line-height: 1.6;
}

.social-media {
    margin-top: 3rem;
}

.social-media h4 {
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    color: #2c3e50;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: white;
    border-radius: 10px;
    text-decoration: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
}

.social-link:hover {
    transform: translateX(10px);
}

.social-link i {
    font-size: 1.5rem;
    width: 30px;
    text-align: center;
}

.social-link.facebook i { color: #1877f2; }
.social-link.instagram i { color: #e4405f; }
.social-link.youtube i { color: #ff0000; }
.social-link.whatsapp i { color: #25d366; }

.social-link span {
    color: #2c3e50;
    font-weight: 500;
}

.contact-form {
    background: white;
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #2c3e50;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #ecf0f1;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3498db;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.map-section {
    margin-top: 4rem;
}

.map-section h3 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: #2c3e50;
    text-align: center;
}

.location-map {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 15px;
    cursor: pointer;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: white;
    padding: 4rem 0 0;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h4 {
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    
    color: #3498db;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.footer-logo-img {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.footer-logo h3 {
    font-size: 1.5rem;
    margin-bottom: 0.2rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.8rem;
}

.footer-section ul li a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #3498db;
}

.footer-contact p {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0.8rem;
    color: #bdc3c7;
}

.footer-contact i {
    color: #3498db;
    min-width: 20px;
}

.footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    color: white;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: #3498db;
    transform: translateY(-2px);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 2rem 0;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #3498db;
}

/* Back to Top */
.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    position: relative;
    margin: 5% auto;
    max-width: 90%;
    max-height: 80%;
    text-align: center;
}

.modal-content img {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
    border-radius: 10px;
}

.modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    font-size: 40px;
    color: white;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.modal-close:hover {
    opacity: 0.7;
}

.modal-caption {
    color: white;
    text-align: center;
    padding: 1rem;
    font-size: 1.2rem;
    background: rgba(0,0,0,0.5);
    border-radius: 0 0 10px 10px;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .header .container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-menu ul {
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .profile-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .profile-image {
        position: static;
        order: -1;
    }
    
    .visi-misi-grid {
        grid-template-columns: 1fr;
    }
    
    .org-level-2, .org-level-3 {
        flex-direction: column;
        align-items: center;
    }
    
    .apbdes-detail {
        grid-template-columns: 1fr;
    }
    
    .ppid-info {
        grid-template-columns: 1fr;
    }
    
    .kontak-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .services-list {
        flex-direction: column;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .nav-menu {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-text {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .news-card.featured {
        grid-column: span 1;
    }
    
    .gallery-tabs {
        flex-direction: column;
        align-items: center;
    }
    
    .officer-info {
        flex-direction: column;
        text-align: center;
    }
    
    .category-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }
    
    .boundary-grid {
        grid-template-columns: 1fr;
    }
    
    .livelihood-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-content {
        padding: 1rem;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .service-card,
    .layanan-card,
    .umkm-card,
    .news-card {
        margin: 0 10px;
    }
    
    .contact-form {
        padding: 2rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .apbdes-summary {
        grid-template-columns: 1fr;
    }
    
    .amount {
        font-size: 2rem;
    }
    
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.show {
    opacity: 1;
    transform: translateY(0);
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.6s ease;
}

.slide-in-left.show {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.6s ease;
}

.slide-in-right.show {
    opacity: 1;
    transform: translateX(0);
}

.scale-in {
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.6s ease;
}

.scale-in.show {
    opacity: 1;
    transform: scale(1);
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, #3498db, #2980b9);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(45deg, #2980b9, #3498db);
}

/* Print Styles */
@media print {
    .header,
    .footer,
    .back-to-top,
    .hero-buttons,
    .btn {
        display: none !important;
    }
    
    .content-section {
        page-break-inside: avoid;
        padding: 1rem 0;
    }
    
    .section-title {
        page-break-after: avoid;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
}-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
    z-index: 1000;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

/* Modal Gallery */
.modal {
    display: none;
    position: fixed;
    z-index: 1050;
    padding-top: 100px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.8);
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 80vh;
    border-radius: 10px;
}

.modal-caption {
    margin: 2rem auto;
    text-align: center;
    color: #fff;
    max-width: 700px;
}

.modal-close {
    position: absolute;
    top: 30px;
    right: 40px;
    color: white;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #3498db;
    color: white;
    border: none;
    padding: 0.8rem 1rem;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    display: none;
    z-index: 999;
    transition: all 0.3s ease;
}

.back-to-top.show {
    display: block;
}

/* Notification Styles */
.notification {
    position: fixed;
    top: 100px;
    right: 20px;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    z-index: 9999;
    max-width: 400px;
    transition: all 0.3s ease;
}

.notification-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.notification-close {
    background: transparent;
    border: none;
    font-size: 1.5rem;
    color: white;
    cursor: pointer;
    margin-left: 1rem;
}

/* Infografis Page Styles */
.infografis-hero {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    padding: 1rem 0 1rem;
    margin-top: 0.5px;
    text-align: left;
}

.infografis-hero .hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.infografis-hero .hero-title span {
    color: #f39c12;
}

.infografis-hero .hero-subtitle {
    font-size: 1.3rem;
    opacity: 0.9;
    font-weight: 300;
}

/* Navigation Tabs */
.infografis-nav {
    background: white;
    padding: 2rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: static;
    top: 90px;
    z-index: 100;
}

.nav-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.nav-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.5rem 2rem;
    background: white;
    border: 2px solid #2980b9;
    border-radius: 15px;
    color: #3498db;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
}

.nav-tab:hover,
.nav-tab.active {
    background: #3498db;
    color: white;
    transform: translateY(-5px);
    box-shadow: 0 5px 5px rgba(0, 0, 0,2.5);
}

.nav-tab i {
    font-size: 2rem;
}

.nav-tab span {
    font-weight: 600;
    font-size: 0.9rem;
}

/* Tab Content */
.infografis-content {
    padding: 4rem 0;
    min-height: 60vh;
}

.tab-content {
    display: none;
    animation: fadeIn 0.5s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Penduduk Tab Styles */
.penduduk-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.stat-card-large {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    padding: 3rem;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 2rem;
    box-shadow: 0 15px 35px rgba(52, 152, 219, 0.3);
    grid-column: span 2;
}

.stat-icon {
    font-size: 4rem;
    opacity: 0.9;
}

.stat-info h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.stat-number {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1;
}

.stat-info p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Demographic Breakdown */
.demographic-breakdown {
    display: flex;
    gap: 2rem;
}

.breakdown-item {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex: 1;
}

.breakdown-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
}

.breakdown-icon.male {
    background: linear-gradient(135deg, #3498db, #2980b9);
}

.breakdown-icon.female {
    background: linear-gradient(135deg, #e91e63, #c2185b);
}

.breakdown-info h4 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

.breakdown-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 0.3rem;
}

.breakdown-percentage {
    font-size: 1.1rem;
    color: #666;
    font-weight: 600;
}

/* Age Distribution Chart */
.age-distribution-chart {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.age-distribution-chart h3 {
    text-align: center;
    margin-bottom: 3rem;
    color: #2c3e50;
    font-size: 1.8rem;
}

.age-groups {
    display: flex;
    justify-content: space-around;
    align-items: end;
    height: 300px;
    gap: 2rem;
}

.age-group-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    flex: 1;
}

.age-bar {
    width: 80px;
    background: linear-gradient(to top, #e74c3c, #c0392b);
    border-radius: 10px 10px 0 0;
    position: relative;
    transition: height 1s ease;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 10px;
}

.age-percentage {
    color: white;
    font-weight: bold;
    font-size: 0.9rem;
}

.age-label {
    font-weight: 600;
    color: #2c3e50;
    text-align: center;
}

.age-count {
    font-size: 0.9rem;
    color: #666;
    text-align: center;
}

/* KK Info */
.kk-info {
    grid-column: span 2;
    display: flex;
    justify-content: center;
}

.kk-card {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    color: white;
    padding: 3rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 15px 35px rgba(46, 204, 113, 0.3);
    min-width: 300px;
}

.kk-card i {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.kk-card h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.kk-number {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

/* APBDes Tab Styles */
.apbdes-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.apbdes-card-info {
    padding: 3rem;
    border-radius: 20px;
    text-align: center;
    color: white;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

.apbdes-card-info.pendapatan {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
}

.apbdes-card-info.belanja {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
}

.apbdes-card-info.surplus {
    background: linear-gradient(135deg, #f39c12, #e67e22);
}

.apbdes-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.apbdes-card-info h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.apbdes-amount {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

/* Budget Breakdown */
.budget-breakdown {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.budget-section h3 {
    text-align: center;
    margin-bottom: 3rem;
    color: #2c3e50;
    font-size: 1.8rem;
}

.budget-chart {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.budget-item-chart {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.budget-bar {
    height: 40px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0 1rem;
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    min-width: 200px;
}

.budget-amount {
    font-weight: 700;
    color: #2c3e50;
    font-size: 1.1rem;
    min-width: 150px;
}

/* Stunting Tab Styles */
.stunting-info {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
}

.stunting-card {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    padding: 3rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 15px 35px rgba(231, 76, 60, 0.3);
}

.stunting-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.stunting-card h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.stunting-percentage {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stunting-stats {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.stunting-stat {
    text-align: center;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 15px;
    border-left: 5px solid #3498db;
}

.stunting-stat h4 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: #3498db;
}

.stat-value.stunting-count {
    color: #e74c3c;
}

.stat-value.target {
    color: #2ecc71;
}

/* Bansos Tab Styles */
.bansos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.bansos-card {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-top: 5px solid #3498db;
    transition: transform 0.3s ease;
}

.bansos-card:hover {
    transform: translateY(-10px);
}

.bansos-icon {
    font-size: 4rem;
    color: #3498db;
    margin-bottom: 1.5rem;
}

.bansos-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: #2c3e50;
}

.bansos-count {
    font-size: 3.5rem;
    font-weight: 700;
    color: #e74c3c;
    margin-bottom: 0.5rem;
}

/* IDM Tab Styles */
.idm-info {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    max-width: 1000px;
    margin: 0 auto;
}

.idm-score {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.idm-circle {
    width: 200px;
    height: 200px;
    border: 10px solid #3498db;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: white;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.idm-percentage {
    font-size: 3rem;
    font-weight: 700;
    color: #3498db;
}

.idm-circle p {
    color: #666;
    margin-top: 0.5rem;
}

.idm-status {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.idm-status.berkembang {
    border-top: 5px solid #f39c12;
}

.idm-status h3 {
    font-size: 2rem;
    color: #f39c12;
    margin-bottom: 0.5rem;
}

.idm-components {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.idm-component {
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 15px;
}

.idm-component h4 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.component-score {
    font-size: 2rem;
    font-weight: 700;
    color: #3498db;
    margin-bottom: 1rem;
}

.component-bar {
    width: 100%;
    height: 15px;
    background: #ecf0f1;
    border-radius: 10px;
    overflow: hidden;
}

.component-fill {
    height: 100%;
    background: linear-gradient(45deg, #3498db, #2980b9);
    border-radius: 10px;
    transition: width 1s ease;
}

/* SDGs Tab Styles */
.sdgs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.sdgs-card {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.sdgs-card:hover {
    transform: translateY(-5px);
}

.sdgs-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
    margin-bottom: 1.5rem;
}

.sdgs-icon.poverty { background: #e5243b; }
.sdgs-icon.hunger { background: #dda63a; }
.sdgs-icon.health { background: #4c9f38; }
.sdgs-icon.education { background: #c5192d; }
.sdgs-icon.water { background: #26bde2; }
.sdgs-icon.energy { background: #fcc30b; }

.sdgs-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    color: #2c3e50;
}

.sdgs-progress {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.progress-bar-sdgs {
    flex: 1;
    height: 15px;
    background: #ecf0f1;
    border-radius: 10px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(45deg, #2ecc71, #27ae60);
    border-radius: 10px;
    transition: width 1s ease;
}

.sdgs-progress span {
    font-weight: 700;
    color: #2c3e50;
    min-width: 50px;
}

/* Mobile Responsive */
@media (max-width: 1024px) {
    .penduduk-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-card-large {
        grid-column: span 1;
    }
    
    .demographic-breakdown {
        flex-direction: column;
    }
    
    .idm-info {
        grid-template-columns: 1fr;
    }
    
    .stunting-info {
        grid-template-columns: 1fr;
    }
    
    .nav-tabs {
        gap: 0.5rem;
    }
    
    .nav-tab {
        min-width: 100px;
        padding: 1rem 1.5rem;
    }
}

@media (max-width: 768px) {
    .infografis-hero .hero-title {
        font-size: 2.5rem;
    }
    
    .nav-tabs {
        flex-direction: column;
        align-items: center;
    }
    
    .nav-tab {
        flex-direction: row;
        min-width: 200px;
        justify-content: center;
    }
    
    .age-groups {
        height: 200px;
        gap: 1rem;
    }
    
    .age-bar {
        width: 60px;
    }
    
    .apbdes-summary-grid {
        grid-template-columns: 1fr;
    }
    
    .bansos-grid {
        grid-template-columns: 1fr;
    }
    
    .sdgs-grid {
        grid-template-columns: 1fr;
    }
    
    .budget-item-chart {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .budget-bar {
        width: 100%;
        min-width: auto;
    }
}

@media (max-width: 480px) {
    .infografis-hero {
        padding: 6rem 0 3rem;
    }
    
    .infografis-hero .hero-title {
        font-size: 2rem;
    }
    
    .stat-card-large {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    .breakdown-item {
        flex-direction: column;
        text-align: center;
    }
    
    .breakdown-icon {
        width: 60px;
        height: 60px;
        font-size: 2rem;
    }
    
    .age-groups {
        height: 150px;
    }
    
    .age-bar {
        width: 40px;
    }
    
    .idm-circle {
        width: 150px;
        height: 150px;
    }
    
    .idm-percentage {
        font-size: 2.5rem;
    }
}

        /* --- Kontainer Utama --- */
        .container {
            max-width: 1200px;
            margin: 0 auto;
        }

        /* --- Judul & Sub-judul Halaman --- */
        .page-header {
            text-align: center;
            margin-bottom: 30px;
        }

        .page-header .title {
            font-size: 2.8rem;
            font-weight: 900;
            color: #3498db; /* Merah */
            margin: 0;
            text-transform: uppercase;
        }

        .page-header .subtitle {
            font-size: 1.2rem;
            color: #555;
            margin: 5px 0 0 0;
        }
        .page-header .subtitle strong em {
            color: #3498db;
        }

        /* --- Bagian Utama Kontainer Peta --- */
        .map-container {
            background-color: #fff;
            padding: 25px;
            border-radius: 12px;
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
        }

        /* --- Toolbar di Atas Peta --- */
        .map-toolbar {
            display: flex;
            flex-wrap: wrap;
            justify-content: space-between;
            align-items: center;
            gap: 15px;
            padding-bottom: 20px;
            margin-bottom: 20px;
            border-bottom: 1px solid #e9ecef;
        }

        .search-input {
            padding: 10px 15px;
            border: 1px solid #ced4da;
            border-radius: 8px;
            font-size: 1rem;
            min-width: 250px;
        }

        .filter-select {
            padding: 10px;
            border: 1px solid #ced4da;
            border-radius: 8px;
            font-size: 1rem;
            background-color: #fff;
            min-width: 200px;
        }
        
        /* --- Kontainer untuk Iframe agar Responsif --- */
        .map-embed-wrapper {
            position: relative;
            width: 100%;
            overflow: hidden;
            padding-top: 60%; /* Aspect Ratio 16:9. Sesuaikan jika perlu (misal: 75% untuk 4:3) */
            border-radius: 8px;
        }

        .map-embed-wrapper iframe {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            border: 0;
        }

        /* Berita */
        .news-section {
            padding: 100px 20px;
        }

        .container {
            max-width: 1100px;
            margin: 0 auto;
        }

        /* Grid untuk Kartu Berita */
        .news-grid {
            display: grid;
            gap: 30px;
            margin: auto;
            /* Default 3 kolom untuk layar besar */
            grid-template-columns: repeat(3, 1fr);
        }

        /* Styling Kartu Berita */
        .news-card {
            background-color: #ffffff;
            border-radius: 10px;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
            overflow: visible;
            display: flex;
            flex-direction: column;
            transition: transform 0.3s ease, box-shadow 0.3s ease;
        }

        .news-card:hover {
            transform: translateY(-8px);
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
        }

        /* Gambar pada Kartu */
        .card-image-container {
            overflow: hidden;
            height: 220px;
        }

        .card-image {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.4s ease;
        }

        .news-card:hover .card-image {
            transform: scale(1.05);
        }

        /* Konten Teks pada Kartu */
        .card-content {
            padding: 20px;
            flex-grow: 1;
            display: flex;
            flex-direction: column;
            position: relative;
        }

        .card-title {
            margin: 0 0 10px 0;
            font-size: 1.25rem;
            font-weight: 700;
        }

        .card-title a {
            text-decoration: none;
            color: #333;
            transition: color 0.2s;
        }

        .card-title a:hover {
            color: #3498db; /* Warna merah seperti di header */
        }

        .card-excerpt {
            font-size: 0.95rem;
            color: #666;
            line-height: 1.6;
            margin: 0 0 20px 0;
            flex-grow: 1; /* Mendorong meta ke bawah */
        }

        .card-meta i {
            margin-right: 6px;
        }

        /* Tanggal di Pojok Kartu */
        .card-date {
            position: absolute;
            bottom: 0px;
            right: 0px;
            background-color: #3498db;
            color: white;
            padding: 5px 10px;
            border-radius: 5px;
            text-align: center;
            font-weight: bold;
            line-height: 1.2;
        }

        .date-day {
            display: block;
            font-size: 1.5rem;
        }

        .date-month-year {
            display: block;
            font-size: 0.75rem;
            text-transform: uppercase;
        }
        
        /* Pagination */
        .pagination {
            display: flex;
            justify-content: center;
            align-items: center;
            margin-top: 40px;
            gap: 5px;
        }
        .pagination a {
            color: #333;
            text-decoration: none;
            padding: 10px 15px;
            border: 1px solid #ddd;
            border-radius: 5px;
            transition: background-color 0.2s, color 0.2s;
        }
        .pagination a:hover {
            background-color: #3498db;
            color: white;
            border-color: #3498db;
        }
        .pagination a.active {
            background-color: #3498db;
            color: white;
            border-color: #3498db;
        }


        /* Aturan Responsif */
        /* Tablet */
        @media (max-width: 992px) {
            .news-grid {
                grid-template-columns: repeat(2, 1fr);
            }
        }

        /* Ponsel */
        @media (max-width: 768px) {
            .news-grid {
                grid-template-columns: 1fr;
            }
        }

        /* detail berita */
        .page-container {
            max-width: 1200px;
            margin: 0 auto;
            display: grid;
            grid-template-columns: 2.5fr 1fr; /* Kolom artikel lebih lebar dari sidebar */
            gap: 30px;
            background-color: #fff;
            padding: 100px;
            border-radius: 8px;
            box-shadow: 0 4px 20px rgba(0,0,0,0.05);
        }
        
        /* --- Kolom Artikel Utama (Kiri) --- */
        .main-article {
            width: 100%;
        }
        
        .breadcrumbs {
            font-size: 0.9rem;
            color: #888;
            margin-bottom: 15px;
        }
        .breadcrumbs a {
            color: #3498db;
            text-decoration: none;
        }
        .breadcrumbs a:hover {
            text-decoration: underline;
        }
        
        .article-title {
            font-size: 2.2rem;
            font-weight: 700;
            color: #333;
            line-height: 1.3;
            margin: 0 0 15px 0;
        }
        
        .article-meta {
            display: flex;
            flex-wrap: wrap;
            gap: 20px;
            font-size: 0.85rem;
            color: #777;
            margin-bottom: 20px;
            padding-bottom: 15px;
            border-bottom: 1px solid #eee;
        }
        .article-meta i {
            margin-right: 6px;
            color: #aaa;
        }
        
        .featured-image {
            width: 80%;
            height: auto;
            border-radius: 8px;
            margin-bottom: 25px;
        }
        
        .article-body p {
            font-size: 1.1rem;
            line-height: 1.8;
            color: #333;
            margin: 0 0 20px 0;
        }
        .article-body p:first-of-type strong {
            font-weight: 600;
            color: #000;
        }
        
        
        /* --- Aturan Responsif --- */
        @media (max-width: 992px) {
            .page-container {
                grid-template-columns: 1fr; /* Stack kolom menjadi satu */
            }
        }
        
        @media (max-width: 768px) {
            body {
                padding: 0;
            }
            .page-container {
                padding: 20px;
                border-radius: 0;
            }
            .article-title {
                font-size: 1.8rem;
            }
        }

        /* bansos.html */
        /* --- Pengaturan Dasar (Bisa disesuaikan) --- */
.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Section Bansos --- */
.bansos-section {
    padding: 50px 0;
}

.bansos-title {
    font-size: 2.5rem;
    font-weight: 900;
    color: #3498db; /* Warna Merah */
    margin: 0 0 30px 0;
    text-transform: uppercase;
}

/* Grid untuk Kartu Statistik */
.bansos-grid {
    display: grid;
    gap: 20px;
    /* Membuat 2 kolom di layar besar */
    grid-template-columns: repeat(2, 1fr);
}

/* Kartu Statistik Individual */
.bansos-card {
    display: flex;
    align-items: center;
    gap: 20px;
    background-color: #ffffff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.07);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.bansos-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* Bagian Angka (Kiri) */
.card-amount {
    text-align: center;
    flex-shrink: 0; /* Mencegah bagian ini menyusut */
}

.card-amount .number {
    display: block;
    font-size: 3rem;
    font-weight: 700;
    color: #333;
    line-height: 1;
}

.card-amount .label {
    display: block;
    font-size: 1rem;
    color: #555;
}

/* Bagian Deskripsi (Kanan) */
.card-description {
    display: flex;
    flex-direction: column;
}

.card-description span {
    font-size: 1rem;
    color: #666;
}

.card-description strong {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
}

/* Aturan Responsif untuk Layar Kecil */
@media (max-width: 768px) {
    .bansos-grid {
        /* Mengubah menjadi 1 kolom */
        grid-template-columns: 1fr;
    }

    .bansos-title {
        font-size: 2rem;
        text-align: center;
    }
}

        /* ======================================= */
        /* ====== BAGIAN ADMINISTRASI PENDUDUK ====== */
        /* ======================================= */

        /* Pengaturan Font & Warna Dasar (Bisa digabung di file CSS utama) */
        :root {
            --primary-blue: #2c3e50;
            --secondary-blue: #3498db;
            --text-dark: #333;
            --text-light: #666;
            --border-color: #eeeeee;
            --background-light: #f8f9fa;
        }

        /* Kontainer Utama untuk bagian ini */
        .population-stats {
            max-width: 960px;
            margin: 0 auto 60px auto; /* Memberi jarak bawah ke section APB */
        }

        /* Header Judul */
        .population-stats__header {
            text-align: center;
            margin-bottom: 40px;
        }

        .population-stats__title {
            font-size: 2.8rem;
            font-weight: 700;
            color: var(--primary-blue);
            margin: 0 0 10px 0;
        }

        .population-stats__description {
            font-size: 1.1rem;
            color: var(--text-light);
            line-height: 1.6;
            max-width: 800px;
            margin: 0 auto;
        }

        /* Grid untuk Statistik */
        .population-stats__grid {
            display: grid;
            gap: 15px;
            grid-template-columns: repeat(2, 1fr);
        }

        /* Item Statistik Individual */
        .population-stats__item {
            display: flex;
            background-color: #ffffff;
            border-bottom: 1px solid var(--border-color);
            transition: transform 0.2s ease, box-shadow 0.2s ease;
        }

        .population-stats__item:hover {
            transform: scale(1.02);
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
            z-index: 10;
        }

        .population-stats__number {
            background-color: var(--secondary-blue);
            color: white;
            padding: 20px;
            font-size: 2.2rem;
            font-weight: 700;
            display: flex;
            align-items: center;
            justify-content: center;
            width: 150px;
        }

        .population-stats__label {
            padding: 20px;
            font-size: 1.1rem;
            font-weight: 600;
            display: flex;
            align-items: center;
            flex-grow: 1;
            border-left: 1px solid var(--border-color);
        }

        /* Aturan Responsif untuk Statistik Penduduk */
        @media (max-width: 768px) {
            .population-stats__grid {
                grid-template-columns: 1fr;
            }
            .population-stats__title {
                font-size: 2rem;
            }
        }


        /* ======================================= */
        /* ====== BAGIAN APB DESA ====== */
        /* ======================================= */

        .apb-section {
            padding: 60px 20px;
            background-color: #fff; /* Memberi latar belakang putih agar menonjol */
        }

        .apb-section__container {
            display: flex;
            align-items: center;
            gap: 60px; /* Jarak antara gambar dan teks */
            max-width: 1140px;
            margin: 0 auto;
        }

        /* Kolom Kiri: Ilustrasi */
        .apb-section__illustration {
            flex: 1;
            min-width: 40%;
            text-align: center;
        }

        .apb-section__illustration img {
            max-width: 100%;
            height: auto;
        }

        /* Kolom Kanan: Detail Data */
        .apb-section__details {
            flex: 1.5; /* Memberi lebih banyak ruang untuk teks */
        }

        .apb-section__title {
            font-size: 2.8rem;
            font-weight: 900;
            color: #2c3e50;
            margin: 0 0 10px 0;
        }

        .apb-section__subtitle {
            font-size: 1.1rem;
            color: #555;
            line-height: 1.6;
            margin: 0 0 30px 0;
        }

        /* Kartu Data */
        .apb-section__card {
            background-color: #f9f9f9;
            padding: 20px;
            border-radius: 10px;
            box-shadow: 0 5px 25px rgba(0, 0, 0, 0.05);
            margin-bottom: 15px;
            border-left: 5px solid var(--secondary-blue);
        }

        .apb-section__card-label {
            font-size: 1rem;
            color: #777;
            margin: 0 0 5px 0;
        }

        .apb-section__card-amount {
            font-size: 2.2rem;
            font-weight: 700;
            color: #444;
            margin: 0;
            word-break: break-all;
        }

        /* Link Lihat Data */
        .apb-section__view-more {
            display: inline-flex;
            align-items: center;
            gap: 10px;
            margin-top: 20px;
            text-decoration: none;
            color: #444;
            font-weight: 600;
            transition: color 0.2s;
        }

        .apb-section__view-more:hover {
            color: var(--secondary-blue);
        }

        /* Aturan Responsif untuk APB Desa */
        @media (max-width: 992px) {
            .apb-section__container {
                flex-direction: column;
                text-align: center;
            }
            .apb-section__illustration {
                margin-bottom: 30px;
            }
            .apb-section__card-amount {
                font-size: 1.8rem;
            }
        }