@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,600;0,700;1,400&family=Inter:wght@400;500;600&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
    /* Cream Palette */
    --color-cream-primary: #F4EFE6;
    --color-cream-alt: #EFE7D8;
    --color-cream-light: #FAF7F0;
    
    /* Green Palette */
    --color-green-secondary: #2F5D50;
    --color-green-dark: #1F4037;
    --color-green-soft: #6E8878;
    
    /* Text Palette */
    --color-text-main: #222222;
    --color-text-muted: #6B6B65;
    --color-white: #FFFFFF;

    /* Typography */
    --font-heading: 'Manrope', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-editorial: 'Cormorant Garamond', serif;

    /* Spacing */
    --section-spacing: clamp(100px, 15vh, 160px);
    --container-width: 1300px;
}

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

html {
    overflow-x: hidden;
}

body {
    background-color: var(--color-cream-primary);
    color: var(--color-text-main);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--color-text-main);
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

/* Animations */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-on-scroll {
    opacity: 0;
    animation: fadeUp 0.8s ease forwards;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }

/* Utilities */
.text-muted { color: var(--color-text-muted); }
.text-green { color: var(--color-green-secondary); }
.text-dark-green { color: var(--color-green-dark); }
.bg-cream-light { background-color: transparent; }

.text-justify {
    text-align: justify;
    hyphens: auto;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    font-weight: 600;
    border-radius: 4px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--color-green-secondary);
    color: var(--color-white);
}

.btn-primary:hover {
    background-color: var(--color-green-dark);
    transform: translateY(-2px);
}

.btn-link {
    color: var(--color-green-secondary);
    font-weight: 600;
    padding: 0;
    position: relative;
}

.btn-link::after {
    content: '→';
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
    display: inline-block;
}

.btn-link:hover::after {
    transform: translateX(5px);
}
.btn-link:hover {
    color: var(--color-green-dark);
}

.small-label {
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--color-green-soft);
    display: block;
    margin-bottom: 1rem;
}

/* 1. Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.2rem 0;
    background-color: transparent;
    transition: all 0.4s ease;
}

.navbar.scrolled {
    background-color: rgba(244, 239, 230, 0.95); /* cream color to match body */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(110, 136, 120, 0.1);
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
    padding: 1rem 0;
}

.nav-container {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 1.5rem;
    max-width: 100%;
    padding: 0 4rem;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--color-green-dark);
}

.nav-logo-placeholder {
    width: 40px;
    height: 40px;
    background-color: var(--color-green-dark);
    color: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 0.7rem;
    font-weight: 800;
}

.nav-logo-img {
    width: 40px;
    height: 40px;
    border-radius: 0;
    object-fit: contain;
    flex-shrink: 0;
}

.nav-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2.75rem;
    justify-self: center;
}

.nav-link {
    font-weight: 500;
    color: var(--color-text-main);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    display: inline-block;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.nav-link:hover {
    background-color: rgba(47, 93, 80, 0.1);
    color: var(--color-green-dark);
    transform: translateY(-2px);
}

.nav-link.active {
    background-color: var(--color-green-secondary);
    color: var(--color-white);
    transform: none;
}

.nav-btn {
    background-color: var(--color-green-dark) !important;
    color: var(--color-white) !important;
    padding: 0.55rem 1rem;
    border-radius: 20px;
    font-weight: 600;
}
.nav-btn:hover {
    background-color: var(--color-green-secondary) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(31, 64, 55, 0.2);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.search-btn {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(47, 93, 80, 0.2);
    color: var(--color-green-dark);
    cursor: pointer;
    font-size: 1.2rem;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.search-btn:hover {
    background: var(--color-green-dark);
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(31, 64, 55, 0.2);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--color-text-main);
}

/* 2. Hero Section */
.hero {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100vh;
    padding: 6rem 0 3rem;
    position: relative;
    overflow: hidden;
    background-color: var(--color-cream-alt);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 1.25rem;
    align-items: center;
    position: relative;
    z-index: 10;
}

.hero-photo {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin-left: auto;
}

.hero-photo-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 4/3;
    border-radius: 20px;
    overflow: hidden;
    background-color: var(--color-cream-alt);
    box-shadow:
        0 25px 60px rgba(31, 64, 55, 0.18),
        0 8px 20px rgba(31, 64, 55, 0.08);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.hero-photo-frame:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow:
        0 30px 70px rgba(31, 64, 55, 0.22),
        0 12px 28px rgba(31, 64, 55, 0.1);
}

.hero-photo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

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

/* Slide foto di dalam card hero -- foto baru masuk dari kanan lalu bergeser ke kiri */
.hero-slide-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.7s cubic-bezier(0.65, 0, 0.35, 1);
}

.hero-slide {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
}

.hero-slide .hero-photo-img {
    transition: none;
}

.hero-photo-frame:hover .hero-slide .hero-photo-img {
    transform: none;
}

.hero-photo-caption {
    margin-top: 1.1rem;
    text-align: center;
}

.hero-photo-caption-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-green-secondary);
    margin-bottom: 0.3rem;
}

.hero-photo-caption-title {
    display: block;
    font-family: var(--font-editorial);
    font-style: italic;
    font-size: 1.15rem;
    color: var(--color-text-main);
}

/* Hero UMKM Product Showcase Strip */
.hero-umkm-strip {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-top: 2.5rem;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(47, 93, 80, 0.1);
    border-radius: 16px;
    position: relative;
    z-index: 10;
}

.hero-umkm-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.82rem;
    color: var(--color-green-dark);
    white-space: nowrap;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.hero-umkm-label-icon {
    font-size: 1.2rem;
}

.hero-umkm-scroll {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 0.25rem 0;
}

.hero-umkm-scroll::-webkit-scrollbar {
    display: none;
}

.hero-umkm-item {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.5rem 0.85rem 0.5rem 0.5rem;
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid rgba(47, 93, 80, 0.08);
    border-radius: 12px;
    transition: all 0.3s ease;
    cursor: pointer;
    flex-shrink: 0;
    min-width: 0;
}

.hero-umkm-item:hover {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(47, 93, 80, 0.2);
    box-shadow: 0 4px 16px rgba(31, 64, 55, 0.1);
    transform: translateY(-2px);
}

.hero-umkm-thumb {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--color-cream-alt);
}

.hero-umkm-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-umkm-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    background: linear-gradient(135deg, var(--color-cream-alt), var(--color-cream-light));
}

.hero-umkm-info {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    min-width: 0;
}

.hero-umkm-name {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.82rem;
    color: var(--color-text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 140px;
}

.hero-umkm-cat {
    font-size: 0.72rem;
    color: var(--color-text-muted);
    white-space: nowrap;
}

.hero-umkm-more {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.8rem;
    color: var(--color-green-secondary);
    white-space: nowrap;
    transition: color 0.3s ease;
}

.hero-umkm-more:hover {
    color: var(--color-green-dark);
}

@media (max-width: 1100px) {
    .hero-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 900px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }

    .hero-photo {
        max-width: 520px;
        margin: 0 auto;
    }

    .hero-umkm-strip {
        flex-wrap: wrap;
        gap: 0.75rem;
    }

    .hero-umkm-label {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 7rem 0 2rem;
    }

    .hero-card {
        width: calc(100% - 1.5rem);
        padding: 1.75rem;
        border-radius: 24px;
    }

    .hero-umkm-strip {
        margin-top: 1.5rem;
        padding: 0.85rem 1rem;
    }

    .hero-umkm-thumb {
        width: 40px;
        height: 40px;
    }
}

