/* styles.css - Pastikan ini ada di assets/css/ */

/* Reset */
* { 
    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: #f9f9f9; 
}

.container { 
    width: 90%; 
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 0 20px; 
}

/* Header */
header { 
    background: #2E7D32; 
    color: white; 
    padding: 20px 0; 
    position: sticky; 
    top: 0; 
    z-index: 1000; 
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); 
}

header .container { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
}

.logo { 
    font-size: 1.8rem; 
}

.logo span { 
    color: #FFEB3B; 
}

nav a { 
    color: white; 
    text-decoration: none; 
    margin-left: 25px; 
    font-weight: 500; 
    transition: color 0.3s; 
}

nav a:hover { 
    color: #FFEB3B; 
}


/* Reset & Dasar */
* {
    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: #f9f9f9;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 60px 0;
}

/* Header */
/* === HEADER UTAMA - LAYOUT SEJAJAR === */
header {
    background: #2E7D32;
    color: white;
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 70px;
}

/* Logo Section di Kiri */
.logo-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Logo Container Styles */
.logo-kabupaten,
.logo-nagari {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Logo Images */
.logo-img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    border-radius: 3px;
}

.logo-nagari-img {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

/* Logo Text */
.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.logo-text span {
    font-size: 0.7rem;
    font-weight: 600;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.logo-text .kabupaten {
    font-size: 0.75rem;
    color: #FFEB3B;
    font-weight: 500;
}

.logo-text .provinsi {
    font-size: 0.65rem;
    color: white;
    font-weight: 400;
}

/* Nagari Title */
.nagari-title {
    display: flex;
    flex-direction: column;
    line-height: 1;
    margin: 0;
}

.nagari-text {
    font-size: 0.9rem;
    font-weight: 500;
    color: white;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.talang-text {
    font-size: 1.4rem;
    font-weight: 700;
    color: #FFEB3B;
    letter-spacing: 0.5px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* =========================================== */
/* NAVIGASI SEJAJAR - LAYOUT HORIZONTAL RATA */
/* =========================================== */
.nav-right {
    display: flex;
    justify-content: space-between; /* Rata kanan kiri */
    align-items: center;
    background: rgba(0, 0, 0, 0.15);
    border-radius: 6px;
    padding: 2px;
    min-width: 500px;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2);
}

.nav-link {
    flex: 1; /* Membagi ruang sama rata */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 4px;
    margin: 0 1px;
    border-radius: 4px;
    transition: all 0.2s;
    font-size: 0.75rem;
    text-align: center;
    min-height: 50px;
    background: transparent;
    position: relative;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #FFEB3B;
}

.nav-link.active {
    background: rgba(76, 175, 80, 0.3);
    color: #FFEB3B;
}

.nav-link i {
    font-size: 1rem;
    margin-bottom: 3px;
    display: block;
}

.nav-link span {
    display: block;
    line-height: 1.2;
    white-space: nowrap;
}

/* Garis pemisah antar menu */
.nav-link:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -1px;
    top: 15px;
    bottom: 15px;
    width: 1px;
    background: rgba(255, 255, 255, 0.2);
}

/* Responsive Header */
@media (max-width: 1100px) {
    .header-container {
        flex-direction: column;
        gap: 15px;
        padding: 10px 0;
    }
    
    .logo-section {
        width: 100%;
        justify-content: center;
    }
    
    .nav-right {
        width: 100%;
        min-width: auto;
        max-width: 800px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .header-container {
        min-height: auto;
    }
    
    .nav-right {
        min-width: auto;
        overflow-x: auto;
        justify-content: flex-start;
        padding: 3px;
    }
    
    .nav-link {
        flex: 0 0 auto;
        min-width: 70px;
        padding: 6px 8px;
        margin: 0 2px;
    }
    
    .nav-link i {
        font-size: 0.9rem;
        margin-bottom: 2px;
    }
    
    .nav-link span {
        font-size: 0.7rem;
    }
    
    .divider {
        display: none;
    }
    
    .logo-kabupaten, 
    .logo-nagari {
        gap: 5px;
    }
    
    .logo-img {
        width: 45px;
        height: 45px;
    }
    
    .logo-nagari-img {
        width: 50px;
        height: 50px;
    }
    
    .talang-text {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .nav-right {
        padding: 2px;
    }
    
    .nav-link {
        min-width: 60px;
        padding: 5px 6px;
    }
    
    .nav-link i {
        font-size: 0.8rem;
    }
    
    .nav-link span {
        font-size: 0.65rem;
    }
    
    .logo-img {
        width: 35px;
        height: 35px;
    }
    
    .logo-nagari-img {
        width: 40px;
        height: 40px;
    }
    
    .nagari-text {
        font-size: 0.8rem;
    }
    
    .talang-text {
        font-size: 1rem;
    }
    
    .logo-text .kabupaten {
        font-size: 0.7rem;
    }
    
    .logo-text .provinsi {
        font-size: 0.6rem;
    }
}

/* Untuk layar sangat lebar */
@media (min-width: 1200px) {
    .nav-right {
        min-width: 600px;
    }
    
    .nav-link {
        padding: 10px 6px;
    }
    
    .nav-link i {
        font-size: 1.1rem;
    }
    
    .nav-link span {
        font-size: 0.8rem;
    }
}

/* === HERO SECTION === */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
    display: flex;
    align-items: center;
    color: white;
}

/* Background Image */
.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg,
            rgba(46, 125, 50, 0.85) 0%,
            rgba(27, 94, 32, 0.75) 50%,
            rgba(0, 0, 0, 0.6) 100%);
    z-index: -1;
}

/* Hero Content */
.hero .container {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 900px;
}

.hero h1 {
    font-size: 3.5rem;
    margin: 20px 0;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
}

.hero h2 {
    font-size: 2rem;
    font-weight: 400;
    margin-bottom: 15px;
    color: white;
}

.hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
    opacity: 0.9;
}

