:root {
    --hijau-tua: #1b5e20;
    --hijau: #2e7d32;
    --hijau-muda: #66bb6a;
    --hijau-pucat: #e8f5e9;
    --emas: #c9a648;
}

body {
    font-family: 'Inter', 'Segoe UI', sans-serif;
    color: #2b2b2b;
    background-color: #fafafa;
}

h1, h2, h3, h4, h5, .navbar-brand {
    font-family: 'Poppins', sans-serif;
}

/* ============ NAVBAR ============ */
.navbar-transparent {
    background: transparent;
    transition: background-color 0.35s ease, box-shadow 0.35s ease, padding 0.35s ease;
    padding-top: 18px;
    padding-bottom: 18px;
}
.navbar-transparent.scrolled {
    background-color: rgba(27, 94, 32, 0.97) !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    padding-top: 10px;
    padding-bottom: 10px;
}
.navbar-solid {
    background-color: var(--hijau-tua) !important;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
}
.navbar .nav-link {
    font-weight: 500;
    position: relative;
    margin: 0 4px;
    transition: color 0.2s ease;
}
.navbar .nav-link::after {
    content: '';
    position: absolute;
    left: 50%; right: 50%;
    bottom: -2px;
    height: 2px;
    background: var(--emas);
    transition: left 0.25s ease, right 0.25s ease;
}
.navbar .nav-link:hover::after {
    left: 10%; right: 10%;
}

/* ============ HERO SECTION ============ */
.hero-section {
    height: 100vh;
    min-height: 550px;
    background-image: linear-gradient(180deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.25) 50%, rgba(0,0,0,0.65) 100%), url('../img/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
}
.hero-section .hero-content {
    animation: fadeUp 1.1s ease both;
}
.hero-section .badge-lokasi {
    display: inline-block;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255,255,255,0.3);
    padding: 6px 18px;
    border-radius: 50px;
    font-size: 0.85rem;
    letter-spacing: 1px;
    margin-bottom: 18px;
    text-transform: uppercase;
}
.hero-section h1 {
    font-size: 3.2rem;
    font-weight: 700;
    text-shadow: 2px 2px 12px rgba(0,0,0,0.5);
    margin-bottom: 12px;
}
.hero-section p {
    font-size: 1.25rem;
    text-shadow: 1px 1px 6px rgba(0,0,0,0.5);
    margin-bottom: 28px;
}
.hero-section .btn-hero {
    background: var(--emas);
    color: #2b2b2b;
    font-weight: 600;
    padding: 12px 32px;
    border-radius: 50px;
    border: none;
    box-shadow: 0 8px 20px rgba(201,166,72,0.4);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.hero-section .btn-hero:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(201,166,72,0.55);
    color: #2b2b2b;
}
.scroll-indicator {
    position: absolute;
    bottom: 30px; left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 1.5rem;
    animation: bounce 2s infinite;
    opacity: 0.85;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(25px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(10px); }
}

@media (max-width: 768px) {
    .hero-section { background-attachment: scroll; }
    .hero-section h1 { font-size: 2.1rem; }
    .hero-section p { font-size: 1.05rem; }
}

/* ============ SECTION UMUM ============ */
.section-title {
    font-weight: 700;
    color: var(--hijau-tua);
    margin-bottom: 0.5rem;
    position: relative;
}
.section-subtitle {
    color: #888;
    margin-bottom: 2.5rem;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}
.section-divider {
    width: 60px;
    height: 4px;
    background: var(--emas);
    border-radius: 4px;
    margin: 12px auto 2.5rem;
}
.bg-alt {
    background-color: var(--hijau-pucat);
}

/* ============ CARD & STAT ============ */
.card {
    border: none;
    border-radius: 16px;
    box-shadow: 0 4px 18px rgba(0,0,0,0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.12);
}
.stat-card {
    border-left: none !important;
    text-align: center;
    padding: 2rem 1rem !important;
}
.stat-icon {
    width: 60px; height: 60px;
    border-radius: 50%;
    background: var(--hijau-pucat);
    color: var(--hijau-tua);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 1rem;
}
.stat-card h3 {
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--hijau-tua);
    margin-bottom: 0.2rem;
}
.stat-card p {
    color: #777;
    font-weight: 500;
    margin: 0;
}

