/* ============================================================
   front.css — Custom CSS Website Desa (Public Side)
   Digunakan bersama Tailwind CSS CDN
   ============================================================ */

/* ── Google Fonts ────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600;700&display=swap');

/* ── CSS Variables (Design Tokens) ──────────────────────── */
:root {
    /* Warna Utama */
    --green-primary:    #1a5c38;   /* Hijau Tua utama */
    --green-secondary:  #2d7a4f;   /* Hijau medium */
    --green-light:      #4caf80;   /* Hijau muda aksen */
    --green-pale:       #e8f5ee;   /* Background hijau pucat */
    --green-emerald:    #10b981;   /* Emerald aksen */

    /* Warna Aksen */
    --gold:             #d4a017;   /* Gold premium */
    --gold-light:       #f5cc5a;   /* Gold muda */
    --gold-pale:        #fef9e7;   /* Background gold pucat */

    /* Netral */
    --white:            #ffffff;
    --gray-50:          #f9fafb;
    --gray-100:         #f3f4f6;
    --gray-200:         #e5e7eb;
    --gray-300:         #d1d5db;
    --gray-500:         #6b7280;
    --gray-700:         #374151;
    --gray-900:         #111827;

    /* Gradient */
    --gradient-hero:    linear-gradient(135deg, #0f3d24 0%, #1a5c38 50%, #2d7a4f 100%);
    --gradient-card:    linear-gradient(135deg, #1a5c38, #2d7a4f);
    --gradient-gold:    linear-gradient(135deg, #d4a017, #f5cc5a);
    --gradient-subtle:  linear-gradient(180deg, #f9fafb 0%, #ffffff 100%);

    /* Shadows */
    --shadow-sm:        0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.05);
    --shadow-md:        0 4px 6px rgba(0,0,0,.07), 0 2px 4px rgba(0,0,0,.05);
    --shadow-lg:        0 10px 25px rgba(0,0,0,.1), 0 4px 10px rgba(0,0,0,.06);
    --shadow-xl:        0 20px 40px rgba(0,0,0,.12);
    --shadow-green:     0 8px 24px rgba(26,92,56,.25);
    --shadow-gold:      0 8px 24px rgba(212,160,23,.25);

    /* Typography */
    --font-primary:     'Poppins', 'Inter', system-ui, sans-serif;
    --font-body:        'Inter', 'Poppins', system-ui, sans-serif;

    /* Transitions */
    --transition-fast:  all .15s ease;
    --transition-base:  all .25s ease;
    --transition-slow:  all .4s ease;

    /* Border Radius */
    --radius-sm:        6px;
    --radius-md:        12px;
    --radius-lg:        16px;
    --radius-xl:        24px;
    --radius-full:      9999px;
}

/* ── Base Reset & Typography ─────────────────────────────── */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--gray-700);
    background: var(--white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 700;
    line-height: 1.25;
    color: var(--gray-900);
}

a {
    text-decoration: none;
    transition: var(--transition-fast);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ── Scrollbar Custom ────────────────────────────────────── */
::-webkit-scrollbar        { width: 6px; height: 6px; }
::-webkit-scrollbar-track  { background: var(--gray-100); }
::-webkit-scrollbar-thumb  { background: var(--green-secondary); border-radius: var(--radius-full); }
::-webkit-scrollbar-thumb:hover { background: var(--green-primary); }

/* ── Selection ───────────────────────────────────────────── */
::selection {
    background: var(--green-pale);
    color: var(--green-primary);
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: transparent;
    transition: var(--transition-base);
    padding: 0;
}

/* Navbar berubah saat scroll (ditambah class via JS) */
.navbar.scrolled {
    background: rgba(255,255,255,.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 2px 20px rgba(0,0,0,.08);
}

.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
    padding: 0 1.5rem;
    max-width: 1280px;
    margin: 0 auto;
}

/* Logo */
.navbar-logo {
    display: flex;
    align-items: center;
    gap: .75rem;
    text-decoration: none;
}

.navbar-logo-icon {
    width: 44px;
    height: 44px;
    background: var(--gradient-card);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-green);
    flex-shrink: 0;
}

.navbar-logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.navbar-logo-title {
    font-family: var(--font-primary);
    font-size: .95rem;
    font-weight: 700;
    color: var(--white);
    transition: var(--transition-fast);
}

.navbar-logo-sub {
    font-size: .72rem;
    color: rgba(255,255,255,.75);
    font-weight: 400;
    transition: var(--transition-fast);
}

.navbar.scrolled .navbar-logo-title { color: var(--green-primary); }
.navbar.scrolled .navbar-logo-sub   { color: var(--gray-500); }

/* Nav Links */
.navbar-menu {
    display: flex;
    align-items: center;
    gap: .25rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.navbar-menu a {
    display: flex;
    align-items: center;
    gap: .35rem;
    padding: .5rem .85rem;
    font-size: .875rem;
    font-weight: 500;
    color: rgba(255,255,255,.9);
    border-radius: var(--radius-full);
    transition: var(--transition-fast);
    white-space: nowrap;
}

.navbar-menu a:hover,
.navbar-menu a.active {
    background: rgba(255,255,255,.15);
    color: var(--white);
}

.navbar.scrolled .navbar-menu a {
    color: var(--gray-700);
}

.navbar.scrolled .navbar-menu a:hover,
.navbar.scrolled .navbar-menu a.active {
    background: var(--green-pale);
    color: var(--green-primary);
}

/* Dropdown */
.navbar-dropdown {
    position: relative;
}

.navbar-dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + .5rem);
    left: 0;
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--gray-100);
    min-width: 200px;
    padding: .5rem;
    z-index: 100;
    animation: dropdownIn .2s ease;
}