/* === PROFIL NAGARI === */
/* === PROFIL NAGARI - REVISI FINAL KOMPAK === */
.profil {
    background: #f0f7f0;
    padding: 40px 0;
}

.profil h2 {
    text-align: center;
    margin-bottom: 12px;
    color: #2E7D32;
    font-size: 1.8rem;
}

.profil h2 i {
    margin-right: 10px;
}

.section-intro {
    text-align: center;
    max-width: 650px;
    margin: 0 auto 30px;
    color: #666;
    font-size: 0.95rem;
}

/* GRID UTAMA - 3 KOLOM SAMA LEBAR DAN TINGGI */
.profil-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    align-items: stretch;
    max-width: 1100px;
    margin: 0 auto;
}

/* KARTU PROFIL - UKURAN SERAGAM */
.profil-card {
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.07);
    transition: transform 0.3s, box-shadow 0.3s;
    border-top: 3px solid #4CAF50;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 380px; /* Tinggi minimum yang sama */
}

/* Warna border berbeda untuk setiap kartu */
.profil-card:nth-child(1) {
    border-top-color: #2E7D32; /* Hijau tua untuk identitas */
}

.profil-card:nth-child(2) {
    border-top-color: #4CAF50; /* Hijau medium untuk visi */
}

.profil-card:nth-child(3) {
    border-top-color: #8BC34A; /* Hijau muda untuk misi */
}

.profil-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* IKON */
.profil-icon {
    font-size: 1.8rem;
    color: #4CAF50;
    margin-bottom: 15px;
    text-align: center;
}

.profil-card:nth-child(1) .profil-icon {
    color: #2E7D32;
}

.profil-card:nth-child(2) .profil-icon {
    color: #4CAF50;
}

.profil-card:nth-child(3) .profil-icon {
    color: #8BC34A;
}

/* JUDUL */
.profil-card h3 {
    color: #1B5E20;
    margin-bottom: 15px;
    text-align: center;
    font-size: 1.3rem;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* KONTEN KARTU */
.profil-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

/* KARTU IDENTITAS */
.profil-card:nth-child(1) p {
    margin-bottom: 8px;
    line-height: 1.5;
    font-size: 0.9rem;
    color: #444;
}

.profil-card:nth-child(1) strong {
    color: #2E7D32;
    font-weight: 600;
}

/* BATAS WILAYAH - DALAM KARTU IDENTITAS */
.batas-wilayah {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.batas-wilayah strong {
    display: block;
    margin-bottom: 10px;
    font-size: 0.95rem;
    color: #2E7D32;
}

.batas-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.batas-item {
    display: flex;
    align-items: flex-start;
    gap: 5px;
    line-height: 1.4;
}

.batas-arah {
    font-weight: 600;
    color: #1B5E20;
    min-width: 40px;
    white-space: nowrap;
    font-size: 0.88rem;
}

.batas-desc {
    color: #555;
    flex: 1;
    font-size: 0.86rem;
    line-height: 1.4;
}

/* KARTU VISI */
.profil-card:nth-child(2) p {
    font-style: italic;
    text-align: center;
    line-height: 1.5;
    color: #333;
    font-size: 0.95rem;
    padding: 10px;
    background: #f9f9f9;
    border-radius: 5px;
    border-left: 3px solid #4CAF50;
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
}

/* KARTU MISI */
.profil-card:nth-child(3) ul {
    padding-left: 20px;
    margin: 0;
    flex-grow: 1;
}

.profil-card:nth-child(3) li {
    margin-bottom: 8px;
    color: #555;
    font-size: 0.86rem;
    line-height: 1.4;
    text-align: left;
}

.profil-card:nth-child(3) li:before {
    content: "•";
    color: #4CAF50;
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
}

/* SCROLLBAR UNTUK MISI JIKA TERLALU PANJANG */
.profil-card:nth-child(3) ul {
    max-height: 220px;
    overflow-y: auto;
    padding-right: 5px;
}

.profil-card:nth-child(3) ul::-webkit-scrollbar {
    width: 4px;
}

.profil-card:nth-child(3) ul::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 2px;
}

.profil-card:nth-child(3) ul::-webkit-scrollbar-thumb {
    background: #c8e6c9;
    border-radius: 2px;
}

.profil-card:nth-child(3) ul::-webkit-scrollbar-thumb:hover {
    background: #81c784;
}

/* TOMBOL DETAIL (jika ada) */
.btn-detail-profil {
    display: inline-block;
    margin-top: 15px;
    padding: 8px 16px;
    background: #2E7D32;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s;
    text-align: center;
}

.btn-detail-profil:hover {
    background: #1B5E20;
    transform: translateY(-2px);
}

/* RESPONSIVE */
@media (max-width: 1100px) {
    .profil-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        max-width: 800px;
    }
    
    .profil-card:nth-child(3) {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .profil {
        padding: 30px 0;
    }
    
    .profil h2 {
        font-size: 1.6rem;
    }
    
    .section-intro {
        font-size: 0.9rem;
        margin-bottom: 25px;
    }
    
    .profil-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
    }
    
    .profil-card:nth-child(3) {
        grid-column: span 1;
    }
    
    .profil-card {
        padding: 20px;
        min-height: 350px;
    }
    
    .profil-card h3 {
        font-size: 1.2rem;
        min-height: auto;
    }
    
    .batas-item {
        flex-direction: column;
        gap: 2px;
        margin-bottom: 5px;
    }
    
    .batas-arah {
        min-width: auto;
    }
}