/* Hero Overlay */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(244, 239, 230, 0.95) 0%, rgba(244, 239, 230, 0.4) 100%);
    z-index: 1;
    pointer-events: none;
}

.hero-card {
    position: relative;
    z-index: 10;
    width: calc(100% - 2.5rem);
    max-width: 1400px;
    margin: 0 auto;
    background-color: rgba(250, 247, 240, 0.55);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(47, 93, 80, 0.12);
    border-radius: 32px;
    padding: 3rem;
    box-shadow: 0 30px 70px rgba(31, 64, 55, 0.12);
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 820px;
}

.hero-headline {
    font-size: clamp(2.75rem, 5.5vw, 4.75rem);
    font-weight: 800;
    line-height: 1.08;
    margin-bottom: 1.5rem;
    color: var(--color-green-dark);
}

.hero-subheadline {
    font-size: clamp(1.2rem, 2vw, 1.55rem);
    font-family: var(--font-editorial);
    font-style: italic;
    color: var(--color-green-secondary);
    margin-bottom: 1.5rem;
}

.hero-desc {
    font-size: clamp(1.05rem, 1.2vw, 1.15rem);
    color: var(--color-text-main);
    margin-bottom: 2.25rem;
    max-width: 600px;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.hero-actions .btn {
    padding: 0.9rem 1.8rem;
    font-size: 0.95rem;
}

.hero-actions .btn-link {
    font-size: 0.95rem;
}

/* 3. Quick Access */
.quick-access {
    background-color: transparent;
    padding: 3rem 0;
    border-bottom: 1px solid rgba(110, 136, 120, 0.1);
}

.qa-grid {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
}

.qa-item {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    border-right: 1px solid rgba(110, 136, 120, 0.1);
    transition: all 0.3s ease;
}

.qa-item:last-child {
    border-right: none;
}

.qa-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.qa-icon {
    width: 24px;
    height: 24px;
    stroke: var(--color-text-main);
    transition: stroke 0.3s ease;
}

.qa-title {
    font-weight: 600;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.qa-arrow {
    transition: transform 0.3s ease;
    opacity: 0.5;
}

.qa-item:hover {
    background-color: rgba(250, 247, 240, 0.5); /* light cream subtle */
}
.qa-item:hover .qa-title, .qa-item:hover .qa-icon {
    color: var(--color-green-dark);
    stroke: var(--color-green-dark);
}
.qa-item:hover .qa-arrow {
    transform: translateX(5px);
    opacity: 1;
    color: var(--color-green-dark);
}

/* 4. Mengenal Campago (Editorial 2 Col) */
.section-padding {
    padding: var(--section-spacing) 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
}

.placeholder-img {
    background-color: var(--color-cream-alt);
    border: 1px dashed var(--color-green-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-green-soft);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-radius: 20px;
    overflow: hidden;
}

.about-img {
    aspect-ratio: 4/5;
    border-radius: 4px;
}

.section-heading {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    color: var(--color-green-dark);
    margin-bottom: 2rem;
}

.about-desc {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--color-text-main);
    margin-bottom: 3rem;
    border-left: 3px solid var(--color-green-secondary);
    padding-left: 1.5rem;
    font-family: var(--font-editorial);
}

/* 5. Statistik Nagari */
.stats {
    background-color: transparent;
    border-top: 1px solid rgba(110, 136, 120, 0.1);
    border-bottom: 1px solid rgba(110, 136, 120, 0.1);
    padding: 6rem 0;
}

.stats-grid {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.stat-item {
    flex: 1;
    text-align: center;
    position: relative;
}

.stat-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 20%;
    height: 60%;
    width: 1px;
    background-color: rgba(110, 136, 120, 0.2);
}

.stat-number {
    font-size: clamp(3rem, 5vw, 4.5rem);
    font-weight: 800;
    color: var(--color-green-dark);
    font-family: var(--font-heading);
    line-height: 1;
    margin-bottom: 1rem;
}

.stat-label {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--color-text-muted);
}

/* 6. Potensi Nagari (Bento Grid) */
.potensi-header {
    margin-bottom: 4rem;
    max-width: 600px;
}

.potensi-desc {
    font-size: 1.2rem;
    color: var(--color-text-muted);
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 350px);
    gap: 1.5rem;
}

.bento-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    background-color: var(--color-cream-alt);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.bento-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.bento-item-large {
    grid-column: span 2;
    grid-row: span 2;
}

.bento-img-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px dashed var(--color-green-soft);
    color: var(--color-green-soft);
    font-weight: 600;
    z-index: 1;
    transition: transform 0.5s ease;
}

.bento-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    transition: transform 0.5s ease;
}

.bento-item:hover .bento-img {
    transform: scale(1.05);
}

.bento-item:hover .bento-img-placeholder {
    transform: none;
}

.bento-content {
    position: relative;
    z-index: 2;
    padding: 2rem;
    background: linear-gradient(to top, rgba(244, 239, 230, 1) 0%, rgba(244, 239, 230, 0) 100%);
    margin-top: auto;
}

.bento-title {
    font-size: 1.5rem;
    color: var(--color-green-dark);
    margin-bottom: 0.5rem;
}

.bento-item-large .bento-title {
    font-size: 2.5rem;
}

.bento-desc {
    color: var(--color-text-main);
}

/* 7. Berita (Editorial) */
.news-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 4rem;
}

@media (max-width: 768px) {
    .news-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        margin-bottom: 2.5rem;
    }
}

.news-grid {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 4rem;
}

.news-main .placeholder-img {
    aspect-ratio: 16/9;
    margin-bottom: 2rem;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.news-main:hover .placeholder-img {
    transform: scale(1.02) translateY(-4px);
    box-shadow: 0 16px 30px rgba(31, 64, 55, 0.1);
}

.news-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin-bottom: 1rem;
}

.news-meta-cat {
    color: var(--color-green-secondary);
    font-weight: 600;
}