/* ============ TOMBOL ============ */
.btn-success {
    background-color: var(--hijau-tua);
    border-color: var(--hijau-tua);
    border-radius: 50px;
    padding: 10px 26px;
    font-weight: 500;
    transition: all 0.25s ease;
}
.btn-success:hover {
    background-color: var(--hijau);
    border-color: var(--hijau);
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(27,94,32,0.3);
}
.btn-outline-success {
    border-radius: 50px;
    font-weight: 500;
}

/* ============ WHATSAPP FLOATING ============ */
.wa-float {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background-color: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 6px 20px rgba(37,211,102,0.5);
    z-index: 999;
    transition: transform 0.25s ease;
    animation: pulseWA 2.5s infinite;
}
.wa-float:hover { transform: scale(1.12); color: white; animation: none; }

@keyframes pulseWA {
    0% { box-shadow: 0 6px 20px rgba(37,211,102,0.5), 0 0 0 0 rgba(37,211,102,0.5); }
    70% { box-shadow: 0 6px 20px rgba(37,211,102,0.5), 0 0 0 14px rgba(37,211,102,0); }
    100% { box-shadow: 0 6px 20px rgba(37,211,102,0.5), 0 0 0 0 rgba(37,211,102,0); }
}

/* ============ SCROLL REVEAL ============ */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ============ FOOTER ============ */
footer {
    background: linear-gradient(135deg, var(--hijau-tua), #0f3d12) !important;
}

/* ============ TABEL ============ */
.table thead.table-success th {
    background-color: var(--hijau-tua) !important;
    color: white;
    font-weight: 600;
    border: none;
}
.table-responsive {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(0,0,0,0.06);
}

/* ============ BAGAN STRUKTUR ORGANISASI (KOORDINAT TETAP) ============ */
.org-wrap {
    overflow-x: auto;
    padding: 20px 10px 40px;
}
.org-chart-precise {
    position: relative;
    width: 1150px;
    height: 960px;
    margin: 0 auto;
}
.org-lines {
    position: absolute;
    top: 0; left: 0;
    width: 1150px;
    height: 960px;
    z-index: 1;
}
.org-node {
    position: absolute;
    z-index: 2;
}

.org-box {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(0,0,0,0.1);
    text-align: center;
}
.org-box-label {
    padding: 8px 6px;
    font-size: 0.7rem;
    font-weight: 700;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}
.org-box-foto {
    width: 55px; height: 55px;
    object-fit: cover;
    border-radius: 50%;
    margin: 10px auto 4px;
    display: block;
    border: 2px solid #eee;
}
.org-box-nama {
    padding: 8px 6px 12px;
    font-weight: 600;
    font-size: 0.82rem;
    color: #333;
}
.org-box-kosong {
    padding: 18px 6px;
    font-size: 0.75rem;
    color: #aaa;
    font-style: italic;
}

.org-merah .org-box-label { background: #e53935; }
.org-ungu .org-box-label { background: #5e35b1; }
.org-kuning .org-box-label { background: #f9a825; }
.org-biru .org-box-label { background: #1e88e5; }
.org-hijau .org-box-label { background: #43a047; }
.org-hijau-muda .org-box-label { background: #7cb342; }

.org-ungu.org-box-label-only { background: #5e35b1; display:flex; align-items:center; justify-content:center; height:60px; }
.org-ungu.org-box-label-only .org-box-label { background: transparent; color: white; }
.org-kuning.org-box-label-only { background: #f9a825; display:flex; align-items:center; justify-content:center; height:60px; }
.org-kuning.org-box-label-only .org-box-label { background: transparent; color: white; font-size:0.68rem; }

/* Posisi tetap tiap kotak (koordinat px, mengikuti viewBox SVG di atas) */
.pos-keuchik { left:490px; top:0; width:170px; }
.pos-tuhapeut { left:730px; top:35px; width:150px; }
.pos-lembaga-keagamaan { left:60px; top:190px; width:190px; }
.pos-lembaga-kemasyarakatan { left:850px; top:190px; width:190px; }
.pos-kasi-pelayanan { left:60px; top:390px; width:170px; }
.pos-kasi-pemerintahan { left:280px; top:390px; width:170px; }
.pos-sekretaris { left:850px; top:390px; width:170px; }
.pos-kaur-umum { left:750px; top:575px; width:140px; }
.pos-kaur-keuangan { left:975px; top:575px; width:140px; }
.pos-kaur-umum .org-box-label,
.pos-kaur-keuangan .org-box-label {
    min-height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.pos-kadus-blang { left:60px; top:800px; width:170px; }
.pos-kadus-lampohwet { left:490px; top:800px; width:170px; }
.pos-kadus-lampohthue { left:850px; top:800px; width:170px; }