/* ═══════════════════════════════════════════════════════════
   LIGEMA MAJU 57 — Modern Theme v2
   Green #14532d / Gold #eab308 / Plus Jakarta Sans
   ═══════════════════════════════════════════════════════════ */

:root {
  --green: #14532d;
  --green-light: #166534;
  --green-pale: #f0fdf4;
  --gold: #eab308;
  --gold-light: #fde047;
  --ink: #1a2e23;
  --text: #374151;
  --muted: #6b7280;
  --bg: #f8faf8;
  --surface: #ffffff;
  --line: #e5e7eb;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 2px 12px rgba(20,83,45,.08);
  --shadow-lg: 0 12px 40px rgba(20,83,45,.12);
  --transition: .3s cubic-bezier(.22,1,.36,1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; }

body {
  font-family: 'Plus Jakarta Sans', -apple-system, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* ── SCROLL WORD REVEAL ─────────────────────────────────── */
.scroll-words { display: inline; }
.scroll-word {
  display: inline-block;
  color: rgba(55,65,81,.24);
  transition: color .45s ease, transform .45s cubic-bezier(.22,1,.36,1);
  transform: translateY(4px);
}
.scroll-word.is-lit {
  color: inherit;
  transform: translateY(0);
}
.hero .scroll-word { color: rgba(255,255,255,.34); }
.hero .scroll-word.is-lit { color: inherit; }
.section-dark .scroll-word { color: rgba(255,255,255,.26); }
.section-dark .scroll-word.is-lit { color: inherit; }
.cta-section .scroll-word { color: rgba(255,255,255,.32); }
.cta-section .scroll-word.is-lit { color: inherit; }

/* Native scroll-driven fallback for modern browsers */
@supports (animation-timeline: view()) {
  .scroll-word {
    animation: wordBrighten linear both;
    animation-timeline: view(block 20% 72%);
    animation-range: entry 0% cover 70%;
  }
  .scroll-word:nth-child(2n) { animation-delay: .04s; }
  .scroll-word:nth-child(3n) { animation-delay: .08s; }
}
@keyframes wordBrighten {
  from { color: rgba(55,65,81,.24); transform: translateY(4px); }
  to { color: inherit; transform: translateY(0); }
}

/* page reading progress */
.scroll-progress {
  position: fixed; top: 0; left: 0; z-index: 201;
  width: 100%; height: 3px; background: var(--gold);
  box-shadow: 0 0 10px rgba(234,179,8,.45);
  pointer-events: none;
  transform-origin: left center;
  transform: scaleX(0);
}
@supports (animation-timeline: scroll()) {
  .scroll-progress {
    animation: pageProgress linear both;
    animation-timeline: scroll(root block);
  }
}
@keyframes pageProgress { to { transform: scaleX(1); } }

/* ── SCROLL ANIMATIONS ──────────────────────────────────── */
@keyframes slideUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes slideLeft {
  from { opacity: 0; transform: translateX(-40px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes slideRight {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

/* animation classes - hidden until IntersectionObserver triggers */
.anim-up, .anim-left, .anim-right, .anim-scale {
  opacity: 0;
  will-change: transform, opacity;
}
.anim-left, .anim-right, .anim-up, .anim-scale { opacity: 1; transition: opacity .8s ease, transform .8s cubic-bezier(.22,1,.36,1); }
.anim-left { transform: translateX(-30px); }
.anim-right { transform: translateX(30px); }
.anim-up { transform: translateY(30px); }
.anim-scale { transform: scale(.94); }
.anim-left.show, .anim-right.show, .anim-up.show, .anim-scale.show { opacity: 1; transform: none; }
.anim-up.show { animation: slideUp .7s cubic-bezier(.22,1,.36,1) forwards; }
.anim-left.show { animation: slideLeft .7s cubic-bezier(.22,1,.36,1) forwards; }
.anim-right.show { animation: slideRight .7s cubic-bezier(.22,1,.36,1) forwards; }
.anim-scale.show { animation: scaleIn .7s cubic-bezier(.22,1,.36,1) forwards; }

/* stagger delays */
.stagger-1 { animation-delay: .1s !important; }
.stagger-2 { animation-delay: .2s !important; }
.stagger-3 { animation-delay: .3s !important; }
.stagger-4 { animation-delay: .4s !important; }
.stagger-5 { animation-delay: .5s !important; }
.stagger-6 { animation-delay: .6s !important; }

@media (prefers-reduced-motion: reduce) {
  .anim-up, .anim-left, .anim-right, .anim-scale {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }
}

/* ── HEADER ─────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
}

.site-header-hidden .nav-container { justify-content: center; }
.site-header-hidden .brand { margin: 0; }

.nav-container {
  max-width: 1100px; margin: 0 auto; padding: 0 20px;
  display: flex; align-items: center; height: 60px; gap: 8px;
  overflow: hidden;
}

.brand {
  display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 16px;
  color: var(--green); flex-shrink: 0;
}

.brand-mark {
  width: 36px; height: 36px; border-radius: 10px;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  display: grid; place-items: center; font-size: 14px; font-weight: 800;
  color: var(--green); box-shadow: 0 4px 12px rgba(234,179,8,.3);
}
.brand-mark.logo-img {
  background: none; color: transparent; border-radius: 6px;
  box-shadow: none; object-fit: contain; padding: 1px;
  width: 42px; height: 42px;
}
.brand-mark.sm { width: 30px; height: 30px; font-size: 12px; border-radius: 8px; }
.brand-mark.sm.logo-img { width: 34px; height: 34px; }

.nav-toggle {
  display: none; background: none; border: none; cursor: pointer;
  width: 44px; height: 44px; flex-direction: column; justify-content: center;
  align-items: center; gap: 5px; margin-left: auto; padding: 8px;
  -webkit-tap-highlight-color: transparent;
}
.nav-toggle span { display: block; width: 22px; height: 2.5px; background: var(--ink); border-radius: 2px; transition: var(--transition); }

.nav-links {
  display: flex; align-items: center; gap: 4px; margin-left: auto; overflow-x: clip;
  scrollbar-width: none; -ms-overflow-style: none;
}
.nav-links::-webkit-scrollbar { display: none; }

.nav-links a {
  padding: 8px 10px; font-size: 13px; font-weight: 600; color: var(--ink);
  border-radius: 8px; white-space: nowrap; transition: var(--transition);
  -webkit-tap-highlight-color: transparent;
}
.nav-links a:hover { background: var(--green-pale); color: var(--green); }
.nav-links a.active { background: var(--green); color: #fff; }

.nav-admin {
  width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%;
  background: var(--green-pale); color: var(--green); flex-shrink: 0; transition: var(--transition);
  font-size: 16px; -webkit-tap-highlight-color: transparent;
}
.nav-admin:hover { background: var(--green); color: #fff; }
.nav-admin.nav-umkm { background: var(--green); color: #fff; }
.nav-admin-link {
  display: none;
}
.nav-umkm-link { background: var(--green-pale); border-radius: 8px; }

/* ── HERO (Redesigned: left-aligned) ────────────────────── */
.hero {
  position: relative; overflow: hidden; min-height: 65vh;
  display: flex; align-items: center;
  background: linear-gradient(160deg, #0c3a21 0%, var(--green) 50%, var(--green-light) 100%);
  padding: 80px 20px 60px;
}

.hero-bg {
  position: absolute; inset: 0; opacity: .08;
  background:
    radial-gradient(circle at 85% 30%, var(--gold) 0%, transparent 45%),
    radial-gradient(circle at 75% 70%, var(--gold-light) 0%, transparent 35%);
}

.hero-content {
  position: relative; z-index: 1; width: min(100%, 760px); max-width: 760px;
  margin: 0 auto; text-align: center;
}
.hero-content > * { margin-left: auto; margin-right: auto; }
.hero .scroll-reveal-text { color: rgba(255,255,255,.92); }
.hero .scroll-word, .hero .scroll-word.is-lit { color: #fff; transform: translateY(0); animation: none !important; }

.hero-badge {
  display: inline-block; padding: 6px 18px; border-radius: 999px;
  background: rgba(255,255,255,.12); color: var(--gold-light);
  font-size: 13px; font-weight: 700; margin-bottom: 20px;
  backdrop-filter: blur(8px);
}

.hero h1 {
  font-size: clamp(30px, 5.5vw, 50px); font-weight: 800; color: #fff;
  line-height: 1.15; margin-bottom: 16px; letter-spacing: -.02em;
}

.hero p { font-size: 17px; color: #fff; margin-bottom: 28px; line-height: 1.7; max-width: 600px; }

.hero-btns { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }

/* ── BUTTONS ────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 12px 24px; border-radius: var(--radius-sm); font-size: 14px;
  font-weight: 700; cursor: pointer; transition: var(--transition); border: 2px solid transparent;
  -webkit-tap-highlight-color: transparent;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--green); box-shadow: 0 4px 16px rgba(234,179,8,.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(234,179,8,.45); }

.btn-outline { border-color: rgba(255,255,255,.3); color: #fff; background: rgba(255,255,255,.08); }
.btn-outline:hover { background: rgba(255,255,255,.18); }
.btn-outline:not(.light) { border-color: var(--line); color: var(--green); background: transparent; }
.btn-outline:not(.light):hover { background: var(--green-pale); }

/* ── STATS (Redesigned: horizontal wall) ────────────────── */
.stats-section { padding: 0; background: var(--surface); border-bottom: 1px solid var(--line); }

.stats-grid {
  display: grid; grid-template-columns: repeat(6, 1fr);
}

.stat-card {
  padding: 28px 16px;
  text-align: center;
  transition: var(--transition);
  border-right: 1px solid var(--line);
}
.stat-card:last-child { border-right: none; }
.stat-card:hover { background: var(--green-pale); }

.stat-icon { font-size: 20px; margin-bottom: 6px; }
.stat-num {
  font-size: 36px; font-weight: 800; color: var(--green);
  font-variant-numeric: tabular-nums;
}
.stat-label { font-size: 13px; color: var(--muted); font-weight: 600; margin-top: 2px; }

/* ── SECTIONS ───────────────────────────────────────────── */
.section { padding: 64px 0; }
.section-alt { padding: 64px 0; background: var(--green-pale); }
.section-dark { padding: 64px 0; background: var(--ink); }

.section-header { margin-bottom: 32px; }
.section-header.center { text-align: center; }
.section-header h2 {
  font-size: clamp(24px, 4vw, 32px); font-weight: 800; color: var(--ink);
  margin-bottom: 6px;
}
.section-header.light h2 { color: #fff; }
.section-sub { font-size: 15px; color: var(--muted); max-width: 500px; margin-top: 6px; }
.section-more { text-align: center; margin-top: 32px; }

/* kept for backward compat but hidden by default */
.section-line { display: none; }

/* ── ABOUT (Redesigned) ─────────────────────────────────── */
.about-section { padding: 64px 0; }
.about-grid {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 48px;
  align-items: center;
}
.about-accent {
  position: relative;
  width: 220px;
  height: 220px;
  border-radius: 24px;
  background: none;
  box-shadow: none;
  display: flex;
  align-items: center;
  justify-content: center;
}
.about-accent-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.about-accent-icon {
  font-size: 64px;
  line-height: 1;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,.2));
}
.about-accent-icon.about-logo {
  width: 120px; height: 120px; object-fit: contain;
  border-radius: 16px;
}
@media (max-width: 600px) {
  .about-accent-icon.about-logo { width: 80px; height: 80px; }
}
.about-accent-badge {
  background: rgba(255,255,255,.2);
  backdrop-filter: blur(8px);
  padding: 6px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 1px;
}
.about-section .about-content { max-width: 100%; }
.about-section .about-content p {
  font-size: 16px; color: var(--text); line-height: 1.8;
  margin-top: 12px;
}
.about-section .section-header { margin-bottom: 0; }
@media (max-width: 680px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 28px;
    text-align: center;
  }
  .about-accent {
    width: 160px;
    height: 160px;
    margin: 0 auto;
    border-radius: 20px;
  }
  .about-accent-icon { font-size: 48px; }
}

/* ── PAGE HERO (for inner pages) ────────────────────────── */
.page-hero {
  background: linear-gradient(160deg, #0c3a21, var(--green));
  padding: 60px 20px; text-align: center;
}
.page-hero h1 { font-size: clamp(28px, 5vw, 40px); font-weight: 800; color: #fff; margin-bottom: 8px; }
.page-hero p { font-size: 16px; color: rgba(255,255,255,.75); }

/* ── CARDS ──────────────────────────────────────────────── */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.section-dark .card-grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }

.card {
  background: var(--surface); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); transition: var(--transition);
  border: 1px solid var(--line);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card.dim { opacity: .75; }
.card.featured { border-color: var(--gold); }

/* accent left border for running events */
.card.running-accent { border-left: 4px solid #dc2626; }

.card-img { position: relative; overflow: hidden; }
.card-img img { width: 100%; height: auto; display: block; transition: transform .5s ease; }
.card:hover .card-img img { transform: scale(1.05); }

/* ── Foto carousel (gonta-ganti) ───────────────────────────── */
.photo-carousel { position: relative; width: 100%; aspect-ratio: 3/2; overflow: hidden; }
.photo-carousel .carousel-track { position: relative; width: 100%; height: 100%; }
.photo-carousel .carousel-slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1s ease; }
.photo-carousel .carousel-slide.active { opacity: 1; }
.photo-carousel .carousel-dots { position: absolute; bottom: 8px; left: 0; right: 0; display: flex; justify-content: center; gap: 6px; z-index: 3; }
.photo-carousel .carousel-dots .dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.6); border: none; cursor: pointer; padding: 0; transition: background .3s ease, transform .3s ease; }
.photo-carousel .carousel-dots .dot.active { background: #fff; transform: scale(1.25); }
.photo-carousel .carousel-count { position: absolute; top: 8px; right: 8px; background: rgba(0,0,0,.55); color: #fff; font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 10px; z-index: 3; }
.card-img.carousel-wrap, .umkm-img.carousel-wrap { padding: 0; }

.card-badge {
  position: absolute; top: 12px; left: 12px; padding: 4px 12px;
  border-radius: 999px; font-size: 11px; font-weight: 700; text-transform: uppercase;
}
.card-badge.running { background: #dc2626; color: #fff; }
.card-badge.upcoming { background: var(--gold); color: var(--green); }

.card-body { padding: 16px 18px; }
.card-body h3 { font-size: 17px; font-weight: 700; color: var(--ink); margin-bottom: 8px; }
.card-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.card-meta span { font-size: 12px; color: var(--muted); }
.card-desc { font-size: 13.5px; color: var(--text); line-height: 1.6; }

/* ── UMKM ───────────────────────────────────────────────── */
.umkm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.umkm-grid.full { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }

.umkm-card {
  background: var(--surface); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); transition: var(--transition); border: 1px solid var(--line);
}
.umkm-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.umkm-img { overflow: hidden; }
.umkm-img img { width: 100%; height: auto; display: block; transition: transform .5s ease; }
.umkm-card:hover .umkm-img img { transform: scale(1.05); }

.umkm-body { padding: 16px 18px; }
.umkm-kategori {
  display: inline-block; padding: 3px 10px; border-radius: 999px;
  background: var(--green-pale); color: var(--green); font-size: 11px; font-weight: 700;
  margin-bottom: 8px;
}
.umkm-body h3 { font-size: 16px; font-weight: 700; color: var(--ink); margin-bottom: 4px; }
.umkm-pemilik { font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.umkm-desc { font-size: 13px; color: var(--text); line-height: 1.5; margin-bottom: 10px; }
.umkm-info { display: flex; flex-direction: column; gap: 4px; }
.umkm-info span { font-size: 12px; color: var(--muted); }

/* ── GALERI ─────────────────────────────────────────────── */
.galeri-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  width: 100%;
  max-width: 100%;
}
.galeri-grid.full { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.galeri-item { min-width: 0; }

/* Gallery cards: media stays in its own 16:9 frame, captions/reactions never cover video */
.galeri-item {
  border-radius: var(--radius-sm);
  background: var(--surface);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}
.galeri-item:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }

.galeri-item img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; display: block; cursor: pointer; }

.galeri-video { width: 100%; flex: none; aspect-ratio: 16 / 9; background: #07130d; overflow: hidden; }
.galeri-video iframe { width: 100%; height: 100%; border: 0; display: block; }
.galeri-caption {
  position: static; padding: 11px 12px 2px;
  background: var(--surface); color: var(--ink);
  font-size: 12px; font-weight: 600; line-height: 1.4;
}
.galeri-caption strong { display: block; }
.galeri-caption small { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; font-weight: 400; }
.galeri-item .react-bar { margin: 0; padding: 8px 12px 11px; border-top: 0; background: var(--card); }

/* ── LIGHTBOX ───────────────────────────────────────────── */
.lightbox {
  display: none; position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,.92); align-items: center; justify-content: center;
  padding: 40px;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 90vw; max-height: 85vh; border-radius: 8px; object-fit: contain; }
.lightbox-close {
  position: absolute; top: 16px; right: 20px; background: none; border: none;
  color: #fff; font-size: 32px; cursor: pointer;
}

/* ── PENGURUS ───────────────────────────────────────────── */
.pengurus-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 20px;
}
.pengurus-grid.full { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }

.pengurus-card {
  background: var(--surface); border-radius: var(--radius); padding: 24px 16px;
  text-align: center; box-shadow: var(--shadow); transition: var(--transition);
  border: 1px solid var(--line);
}
.pengurus-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.pengurus-foto { width: 80px; height: 80px; border-radius: 50%; overflow: hidden; margin: 0 auto 12px; }
.pengurus-foto img { width: 100%; height: 100%; object-fit: cover; }

.pengurus-avatar {
  width: 80px; height: 80px; border-radius: 50%; margin: 0 auto 12px;
  background: linear-gradient(135deg, var(--green), var(--green-light));
  display: grid; place-items: center; color: #fff; font-size: 28px; font-weight: 800;
}

.pengurus-card h3 { font-size: 15px; font-weight: 700; color: var(--ink); margin-bottom: 4px; }
.pengurus-jabatan {
  display: inline-block; font-size: 12px; font-weight: 600; color: var(--gold);
  background: rgba(234,179,8,.12); padding: 3px 10px; border-radius: 999px; margin-bottom: 8px;
}
.pengurus-desc { font-size: 12.5px; color: var(--muted); margin-bottom: 10px; }

.pengurus-social { display: flex; justify-content: center; gap: 8px; }
.pengurus-social a, .social-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; padding: 0; border-radius: 50%;
  font-size: 18px;
  background: var(--green-pale); color: var(--green); font-weight: 600;
  transition: var(--transition);
}
.pengurus-social a:hover, .social-btn:hover { background: var(--green); color: #fff; }
.pengurus-social .social-btn img { width: 18px; height: 18px; display: block; }
.pengurus-social .social-btn:hover img { transform: scale(1.1); }

/* ── CTA (Redesigned: two-column) ───────────────────────── */
.cta-section {
  background: linear-gradient(160deg, #0c3a21, var(--green));
  padding: 64px 20px;
}
.cta-inner {
  width: min(100%, 1100px); margin: 0 auto;
  display: block; text-align: center;
}
.cta-text { width: 100%; max-width: 820px; margin: 0 auto; text-align: center; }
.cta-text h2 { font-size: clamp(24px, 4vw, 34px); font-weight: 800; color: #fff; margin-bottom: 10px; line-height: 1.2; }
.cta-text p { font-size: 16px; color: #fff; margin: 0 auto 24px; line-height: 1.7; max-width: 620px; }
.cta-text .hero-btns { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.cta-visual {
  display: flex; align-items: center; justify-content: center;
}
.cta-brand {
  font-size: clamp(80px, 12vw, 140px); font-weight: 900; color: rgba(255,255,255,.06);
  line-height: 1; user-select: none;
}

/* ── EMPTY STATE ────────────────────────────────────────── */
.empty-state { text-align: center; padding: 60px 20px; }
.empty-icon { font-size: 48px; margin-bottom: 12px; }
.empty-state h3 { font-size: 18px; color: var(--ink); margin-bottom: 6px; }
.empty-state p { font-size: 14px; color: var(--muted); }

/* ── FOOTER ─────────────────────────────────────────────── */
.site-footer { background: var(--ink); color: rgba(255,255,255,.7); padding: 40px 0 0; }
.footer-inner { max-width: 1100px; margin: 0 auto; padding: 0 20px; display: grid; grid-template-columns: 1fr 2fr; gap: 32px; }
.footer-inner.footer-single { grid-template-columns: 1fr; text-align:center; justify-items:center; }
.footer-brand { display: flex; gap: 12px; align-items: start; }
.footer-brand strong { color: #fff; font-size: 16px; display: block; margin-bottom: 4px; }
.footer-brand p { font-size: 13px; line-height: 1.5; }
.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-links a { font-size: 13px; color: rgba(255,255,255,.6); transition: var(--transition); }
.footer-links a:hover { color: var(--gold); }
.footer-contact p { font-size: 13px; margin-bottom: 6px; display: flex; align-items: center; gap: 6px; }
.footer-icon { display: inline-block; width: 14px; height: 14px; }
.footer-social { display: flex; gap: 10px; margin-top: 8px; }
.footer-social a { font-size: 13px; color: rgba(255,255,255,.6); transition: var(--transition); }
.footer-social a:hover { color: var(--gold); }
.footer-bottom { text-align: center; padding: 16px 20px; margin-top: 32px; border-top: 1px solid rgba(255,255,255,.1); font-size: 12px; }
.footer-bottom p { margin: 0; }
.footer-visitors { margin-top: 6px !important; font-size: 12px; color: rgba(255,255,255,.55); display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; align-items: center; }
.footer-visitors .fv-today strong { color: var(--gold); font-weight: 700; }
.footer-visitors .fv-today { color: rgba(255,255,255,.85); }
.footer-visitors .fv-total { color: var(--gold); }

/* ── FLASH ──────────────────────────────────────────────── */
.flash-container { position: fixed; top: 72px; left: 50%; transform: translateX(-50%); z-index: 150; }
.flash { padding: 10px 20px; border-radius: 10px; font-size: 13px; font-weight: 600; margin-bottom: 8px; animation: flashIn .3s ease; }
.flash-success { background: #dcfce7; color: #166534; }
.flash-error { background: #fef2f2; color: #dc2626; }
@keyframes flashIn { from { opacity:0; transform:translateY(-8px); } to { opacity:1; transform:none; } }

/* ── YOUTUBE EMBED ───────────────────────────────────────── */
.yt-embed {
  position: relative; width: 100%; padding-top: 56.25%;
  margin: 12px 0; border-radius: var(--radius-sm); overflow: hidden;
  background: #000;
}
.yt-embed iframe {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  border: none;
}

/* ── REACTIONS ───────────────────────────────────────────── */
.react-bar {
  display: flex; gap: 8px; padding: 10px 0; border-top: 1px solid var(--line);
  margin-top: 10px;
}
.react-btn {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface); color: var(--text); font-size: 13px;
  font-weight: 600; cursor: pointer; transition: var(--transition);
  -webkit-tap-highlight-color: transparent;
}
.react-btn:hover { background: var(--green-pale); border-color: var(--green); }
.react-btn.active-like { background: #dcfce7; border-color: #22c55e; color: #166534; }
.react-btn.active-love { background: #fef2f2; border-color: #ef4444; color: #dc2626; }
.react-count { font-size: 12px; min-width: 12px; text-align: center; }

/* ── COMMENTS ────────────────────────────────────────────── */
.comment-section {
  position: relative; z-index: 2; clear: both;
  margin-top: 14px; padding: 12px 0 18px; border-top: 1px dashed var(--line);
  margin-bottom: 18px;
}
.kom-box { margin-top: 12px; border-top: 1px dashed var(--line); padding-top: 12px; }
.comment-title {
  font-size: 14px; font-weight: 700; color: var(--ink); margin-bottom: 10px;
  cursor: pointer; user-select: none;
}
.comment-title::after { content: ' ▾'; font-size: 12px; color: var(--muted); }
.comments-collapsed .comment-title::after { content: ' ▸'; }
.comment-section.comments-collapsed .comment-list,
.comment-section.comments-collapsed .comment-form { display: none; }
.kom-count { color: var(--muted); font-weight: 600; font-size: 12px;
}
.comment-title-legacy-unused {
  font-size: 14px; font-weight: 700; color: var(--ink); margin-bottom: 10px;
  display: flex; align-items: center; gap: 6px;
}
.comment-list { margin: 0; padding: 0; }

/* Bubble-style comment items */
.kom-item {
  font-size: 13px; padding: 9px 12px; margin: 5px 0;
  border-radius: 12px; border-bottom: none;
  background: #f8fbf8; border: 1px solid rgba(20,83,45,.07);
  transition: background .2s;
}
.kom-item:hover { background: #f1f8f2; }
.kom-head { display:flex; align-items:flex-start; gap:10px; }
.kom-head-body { min-width:0; flex:1; }
.galeri-item .kom-ava, .galeri-item .bal-ava, .kom-ava, .bal-ava { width:38px; height:38px; max-width:38px; flex:0 0 38px; object-fit:cover; border-radius:50%; border:2px solid #fff; box-shadow:0 0 0 2px rgba(20,83,45,.18); cursor:pointer; }
.bal-ava { width:28px; height:28px; flex-basis:28px; vertical-align:middle; margin-right:6px; }
.ava-lightbox { position:fixed; inset:0; z-index:300; display:flex; align-items:center; justify-content:center; background:rgba(0,0,0,.78); padding:24px; }
.ava-lightbox[hidden] { display:none; }
.ava-lightbox img { max-width:min(88vw,420px); max-height:82vh; object-fit:contain; border-radius:16px; box-shadow:0 16px 50px rgba(0,0,0,.4); }
.ava-lightbox button { position:absolute; top:16px; right:20px; border:0; background:rgba(255,255,255,.18); color:#fff; border-radius:50%; width:36px; height:36px; font-size:24px; cursor:pointer; }

/* MENTION BOX */
.ment-box { position:absolute; z-index:400; background:#fff; border:1px solid var(--line); border-radius:12px; box-shadow:0 12px 30px rgba(0,0,0,.12); max-height:200px; overflow-y:auto; padding:4px; }
.ment-item { display:block; width:100%; text-align:left; background:none; border:none; padding:8px 12px; font-size:13px; font-weight:600; color:var(--ink); border-radius:8px; cursor:pointer; }
.ment-item:hover,.ment-item.aktif { background:var(--green-pale); color:var(--green); }

.kom-item b { color: var(--green); }
.kom-item .wkt {
  display: block; font-size: 11px; color: var(--muted); margin-top: 2px;
}

/* Per-comment reaction actions */
.kom-aksi {
  display: flex; align-items: center; gap: 10px; margin-top: 4px;
  flex-wrap: wrap;
}
.kom-like, .kom-jempol {
  display: inline-flex; align-items: center; gap: 4px;
  background: none; border: none; color: var(--muted);
  font-weight: 800; font-size: 12px; cursor: pointer;
  padding: 2px 4px; border-radius: 6px;
  transition: transform .2s;
}
.kom-like:hover, .kom-jempol:hover { transform: scale(1.12); }
.kom-like.on { color: #e0245e; }
.kom-jempol.on { color: #16a34a; }

/* Reply button */
.balas-btn {
  display: inline-block; margin-top: 0;
  background: none; border: none; color: var(--green);
  font-weight: 800; font-size: 11.5px; cursor: pointer; padding: 2px 0;
}
.balas-btn:hover { text-decoration: underline; }

/* Replies list */
.balas-list {
  margin: 6px 0 2px 10px; padding-left: 10px;
  border-left: 2px solid var(--line);
}
.bal-label {
  font-size: 10.5px; font-weight: 800; color: var(--green-light);
  text-transform: uppercase; letter-spacing: .06em; margin: 2px 0 4px;
}
.bal-item {
  font-size: 12.5px; padding: 6px 10px; background: #f3f8f4;
  border-radius: 8px; margin: 4px 0;
}
.bal-item b { color: var(--green); }
.bal-item .wkt {
  display: block; font-size: 10.5px; color: var(--muted); margin-top: 2px;
}

/* Reply form (textarea, not input) */
.balas-form {
  display: none; grid: gap 6px;
  margin: 8px 0 4px 10px; padding-left: 10px;
  border-left: 2px solid var(--line);
}
.balas-form[hidden] { display: none !important; }
.balas-form.open { display: grid; }
.balas-form input {
  width: 100%; padding: 6px 10px; border: 1px solid var(--line);
  border-radius: 8px; font-size: 12px; outline: none;
}
.balas-form input:focus { border-color: var(--green); }
.balas-form textarea {
  min-height: 48px; resize: vertical; width: 100%;
  padding: 6px 10px; border: 1px solid var(--line); border-radius: 8px;
  font-size: 12px; font-family: inherit; outline: none;
}
.balas-form textarea:focus { border-color: var(--green); }
.balas-form .kirim {
  justify-self: start;
  background: var(--green); color: #fff; border: none; border-radius: 999px;
  font-weight: 800; font-size: 12px; padding: 7px 16px; cursor: pointer;
}
.balas-form .kirim:hover { background: var(--green-light); }

/* Comment form (main comment box) */
.comment-form {
  display: grid; gap: 8px; margin-top: 10px;
}
.comment-form input, .comment-form textarea {
  width: 100%; padding: 8px 12px; border: 1px solid var(--line);
  border-radius: 10px; font-size: 13px; font-family: inherit;
  outline: none; resize: vertical;
}
.comment-form input:focus, .comment-form textarea:focus { border-color: var(--green); }
.comment-form textarea { min-height: 50px; }
.comment-submit {
  justify-self: start; padding: 8px 20px; border: none; border-radius: 999px;
  background: var(--green); color: #fff; font-size: 13px; font-weight: 700;
  cursor: pointer; transition: var(--transition);
}
.comment-submit:hover { background: var(--green-light); }
.comment-submit:disabled { opacity: .5; cursor: not-allowed; }

/* Chat ID lookup */
.comment-chat-label {
  display: grid; gap: 4px; font-size: 12px; font-weight: 600;
  color: var(--muted);
}
.comment-chat-label input {
  width: 100%; padding: 8px 12px; border: 1px solid var(--line);
  border-radius: 10px; font-size: 13px; font-family: inherit;
  outline: none;
}
.comment-chat-label input:focus { border-color: var(--green); }
.comment-member-hint {
  font-size: 12px; min-height: 16px; line-height: 1.4;
}
.hint-ok { color: #166534; }
.hint-err { color: #991b1b; }

/* Comment meta (text-first layout) */
.kom-meta {
  display: flex; align-items: center; gap: 6px;
  flex-wrap: wrap; font-size: 12px; color: var(--muted);
  margin-bottom: 6px;
}
.kom-author { color: var(--ink); font-size: 13px; }
.kom-badge {
  display: inline-block; padding: 2px 8px;
  background: rgba(20,83,45,.08); color: var(--green);
  border-radius: 999px; font-size: 10px; font-weight: 700;
}
.bal-text { display: block; font-size: 13px; color: var(--text); margin-bottom: 4px; }

/* Empty state */
.comment-empty {
  font-size: 13px; color: var(--muted); text-align: center; padding: 16px 0;
  font-style: italic;
}

/* ── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 768px) {
  html, body { overflow-x: hidden; width: 100%; }

  .nav-toggle { display: flex; }
  .nav-links {
    display: none; position: absolute; top: 60px; left: 0; right: 0;
    background: #fff; flex-direction: column; padding: 12px 20px;
    border-bottom: 1px solid var(--line); box-shadow: 0 8px 24px rgba(0,0,0,.1);
    z-index: 90; width: 100%;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 16px; width: 100%; font-size: 15px; }
  .nav-admin { margin-left: 0; width: 36px; height: 36px; display: none; }
  .nav-admin-link { display: block; }

  .hero { min-height: 50vh; padding: 50px 16px 36px; width: 100%; }
  .hero h1 { font-size: 26px; line-height: 1.2; }
  .hero p { font-size: 15px; line-height: 1.6; margin-bottom: 20px; }
  .hero-content { width: 100%; max-width: 620px; }
  .hero-badge { font-size: 11px; padding: 5px 12px; }
  .hero-btns { flex-direction: column; align-items: center; }
  .hero-btns .btn { width: 100%; max-width: 280px; justify-content: center; }

  .section, .section-alt, .section-dark { padding: 40px 0; width: 100%; }
  .section-header h2 { font-size: 22px; }
  .container { padding: 0 16px; max-width: 100%; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-card { padding: 16px 12px; border-right: none; border-bottom: 1px solid var(--line); }
  .stat-card:nth-child(2) { border-right: none; }
  .stat-num { font-size: 24px; }
  .stat-icon { font-size: 18px; }

  .card-grid { grid-template-columns: 1fr; gap: 14px; }
  .card-body { padding: 14px 16px; }
  .card-body h3 { font-size: 15px; }
  .card-meta { gap: 6px; }
  .card-meta span { font-size: 11px; }

  .umkm-grid { grid-template-columns: 1fr; gap: 14px; }
  .umkm-body { padding: 14px 16px; }

  .galeri-grid,
  .galeri-grid.full {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .pengurus-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .pengurus-card { padding: 16px 12px; }
  .pengurus-foto, .pengurus-avatar { width: 60px; height: 60px; }
  .pengurus-card h3 { font-size: 13px; }
  .pengurus-jabatan { font-size: 11px; }
  .pengurus-desc { font-size: 11px; }
  .pengurus-social a, .social-btn { font-size: 11px; padding: 4px 8px; }

  .page-hero { padding: 40px 16px; width: 100%; }
  .page-hero h1 { font-size: 24px; }

  .cta-section { padding: 40px 16px; width: 100%; }
  .cta-inner { grid-template-columns: 1fr; gap: 24px; text-align: center; }
  .cta-text h2 { font-size: 22px; }
  .cta-text .hero-btns { justify-content: center; }
  .cta-visual { display: none; }

  .footer-inner, .footer-inner.footer-single { grid-template-columns: 1fr; gap: 16px; padding: 0 12px; font-size: 12px; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 0; }
  .stat-card { padding: 12px 8px; }
  .stat-num { font-size: 20px; }
  .stat-label { font-size: 11px; }

  .pengurus-grid { grid-template-columns: 1fr; }
  .galeri-grid { grid-template-columns: repeat(2, 1fr); gap: 6px; }

  .hero { min-height: 45vh; }
  .hero h1 { font-size: 22px; }
  .hero p { font-size: 14px; }

  .btn { padding: 10px 18px; font-size: 13px; }

  .section-header h2 { font-size: 20px; }
  .section-sub { font-size: 13px; }
}

/* Mobile overflow guard: documentation and footer must fit the viewport */
@media (max-width: 600px) {
  .galeri-grid,
  .galeri-grid.full {
    grid-template-columns: 1fr;
    width: 100%;
    max-width: 100%;
    gap: 14px;
  }
  .galeri-item {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }
  .galeri-video,
  .galeri-video iframe {
    width: 100%;
    max-width: 100%;
  }
  .galeri-caption,
  .react-bar {
    max-width: 100%;
    min-width: 0;
    overflow-wrap: anywhere;
  }
  .footer-inner {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }
  .footer-brand,
  .footer-center,
  .footer-links {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }
  .footer-center p,
  .footer-links a {
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
  }
  .footer-icons-row {
    flex-wrap: wrap;
    justify-content: center;
  }
}

/* ── DAFTAR HADIR SILATURAHMI ───────────────────────────── */
.hadir-counter {
  text-align: center;
  padding: 28px 20px;
  margin-bottom: 20px;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(135deg, var(--green), #176b3a);
  box-shadow: var(--shadow-md);
}
.hadir-counter-num { font-size: clamp(42px, 8vw, 72px); line-height: 1; font-weight: 800; color: var(--gold); }
.hadir-counter-label { margin-top: 8px; font-size: 13px; font-weight: 700; letter-spacing: .04em; }
.hadir-form-wrap, .hadir-list-wrap {
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  padding: 22px; margin-bottom: 20px; box-shadow: var(--shadow-sm);
}
.hadir-form-wrap h3, .hadir-list-wrap h3 { margin: 0 0 5px; color: var(--ink); font-size: 18px; }
.hadir-sub { margin: 0 0 18px; color: var(--muted); font-size: 13px; }
.hadir-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hadir-form .form-group { margin-bottom: 14px; }
.hadir-form label { display: block; margin-bottom: 5px; color: var(--ink); font-size: 12px; font-weight: 700; }
.hadir-form input, .hadir-form select, .hadir-form textarea {
  width: 100%; box-sizing: border-box; padding: 11px 12px; border: 1px solid var(--line);
  border-radius: 9px; background: #fff; color: var(--ink); font: inherit; font-size: 13px;
}
.hadir-form input:focus, .hadir-form select:focus, .hadir-form textarea:focus { outline: 2px solid rgba(234,179,8,.35); border-color: var(--gold); }
.hadir-form textarea { resize: vertical; }
.hadir-list { display: grid; gap: 9px; margin-top: 16px; }
.hadir-item { display: flex; align-items: center; gap: 11px; padding: 11px; border: 1px solid var(--line); border-radius: 11px; background: #fff; min-width: 0; }
.hadir-avatar { flex: 0 0 38px; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: var(--green-pale); color: var(--green); font-weight: 800; }
.hadir-info { flex: 1; min-width: 0; }
.hadir-info strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); font-size: 13px; }
.hadir-meta { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-size: 11px; }
.hadir-badge { flex: 0 0 auto; color: var(--muted); font-size: 10px; }

/* ── INFO ACARA DI BERANDA ─────────────────────────────── */
.hadir-event-card { display: grid; grid-template-columns: minmax(240px, .9fr) 1.4fr; overflow: hidden; border-radius: 16px; background: var(--green); color: #fff; box-shadow: var(--shadow-lg); }
.hadir-event-photo { min-height: 260px; background: #123b25; }
.hadir-event-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hadir-event-body { padding: 28px; }
.event-kicker { color: var(--gold); font-size: 11px; font-weight: 800; letter-spacing: .12em; }
.hadir-event-body h2 { margin: 8px 0 20px; color: #fff; font-size: clamp(24px, 4vw, 36px); }
.hadir-event-details { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 22px; }
.hadir-event-details > div { padding: 12px; border: 1px solid rgba(255,255,255,.18); border-radius: 10px; background: rgba(255,255,255,.08); }
.hadir-event-details .hadir-event-desc { grid-column: 1 / -1; background: rgba(255,255,255,.1); }
.hadir-event-details .hadir-event-desc strong { color: var(--gold); }
.hadir-event-details .hadir-event-desc .desc-text { margin: 4px 0 0; color: #fff; font-size: 13.5px; line-height: 1.6; white-space: pre-line; overflow-wrap: anywhere; max-height: 4.8em; overflow: hidden; position: relative; transition: max-height .4s ease; }
.hadir-event-details .hadir-event-desc .desc-text.expanded { max-height: none; }
.hadir-event-details .hadir-event-desc .desc-fade { display: block; width: 100%; height: 30px; background: linear-gradient(transparent, rgba(255,255,255,.15)); margin-top: -28px; position: relative; pointer-events: none; transition: opacity .3s; }
.hadir-event-details .hadir-event-desc .desc-text.expanded + .desc-fade { opacity: 0; }
.hadir-event-details .hadir-event-desc .desc-toggle { display: inline-block; margin-top: 6px; color: var(--gold); font-size: 12px; font-weight: 700; cursor: pointer; border: none; background: none; padding: 4px 0; transition: color .2s; }
.hadir-event-details .hadir-event-desc .desc-toggle:hover { color: #fff; }
.hadir-event-details span { display: block; margin-bottom: 5px; font-size: 18px; }
.hadir-event-details strong { display: block; color: var(--gold); font-size: 11px; }
.hadir-event-details p { margin: 4px 0 0; color: #fff; font-size: 13px; overflow-wrap: anywhere; }

@media (max-width: 700px) {
  .hadir-event-card { grid-template-columns: 1fr; }
  .hadir-event-photo { min-height: 190px; max-height: 240px; }
  .hadir-event-body { padding: 20px; }
  .hadir-event-details { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .hadir-form-wrap, .hadir-list-wrap { padding: 16px; }
  .hadir-form .form-row { grid-template-columns: 1fr; gap: 0; }
  .hadir-item { align-items: flex-start; }
  .hadir-badge { display: none; }
}

/* ── Floating Bakti Sosial Button ─────────────────────────── */
.baksos-float {
  position: fixed;
  right: 18px;
  bottom: 22px;
  z-index: 900;
  display: flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #166534, #15803d);
  color: #fff !important;
  text-decoration: none !important;
  padding: 12px 18px;
  border-radius: 50px;
  box-shadow: 0 6px 20px rgba(22, 101, 52, .35);
  font-size: 14px;
  font-weight: 700;
  animation: baksosFloatUp 1.2s cubic-bezier(.2, 1.4, .4, 1) both, baksosPulse 3s ease-in-out 1.2s infinite;
  transition: transform .25s ease, box-shadow .25s ease;
}
.baksos-float:hover {
  transform: translateY(-3px) rotate(-1deg);
  box-shadow: 0 10px 28px rgba(22, 101, 52, .45);
}
.baksos-float-icon {
  font-size: 20px;
  line-height: 1;
}
@keyframes baksosFloatUp {
  from { opacity: 0; transform: translateY(24px) scale(.85); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes baksosPulse {
  0%, 100% { box-shadow: 0 6px 20px rgba(22, 101, 52, .35); }
  50%      { box-shadow: 0 6px 28px rgba(22, 101, 52, .6); }
}
@media (max-width: 480px) {
  .baksos-float { right: 12px; bottom: 16px; padding: 11px 15px; font-size: 13px; }
}