@media (max-width: 480px) {
    .profil {
        padding: 25px 0;
    }
    
    .profil h2 {
        font-size: 1.4rem;
    }
    
    .profil-card {
        padding: 18px;
        min-height: auto;
    }
    
    .profil-card h3 {
        font-size: 1.1rem;
    }
    
    .profil-icon {
        font-size: 1.5rem;
        margin-bottom: 10px;
    }
    
    .profil-card p,
    .batas-desc,
    .profil-card li {
        font-size: 0.84rem;
    }
}


/* === WALI NAGARI === */
.walinagari {
    background: white;
    padding: 60px 0;
}

.walinagari h2 {
    text-align: center;
    margin-bottom: 40px;
    color: #2E7D32;
    font-size: 2.2rem;
}

.wali-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    align-items: start;
}

@media (max-width: 992px) {
    .wali-content {
        grid-template-columns: 1fr;
    }
}

.wali-photo {
    text-align: center;
    background: #E8F5E9;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.wali-photo img {
    width: 100%;
    max-width: 280px;
    border-radius: 8px;
    border: 5px solid white;
    margin-bottom: 20px;
}

.wali-info h3 {
    color: #1B5E20;
    margin-bottom: 5px;
}

.wali-info p {
    color: #666;
    margin-bottom: 5px;
}

.sambutan-text {
    background: #f8f9fa;
    padding: 35px;
    border-radius: 10px;
    border-left: 5px solid #2E7D32;
}

.sambutan-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    color: #2E7D32;
}

.sambutan-header i {
    font-size: 2rem;
    opacity: 0.7;
}

.sambutan-text p {
    margin-bottom: 15px;
    line-height: 1.7;
    color: #444;
}

.sambutan-footer {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px dashed #ccc;
}

.wali-sign {
    margin-top: 20px;
    text-align: right;
    font-style: italic;
    color: #2E7D32;
    font-weight: bold;
}

/* === BERITA NAGARI === */
.berita {
    background: #f8f9fa;
    padding: 60px 0;
}

.berita h2 {
    text-align: center;
    margin-bottom: 15px;
    color: #2E7D32;
    font-size: 2.2rem;
}

.berita h2 i {
    margin-right: 10px;
}

.berita-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.berita-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.berita-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.berita-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.berita-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.berita-card:hover .berita-image img {
    transform: scale(1.05);
}

.berita-date {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #2E7D32;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 5px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.date-day {
    font-size: 1.3rem;
    font-weight: bold;
}

.date-month {
    font-size: 0.8rem;
    text-transform: uppercase;
}

.berita-content {
    padding: 25px;
}

.berita-content h3 {
    color: #1B5E20;
    margin-bottom: 10px;
    font-size: 1.3rem;
    line-height: 1.4;
}

.berita-content p {
    color: #555;
    margin-bottom: 20px;
    line-height: 1.6;
}

.berita-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #2E7D32;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.3s, gap 0.3s;
}

.berita-btn i {
    font-size: 0.8rem;
    transition: transform 0.3s;
}

.berita-btn:hover {
    color: #1B5E20;
    gap: 12px;
}

.berita-btn:hover i {
    transform: translateX(5px);
}

.berita-actions {
    text-align: center;
    margin-top: 40px;
}

.btn-all-news {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #2E7D32;
    color: white;
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s, transform 0.3s;
}

.btn-all-news:hover {
    background: #1B5E20;
    transform: translateY(-2px);
}

/* Konteiner utama halaman APB */
.apb-full {
    padding: 40px 0;
    background: #f9f9f9;
}

.apb-full .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Tahun Anggaran */
.apb-year {
    text-align: center;
    margin-bottom: 40px;
}

.apb-year h2 {
    color: #2E7D32;
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.year-badge {
    display: inline-block;
    background: #FFEB3B;
    color: #1B5E20;
    padding: 10px 25px;
    border-radius: 25px;
    font-weight: bold;
    font-size: 1.2rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Summary Cards */
.apb-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-bottom: 40px;
}

@media (max-width: 992px) {
    .apb-summary-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .apb-summary-grid {
        grid-template-columns: 1fr;
    }
}

.summary-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: transform 0.3s ease;
    border-top: 5px solid;
}

.summary-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.summary-card.income {
    border-top-color: #2196F3;
}

.summary-card.expense {
    border-top-color: #FF9800;
}

.summary-card.balance {
    border-top-color: #4CAF50;
}

.summary-card.balance.deficit {
    border-top-color: #F44336;
}

.summary-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.summary-card.income .summary-icon {
    color: #2196F3;
}

.summary-card.expense .summary-icon {
    color: #FF9800;
}

.summary-card.balance .summary-icon {
    color: #4CAF50;
}

.summary-card.balance.deficit .summary-icon {
    color: #F44336;
}