@keyframes dropdownIn {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.navbar-dropdown:hover .navbar-dropdown-menu {
    display: block;
}

.navbar-dropdown-menu a {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .6rem .85rem;
    font-size: .85rem;
    color: var(--gray-700) !important;
    border-radius: var(--radius-sm);
    background: transparent !important;
}

.navbar-dropdown-menu a:hover {
    background: var(--green-pale) !important;
    color: var(--green-primary) !important;
}

/* CTA Button Navbar */
.navbar-cta {
    background: var(--gradient-gold) !important;
    color: var(--gray-900) !important;
    font-weight: 600 !important;
    padding: .5rem 1.25rem !important;
    border-radius: var(--radius-full) !important;
    box-shadow: var(--shadow-gold) !important;
    transition: var(--transition-base) !important;
}

.navbar-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(212,160,23,.35) !important;
}

/* Hamburger */
.navbar-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: .5rem;
    background: none;
    border: none;
}

.navbar-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: var(--transition-base);
}

.navbar.scrolled .navbar-toggle span {
    background: var(--green-primary);
}

.navbar-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.navbar-toggle.open span:nth-child(2) { opacity: 0; }
.navbar-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile Menu */
.navbar-mobile {
    display: none;
    flex-direction: column;
    background: var(--white);
    padding: 1rem 1.5rem 1.5rem;
    border-top: 1px solid var(--gray-100);
    box-shadow: var(--shadow-lg);
    gap: .25rem;
}

.navbar-mobile.open {
    display: flex;
}

.navbar-mobile a {
    padding: .7rem 1rem;
    font-size: .9rem;
    font-weight: 500;
    color: var(--gray-700);
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    gap: .6rem;
}

.navbar-mobile a:hover {
    background: var(--green-pale);
    color: var(--green-primary);
}

/* ── Responsive Navbar ───────────────────────────── */
@media (max-width: 1024px) {
    .navbar-menu    { display: none; }
    .navbar-toggle  { display: flex; }
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--gradient-hero);
    overflow: hidden;
}

/* Pattern overlay */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 20%, rgba(255,255,255,.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255,255,255,.05) 0%, transparent 50%);
    pointer-events: none;
}

/* Dot grid pattern */
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255,255,255,.07) 1px, transparent 1px);
    background-size: 32px 32px;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 1280px;
    margin: 0 auto;
    padding: 7rem 1.5rem 5rem;
    width: 100%;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.2);
    color: var(--gold-light);
    font-size: .8rem;
    font-weight: 600;
    padding: .4rem 1rem;
    border-radius: var(--radius-full);
    margin-bottom: 1.5rem;
    letter-spacing: .04em;
    text-transform: uppercase;
    backdrop-filter: blur(8px);
}

.hero-title {
    font-size: clamp(2.25rem, 5vw, 4rem);
    font-weight: 800;
    color: var(--white);
    line-height: 1.1;
    margin-bottom: 1.25rem;
}

.hero-title span {
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: rgba(255,255,255,.8);
    max-width: 560px;
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 3.5rem;
}