.news-main-title {
    font-size: 2.5rem;
    color: var(--color-green-dark);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.news-main-desc {
    font-size: 1.1rem;
    color: var(--color-text-main);
}

.news-list {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.news-item {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 1.5rem;
    align-items: start;
    padding: 1rem;
    border-radius: 16px;
    transition: background-color 0.3s ease, transform 0.3s ease;
}
.news-item:hover {
    background-color: var(--color-white);
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}

.news-item .placeholder-img {
    aspect-ratio: 1;
    transition: transform 0.3s ease;
    font-size: 0.6rem;
    letter-spacing: 1px;
    text-align: center;
    padding: 0.25rem;
}
.news-item:hover .placeholder-img {
    transform: scale(1.05);
}

.news-item-title {
    font-size: 1.25rem;
    color: var(--color-green-dark);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.news-item-title:hover {
    color: var(--color-green-secondary);
}

.news-item-desc {
    font-size: 0.88rem;
    line-height: 1.5;
    color: var(--color-text-muted);
}

/* 8. Peta Digital */
.map-section {
    background-color: transparent;
}

.map-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    align-items: center;
}

.map-filters {
    margin: 2rem 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.filter-btn {
    text-align: left;
    background: none;
    border: none;
    padding: 0.8rem 1rem;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-text-main);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(110, 136, 120, 0.2);
}

.filter-btn:hover, .filter-btn.active {
    background-color: var(--color-green-secondary);
    color: var(--color-white);
    border-color: var(--color-green-secondary);
}

.map-placeholder {
    aspect-ratio: 16/10;
    overflow: hidden;
    background-color: var(--color-cream-alt);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.map-placeholder-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.map-placeholder-empty {
    color: var(--color-green-soft);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
}

/* Lokasi Nagari (Google Maps Embed) -- aspect-ratio & border-radius datang dari
   class yang di-merge di titik pemakaian (mis. .about-img), bukan di sini,
   supaya komponennya bisa dipakai di ukuran/bentuk berbeda-beda. */
.peta-nagari-wrap {
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.peta-nagari-wrap iframe {
    display: block;
}

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 35, 24, 0.6);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    z-index: 1000;
}

#toggle-fasilitas-umum:checked ~ .modal-overlay.modal-fasilitas-umum,
#toggle-umkm:checked ~ .modal-overlay.modal-umkm,
#toggle-korong:checked ~ .modal-overlay.modal-korong {
    display: flex;
}

.modal-content {
    width: min(100%, 680px);
    max-height: 85vh;
    background: linear-gradient(160deg, var(--color-white) 0%, var(--color-cream-light) 100%);
    border-radius: 20px;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.22);
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: modalPopIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalPopIn {
    0% { opacity: 0; transform: translateY(26px) scale(0.96); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-content::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 40px;
    background: linear-gradient(to bottom, rgba(250, 247, 240, 0), rgba(250, 247, 240, 0.96));
    pointer-events: none;
}

.modal-content-wide {
    width: min(100%, 820px);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1.25rem;
    z-index: 5;
    background: rgba(255, 255, 255, 0.7);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    font-size: 1.5rem;
    color: var(--color-green-dark);
    cursor: pointer;
    line-height: 1;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: var(--color-green-dark);
    color: var(--color-white);
    transform: rotate(90deg);
}

.modal-header {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    flex-shrink: 0;
    padding: 2rem 2rem 1.5rem;
    position: relative;
    overflow: hidden;
}

.modal-header-fasum {
    background: linear-gradient(120deg, rgba(47, 93, 80, 0.14) 0%, rgba(185, 211, 207, 0.22) 100%);
}

.modal-header-umkm {
    background: linear-gradient(120deg, rgba(218, 191, 132, 0.22) 0%, rgba(47, 93, 80, 0.12) 100%);
}

.modal-header::before,
.modal-header::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(28px);
    pointer-events: none;
    z-index: 0;
}

.modal-header-fasum::before { width: 170px; height: 170px; background: rgba(185, 211, 207, 0.55); top: -70px; right: 30px; }
.modal-header-fasum::after { width: 120px; height: 120px; background: rgba(47, 93, 80, 0.22); bottom: -75px; left: 35%; }

.modal-header-umkm::before { width: 170px; height: 170px; background: rgba(218, 191, 132, 0.55); top: -70px; right: 20px; animation: headerGlowFloat 9s ease-in-out infinite alternate; }
.modal-header-umkm::after { width: 120px; height: 120px; background: rgba(47, 93, 80, 0.2); bottom: -75px; left: 30%; }

.modal-header-korong {
    background: linear-gradient(120deg, rgba(47, 93, 80, 0.16) 0%, rgba(218, 191, 132, 0.18) 100%);
}
.modal-header-korong::before { width: 170px; height: 170px; background: rgba(47, 93, 80, 0.3); top: -70px; right: 30px; animation: headerGlowFloat 11s ease-in-out infinite alternate; }
.modal-header-korong::after { width: 130px; height: 130px; background: rgba(218, 191, 132, 0.4); bottom: -80px; left: 30%; }

@keyframes headerGlowFloat {
    0% { transform: translate(0, 0); }
    100% { transform: translate(-16px, 12px); }
}

/* Popup detail per-korong (dibuka dari dalam popup Daftar Korong) */
.korong-detail-toggle input:checked ~ .modal-overlay {
    display: flex;
}

.modal-list-hint {
    margin-top: -0.6rem;
    margin-bottom: 1rem;
    font-size: 0.82rem;
    color: var(--color-text-muted);
}

.location-card-clickable {
    position: relative;
    cursor: pointer;
    padding-right: 2.5rem;
}

.location-card-clickable::after {
    content: '›';
    position: absolute;
    right: 0.9rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--color-green-soft);
    transition: transform 0.25s ease, color 0.25s ease;
}

.location-card-clickable:hover::after {
    color: var(--color-green-dark);
    transform: translateY(-50%) translateX(3px);
}

.info-card-clickable {
    display: block;
    cursor: pointer;
    text-align: left;
    width: 100%;
}

.info-card-clickable::after {
    content: '›';
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--color-green-soft);
    transition: transform 0.25s ease, color 0.25s ease;
}

.info-card-clickable:hover::after {
    color: var(--color-white);
    transform: translateX(4px);
}

.modal-icon-badge-gold {
    background: linear-gradient(135deg, #B8935A, var(--color-gold-soft));
    box-shadow: 0 10px 22px rgba(154, 116, 24, 0.3);
}

.modal-icon-badge-sky {
    background: linear-gradient(135deg, #4A7A73, var(--color-sky-soft));
    box-shadow: 0 10px 22px rgba(47, 93, 80, 0.25);
}

.korong-highlight-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.75rem;
}

.korong-highlight-item {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.8rem 1rem;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(244, 239, 230, 0.6));
    border: 1px solid rgba(47, 93, 80, 0.12);
    border-radius: 10px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--color-text-main);
    opacity: 0;
    animation: cardFadeUp 0.4s ease forwards;
}

.korong-highlight-item:nth-child(1) { animation-delay: 0.05s; }
.korong-highlight-item:nth-child(2) { animation-delay: 0.1s; }
.korong-highlight-item:nth-child(3) { animation-delay: 0.15s; }
.korong-highlight-item:nth-child(4) { animation-delay: 0.2s; }

.korong-highlight-item .icon {
    color: var(--color-gold-soft);
    font-size: 1rem;
    filter: drop-shadow(0 1px 1px rgba(0,0,0,0.1));
}

.korong-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.6rem;
    padding: 2rem 1.5rem;
    border: 1px dashed rgba(47, 93, 80, 0.3);
    border-radius: 12px;
    background: rgba(244, 239, 230, 0.4);
}

.korong-empty-state .icon {
    font-size: 1.6rem;
    opacity: 0.6;
}

.korong-empty-state p {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    max-width: 320px;
}

.modal-icon-badge {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--color-green-dark), var(--color-green-secondary));
    color: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    box-shadow: 0 10px 22px rgba(31, 64, 55, 0.25);
    position: relative;
    z-index: 1;
    animation: badgePop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
    animation-delay: 0.1s;
}