.summary-title {
    color: #555;
    font-size: 1.1rem;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.summary-amount {
    font-size: 2.2rem;
    font-weight: bold;
    margin: 15px 0;
}

.summary-card.income .summary-amount {
    color: #2196F3;
}

.summary-card.expense .summary-amount {
    color: #FF9800;
}

.summary-card.balance .summary-amount {
    color: #4CAF50;
}

.summary-card.balance.deficit .summary-amount {
    color: #F44336;
}

.summary-percentage {
    display: inline-block;
    background: #f5f5f5;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
}

/* Defisit Warning */
.deficit-warning {
    background: #FFEBEE;
    border: 2px solid #F44336;
    color: #C62828;
    padding: 20px 30px;
    border-radius: 10px;
    margin: 30px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(244, 67, 54, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(244, 67, 54, 0); }
    100% { box-shadow: 0 0 0 0 rgba(244, 67, 54, 0); }
}

.deficit-warning i {
    font-size: 2.5rem;
    flex-shrink: 0;
}

.deficit-warning h3 {
    margin-bottom: 5px;
    font-size: 1.2rem;
}

/* Chart Visualization */
.chart-section {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    margin-bottom: 40px;
}

.chart-section h3 {
    color: #2E7D32;
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.bar-chart-horizontal {
    display: flex;
    flex-direction: column;
    gap: 30px;
    padding: 20px;
}

.chart-row {
    display: flex;
    align-items: center;
    gap: 20px;
}

.chart-label {
    width: 150px;
    font-weight: bold;
    color: #333;
    font-size: 1.1rem;
}

.chart-bar-container {
    flex: 1;
    height: 45px;
    background: #f0f0f0;
    border-radius: 25px;
    overflow: hidden;
    position: relative;
}

.chart-bar {
    height: 100%;
    border-radius: 25px;
    position: relative;
    transition: width 1.5s ease;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0 20px;
}

.chart-bar.income-bar {
    background: linear-gradient(90deg, #2196F3, #64B5F6);
}

.chart-bar.expense-bar {
    background: linear-gradient(90deg, #FF9800, #FFB74D);
}

.chart-value {
    color: white;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    font-size: 1rem;
}

.chart-section small {
    color: #666;
    font-style: italic;
}

/* Tabs */
.tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.tab-button {
    padding: 12px 25px;
    background: #e0e0e0;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 600;
    color: #555;
    cursor: pointer;
    transition: all 0.3s;
    min-width: 150px;
}

.tab-button:hover {
    background: #d5d5d5;
}

.tab-button.active {
    background: #2E7D32;
    color: white;
}

/* Tabel Section */
.table-section {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    margin-bottom: 40px;
}

.table-section h3 {
    color: #2E7D32;
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.table-responsive {
    overflow-x: auto;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.apb-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 700px;
}

.apb-table th {
    background: #2E7D32;
    color: white;
    padding: 18px 15px;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid #1B5E20;
}

.apb-table td {
    padding: 15px;
    border-bottom: 1px solid #e0e0e0;
}

.apb-table tr:nth-child(even) {
    background: #f9f9f9;
}

.apb-table tr:hover {
    background: #E8F5E9;
}

.apb-table .group-header {
    background: #C8E6C9;
    font-weight: bold;
    color: #1B5E20;
    font-size: 1.1rem;
}

.apb-table .total-row {
    background: #E8F5E9 !important;
    font-weight: bold;
    color: #1B5E20;
}

.apb-table .grand-total {
    background: #2E7D32 !important;
    color: white;
    font-weight: bold;
    font-size: 1.1rem;
}

.apb-table .deficit-row {
    background: #FFEBEE !important;
    color: #C62828;
    font-weight: bold;
}

/* Download Section */
.apb-footer {
    text-align: center;
    padding: 30px 0;
    color: #666;
    border-top: 1px solid #e0e0e0;
    margin-top: 40px;
}

.download-section {
    margin-bottom: 30px;
}

.download-section h3 {
    color: #2E7D32;
    margin-bottom: 20px;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.download-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.download-btn, .print-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.download-btn {
    background: #2196F3;
    color: white;
}

.download-btn:hover {
    background: #1976D2;
    transform: translateY(-2px);
}

.print-btn {
    background: #FF9800;
    color: white;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.print-btn:hover {
    background: #F57C00;
    transform: translateY(-2px);
}

.last-update {
    margin: 20px 0;
    font-size: 0.95rem;
    color: #666;
}

.last-update p {
    margin: 5px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.last-update i {
    color: #2E7D32;
}

/* Tab Content */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Responsif tambahan */
@media (max-width: 768px) {
    .apb-full {
        padding: 30px 0;
    }
    
    .apb-year h2 {
        font-size: 1.5rem;
    }
    
    .year-badge {
        font-size: 1rem;
        padding: 8px 20px;
    }
    
    .summary-card {
        padding: 25px 20px;
    }
    
    .summary-amount {
        font-size: 1.8rem;
    }
    
    .chart-section, .table-section {
        padding: 25px 15px;
    }
    
    .chart-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .chart-label {
        width: 100%;
    }
    
    .chart-bar-container {
        width: 100%;
    }
    
    .tabs {
        flex-direction: column;
        align-items: center;
    }
    
    .tab-button {
        width: 100%;
        max-width: 300px;
    }
}


/* === APB NAGARI PREVIEW === */
.apb-preview {
    background: linear-gradient(135deg, #f8f9fa 0%, #e8f5e9 100%);
    padding: 60px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-header h2 {
    color: #2E7D32;
    font-size: 2.2rem;
    margin-bottom: 10px;
}

.section-header h2 i {
    margin-right: 10px;
}

.section-header p {
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

.apb-preview-card {
    background: white;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    max-width: 900px;
    margin: 0 auto;
}

.preview-stats {
    display: flex;
    justify-content: space-around;
    margin-bottom: 30px;
    text-align: center;
}

@media (max-width: 768px) {
    .preview-stats {
        flex-direction: column;
        gap: 25px;
    }
}

.stat-item {
    padding: 20px;
    border-radius: 8px;
    min-width: 200px;
}

.stat-label {
    font-size: 1rem;
    color: #666;
    margin-bottom: 10px;
    font-weight: 500;
}

.stat-amount {
    font-size: 2.2rem;
    font-weight: bold;
    margin: 10px 0;
}

.stat-amount.income {
    color: #2196F3;
}

.stat-amount.expense {
    color: #FF9800;
}

.stat-note {
    font-size: 0.9rem;
    color: #888;
    font-style: italic;
}

.preview-action {
    text-align: center;
    margin-top: 30px;
}

.btn-detail {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #2E7D32;
    color: white;
    padding: 14px 35px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s;
}

.btn-detail:hover {
    background: #1B5E20;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Konteiner utama halaman APB */
.apb-full {
    padding: 40px 0;
    background: #f9f9f9;
}

.apb-full .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Tahun Anggaran */
.apb-year {
    text-align: center;
    margin-bottom: 40px;
}

.apb-year h2 {
    color: #2E7D32;
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.year-badge {
    display: inline-block;
    background: #FFEB3B;
    color: #1B5E20;
    padding: 10px 25px;
    border-radius: 25px;
    font-weight: bold;
    font-size: 1.2rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Summary Cards */
.apb-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-bottom: 40px;
}

@media (max-width: 992px) {
    .apb-summary-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .apb-summary-grid {
        grid-template-columns: 1fr;
    }
}

.summary-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: transform 0.3s ease;
    border-top: 5px solid;
}

.summary-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.summary-card.income {
    border-top-color: #2196F3;
}

.summary-card.expense {
    border-top-color: #FF9800;
}

.summary-card.balance {
    border-top-color: #4CAF50;
}

.summary-card.balance.deficit {
    border-top-color: #F44336;
}

.summary-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.summary-card.income .summary-icon {
    color: #2196F3;
}

.summary-card.expense .summary-icon {
    color: #FF9800;
}

.summary-card.balance .summary-icon {
    color: #4CAF50;
}

.summary-card.balance.deficit .summary-icon {
    color: #F44336;
}

.summary-title {
    color: #555;
    font-size: 1.1rem;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.summary-amount {
    font-size: 2.2rem;
    font-weight: bold;
    margin: 15px 0;
}

.summary-card.income .summary-amount {
    color: #2196F3;
}

.summary-card.expense .summary-amount {
    color: #FF9800;
}

.summary-card.balance .summary-amount {
    color: #4CAF50;
}

.summary-card.balance.deficit .summary-amount {
    color: #F44336;
}

.summary-percentage {
    display: inline-block;
    background: #f5f5f5;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
}

/* Defisit Warning */
.deficit-warning {
    background: #FFEBEE;
    border: 2px solid #F44336;
    color: #C62828;
    padding: 20px 30px;
    border-radius: 10px;
    margin: 30px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(244, 67, 54, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(244, 67, 54, 0); }
    100% { box-shadow: 0 0 0 0 rgba(244, 67, 54, 0); }
}

.deficit-warning i {
    font-size: 2.5rem;
    flex-shrink: 0;
}

.deficit-warning h3 {
    margin-bottom: 5px;
    font-size: 1.2rem;
}

/* Chart Visualization */
.chart-section {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    margin-bottom: 40px;
}

.chart-section h3 {
    color: #2E7D32;
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.bar-chart-horizontal {
    display: flex;
    flex-direction: column;
    gap: 30px;
    padding: 20px;
}

.chart-row {
    display: flex;
    align-items: center;
    gap: 20px;
}

.chart-label {
    width: 150px;
    font-weight: bold;
    color: #333;
    font-size: 1.1rem;
}

.chart-bar-container {
    flex: 1;
    height: 45px;
    background: #f0f0f0;
    border-radius: 25px;
    overflow: hidden;
    position: relative;
}

.chart-bar {
    height: 100%;
    border-radius: 25px;
    position: relative;
    transition: width 1.5s ease;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0 20px;
}

.chart-bar.income-bar {
    background: linear-gradient(90deg, #2196F3, #64B5F6);
}

.chart-bar.expense-bar {
    background: linear-gradient(90deg, #FF9800, #FFB74D);
}

.chart-value {
    color: white;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    font-size: 1rem;
}

.chart-section small {
    color: #666;
    font-style: italic;
}

/* Tabs */
.tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.tab-button {
    padding: 12px 25px;
    background: #e0e0e0;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 600;
    color: #555;
    cursor: pointer;
    transition: all 0.3s;
    min-width: 150px;
}

.tab-button:hover {
    background: #d5d5d5;
}

.tab-button.active {
    background: #2E7D32;
    color: white;
}

/* Tabel Section */
.table-section {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    margin-bottom: 40px;
}

.table-section h3 {
    color: #2E7D32;
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.table-responsive {
    overflow-x: auto;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.apb-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 700px;
}

.apb-table th {
    background: #2E7D32;
    color: white;
    padding: 18px 15px;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid #1B5E20;
}

.apb-table td {
    padding: 15px;
    border-bottom: 1px solid #e0e0e0;
}

.apb-table tr:nth-child(even) {
    background: #f9f9f9;
}

.apb-table tr:hover {
    background: #E8F5E9;
}

.apb-table .group-header {
    background: #C8E6C9;
    font-weight: bold;
    color: #1B5E20;
    font-size: 1.1rem;
}

.apb-table .total-row {
    background: #E8F5E9 !important;
    font-weight: bold;
    color: #1B5E20;
}

.apb-table .grand-total {
    background: #2E7D32 !important;
    color: white;
    font-weight: bold;
    font-size: 1.1rem;
}

.apb-table .deficit-row {
    background: #FFEBEE !important;
    color: #C62828;
    font-weight: bold;
}

/* Download Section */
.apb-footer {
    text-align: center;
    padding: 30px 0;
    color: #666;
    border-top: 1px solid #e0e0e0;
    margin-top: 40px;
}

.download-section {
    margin-bottom: 30px;
}

.download-section h3 {
    color: #2E7D32;
    margin-bottom: 20px;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.download-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.download-btn, .print-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.download-btn {
    background: #2196F3;
    color: white;
}

.download-btn:hover {
    background: #1976D2;
    transform: translateY(-2px);
}

.print-btn {
    background: #FF9800;
    color: white;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.print-btn:hover {
    background: #F57C00;
    transform: translateY(-2px);
}

.last-update {
    margin: 20px 0;
    font-size: 0.95rem;
    color: #666;
}

.last-update p {
    margin: 5px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.last-update i {
    color: #2E7D32;
}

/* Tab Content */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Responsif tambahan */
@media (max-width: 768px) {
    .apb-full {
        padding: 30px 0;
    }
    
    .apb-year h2 {
        font-size: 1.5rem;
    }
    
    .year-badge {
        font-size: 1rem;
        padding: 8px 20px;
    }
    
    .summary-card {
        padding: 25px 20px;
    }
    
    .summary-amount {
        font-size: 1.8rem;
    }
    
    .chart-section, .table-section {
        padding: 25px 15px;
    }
    
    .chart-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .chart-label {
        width: 100%;
    }
    
    .chart-bar-container {
        width: 100%;
    }
    
    .tabs {
        flex-direction: column;
        align-items: center;
    }
    
    .tab-button {
        width: 100%;
        max-width: 300px;
    }
}



/* === JORONG === */
.jorong {
    background: #f0f7f0;
    padding: 60px 0;
}

.jorong h2 {
    text-align: center;
    margin-bottom: 40px;
    color: #2E7D32;
    font-size: 2.2rem;
}

.jorong h2 i {
    margin-right: 10px;
}

.jorong-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.jorong-card {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    border-top: 4px solid #4CAF50;
}

.jorong-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.jorong-card h3 {
    color: #1B5E20;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* === SEJARAH === */
.sejarah {
    background: white;
    padding: 60px 0;
}

.sejarah h2 {
    text-align: center;
    margin-bottom: 40px;
    color: #2E7D32;
    font-size: 2.2rem;
}

.sejarah h2 i {
    margin-right: 10px;
}

.timeline {
    max-width: 800px;
    margin: 40px auto 0;
}

.timeline-item {
    background: white;
    padding: 25px;
    margin-bottom: 25px;
    border-left: 5px solid #4CAF50;
    border-radius: 0 8px 8px 0;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.timeline-item:hover {
    transform: translateX(5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.timeline-year {
    font-size: 1.1rem;
    color: #2E7D32;
    font-weight: bold;
    margin-bottom: 10px;
}

.timeline-item h3 {
    color: #1B5E20;
    margin-bottom: 10px;
}

/* === FOOTER === */
/* === FOOTER === */
footer {
    background: #1B5E20;
    color: white;
    padding: 50px 0 20px;
    font-size: 0.9rem;
}

/* Grid footer dengan 3 kolom */
.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
}

/* Kolom footer */
.footer-col {
    padding: 15px;
}

.footer-col h3 {
    color: #FFEB3B;
    font-size: 1.2rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-col h3 i {
    font-size: 1rem;
}

/* Kolom Kiri: Nagari Talang & Alamat */
.alamat-kantor p {
    margin-bottom: 8px;
    line-height: 1.5;
    color: #E0E0E0;
}

.alamat-kantor p strong {
    color: #FFEB3B;
    font-weight: 600;
}

/* Kolom Tengah: Kontak & Sosmed */
.kontak-list p {
    margin-bottom: 10px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.kontak-list i {
    color: #4CAF50;
    min-width: 20px;
    text-align: center;
    margin-top: 2px;
}

.kontak-list strong {
    color: #FFEB3B;
}

/* Sosmed Icons */
.sosmed-footer {
    margin-top: 15px;
}

.sosmed-icons {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.sosmed-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    font-size: 1rem;
    transition: all 0.3s;
    text-decoration: none;
}

.sosmed-icon:hover {
    background: #4CAF50;
    transform: translateY(-3px);
}

/* Kolom Kanan: Peta */
.peta-container {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    overflow: hidden;
    padding: 0;
}

.peta-tabs {
    display: flex;
    background: rgba(0, 0, 0, 0.2);
}

.peta-tab {
    flex: 1;
    padding: 10px;
    background: transparent;
    border: none;
    color: #ccc;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
}

.peta-tab.active {
    background: rgba(76, 175, 80, 0.3);
    color: white;
    font-weight: 600;
}

.peta-tab:hover:not(.active) {
    background: rgba(255, 255, 255, 0.1);
}

.peta-content {
    display: none;
    padding: 0;
}

.peta-content.active {
    display: block;
}

.peta-wrapper iframe {
    display: block;
    border: none;
    border-radius: 0 0 8px 8px;
}

/* Copyright Bar */
.copyright-bar {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: #BDBDBD;
    font-size: 0.85rem;
}

.hak-cipta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.hak-cipta p {
    margin: 0;
}

.hak-cipta i {
    margin-right: 5px;
}

.developer-note {
    font-size: 0.8rem;
    color: #9E9E9E;
    font-style: italic;
}

/* Responsive untuk peta */
@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .peta-wrapper iframe {
        height: 250px;
    }

    .footer-col h3 {
        font-size: 1.1rem;
        margin-bottom: 15px;
    }
}

/* === FOOTER - PERBAIKAN === */

/* Grid footer dengan 3 kolom sejajar */
.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
}

/* Kolom footer */
.footer-col {
    display: flex;
    flex-direction: column;
}

.footer-col h3 {
    color: #FFEB3B;
    font-size: 1.3rem;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Alamat Kantor */
.alamat-kantor p {
    margin-bottom: 12px;
    line-height: 1.6;
    color: #E0E0E0;
}

.alamat-kantor p strong {
    color: #FFEB3B;
    font-weight: 600;
    display: block;
    margin-bottom: 5px;
}

/* Kontak List */
.kontak-list p {
    margin-bottom: 15px;
    line-height: 1.5;
}

.kontak-list i {
    color: #4CAF50;
    width: 20px;
    text-align: center;
    margin-right: 8px;
}

/* Peta Container */
.peta-container {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    overflow: hidden;
}

/* Legenda Peta */
.peta-legenda {
    padding: 15px;
    background: rgba(0, 0, 0, 0.1);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.legenda-text {
    color: white;
    font-size: 1rem;
    margin-bottom: 8px;
}

.legenda-link {
    color: #4CAF50;
    font-size: 0.9rem;
    margin-bottom: 15px;
    text-decoration: underline;
    cursor: pointer;
}

.legenda-wilayah {
    margin: 15px 0;
    padding-left: 15px;
}

.legenda-wilayah p {
    color: #E0E0E0;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.legenda-copyright {
    color: #9E9E9E;
    font-size: 0.8rem;
    margin-top: 15px;
    line-height: 1.4;
}

/* Tab Peta (disederhanakan) */
.peta-tabs {
    display: flex;
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.peta-tab {
    flex: 1;
    padding: 12px;
    background: transparent;
    border: none;
    color: #ccc;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
}

.peta-tab.active {
    background: rgba(76, 175, 80, 0.3);
    color: white;
    font-weight: 600;
    border-bottom: 2px solid #4CAF50;
}

.peta-content {
    display: none;
}

.peta-content.active {
    display: block;
}

/* Copyright Bar */
.copyright-bar {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    text-align: center;
    color: #BDBDBD;
    font-size: 0.9rem;
}

.hak-cipta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.developer-note {
    font-size: 0.85rem;
    color: #9E9E9E;
    font-style: italic;
}

/* Responsif untuk peta */
@media (max-width: 768px) {
    .footer-col {
        padding: 0;
    }
    
    .peta-wrapper iframe {
        height: 200px;
    }
    
    .peta-legenda {
        padding: 12px;
    }
    
    .legenda-wilayah {
        padding-left: 10px;
    }
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .hero h2 {
        font-size: 1.5rem;
    }

    nav a {
        margin-left: 15px;
        font-size: 0.9rem;
    }

    .hero {
        min-height: 500px;
        padding: 80px 0;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero h2 {
        font-size: 1.5rem;
    }

    .hero p {
        font-size: 1rem;
        padding: 0 15px;
    }

    .berita-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }

    .berita-content h3 {
        font-size: 1.2rem;
    }

    .wali-content {
        grid-template-columns: 1fr;
    }

    .preview-stats {
        flex-direction: column;
        gap: 25px;
    }
}

@media (min-width: 992px) {
    .profil-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Berita Page */
.berita-page {
    padding: 60px 0;
}

.berita-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-top: 30px;
}

.berita-item {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 30px;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.berita-item:hover {
    transform: translateY(-5px);
}

.berita-image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.berita-content {
    padding: 25px 25px 25px 0;
}

.berita-content h3 {
    color: #2E7D32;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.berita-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    color: #666;
    font-size: 0.9rem;
}

.berita-meta i {
    margin-right: 5px;
}

.btn-read {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 20px;
    background: #2E7D32;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s ease;
}

.btn-read:hover {
    background: #1B5E20;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
}

.page-link {
    padding: 8px 15px;
    background: #f8f9fa;
    border-radius: 5px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
}

.page-link:hover,
.page-link.active {
    background: #2E7D32;
    color: white;
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: #666;
}

.breadcrumb a {
    color: #2E7D32;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .berita-item {
        grid-template-columns: 1fr;
    }
    
    .berita-image img {
        height: 200px;
    }
    
    .berita-content {
        padding: 20px;
    }
    
    .berita-meta {
        flex-wrap: wrap;
        gap: 10px;
    }
}

/* Untuk spasi antar paragraf di detail berita */
.berita-content-detail p {
    margin-bottom: 1.5rem !important;
    line-height: 1.8;
}

.berita-content-detail h3, 
.berita-content-detail h4 {
    margin-top: 2rem !important;
    margin-bottom: 1rem !important;
    color: #2E7D32;
}

.berita-content-detail ul {
    margin-bottom: 1.5rem !important;
    padding-left: 20px;
}

.berita-content-detail ul li {
    margin-bottom: 0.5rem !important;
}

.berita-content-detail p + p {
    margin-top: 1.5rem !important;
}

/* Untuk spasi antar paragraf di detail berita */
.berita-content-detail {
    text-align: justify !important;
    line-height: 1.8;
    font-size: 1.1rem;
    text-justify: inter-word;
}

.berita-content-detail p {
    margin-bottom: 1.5rem !important;
    line-height: 1.8;
    text-align: justify;
}

.berita-content-detail h3, 
.berita-content-detail h4 {
    margin-top: 2rem !important;
    margin-bottom: 1rem !important;
    color: #2E7D32;
    text-align: left;
}

.berita-content-detail ul {
    margin-bottom: 1.5rem !important;
    padding-left: 20px;
    text-align: left;
}

.berita-content-detail ul li {
    margin-bottom: 0.5rem !important;
}

.berita-content-detail p + p {
    margin-top: 1.5rem !important;
}

/* Untuk berita di halaman daftar berita */
.berita-content p {
    text-align: justify;
    line-height: 1.6;
}

/* Tambahkan di styles.css */
.galeri-foto {
    margin: 40px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 5px solid #2E7D32;
}

.galeri-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.galeri-item {
    overflow: hidden;
    border-radius: 8px;
    transition: transform 0.3s ease;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.galeri-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.galeri-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.galeri-item:hover img {
    transform: scale(1.05);
}

.pagination {
    margin: 40px 0;
    text-align: center;
}

.page-link {
    display: inline-block;
    padding: 8px 15px;
    margin: 0 3px;
    background: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #2E7D32;
    text-decoration: none;
    transition: all 0.3s;
}

.page-link:hover {
    background: #2E7D32;
    color: white;
    border-color: #2E7D32;
}

.page-link.active {
    background: #2E7D32;
    color: white;
    border-color: #2E7D32;
    font-weight: bold;
}

/* ========================================== */
/* STRUKTUR ORGANISASI - DIAGRAM HIERARKI */
/* ========================================== */

.struktur-organisasi {
    background: linear-gradient(135deg, #f8f9fa 0%, #e8f5e9 100%);
    padding: 60px 0;
    min-height: 100vh;
}

.section-title {
    text-align: center;
    color: #2E7D32;
    margin-bottom: 50px;
    font-size: 2.2rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1);
}

.section-title i {
    margin-right: 15px;
    color: #4CAF50;
}

/* Diagram Organisasi */
.org-chart {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Garis Penghubung */
.connector-line {
    height: 50px;
    width: 3px;
    background: #4CAF50;
    margin: 0 auto 20px;
    position: relative;
}

.connector-line-horizontal {
    height: 3px;
    width: 80%;
    background: #4CAF50;
    margin: 20px auto;
}

/* Level Organisasi */
.org-level {
    margin-bottom: 30px;
    position: relative;
}

/* Node Organisasi */
.org-node {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    text-align: center;
}

.org-node:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* Wali Nagari */
.org-node.wali-nagari {
    max-width: 400px;
    margin: 0 auto;
    border: 3px solid #2E7D32;
    background: linear-gradient(135deg, #E8F5E9 0%, #C8E6C9 100%);
}

.org-photo {
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.org-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.org-details {
    padding: 10px 0;
}

.org-position {
    color: #1B5E20;
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.org-node.wali-nagari .org-position {
    font-size: 1.4rem;
    color: #2E7D32;
}

.org-name {
    color: #333;
    font-weight: 500;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.org-node.wali-nagari .org-name {
    font-size: 1.8rem;
    color: #1B5E20;
    font-weight: 700;
}

/* Sekretaris */
.org-node.sekretaris {
    max-width: 300px;
    margin: 0 auto;
    border: 2px solid #4CAF50;
    background: #F1F8E9;
}

/* Kepala Seksi */
.org-row.kasi-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.org-node.kasi {
    border: 2px solid #2196F3;
    background: #E3F2FD;
}

/* Kepala Urusan */
.org-row.kaur-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.org-node.kaur {
    border: 2px solid #FF9800;
    background: #FFF3E0;
}

/* Staff */
.org-row.staff-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.org-node.staff {
    border: 2px solid #9C27B0;
    background: #F3E5F5;
}

/* Jorong */
.org-section-title {
    text-align: center;
    margin: 40px 0 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #2E7D32;
}

.org-section-title h4 {
    color: #2E7D32;
    font-size: 1.4rem;
}

.org-section-title i {
    margin-right: 10px;
}

.org-row.jorong-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.org-node.jorong {
    border: 2px solid #795548;
    background: #EFEBE9;
}

/* Status Kehadiran di Node */
.org-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-top: 10px;
}

.org-status.status-hadir {
    background: #E8F5E9;
    color: #2E7D32;
    border: 1px solid #C8E6C9;
}

.org-status.status-tidak-hadir {
    background: #FFEBEE;
    color: #C62828;
    border: 1px solid #FFCDD2;
}

.org-status.status-belum-rekam {
    background: #FFF3E0;
    color: #EF6C00;
    border: 1px solid #FFB74D;
}

/* Legenda Status */
.status-legenda {
    margin-top: 50px;
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.status-legenda h5 {
    color: #2E7D32;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.legenda-items {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

.legenda-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Responsive */
@media (max-width: 992px) {
    .section-title {
        font-size: 1.8rem;
    }
    
    .org-row.kasi-row,
    .org-row.kaur-row,
    .org-row.staff-row,
    .org-row.jorong-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .struktur-organisasi {
        padding: 40px 0;
    }
    
    .section-title {
        font-size: 1.5rem;
        margin-bottom: 30px;
    }
    
    .org-photo {
        width: 100px;
        height: 100px;
    }
    
    .org-node.wali-nagari .org-name {
        font-size: 1.4rem;
    }
    
    .org-row.kasi-row,
    .org-row.kaur-row,
    .org-row.staff-row,
    .org-row.jorong-row {
        grid-template-columns: 1fr;
    }
    
    .legenda-items {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .org-chart {
        padding: 10px;
    }
    
    .org-node {
        padding: 15px;
    }
    
    .org-position {
        font-size: 1rem;
    }
    
    .org-name {
        font-size: 1rem;
    }
    
    .org-status {
        font-size: 0.8rem;
        padding: 5px 12px;
    }
}