.hero-scroll-hint {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .5rem;
    color: rgba(255,255,255,.5);
    font-size: .75rem;
    animation: bounce 2s infinite;
    z-index: 10;
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50%       { transform: translateX(-50%) translateY(6px); }
}

/* Floating shapes dekorasi */
.hero-deco {
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,.04);
    pointer-events: none;
}

.hero-deco-1 { width: 400px; height: 400px; top: -100px; right: -100px; }
.hero-deco-2 { width: 250px; height: 250px; bottom: 60px; right: 15%; }
.hero-deco-3 { width: 150px; height: 150px; top: 30%; left: 5%; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .75rem 1.75rem;
    font-family: var(--font-primary);
    font-size: .9rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    border: none;
    cursor: pointer;
    transition: var(--transition-base);
    text-decoration: none;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0);
    transition: var(--transition-fast);
}

.btn:hover::before {
    background: rgba(255,255,255,.08);
}

.btn-primary {
    background: var(--gradient-gold);
    color: var(--gray-900);
    box-shadow: var(--shadow-gold);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(212,160,23,.4);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255,255,255,.4);
}

.btn-outline:hover {
    background: rgba(255,255,255,.1);
    border-color: rgba(255,255,255,.7);
}

.btn-green {
    background: var(--gradient-card);
    color: var(--white);
    box-shadow: var(--shadow-green);
}

.btn-green:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(26,92,56,.4);
}

.btn-ghost {
    background: transparent;
    color: var(--green-primary);
    border: 1.5px solid var(--green-primary);
}

.btn-ghost:hover {
    background: var(--green-pale);
}

.btn-sm {
    padding: .5rem 1.25rem;
    font-size: .82rem;
}

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1rem;
}

/* ============================================================
   SECTION UTILITIES
   ============================================================ */
.section {
    padding: 5rem 1.5rem;
}

.section-sm {
    padding: 3rem 1.5rem;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    width: 100%;
}

.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    background: var(--green-pale);
    color: var(--green-primary);
    font-size: .78rem;
    font-weight: 600;
    padding: .35rem .9rem;
    border-radius: var(--radius-full);
    margin-bottom: 1rem;
    letter-spacing: .06em;
    text-transform: uppercase;
    border: 1px solid rgba(26,92,56,.15);
}

.section-title {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: .75rem;
    line-height: 1.2;
}

.section-title span {
    color: var(--green-primary);
}

.section-desc {
    font-size: 1rem;
    color: var(--gray-500);
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.75;
}

/* Divider dekoratif */
.section-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .75rem;
    margin: 1.25rem auto 0;
}

.section-divider span {
    height: 3px;
    width: 40px;
    background: var(--gradient-card);
    border-radius: 3px;
}

.section-divider i {
    width: 10px;
    height: 10px;
    background: var(--gold);
    border-radius: 50%;
    display: block;
}

/* ============================================================
   STAT CARDS
   ============================================================ */
.stat-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-100);
    transition: var(--transition-base);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-card);
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.stat-card-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.stat-card-value {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--gray-900);
    line-height: 1;
    margin-bottom: .25rem;
    font-family: var(--font-primary);
}

.stat-card-label {
    font-size: .875rem;
    color: var(--gray-500);
    font-weight: 500;
}

.stat-card-trend {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    font-size: .75rem;
    font-weight: 600;
    color: var(--green-emerald);
    background: rgba(16,185,129,.1);
    padding: .2rem .6rem;
    border-radius: var(--radius-full);
}

/* ============================================================
   CARDS
   ============================================================ */
.card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-100);
    overflow: hidden;
    transition: var(--transition-base);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform .4s ease;
}

.card:hover .card-img {
    transform: scale(1.04);
}

.card-img-wrapper {
    overflow: hidden;
    position: relative;
}

.card-body {
    padding: 1.5rem;
}

.card-category {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    background: var(--green-pale);
    color: var(--green-secondary);
    font-size: .75rem;
    font-weight: 600;
    padding: .25rem .75rem;
    border-radius: var(--radius-full);
    margin-bottom: .75rem;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.card-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: .5rem;
    line-height: 1.35;
    display: -webkit-box;
    /* -webkit-line-clamp: 2; */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-meta {
    display: flex;
    align-items: center;
    gap: .75rem;
    font-size: .8rem;
    color: var(--gray-500);
    margin-bottom: .75rem;
    flex-wrap: wrap;
}

.card-meta span {
    display: flex;
    align-items: center;
    gap: .3rem;
}

.card-excerpt {
    font-size: .875rem;
    color: var(--gray-500);
    line-height: 1.65;
    display: -webkit-box;
    /* -webkit-line-clamp: 3; */
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 1rem;
}

.card-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--gray-100);
    background: var(--gray-50);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Feature card */