@keyframes badgePop {
    0% { opacity: 0; transform: scale(0.6) rotate(-8deg); }
    100% { opacity: 1; transform: scale(1) rotate(0deg); }
}

.modal-header > div { position: relative; z-index: 1; }

.modal-body {
    display: grid;
    gap: 1.5rem;
    padding: 1.25rem 2rem 2rem;
    overflow-y: auto;
}

.modal-quick-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.modal-quick-stat {
    flex: 1;
    min-width: 160px;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    background: linear-gradient(145deg, rgba(255,255,255,0.9), rgba(244,239,230,0.6));
    border: 1px solid rgba(47, 93, 80, 0.12);
    border-radius: 12px;
    padding: 0.9rem 1.1rem;
}

.modal-quick-stat .icon {
    font-size: 1.5rem;
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    border-radius: 10px;
    background: rgba(47, 93, 80, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-quick-stat:nth-child(1) .icon { background: rgba(47, 93, 80, 0.14); }
.modal-quick-stat:nth-child(2) .icon { background: rgba(218, 191, 132, 0.28); }

.modal-quick-stat .value {
    display: block;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.15rem;
    color: var(--color-green-dark);
    line-height: 1.3;
}

.modal-quick-stat .label {
    display: block;
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

.modal-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.modal-tag {
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    background: rgba(47, 93, 80, 0.1);
    color: var(--color-green-dark);
    font-size: 0.78rem;
    font-weight: 700;
    border: 1px solid rgba(47, 93, 80, 0.15);
    transition: transform 0.2s ease;
}

.modal-tag:hover { transform: translateY(-2px); }

.modal-tag:nth-child(3n+1) { background: rgba(47, 93, 80, 0.12); color: var(--color-green-dark); border-color: rgba(47, 93, 80, 0.22); }
.modal-tag:nth-child(3n+2) { background: rgba(218, 191, 132, 0.28); color: #7A5F28; border-color: rgba(218, 191, 132, 0.45); }
.modal-tag:nth-child(3n+3) { background: rgba(185, 211, 207, 0.35); color: var(--color-green-dark); border-color: rgba(185, 211, 207, 0.55); }

.modal-list h3 {
    margin-bottom: 1rem;
    color: var(--color-green-dark);
}

.location-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.85rem;
}

.location-card {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.9rem 1rem;
    background: var(--color-white);
    border: 1px solid rgba(47, 93, 80, 0.1);
    border-radius: 12px;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    opacity: 0;
    animation: cardFadeUp 0.45s ease forwards;
}

.location-card:nth-child(1) { animation-delay: 0.05s; }
.location-card:nth-child(2) { animation-delay: 0.1s; }
.location-card:nth-child(3) { animation-delay: 0.15s; }
.location-card:nth-child(4) { animation-delay: 0.2s; }
.location-card:nth-child(5) { animation-delay: 0.25s; }
.location-card:nth-child(6) { animation-delay: 0.3s; }

@keyframes cardFadeUp {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: translateY(0); }
}

.location-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 22px rgba(31, 64, 55, 0.12);
    border-color: rgba(47, 93, 80, 0.3);
}

.location-card .icon {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(47, 93, 80, 0.15), rgba(218, 191, 132, 0.2));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: transform 0.25s ease;
}

.location-card:hover .icon { transform: scale(1.1) rotate(-4deg); }

.location-card:nth-child(3n+1) .icon { background: linear-gradient(135deg, rgba(47, 93, 80, 0.2), rgba(47, 93, 80, 0.08)); }
.location-card:nth-child(3n+2) .icon { background: linear-gradient(135deg, rgba(218, 191, 132, 0.32), rgba(218, 191, 132, 0.12)); }
.location-card:nth-child(3n+3) .icon { background: linear-gradient(135deg, rgba(185, 211, 207, 0.4), rgba(185, 211, 207, 0.15)); }

.location-card .name {
    font-weight: 700;
    color: var(--color-green-dark);
    font-size: 0.9rem;
    line-height: 1.3;
}

.location-card .korong {
    font-size: 0.78rem;
    color: var(--color-text-muted);
}

.modal-umkm-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.modal-umkm-grid .umkm-card {
    min-width: 0;
    position: relative;
    overflow: hidden;
    opacity: 0;
    animation: cardFadeUp 0.45s ease forwards;
}

.modal-umkm-grid .umkm-card:nth-child(1) { animation-delay: 0.08s; }
.modal-umkm-grid .umkm-card:nth-child(2) { animation-delay: 0.16s; }
.modal-umkm-grid .umkm-card:nth-child(3) { animation-delay: 0.24s; }
.modal-umkm-grid .umkm-card:nth-child(4) { animation-delay: 0.32s; }

.modal-umkm-grid .umkm-card::before {
    content: 'Produk Nagari';
    position: absolute;
    top: 14px;
    right: -36px;
    background: linear-gradient(90deg, var(--color-green-dark), var(--color-green-secondary));
    color: var(--color-white);
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 0.3rem 2.6rem;
    transform: rotate(45deg);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.18);
    z-index: 2;
    pointer-events: none;
}

.modal-umkm-grid .umkm-card:hover {
    box-shadow: 0 16px 32px rgba(154, 116, 24, 0.2);
}

/* 9. UMKM Lokal */
.umkm-header {
    margin-bottom: 4rem;
}

.umkm-showcase {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.umkm-card {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    padding: 1.5rem;
    border-radius: 8px;
    /* background/border final: lihat override .umkm-card di bagian "Tema Gradasi" (dekat .info-card) */
}
.umkm-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.06);
}

.umkm-img {
    aspect-ratio: 4/3;
    margin-bottom: 1.5rem;
    border-radius: 4px;
    width: 100%;
    display: block;
}

.umkm-cat {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-green-secondary);
    margin-bottom: 0.5rem;
    display: block;
}

.umkm-title {
    font-size: 1.5rem;
    color: var(--color-green-dark);
    margin-bottom: 0.5rem;
}

.umkm-owner {
    font-size: 1rem;
    color: var(--color-text-main);
    margin-bottom: 0.2rem;
}

.umkm-location {
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.umkm-desc {
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--color-text-muted);
    margin-bottom: 0.75rem;
}

/* 10. Culture / Gallery */
.gallery-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.gallery-hero-label {
    position: relative;
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 3.2vw, 2.6rem);
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--color-green-dark);
    text-align: left;
    margin-bottom: 1.5rem;
}

.gallery-hero-content {
    position: relative;
    text-align: left;
    padding: 2rem 2.25rem;
    background-color: var(--color-white);
    border-radius: 24px;
    box-shadow: 0 16px 40px rgba(31, 64, 55, 0.08);
    transition: all 0.3s ease;
}

.gallery-hero-content:hover {
    transform: translateY(-4px);
    box-shadow: 0 22px 48px rgba(31, 64, 55, 0.12);
}

.gallery-title {
    font-family: var(--font-editorial);
    font-style: italic;
    font-weight: 600;
    font-size: clamp(1.3rem, 2vw, 1.65rem);
    line-height: 1.6;
    color: var(--color-green-dark);
    margin-bottom: 1.25rem;
}

/* Kolase foto kreatif, saling bertumpuk & sedikit miring seperti tumpukan foto cetak */
.gallery-collage {
    position: relative;
    min-height: 440px;
}