.feature-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 2rem;
    border: 1px solid var(--gray-100);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-base);
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--green-pale);
}

.feature-card-icon {
    width: 68px;
    height: 68px;
    background: var(--green-pale);
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    transition: var(--transition-base);
    color: var(--green-primary);
}

.feature-card:hover .feature-card-icon {
    background: var(--gradient-card);
    color: var(--white);
    transform: rotate(5deg) scale(1.1);
}

/* Product card */
.product-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-100);
    overflow: hidden;
    transition: var(--transition-base);
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.product-card-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform .4s ease;
}

.product-card:hover .product-card-img {
    transform: scale(1.05);
}

.product-card-badge {
    position: absolute;
    top: .75rem;
    left: .75rem;
    background: var(--gradient-gold);
    color: var(--gray-900);
    font-size: .72rem;
    font-weight: 700;
    padding: .25rem .65rem;
    border-radius: var(--radius-full);
}

.product-card-body {
    padding: 1.25rem;
}

.product-card-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: .35rem;
}

.product-card-price {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--green-primary);
    margin-bottom: .5rem;
    font-family: var(--font-primary);
}

.product-card-seller {
    font-size: .8rem;
    color: var(--gray-500);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: .35rem;
}

/* ============================================================
   PILAR KAMPUNG PANCASILA
   ============================================================ */
.pilar-card {
    border-radius: var(--radius-lg);
    padding: 2rem;
    position: relative;
    overflow: hidden;
    transition: var(--transition-base);
    border: 1px solid transparent;
}

.pilar-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.pilar-card-num {
    position: absolute;
    top: -10px;
    right: 1.5rem;
    font-size: 5rem;
    font-weight: 900;
    opacity: .07;
    color: currentColor;
    line-height: 1;
    pointer-events: none;
    font-family: var(--font-primary);
}

.pilar-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    font-size: 1.5rem;
}

/* ============================================================
   TIMELINE (untuk Sejarah)
   ============================================================ */
.timeline {
    position: relative;
    padding-left: 2.5rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: .85rem;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--gradient-card);
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    padding-bottom: 2.5rem;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: -2.5rem;
    top: .25rem;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--gradient-card);
    border: 3px solid var(--white);
    box-shadow: var(--shadow-green);
    display: flex;
    align-items: center;
    justify-content: center;
}

.timeline-dot-inner {
    width: 6px;
    height: 6px;
    background: var(--white);
    border-radius: 50%;
}

.timeline-year {
    font-size: .8rem;
    font-weight: 700;
    color: var(--green-secondary);
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-bottom: .35rem;
}

.timeline-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: .5rem;
}

.timeline-body {
    font-size: .9rem;
    color: var(--gray-500);
    line-height: 1.65;
}

/* ============================================================
   GALLERY GRID
   ============================================================ */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}

.gallery-item:hover img {
    transform: scale(1.06);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.7) 0%, transparent 60%);
    opacity: 0;
    transition: var(--transition-base);
    display: flex;
    align-items: flex-end;
    padding: 1rem;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-caption {
    color: var(--white);
    font-size: .85rem;
    font-weight: 500;
    transform: translateY(8px);
    transition: var(--transition-base);
}

.gallery-item:hover .gallery-caption {
    transform: translateY(0);
}

/* ============================================================
   CTA SECTION
   ============================================================ */
.cta-section {
    background: var(--gradient-hero);
    padding: 5rem 1.5rem;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255,255,255,.05) 1px, transparent 1px);
    background-size: 28px 28px;
}

/* ============================================================
   ACCORDION (FAQ & Pilar)
   ============================================================ */
.accordion-item {
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: .75rem;
    transition: var(--transition-base);
}

.accordion-item.active {
    border-color: var(--green-light);
    box-shadow: var(--shadow-sm);
}

.accordion-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.1rem 1.4rem;
    background: var(--white);
    cursor: pointer;
    font-weight: 600;
    font-size: .95rem;
    color: var(--gray-900);
    transition: var(--transition-fast);
    gap: 1rem;
}

.accordion-header:hover {
    background: var(--gray-50);
}

.accordion-item.active .accordion-header {
    background: var(--green-pale);
    color: var(--green-primary);
}