.collage-item {
    position: absolute;
    padding: 10px 10px 14px;
    background-color: var(--color-white);
    border-radius: 10px;
    box-shadow: 0 20px 44px rgba(31, 64, 55, 0.2);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease;
    cursor: default;
}

.collage-item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}

.collage-item:hover {
    box-shadow: 0 28px 56px rgba(31, 64, 55, 0.3);
    z-index: 9 !important;
}

.collage-item-1 {
    width: 60%;
    height: 300px;
    top: 0;
    left: 0;
    transform: rotate(-5deg);
    z-index: 2;
}
.collage-item-1:hover { transform: rotate(-5deg) translateY(-8px) scale(1.03); }

.collage-item-2 {
    width: 52%;
    height: 260px;
    bottom: 0;
    right: 0;
    transform: rotate(6deg);
    z-index: 3;
}
.collage-item-2:hover { transform: rotate(6deg) translateY(-8px) scale(1.03); }

.collage-item-3 {
    width: 36%;
    height: 210px;
    top: 6%;
    right: 2%;
    transform: rotate(11deg);
    z-index: 1;
}
.collage-item-3:hover { transform: rotate(11deg) translateY(-8px) scale(1.03); }

.collage-item-4 {
    width: 34%;
    height: 190px;
    bottom: 8%;
    left: 4%;
    transform: rotate(-9deg);
    z-index: 1;
}
.collage-item-4:hover { transform: rotate(-9deg) translateY(-8px) scale(1.03); }

.collage-item-5 {
    width: 26%;
    height: 160px;
    top: 42%;
    left: 34%;
    transform: rotate(3deg);
    z-index: 4;
}
.collage-item-5:hover { transform: rotate(3deg) translateY(-8px) scale(1.03); }

.gallery-collage-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: 100%;
    min-height: 320px;
    padding: 2rem;
    color: var(--color-text-muted);
    background: var(--color-cream-alt);
    border-radius: 24px;
    border: 1px dashed var(--color-green-soft);
}

@media (max-width: 900px) {
    .gallery-split {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .gallery-hero-label,
    .gallery-hero-content {
        text-align: center;
    }

    .gallery-collage {
        min-height: 320px;
    }

    .collage-item-1 { height: 220px; }
    .collage-item-2 { height: 190px; }
    .collage-item-3 { height: 150px; }
    .collage-item-4 { height: 135px; }
    .collage-item-5 { height: 115px; }
}

/* Aparatur Nagari (Pemerintahan) - Struktur Organisasi */
/* Section dibuat setinggi 1 layar penuh (di bawah navbar) dan kontennya dipusatkan
   secara vertikal, supaya saat pengunjung buka menu "Struktur Nagari" yang terlihat
   betul-betul cuma bagan ini -- tidak ada potongan section lain yang mengintip. */
.org-section.section-padding {
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    padding: 1rem 0;
}

.org-section .container {
    max-width: none;
    padding: 0 1.25rem;
    width: 100%;
}

.org-chart {
    --line-color: rgba(47, 93, 80, 0.35);
    --line-gap: 0.95rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    background-color: rgba(250, 247, 240, 0.55);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(47, 93, 80, 0.1);
    border-radius: 28px;
    box-shadow: 0 20px 50px rgba(31, 64, 55, 0.06);
    padding: 2.5rem 1.5rem;
}

.org-row {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding-top: var(--line-gap);
    position: relative;
    width: fit-content;
    max-width: 100%;
}

/* Batang vertikal dari baris sebelumnya turun ke garis penghubung baris ini */
.org-chart > .org-row:not(:first-child)::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 2px;
    height: var(--line-gap);
    background: var(--line-color);
    transform: translateX(-50%);
}

.org-node {
    position: relative;
    padding-top: var(--line-gap);
    margin: 0 0.4rem;
}

/* Garis mendatar (setengah kiri & kanan) plus cabang vertikal turun ke setiap kotak */
.org-row:not(:first-child) > .org-node::before,
.org-row:not(:first-child) > .org-node::after {
    content: '';
    position: absolute;
    top: 0;
    width: 50%;
    height: var(--line-gap);
    border-top: 2px solid var(--line-color);
}
.org-row:not(:first-child) > .org-node::before { right: 50%; }
.org-row:not(:first-child) > .org-node::after { left: 50%; border-left: 2px solid var(--line-color); }

.org-row > .org-node:only-child::before,
.org-row > .org-node:only-child::after { display: none; }
.org-row > .org-node:only-child { padding-top: 0; }

.org-row > .org-node:first-child::before,
.org-row > .org-node:last-child::after { border: 0 none; }

.org-box {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    background: var(--color-white);
    border: 1px solid rgba(47, 93, 80, 0.15);
    border-radius: 10px;
    box-shadow: 0 8px 18px rgba(0,0,0,0.06);
    padding: 0.6rem 1rem 0.6rem 0.6rem;
    text-align: left;
    max-width: clamp(215px, 15vw, 280px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.org-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 30px rgba(0,0,0,0.1);
}

.org-node-highlight .org-box {
    background: linear-gradient(160deg, var(--color-gold-soft, #DABF84) 0%, #F4EAD0 100%);
    border-color: rgba(218, 191, 132, 0.6);
}

.org-photo {
    width: clamp(48px, 3.5vw, 68px);
    height: clamp(48px, 3.5vw, 68px);
    min-width: clamp(48px, 3.5vw, 68px);
    border-radius: 7px;
    background-color: var(--color-cream-alt);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-green-soft);
    font-size: 0.62rem;
    font-weight: 600;
}

.org-info { min-width: 0; }

/* Label jabatan tampil sebagai "pil" berwarna supaya jabatan & nama jelas terpisah,
   dipakai konsisten di semua tingkat (Wali Nagari sampai Staf). */
.org-position {
    display: inline-block;
    font-size: clamp(0.62rem, 0.75vw, 0.78rem);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    line-height: 1.3;
    color: var(--color-white);
    background: var(--color-green-secondary, #2F5D50);
    padding: 0.2rem 0.5rem;
    border-radius: 5px;
    margin-bottom: 0.3rem;
    overflow-wrap: break-word;
    max-width: 100%;
}

.org-node-highlight .org-position {
    background: var(--color-green-dark, #1F4037);
    color: var(--color-white);
}

.org-name {
    font-size: clamp(0.92rem, 1vw, 1.1rem);
    font-weight: 600;
    line-height: 1.3;
    color: var(--color-text-main);
    overflow-wrap: break-word;
}

/* Wali Korong & Staf: baris berisi lebih banyak kotak (sampai 8 sejajar), jadi
   dibuat versi lebih kecil dari .org-box -- tetap ada foto, jabatan, dan nama. */
.org-row-compact .org-node {
    margin: 0 0.3rem;
}

.org-box-sm {
    gap: 0.5rem;
    padding: 0.4rem 0.6rem 0.4rem 0.4rem;
    max-width: clamp(145px, 11vw, 220px);
}

.org-box-sm .org-photo {
    width: clamp(32px, 2.6vw, 48px);
    height: clamp(32px, 2.6vw, 48px);
    min-width: clamp(32px, 2.6vw, 48px);
    border-radius: 6px;
    font-size: 0.46rem;
}

.org-box-sm .org-info { min-width: 0; }

.org-box-sm .org-position {
    font-size: clamp(0.5rem, 0.65vw, 0.66rem);
    padding: 0.15rem 0.4rem;
    margin-bottom: 0.22rem;
}

.org-box-sm .org-name {
    font-size: clamp(0.72rem, 0.85vw, 0.9rem);
}

@media (max-width: 1024px) {
    .org-chart {
        padding: 1.75rem 1rem;
        border-radius: 20px;
    }
    .org-row {
        width: 100%;
        flex-direction: column;
        align-items: center;
    }
    .org-node { margin: 0.6rem 0; }

    /* Di layar sempit, kotak ditumpuk vertikal -- sembunyikan garis mendatar per-kotak
       (yang cuma benar untuk susunan sejajar horizontal) dan sisakan garis tegak sederhana saja. */
    .org-row:not(:first-child) > .org-node::before,
    .org-row:not(:first-child) > .org-node::after {
        display: none;
    }
    .org-row:not(:first-child) > .org-node {
        padding-top: 1.25rem;
    }
    .org-row:not(:first-child) > .org-node:not(:first-child)::before {
        content: '';
        position: absolute;
        top: 0;
        left: 50%;
        width: 2px;
        height: 1.25rem;
        background: var(--line-color);
        transform: translateX(-50%);
        border: 0 none;
        display: block;
    }
}

/* Layanan Informasi */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.info-card {
    background-color: var(--color-white);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid rgba(110, 136, 120, 0.1);
    transition: all 0.3s ease;
}

.info-card:hover {
    background-color: var(--color-green-dark);
    color: var(--color-white);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(31, 64, 55, 0.2);
}

.info-card:hover .info-title, .info-card:hover .info-desc {
    color: var(--color-white);
}

.info-icon {
    font-size: 2rem;
    color: var(--color-green-secondary);
    margin-bottom: 1rem;
}
.info-card:hover .info-icon {
    color: var(--color-cream-alt);
}

.info-title {
    font-size: 1.25rem;
    color: var(--color-green-dark);
    margin-bottom: 0.5rem;
}

.info-desc {
    color: var(--color-text-muted);
}

/* 11. Footer */
.footer {
    background-color: var(--color-green-dark);
    color: var(--color-cream-primary);
    padding: 6rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

.footer-brand-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.footer-brand-body {
    padding-left: calc(40px + 1rem);
}

.footer-brand .nav-logo-placeholder {
    background-color: var(--color-cream-primary);
    color: var(--color-green-dark);
    flex-shrink: 0;
}

.footer-brand h3 {
    color: var(--color-cream-primary);
    font-size: 1.3rem;
    margin-bottom: 0;
}

.footer-brand p {
    color: rgba(244, 239, 230, 0.7);
    line-height: 1.7;
}

.footer-tagline {
    margin-bottom: 0.9rem;
}

.footer-address {
    white-space: pre-line;
    margin-bottom: 0.75rem;
}

.footer-kode-wilayah {
    font-size: 0.92rem;
}

.footer-kode-wilayah strong {
    color: rgba(244, 239, 230, 0.9);
}

.footer-heading {
    color: var(--color-cream-primary);
    font-size: 1.05rem;
    margin-bottom: 1.4rem;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    color: rgba(244, 239, 230, 0.7);
}

.footer-contact li svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: rgba(244, 239, 230, 0.55);
}

.footer-contact li a {
    color: rgba(244, 239, 230, 0.85);
    transition: color 0.2s ease;
}

.footer-contact li a:hover {
    color: var(--color-cream-primary);
}

.footer-social {
    display: flex;
    gap: 0.75rem;
}

.footer-social-icon {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: rgba(244, 239, 230, 0.1);
    color: rgba(244, 239, 230, 0.75);
    transition: all 0.2s ease;
}

.footer-social-icon svg {
    width: 16px;
    height: 16px;
}

.footer-social-icon:hover {
    background-color: rgba(244, 239, 230, 0.2);
    color: var(--color-cream-primary);
}

.footer-schedule {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.footer-schedule li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding-bottom: 0.9rem;
    border-bottom: 1px solid rgba(244, 239, 230, 0.12);
}

.footer-schedule li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.footer-schedule-day {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    color: rgba(244, 239, 230, 0.85);
    font-weight: 600;
    font-size: 0.92rem;
}

.footer-schedule-icon {
    flex-shrink: 0;
    color: rgba(244, 239, 230, 0.55);
}

.footer-schedule-time {
    color: rgba(244, 239, 230, 0.6);
    font-size: 0.85rem;
    text-align: right;
    white-space: nowrap;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(244, 239, 230, 0.1);
    color: rgba(244, 239, 230, 0.5);
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .nav-link { padding-inline: 0.45rem; font-size: 0.77rem; }
    .nav-brand { font-size: 0.95rem; }
    .bento-grid {
        grid-template-columns: 1fr 1fr;
    }
    .bento-item-large {
        grid-column: span 1;
        grid-row: span 1;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
    }

    .umkm-showcase {
        grid-template-columns: repeat(2, 1fr);
    }

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

@media (max-width: 768px) {
    :root {
        --section-spacing: 80px;
    }
    
    .nav-links, .nav-actions {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .qa-grid {
        flex-direction: column;
        gap: 0;
    }

    .qa-item {
        border-right: none;
        border-bottom: 1px solid rgba(110, 136, 120, 0.1);
    }
    
    .stats-grid {
        flex-wrap: wrap;
        gap: 3rem;
    }
    
    .stat-item {
        flex: 1 1 40%;
    }
    
    .stat-item::after {
        display: none;
    }
    
    .bento-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        grid-auto-rows: 350px;
    }

    .umkm-showcase {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

/* Header refinement */
.navbar { top: 1.25rem; left: 50%; transform: translateX(-50%); width: calc(100% - 2.5rem); max-width: 1400px; border-radius: 999px; padding: 0.75rem 1rem; background-color: rgba(250, 247, 240, 0.92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid rgba(47, 93, 80, 0.12); box-shadow: 0 6px 24px rgba(31, 64, 55, 0.06); transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1); }
.navbar.scrolled { top: 0.75rem; background-color: rgba(250, 247, 240, 0.98); box-shadow: 0 8px 24px rgba(31, 64, 55, 0.09); padding: 0.55rem 1rem; border-color: rgba(47, 93, 80, 0.18); }
.nav-container { gap: 1.25rem; min-height: 46px; }
.nav-brand { gap: 0.7rem; font-size: 1.05rem; letter-spacing: -0.02em; white-space: nowrap; }
.nav-logo-placeholder { width: 42px; height: 42px; font-size: 0.62rem; }
.nav-logo-img { width: 42px; height: 42px; }
.nav-links { align-items: center; justify-content: center; gap: 1.75rem; justify-self: center; }
.nav-link { padding: 0.5rem 0.7rem; font-size: 0.84rem; font-weight: 600; }
.mobile-menu-btn { align-items: center; justify-content: center; width: 42px; height: 42px; border: 1px solid rgba(47, 93, 80, 0.2); border-radius: 50%; }
.mobile-menu-btn span { transition: transform 0.2s ease, opacity 0.2s ease; }
.mobile-menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.mobile-menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.layanan-hero { min-height: 42vh; align-items: center; justify-content: center; padding: 8rem 0 3.5rem; text-align: center; }
.layanan-hero .hero-content { max-width: 680px; }
.layanan-hero .hero-headline { margin-bottom: 0.75rem; font-size: clamp(3rem, 6vw, 4.5rem); }
.layanan-hero .hero-desc { margin: 0 auto; }
@media (max-width: 1024px) { .nav-link { padding-inline: 0.45rem; font-size: 0.77rem; } .nav-brand { font-size: 0.95rem; } .nav-links { gap: 0.9rem; } }
@media (max-width: 768px) { .nav-actions { display: none; } .nav-links { display: none; position: absolute; top: calc(100% + 0.5rem); right: 1rem; left: 1rem; flex-direction: column; align-items: stretch; gap: 0.2rem; margin: 0; padding: 0.75rem; background-color: rgba(250, 247, 240, 0.98); border: 1px solid rgba(47, 93, 80, 0.12); border-radius: 12px; box-shadow: 0 14px 30px rgba(31, 64, 55, 0.14); } .nav-links.is-open { display: flex; } .nav-link { display: block; padding: 0.7rem 0.85rem; font-size: 0.92rem; } .nav-btn { text-align: center; margin-top: 0.25rem; } .layanan-hero { min-height: 360px; padding: 7rem 0 3rem; } }
/* TEMA GRADASI KREATIF - SUPER PREMIUM ANIMATED MESH & LINEAR GRADIENTS */
:root {
    --color-sage-light: #A8C1A5;
    --color-gold-soft: #DABF84;
    --color-sky-soft: #B9D3CF;
}

/* 1. Animated Body Background */
body {
    background-color: var(--color-cream-light);
    background-image: 
        radial-gradient(circle at 15% 15%, rgba(218, 191, 132, 0.5) 0%, transparent 60%),
        radial-gradient(circle at 85% 15%, rgba(168, 193, 165, 0.55) 0%, transparent 60%),
        radial-gradient(circle at 85% 85%, rgba(185, 211, 207, 0.65) 0%, transparent 60%),
        radial-gradient(circle at 15% 85%, rgba(110, 136, 120, 0.4) 0%, transparent 60%),
        radial-gradient(circle at 50% 50%, rgba(226, 160, 128, 0.45) 0%, transparent 60%); /* Warna ke-5: Warm Peach / Sunset */
    background-attachment: fixed;
    background-size: 150% 150%;
    animation: gradientBG 25s ease-in-out infinite alternate;
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* 2. Hero Section - Glowing Animated Mesh Gradient */
.hero::before {
    background: radial-gradient(circle at 10% 20%, rgba(47, 93, 80, 0.15) 0%, transparent 40%),
                radial-gradient(circle at 90% 80%, rgba(110, 136, 120, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 50% 50%, rgba(218, 191, 132, 0.1) 0%, transparent 60%),
                linear-gradient(112deg, rgba(244, 239, 230, 0.65) 0%, rgba(244, 239, 230, 0.45) 45%, rgba(244, 239, 230, 0.22) 100%);
    animation: meshFlow 10s ease-in-out infinite alternate;
    z-index: 1;
}

@keyframes meshFlow {
    0% { background-position: 0% 0%, 100% 100%, 50% 50%, 0% 0%; }
    100% { background-position: 100% 100%, 0% 0%, 20% 80%, 0% 0%; }
}

/* 3. Text Gradients */
.hero-headline {
    background: linear-gradient(135deg, var(--color-green-dark) 0%, var(--color-green-secondary) 50%, var(--color-green-soft) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 2px 12px rgba(255, 255, 255, 0.5));
}

.hero-content .small-label {
    text-shadow: 0 2px 8px rgba(255, 255, 255, 0.6);
}

.hero-content .hero-subheadline {
    text-shadow: 0 2px 8px rgba(255, 255, 255, 0.55);
}

.hero-content .hero-desc {
    text-shadow: 0 1px 6px rgba(255, 255, 255, 0.55);
}

.section-heading {
    background: linear-gradient(135deg, var(--color-green-dark), var(--color-green-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.org-heading-marked {
    position: relative;
    padding-bottom: 0.65rem;
}

.org-heading-marked::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 56px;
    height: 4px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--color-green-dark), var(--color-green-secondary));
}

.stat-number {
    background: linear-gradient(to right, #1F4037 0%, #2F5D50 50%, #6E8878 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% auto;
    animation: textShine 5s linear infinite;
}

@keyframes textShine {
    to { background-position: 200% center; }
}

/* 4. Layanan Hero Gradient */
.layanan-hero::before {
    background: rgba(31, 64, 55, 0.1); /* Overlay sangat tipis agar gradasi body tembus */
}

.layanan-hero .small-label,
.layanan-hero .hero-headline,
.layanan-hero .hero-desc {
    color: var(--color-green-dark);
    text-shadow: 0 2px 10px rgba(255,255,255,0.5);
}

/* 5. Sections Gradients */
.quick-access {
    position: relative;
    background-color: transparent;
}

.stats, .map-section {
    background-color: transparent;
}

/* 6. Buttons & Interactive Elements with Animated Gradients */
.btn-primary,
.nav-link.active,
.nav-btn {
    background: linear-gradient(90deg, var(--color-green-dark), var(--color-green-secondary), var(--color-green-soft), var(--color-green-secondary));
    background-size: 300% 100%;
    transition: all 0.5s ease;
    border: none;
    color: var(--color-white) !important;
}

.btn-primary:hover,
.nav-btn:hover {
    background-position: 100% 0;
    box-shadow: 0 10px 25px rgba(47, 93, 80, 0.35);
    transform: translateY(-3px);
}

/* 7. Bento & Cards Hover Gradients */
.bento-item::after, .info-card::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(47, 93, 80, 0) 0%, rgba(47, 93, 80, 0.03) 50%, rgba(110, 136, 120, 0.15) 100%);
    opacity: 0; transition: opacity 0.5s ease; z-index: 1; pointer-events: none; border-radius: inherit;
}

.bento-item:hover::after, .info-card:hover::after {
    opacity: 1;
}

.info-card {
    position: relative;
    overflow: hidden;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(244, 239, 230, 0.85));
    border: 1px solid rgba(110, 136, 120, 0.15);
}
.info-card:hover {
    background: linear-gradient(145deg, var(--color-green-dark), var(--color-green-secondary));
    transform: translateY(-6px);
    box-shadow: 0 15px 35px rgba(31, 64, 55, 0.25);
}

.umkm-card {
    background: linear-gradient(160deg, #FFFFFF 0%, #FAF7F0 100%);
    border: 1px solid rgba(110,136,120,0.1);
}
.umkm-card:hover {
    background: linear-gradient(160deg, #FFFFFF 0%, #EFE7D8 100%);
}

/* 8. Footer Animated Gradient */
.footer {
    position: relative;
    background: linear-gradient(120deg, #17362F 0%, #1F4037 40%, #2F5D50 100%);
    overflow: hidden;
    z-index: 1;
}

.footer::before {
    content: ''; position: absolute; top: -50%; left: -20%; width: 140%; height: 200%;
    background: radial-gradient(circle, rgba(110, 136, 120, 0.15) 0%, transparent 60%);
    animation: rotateSlow 25s linear infinite;
    z-index: -1;
}

@keyframes rotateSlow {
    100% { transform: rotate(360deg); }
}

/* Header actions and navigation layout */
.nav-container {
    grid-template-columns: max-content minmax(0, 1fr) max-content;
    gap: 1rem;
    padding-inline: clamp(1.25rem, 3vw, 4rem);
}

.nav-links {
    gap: clamp(0.15rem, 0.65vw, 0.75rem);
    min-width: 0;
}

.nav-actions {
    gap: 0.65rem;
    justify-self: end;
    white-space: nowrap;
}

.nav-login,
.search-btn {
    min-height: 42px;
    border-radius: 999px;
    font-size: 0.84rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background-position 0.35s ease;
}

.nav-login {
    padding: 0.55rem 1rem;
    color: var(--color-white);
    background: linear-gradient(90deg, var(--color-green-dark), var(--color-green-secondary), var(--color-green-soft), var(--color-green-secondary));
    background-size: 300% 100%;
    box-shadow: 0 5px 14px rgba(31, 64, 55, 0.16);
}

.search-btn {
    width: 104px;
    gap: 0.55rem;
    padding: 0.5rem 0.9rem;
    background: rgba(255, 255, 255, 0.76);
    border: 1px solid rgba(47, 93, 80, 0.2);
    color: var(--color-green-dark);
}

.nav-login:hover,
.search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(31, 64, 55, 0.22);
}

.nav-login:hover { background-position: 100% 0; }
.search-btn:hover { background: var(--color-cream-light); }

@media (max-width: 1180px) {
    .nav-login { padding-inline: 0.8rem; font-size: 0.76rem; }
    .search-btn { width: 78px; padding-inline: 0.65rem; }
    .nav-links { gap: 0; }
    .nav-link { padding-inline: 0.5rem; }
}

@media (max-width: 768px) {
    .nav-login { display: none; }
}


/* Unified services navigation and page */
.nav-link.current-page {
    color: var(--color-green-dark);
    background: transparent;
    box-shadow: inset 0 -2px 0 var(--color-green-secondary);
    border-radius: 0;
}

.service-intro {
    padding-top: clamp(9rem, 15vh, 11.5rem);
    background: linear-gradient(135deg, rgba(250, 247, 240, 0.98), rgba(227, 238, 229, 0.82), rgba(244, 239, 230, 0.96));
}

.service-intro-heading {
    max-width: 760px;
    margin-bottom: 4rem;
}

.service-intro-heading .section-heading { margin-bottom: 1.6rem; }
.service-intro-heading .potensi-desc { max-width: 650px; }

.service-overview-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}

.service-overview-card {
    min-height: 270px;
    padding: 2.25rem;
    border: 1px solid rgba(47, 93, 80, 0.13);
    border-radius: 10px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(244, 239, 230, 0.82));
    box-shadow: 0 10px 28px rgba(31, 64, 55, 0.05);
}

.service-overview-card .info-icon { color: var(--color-green-secondary); }
.service-overview-card .info-title { margin: 1.5rem 0 0.55rem; }
.service-details-heading { margin-bottom: 3rem; }
.service-details-heading .section-heading { margin-bottom: 0; }

@media (max-width: 768px) {
    .service-intro { padding-top: 7.5rem; }
    .service-intro-heading { margin-bottom: 2.5rem; }
    .service-overview-grid { grid-template-columns: 1fr; }
    .service-overview-card { min-height: 0; padding: 1.75rem; }
}

/* Statistik Nagari: kartu terpisah dan teks ringkas */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
}

.stat-item {
    min-height: 205px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2rem 1.25rem;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(244, 239, 230, 0.76));
    border: 1px solid rgba(47, 93, 80, 0.13);
    border-radius: 12px;
    box-shadow: 0 8px 22px rgba(31, 64, 55, 0.05);
}

.stat-item:not(:last-child)::after { display: none; }
.stat-number { overflow-wrap: anywhere; }

.stat-item-clickable {
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}

.stat-item-clickable::before {
    content: '→';
    position: absolute;
    top: 0.9rem;
    right: 0.9rem;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(47, 93, 80, 0.1);
    color: var(--color-green-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
    transition: all 0.25s ease;
}

.stat-item-clickable .stat-item-hint {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0.9rem;
    text-align: center;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--color-green-secondary);
    opacity: 0.7;
    transition: opacity 0.25s ease;
}

.stat-item-clickable:hover,
.stat-item-clickable:focus-visible {
    transform: translateY(-6px);
    box-shadow: 0 18px 34px rgba(31, 64, 55, 0.16);
    border-color: rgba(47, 93, 80, 0.35);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(244, 239, 230, 0.9));
}

.stat-item-clickable:hover::before,
.stat-item-clickable:focus-visible::before {
    background: var(--color-green-dark);
    color: var(--color-white);
    transform: translateX(3px) rotate(0deg);
}

.stat-item-clickable:hover .stat-item-hint,
.stat-item-clickable:focus-visible .stat-item-hint {
    opacity: 1;
}

@media (max-width: 900px) {
    .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 520px) {
    .stats-grid { grid-template-columns: 1fr; }
    .stat-item { min-height: 160px; }
}

/* Pencarian Situs (Search Overlay) */
.search-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 35, 24, 0.55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding: 10vh 1.5rem 2rem;
    z-index: 3000;
}

.search-overlay.is-open {
    display: flex;
}

.search-box {
    width: min(100%, 640px);
    max-height: 78vh;
    display: flex;
    flex-direction: column;
    background: var(--color-white);
    border-radius: 16px;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    animation: searchBoxIn 0.25s ease;
}

@keyframes searchBoxIn {
    from { opacity: 0; transform: translateY(-12px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.search-box-header {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 1.15rem 1.5rem;
    border-bottom: 1px solid rgba(47, 93, 80, 0.12);
    color: var(--color-green-soft);
    flex-shrink: 0;
}

.search-input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-family: var(--font-body);
    font-size: 1.05rem;
    color: var(--color-text-main);
}

.search-close {
    background: none;
    border: none;
    font-size: 1.6rem;
    line-height: 1;
    color: var(--color-text-muted);
    cursor: pointer;
    padding: 0 0.25rem;
}

.search-close:hover { color: var(--color-green-dark); }

.search-results {
    overflow-y: auto;
    padding: 0.5rem;
}

.search-result-item {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding: 0.85rem 1rem;
    margin: 0.15rem 0.25rem;
    border-radius: 10px;
    transition: background-color 0.2s ease;
}

.search-result-item:hover,
.search-result-item:focus {
    background-color: rgba(47, 93, 80, 0.08);
}

.search-result-cat {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-green-secondary);
}

.search-result-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    color: var(--color-green-dark);
}

.search-result-desc {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.search-empty {
    padding: 2.5rem 1.5rem;
    text-align: center;
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

@media (max-width: 640px) {
    .search-overlay { padding: 6vh 1rem 1.5rem; }
    .search-box-header { padding: 1rem 1.1rem; }
}