.accordion-icon {
    flex-shrink: 0;
    transition: transform .3s ease;
    color: var(--green-secondary);
}

.accordion-item.active .accordion-icon {
    transform: rotate(180deg);
}

.accordion-body {
    display: none;
    padding: 0 1.4rem 1.25rem;
    font-size: .9rem;
    color: var(--gray-500);
    line-height: 1.7;
    background: var(--white);
}

.accordion-item.active .accordion-body {
    display: block;
}

/* ============================================================
   FORM
   ============================================================ */
.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    font-size: .875rem;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: .45rem;
}

.form-label span {
    color: #ef4444;
    margin-left: 2px;
}

.form-control {
    width: 100%;
    padding: .75rem 1rem;
    font-family: var(--font-body);
    font-size: .9rem;
    color: var(--gray-900);
    background: var(--white);
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-md);
    outline: none;
    transition: var(--transition-fast);
    appearance: none;
}

.form-control:focus {
    border-color: var(--green-secondary);
    box-shadow: 0 0 0 3px rgba(45,122,79,.12);
}

.form-control::placeholder {
    color: var(--gray-300);
}

textarea.form-control {
    resize: vertical;
    min-height: 130px;
}

select.form-control {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right .75rem center;
    padding-right: 2.5rem;
    cursor: pointer;
}

/* ============================================================
   BADGES & LABELS
   ============================================================ */
.badge {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    font-size: .72rem;
    font-weight: 600;
    padding: .25rem .7rem;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: .05em;
}

.badge-green  { background: var(--green-pale); color: var(--green-secondary); }
.badge-gold   { background: var(--gold-pale);  color: #92630d; }
.badge-gray   { background: var(--gray-100);   color: var(--gray-500); }
.badge-blue   { background: #eff6ff;           color: #1d4ed8; }
.badge-red    { background: #fef2f2;           color: #dc2626; }

/* ============================================================
   BREADCRUMB
   ============================================================ */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: .5rem;
    flex-wrap: wrap;
    font-size: .85rem;
    color: var(--gray-500);
    margin-bottom: 1.5rem;
}

.breadcrumb a {
    color: var(--green-secondary);
    font-weight: 500;
}

.breadcrumb a:hover {
    color: var(--green-primary);
}

.breadcrumb-sep {
    color: var(--gray-300);
    font-size: .9rem;
}

/* ============================================================
   PAGE HERO (Banner Dalam Halaman)
   ============================================================ */
.page-hero {
    background: var(--gradient-hero);
    padding: 7rem 1.5rem 3.5rem;
    position: relative;
    overflow: hidden;
}

.page-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255,255,255,.05) 1px, transparent 1px);
    background-size: 24px 24px;
}

.page-hero-content {
    position: relative;
    z-index: 1;
    max-width: 1280px;
    margin: 0 auto;
}

.page-hero-title {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 800;
    color: var(--white);
    margin-bottom: .5rem;
}

.page-hero-sub {
    font-size: 1rem;
    color: rgba(255,255,255,.75);
}

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .35rem;
    flex-wrap: wrap;
    margin-top: 2.5rem;
}

.pagination a,
.pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    font-size: .875rem;
    font-weight: 600;
    color: var(--gray-700);
    background: var(--white);
    border: 1.5px solid var(--gray-200);
    transition: var(--transition-fast);
    text-decoration: none;
}

.pagination a:hover {
    background: var(--green-pale);
    border-color: var(--green-light);
    color: var(--green-primary);
}

.pagination .active {
    background: var(--gradient-card);
    color: var(--white);
    border-color: transparent;
    box-shadow: var(--shadow-green);
}

/* ============================================================
   DOWNLOAD CARD (PPID)
   ============================================================ */
.download-card {
    background: var(--white);
    border: 1.5px solid var(--gray-100);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    transition: var(--transition-base);
}

.download-card:hover {
    border-color: var(--green-light);
    box-shadow: var(--shadow-md);
    transform: translateX(4px);
}

.download-icon {
    width: 52px;
    height: 52px;
    background: var(--green-pale);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--green-primary);
    flex-shrink: 0;
    transition: var(--transition-base);
}

.download-card:hover .download-icon {
    background: var(--gradient-card);
    color: var(--white);
}

.download-info {
    flex: 1;
}

.download-title {
    font-size: .95rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: .2rem;
}

.download-meta {
    font-size: .8rem;
    color: var(--gray-500);
}

/* ============================================================
   PARTNER LOGO STRIP
   ============================================================ */
.partner-strip {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    overflow-x: auto;
    padding-bottom: .5rem;
    scrollbar-width: none;
}

.partner-strip::-webkit-scrollbar { display: none; }

.partner-logo {
    flex-shrink: 0;
    height: 48px;
    opacity: .45;
    filter: grayscale(1);
    transition: var(--transition-base);
}

.partner-logo:hover {
    opacity: 1;
    filter: grayscale(0);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
    background: var(--gray-900);
    color: var(--gray-300);
    padding: 4.5rem 1.5rem 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 3rem;
    max-width: 1280px;
    margin: 0 auto;
    padding-bottom: 3rem;
}

.footer-brand p {
    font-size: .9rem;
    line-height: 1.75;
    margin: 1rem 0 1.5rem;
    color: var(--gray-500);
}

.footer-title {
    font-size: .95rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1.25rem;
    font-family: var(--font-primary);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: .65rem;
}

.footer-links a {
    font-size: .875rem;
    color: var(--gray-500);
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    gap: .5rem;
}

.footer-links a:hover {
    color: var(--green-light);
    padding-left: 4px;
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    margin-bottom: .9rem;
    font-size: .875rem;
    color: var(--gray-500);
}

.footer-contact-icon {
    color: var(--green-light);
    flex-shrink: 0;
    margin-top: 2px;
}

.footer-socials {
    display: flex;
    gap: .6rem;
    margin-top: 1rem;
}

.footer-social-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255,255,255,.06);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-400);
    transition: var(--transition-base);
    text-decoration: none;
}

.footer-social-btn:hover {
    background: var(--green-secondary);
    color: var(--white);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.06);
    padding: 1.5rem 0;
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: .75rem;
    font-size: .82rem;
    color: var(--gray-500);
}

/* ============================================================
   ANIMATIONS & UTILITIES
   ============================================================ */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(.92); }
    to   { opacity: 1; transform: scale(1); }
}

.animate-fadeInUp { animation: fadeInUp .6s ease both; }
.animate-fadeIn   { animation: fadeIn .5s ease both; }
.animate-scaleIn  { animation: scaleIn .5s ease both; }

/* Stagger delay helper */
.delay-1 { animation-delay: .1s; }
.delay-2 { animation-delay: .2s; }
.delay-3 { animation-delay: .3s; }
.delay-4 { animation-delay: .4s; }
.delay-5 { animation-delay: .5s; }

/* Intersection Observer animation class */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .6s ease, transform .6s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── Utilities ───────────────────────────────────────── */
.text-green   { color: var(--green-primary); }
.text-gold    { color: var(--gold); }
.bg-green     { background: var(--gradient-card); }
.bg-green-pale{ background: var(--green-pale); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .section { padding: 3.5rem 1rem; }

    .hero-content { padding: 6rem 1rem 4rem; }

    .hero-actions {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-actions .btn { width: 100%; justify-content: center; }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .page-hero {
        padding: 6rem 1rem 2.5rem;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .stat-card-value { font-size: 1.9rem; }

    .section-title { font-size: 1.5rem; }
}

/* ============================================================
   LOADER / PAGE TRANSITION
   ============================================================ */
#page-loader {
    position: fixed;
    inset: 0;
    background: var(--green-primary);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity .5s ease, visibility .5s ease;
}

#page-loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-spinner {
    width: 44px;
    height: 44px;
    border: 3px solid rgba(255,255,255,.2);
    border-top-color: var(--white);
    border-radius: 50%;
    animation: spin .8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ============================================================
   BACK TO TOP
   ============================================================ */
#back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 46px;
    height: 46px;
    background: var(--gradient-card);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-green);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-base);
    z-index: 999;
    border: none;
}

#back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

#back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(26,92,56,.4);
}

/* ============================================================
   NOTICE / ALERT BOX
   ============================================================ */
.alert {
    padding: 1rem 1.25rem;
    border-radius: var(--radius-md);
    font-size: .9rem;
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
}

.alert-success { background: #f0fdf4; border-color: #86efac; color: #166534; }
.alert-error   { background: #fef2f2; border-color: #fca5a5; color: #991b1b; }
.alert-warning { background: #fffbeb; border-color: #fcd34d; color: #92400e; }
.alert-info    { background: #eff6ff; border-color: #93c5fd; color: #1e40af; }