/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: 'Inter', sans-serif; color: #1a1a2e; background: #f8f9fa; line-height: 1.6; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ===== VARIABLES ===== */
:root {
  --green: #1a6b3c;
  --green-light: #27ae60;
  --green-dark: #0f4a28;
  --blue: #1565c0;
  --blue-light: #1976d2;
  --accent: #f39c12;
  --red: #e74c3c;
  --white: #ffffff;
  --gray-50: #f8f9fa;
  --gray-100: #f1f3f5;
  --gray-200: #e9ecef;
  --gray-400: #adb5bd;
  --gray-600: #6c757d;
  --gray-800: #343a40;
  --dark: #0d1117;
  --shadow: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-md: 0 8px 30px rgba(0,0,0,0.12);
  --radius: 12px;
  --radius-lg: 20px;
  --transition: all 0.3s ease;
}

/* ===== CONTAINER ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Hapus gap antara site-header dan hero */
main, #mainContent { margin: 0; padding: 0; }
.hero { margin-top: 0 !important; }

/* ═══════════════════════════════════════════════════
   SITE HEADER — wrapper sticky tunggal
   Urutan: topbar → navbar → ticker
═══════════════════════════════════════════════════ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}

/* ── ① TOPBAR ── */
.topbar {
  background: linear-gradient(90deg, #0f2744 0%, #0f3d24 100%);
  color: rgba(255,255,255,0.9);
  height: 32px;
  font-size: 0.73rem;
  font-weight: 500;
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.topbar-left, .topbar-right {
  display: flex;
  align-items: center;
  gap: 6px;
}
.topbar-left i, .topbar-right i { color: #ffd700; font-size: 0.68rem; }
.topbar-right { font-weight: 700; }

/* ── ② NAVBAR ── */
.navbar-wrap {
  background: #ffffff;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  gap: 16px;
}

/* ── Logo ── */
.logo {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
  text-decoration: none;
}
.logo-icon {
  width: 68px; height: 68px;
  border-radius: 14px;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  background: #fff;
  border: 3px solid var(--green-light);
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(26,107,60,0.2);
}
.logo-icon img, .logo-img {
  width: 100%; height: 100%; object-fit: cover;
}
.logo-title {
  display: block;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--green);
  line-height: 1.15;
  letter-spacing: -0.3px;
}
.logo-sub {
  display: block;
  font-size: 0.75rem;
  color: var(--gray-600);
  font-weight: 500;
  margin-top: 2px;
}

/* ── Nav desktop ── */
.nav { display: flex; }
.nav-list { display: flex; gap: 2px; }
.nav-link {
  padding: 6px 10px;
  border-radius: 7px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--gray-800);
  transition: var(--transition);
  white-space: nowrap;
}
.nav-link:hover, .nav-link.active { background: var(--green); color: #fff; }

/* ── Header Right ── */
.header-right { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.btn-portal {
  background: var(--blue);
  color: #fff;
  border: none;
  padding: 7px 13px;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  display: flex; align-items: center; gap: 6px;
  transition: var(--transition);
  white-space: nowrap;
}
.btn-portal:hover { background: var(--blue-light); }
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  border-radius: 8px;
}
.hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--gray-800);
  border-radius: 2px;
  transition: var(--transition);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── ③ TICKER ── */
.ticker-bar {
  background: linear-gradient(90deg, #1a6b3c 0%, #27ae60 100%);
  color: #fff;
  display: flex;
  align-items: center;
  height: 32px;
  overflow: hidden;
}
.ticker-label {
  background: rgba(0,0,0,0.2);
  padding: 0 12px;
  height: 100%;
  display: flex; align-items: center; gap: 6px;
  font-size: 0.68rem;
  font-weight: 800;
  white-space: nowrap;
  flex-shrink: 0;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  border-right: 1px solid rgba(255,255,255,0.2);
}
.ticker-label i { color: #ffd700; }
.ticker-wrap { flex: 1; overflow: hidden; }
.ticker-content {
  display: inline-block;
  white-space: nowrap;
  font-size: 0.76rem;
  font-weight: 600;
  animation: tickerScroll 35s linear infinite;
  padding-left: 100%;
}
@keyframes tickerScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

/* ── Nav Dropdown (mobile hamburger) ── */
.nav-dropdown {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0;
  background: #fff;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  z-index: 999;
  border-top: 3px solid var(--green);
  transform: translateY(-100%);
  transition: transform 0.3s ease;
}
.nav-dropdown.open {
  transform: translateY(0);
}
.nav-dropdown ul { list-style: none; padding: 8px 0; }
.nav-dd-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 20px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gray-800);
  border-bottom: 1px solid var(--gray-100);
  transition: var(--transition);
}
.nav-dd-link i { width: 18px; color: var(--green); }
.nav-dd-link:hover { background: var(--gray-50); color: var(--green); }

/* ===== HERO SLIDER ===== */
.hero { position: relative; height: 520px; overflow: hidden; margin: 0; padding: 0; }
.hero-slider { width: 100%; height: 100%; position: relative; }

.slide {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  transition: opacity 0.8s ease;
  /* background-image + gradient diset via inline style dari PHP */
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
}
.slide.active { opacity: 1; }

/* Hapus style img/overlay lama jika ada */
.slide-bg-img  { display: none; }
.slide-overlay { display: none; }
.slide-content { text-align: center; color: #fff; padding: 20px; max-width: 700px; }
.slide-content h1 { font-size: 2.4rem; font-weight: 800; margin-bottom: 12px; text-shadow: 0 2px 8px rgba(0,0,0,0.4); }
.slide-content p { font-size: 1.05rem; margin-bottom: 28px; opacity: 0.92; text-shadow: 0 1px 4px rgba(0,0,0,0.3); }
.btn-hero {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--blue);
  color: #fff;
  padding: 13px 28px;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 600;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(21,101,192,0.4);
}
.btn-hero:hover { background: var(--blue-light); transform: translateY(-2px); }
.slide-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,0.2);
  border: 2px solid rgba(255,255,255,0.5);
  color: #fff;
  width: 44px; height: 44px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1rem;
  transition: var(--transition);
  z-index: 10;
  display: flex; align-items: center; justify-content: center;
}
.slide-btn:hover { background: rgba(255,255,255,0.35); }
.slide-btn.prev { left: 20px; }
.slide-btn.next { right: 20px; }
.slide-dots {
  position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 8px; z-index: 10;
}
.dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: var(--transition);
}
.dot.active { background: #fff; width: 28px; border-radius: 5px; }

/* ===== SECTION COMMON ===== */
section { padding: 64px 0; }
.section-header {
  display: flex; align-items: flex-start; justify-content: space-between;
  margin-bottom: 36px; gap: 16px; flex-wrap: wrap;
}
.section-header.center { flex-direction: column; align-items: center; text-align: center; }
.section-header h2 { font-size: 1.7rem; font-weight: 800; color: var(--gray-800); margin-bottom: 6px; }
.section-header p { color: var(--gray-600); font-size: 0.9rem; }
.section-header h2::after {
  content: ''; display: block; width: 48px; height: 3px;
  background: var(--green); border-radius: 2px; margin-top: 8px;
}
.section-header.center h2::after { margin: 8px auto 0; }
.label-tag {
  display: inline-block;
  background: rgba(26,107,60,0.1);
  color: var(--green);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}
.btn-sm-outline {
  border: 1.5px solid var(--gray-400);
  color: var(--gray-600);
  padding: 7px 16px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  transition: var(--transition);
  white-space: nowrap;
  flex-shrink: 0;
}
.btn-sm-outline:hover { border-color: var(--green); color: var(--green); }
.btn-outline {
  display: inline-flex; align-items: center; gap: 8px;
  border: 2px solid var(--green);
  color: var(--green);
  padding: 10px 22px;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  transition: var(--transition);
}
.btn-outline:hover { background: var(--green); color: #fff; }

/* ===== SAMBUTAN ===== */
.sambutan { background: var(--gray-100); }
.sambutan-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 40px;
  display: flex;
  align-items: center;
  gap: 40px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.sambutan-card::before {
  content: '';
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 6px;
  background: linear-gradient(to bottom, var(--green), var(--green-light));
}
.sambutan-photo { flex-shrink: 0; }
.photo-frame {
  width: 140px; height: 140px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 4px solid var(--green);
  box-shadow: 0 8px 24px rgba(26,107,60,0.25);
}
.photo-frame img { width: 100%; height: 100%; object-fit: cover; }
.sambutan-content { flex: 1; }
.sambutan-content h2 { font-size: 1.5rem; font-weight: 800; color: var(--gray-800); margin-bottom: 12px; }
.sambutan-content p { color: var(--gray-600); font-size: 0.92rem; line-height: 1.8; margin-bottom: 20px; }
.quote-icon {
  position: absolute; right: 30px; top: 20px;
  font-size: 8rem; color: rgba(26,107,60,0.06);
  font-family: Georgia, serif; line-height: 1;
  pointer-events: none;
}

/* ===== PENGURUS ===== */
.pengurus { background: #fff; }
.pengurus-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 20px;
}
.pengurus-card {
  background: var(--gray-50);
  border-radius: var(--radius);
  overflow: hidden;
  text-align: center;
  transition: var(--transition);
  border: 1.5px solid var(--gray-200);
}
.pengurus-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--green); }
.pengurus-img {
  width: 100%; aspect-ratio: 1;
  background: linear-gradient(135deg, #1565c0, #1976d2);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.pengurus-img img { width: 100%; height: 100%; object-fit: cover; }
.pengurus-info { padding: 12px 10px; }
.pengurus-jabatan {
  font-size: 0.65rem; font-weight: 700;
  color: var(--green); text-transform: uppercase;
  letter-spacing: 0.5px; margin-bottom: 4px;
}
.pengurus-nama { font-size: 0.88rem; font-weight: 700; color: var(--gray-800); }

/* ===== LAYANAN ===== */
.layanan { background: var(--gray-50); }
.layanan-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.layanan-item {
  background: #fff;
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  transition: var(--transition);
  border: 1.5px solid var(--gray-200);
}
.layanan-item:hover { border-color: var(--green); box-shadow: var(--shadow); transform: translateY(-2px); }
.layanan-icon {
  width: 48px; height: 48px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}
.layanan-text h4 { font-size: 0.88rem; font-weight: 700; color: var(--gray-800); margin-bottom: 2px; }
.layanan-text p { font-size: 0.72rem; color: var(--gray-600); }

/* ===== KEGIATAN ===== */
.kegiatan { background: #fff; }
.kegiatan-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.kegiatan-card {
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  border: 1.5px solid var(--gray-200);
  transition: var(--transition);
}
.kegiatan-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.kegiatan-img {
  width: 100%; height: 180px;
  object-fit: cover;
  background: var(--gray-200);
  position: relative;
  overflow: hidden;
}
.kegiatan-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.kegiatan-card:hover .kegiatan-img img { transform: scale(1.05); }
.kegiatan-badge {
  position: absolute; top: 10px; left: 10px;
  background: var(--green);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: uppercase;
}
.kegiatan-body { padding: 16px; }
.kegiatan-date { font-size: 0.72rem; color: var(--gray-600); margin-bottom: 6px; }
.kegiatan-body h4 { font-size: 0.9rem; font-weight: 700; color: var(--gray-800); margin-bottom: 8px; line-height: 1.4; }
.kegiatan-body p { font-size: 0.8rem; color: var(--gray-600); line-height: 1.6; }

/* ===== LAPORAN ===== */
.laporan { background: var(--gray-100); }
.laporan-slider-wrap { position: relative; overflow: hidden; }
.laporan-slider {
  display: flex;
  gap: 20px;
  transition: transform 0.4s ease;
}
.laporan-card {
  min-width: 220px;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1.5px solid var(--gray-200);
  flex-shrink: 0;
  transition: var(--transition);
}
.laporan-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.laporan-img { width: 100%; height: 140px; object-fit: cover; position: relative; overflow: hidden; }
.laporan-img img { width: 100%; height: 100%; object-fit: cover; }
.laporan-date-badge {
  position: absolute; top: 8px; right: 8px;
  background: var(--accent);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
}
.laporan-body { padding: 12px; }
.laporan-loc { font-size: 0.72rem; color: var(--green); font-weight: 600; margin-bottom: 4px; display: flex; align-items: center; gap: 4px; }
.laporan-body h4 { font-size: 0.82rem; font-weight: 700; color: var(--gray-800); margin-bottom: 6px; line-height: 1.4; }
.laporan-body p { font-size: 0.75rem; color: var(--gray-600); line-height: 1.5; }
.laporan-footer { padding: 8px 12px; border-top: 1px solid var(--gray-200); display: flex; align-items: center; justify-content: space-between; }
.laporan-rt { font-size: 0.7rem; font-weight: 700; color: var(--blue); background: rgba(21,101,192,0.08); padding: 2px 8px; border-radius: 4px; }
.laporan-detail { font-size: 0.72rem; color: var(--green); font-weight: 600; }
.laporan-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: #fff;
  border: 1.5px solid var(--gray-200);
  color: var(--gray-800);
  width: 36px; height: 36px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 0.85rem;
  transition: var(--transition);
  z-index: 5;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow);
}
.laporan-btn:hover { background: var(--green); color: #fff; border-color: var(--green); }
.laporan-btn.prev { left: -18px; }
.laporan-btn.next { right: -18px; }

/* ===== STATISTIK ===== */
.statistik { background: #fff; }
.stat-header { text-align: center; margin-bottom: 40px; }
.stat-header h2 { font-size: 2rem; font-weight: 800; color: var(--gray-800); }
.stat-header h2 span { color: var(--blue); }
.stat-header p { color: var(--gray-600); font-size: 0.85rem; margin-top: 6px; letter-spacing: 0.5px; }
.stat-grid {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.stat-item { text-align: center; }
.stat-circle {
  width: 110px; height: 110px;
  border-radius: 50%;
  border: 5px solid;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  margin: 0 auto 12px;
  position: relative;
}
.stat-circle.blue { border-color: var(--blue); }
.stat-circle.pink { border-color: #e91e63; }
.stat-circle.green { border-color: var(--green-light); }
.stat-circle.orange { border-color: var(--accent); }
.stat-num { font-size: 1.8rem; font-weight: 800; color: var(--gray-800); line-height: 1; }
.stat-icon { font-size: 1.4rem; margin-bottom: 4px; }
.stat-label { font-size: 0.78rem; color: var(--gray-600); font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
.stat-footer { text-align: center; }
.btn-outline-dark {
  display: inline-flex; align-items: center; gap: 8px;
  border: 2px solid var(--gray-400);
  color: var(--gray-600);
  padding: 10px 24px;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  transition: var(--transition);
}
.btn-outline-dark:hover { border-color: var(--blue); color: var(--blue); }

/* ===== KAS RT ===== */
.kas-rt { background: var(--gray-100); padding: 56px 0; }

/* ── Kartu Total Saldo ── */
.kas-saldo-card {
  background: linear-gradient(135deg, var(--green-dark), var(--green));
  border-radius: var(--radius-lg);
  padding: 28px 36px;
  display: flex;
  align-items: center;
  gap: 24px;
  box-shadow: 0 8px 28px rgba(26,107,60,0.28);
  color: #fff;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.kas-saldo-icon {
  width: 64px; height: 64px;
  background: rgba(255,255,255,0.18);
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem;
  flex-shrink: 0;
}
.kas-saldo-body { flex: 1; min-width: 0; }
.kas-saldo-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  opacity: 0.8;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 4px;
}
.kas-saldo-amount {
  display: block;
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 4px;
}
.kas-saldo-sub {
  display: block;
  font-size: 0.72rem;
  opacity: 0.65;
}
.btn-kas {
  display: inline-block;
  background: rgba(255,255,255,0.18);
  color: #fff;
  border: 2px solid rgba(255,255,255,0.45);
  padding: 10px 24px;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  transition: var(--transition);
  white-space: nowrap;
  flex-shrink: 0;
}
.btn-kas:hover { background: rgba(255,255,255,0.32); }

/* ── Grid 4 Kartu (2 masuk + 2 keluar) ── */
.kas-4grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}
.kas-4card {
  background: #fff;
  border-radius: var(--radius);
  padding: 20px 20px 18px;
  border: 1.5px solid var(--gray-200);
  box-shadow: var(--shadow);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.kas-4card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.kas-4card::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 3px;
}
.kas-4card.masuk::after  { background: var(--green-light); }
.kas-4card.keluar::after { background: var(--red); }

.kas-4card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.kas-4card-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
}
.kas-4card-icon.masuk  { background: #e8f5e9; color: var(--green-light); }
.kas-4card-icon.keluar { background: #fce4ec; color: var(--red); }

.kas-4card-badge {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 20px;
}
.kas-4card-badge.masuk  { background: #e8f5e9; color: var(--green-light); }
.kas-4card-badge.keluar { background: #fce4ec; color: var(--red); }

.kas-4card-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gray-600);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-bottom: 6px;
  line-height: 1.4;
}
.kas-4card-value {
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.1;
}
.kas-4card-value.masuk  { color: var(--green-light); }
.kas-4card-value.keluar { color: var(--red); }

/* ── Badge Kategori tabel ── */
.badge-kategori {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 700;
}
.badge-kategori.kas  { background: #e3f2fd; color: var(--blue); }
.badge-kategori.duka { background: #f3e5f5; color: #7b1fa2; }

/* ── Header & scroll tabel kas ── */
.kas-table-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1.5px solid var(--gray-200);
}
.kas-table-scroll { overflow-x: auto; }

/* ── Responsive ── */
@media (max-width: 900px) {
  .kas-4grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .kas-saldo-card { padding: 22px 20px; gap: 16px; }
  .kas-saldo-amount { font-size: 1.7rem; }
  .kas-saldo-sub { display: none; }
}
@media (max-width: 480px) {
  .kas-4grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .kas-4card { padding: 14px 14px 12px; }
  .kas-4card-value { font-size: 1rem; }
  .kas-saldo-card { flex-direction: column; text-align: center; }
  .btn-kas { width: 100%; text-align: center; }
}

/* Responsive kas */
@media (max-width: 768px) {
  .kas-saldo-card { padding: 22px 20px; }
  .kas-saldo-amount { font-size: 1.7rem; }
  .kas-flow { grid-template-columns: 1fr 1fr; gap: 12px; }
  .kas-flow-card { padding: 18px 16px; gap: 12px; }
  .kas-flow-value { font-size: 1.15rem; }
  .kas-form-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .kas-flow { grid-template-columns: 1fr; }
  .kas-field-row { grid-template-columns: 1fr; }
}

/* ===== TRANSPARANSI KEUANGAN ===== */
.transparansi {
  background: linear-gradient(135deg, #f0f4f8 0%, #e8edf5 100%);
  padding: 56px 0;
}

/* Wrapper utama */
.trans-card {
  border-radius: 20px;
  display: flex;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  background: #fff;
  border: 1px solid var(--gray-200);
}

/* ── Panel kiri ── */
.trans-left {
  background: linear-gradient(160deg, #0d2137 0%, #1565c0 100%);
  color: #fff;
  padding: 40px 20px;
  width: 180px;
  min-width: 180px;
  max-width: 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 10px;
  flex-shrink: 0;
}
.trans-left h3 {
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.5;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}
.trans-left h3 span {
  color: #ffd700;
  font-size: 1.2rem;
  display: block;
  margin-top: 2px;
  letter-spacing: 0;
}
.trans-coin-icon {
  font-size: 2.6rem;
  color: #ffd700;
  line-height: 1;
  filter: drop-shadow(0 2px 6px rgba(255,215,0,0.4));
}
.trans-tahun { font-size: 0.7rem; opacity: 0.65; margin-top: -4px; }
.trans-bulan { font-size: 0.85rem; font-weight: 700; }
.trans-kk {
  font-size: 0.75rem;
  background: rgba(255,255,255,0.15);
  padding: 5px 12px;
  border-radius: 20px;
  display: flex; align-items: center; gap: 5px;
}
.btn-trans {
  background: rgba(255,255,255,0.18);
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.4);
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.76rem;
  font-weight: 700;
  transition: var(--transition);
  margin-top: 6px;
  display: inline-block;
}
.btn-trans:hover { background: #fff; color: var(--blue); }

/* ── Grid iuran kanan ── */
.trans-right-grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);  /* 3 kolom desktop */
  border-left: 1px solid var(--gray-200);
  min-width: 0;
}

/* Kartu per iuran */
.trans-iuran-card {
  padding: 20px 16px;
  border-right: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
  text-align: center;
  transition: background 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.trans-iuran-card:hover { background: #f8faff; }

/* Hapus border kanan kolom ke-3 */
.trans-iuran-card:nth-child(3n)   { border-right: none; }
/* Hapus border bawah baris terakhir */
.trans-iuran-card:nth-last-child(-n+3) { border-bottom: none; }

/* Nama iuran */
.trans-iuran-nama {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--gray-800);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  flex-wrap: wrap;
  line-height: 1.3;
}
.trans-level-badge {
  font-size: 0.58rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  flex-shrink: 0;
}
.trans-level-badge.rw { background: #e3f2fd; color: #1565c0; }
.trans-level-badge.rt { background: #e8f5e9; color: #27ae60; }

/* Baris info */
.trans-iuran-row { margin-bottom: 5px; width: 100%; }
.trans-iuran-label {
  display: block;
  font-size: 0.65rem;
  color: var(--gray-600);
  margin-bottom: 1px;
}
.trans-iuran-val {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray-800);
}
.trans-iuran-val.fw {
  font-weight: 800;
  font-size: 0.92rem;
  color: var(--green-light);
}

/* Lingkaran SVG */
.trans-circle-wrap {
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── RESPONSIVE ── */

/* Tablet: 2 kolom */
@media (max-width: 1024px) {
  .trans-right-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 860px) {
  .trans-right-grid { grid-template-columns: repeat(2, 1fr); }
  /* Reset border 3n, pakai 2n */
  .trans-iuran-card:nth-child(3n)   { border-right: 1px solid var(--gray-200); }
  .trans-iuran-card:nth-child(2n)   { border-right: none; }
  .trans-iuran-card:nth-last-child(-n+3) { border-bottom: 1px solid var(--gray-200); }
  .trans-iuran-card:nth-last-child(-n+2) { border-bottom: none; }
}

/* Mobile: panel kiri jadi bar atas, grid 2 kolom */
@media (max-width: 600px) {
  .trans-card {
    flex-direction: column;
    border-radius: 16px;
  }
  .trans-left {
    width: 100%;
    min-width: unset;
    max-width: unset;
    flex-direction: row;
    flex-wrap: wrap;
    padding: 16px 20px;
    gap: 10px;
    justify-content: center;
    align-items: center;
  }
  .trans-left h3 { font-size: 0.8rem; }
  .trans-coin-icon { font-size: 1.8rem; }
  .trans-right-grid {
    grid-template-columns: repeat(2, 1fr);
    border-left: none;
    border-top: 1px solid var(--gray-200);
  }
  .trans-iuran-card { padding: 14px 10px; }
  .trans-iuran-card:nth-child(3n)   { border-right: 1px solid var(--gray-200); }
  .trans-iuran-card:nth-child(2n)   { border-right: none; }
  .trans-iuran-card:nth-last-child(-n+2) { border-bottom: none; }
  .trans-iuran-val  { font-size: 0.78rem; }
  .trans-iuran-val.fw { font-size: 0.82rem; }
}

/* Small mobile: 1 kolom */
@media (max-width: 360px) {
  .trans-right-grid { grid-template-columns: 1fr; }
  .trans-iuran-card { border-right: none !important; }
  .trans-iuran-card:last-child { border-bottom: none; }
}

/* ===== KONTAK ===== */
.kontak { background: var(--gray-50); }
.kontak-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 40px;
}
.kontak-item {
  display: flex; align-items: flex-start; gap: 16px;
  margin-bottom: 24px;
}
.kontak-icon {
  width: 44px; height: 44px;
  background: linear-gradient(135deg, var(--green), var(--green-light));
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1.1rem;
  flex-shrink: 0;
}
.kontak-item h4 { font-size: 0.88rem; font-weight: 700; color: var(--gray-800); margin-bottom: 4px; }
.kontak-item p { font-size: 0.82rem; color: var(--gray-600); line-height: 1.6; }
.kontak-form {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow);
}
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 0.82rem; font-weight: 600; color: var(--gray-800); margin-bottom: 6px; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--gray-200);
  border-radius: 8px;
  font-size: 0.88rem;
  font-family: inherit;
  color: var(--gray-800);
  transition: var(--transition);
  background: #fff;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(26,107,60,0.1);
}
.btn-submit {
  width: 100%;
  background: var(--green);
  color: #fff;
  border: none;
  padding: 12px;
  border-radius: 8px;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: var(--transition);
}
.btn-submit:hover { background: var(--green-dark); transform: translateY(-1px); }

/* ===== FOOTER ===== */
.footer {
  background: linear-gradient(135deg, #0f2744 0%, #0f3d24 100%);
  color: #fff;
  padding: 48px 0 0;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-logo { display: flex; align-items: center; gap: 14px; }
.footer-logo-icon {
  width: 52px; height: 52px;
  background: linear-gradient(135deg, var(--green), var(--green-light));
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; color: #fff;
  box-shadow: 0 4px 12px rgba(39,174,96,0.3);
}
.footer-title { font-size: 1.2rem; font-weight: 800; color: #fff; }
.footer-sub { font-size: 0.8rem; color: rgba(255,255,255,0.75); }
.footer-loc { font-size: 0.72rem; color: rgba(255,255,255,0.5); margin-top: 2px; }
.footer-socials { display: flex; gap: 10px; justify-content: center; }
.social-btn {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.8);
  font-size: 0.95rem;
  transition: var(--transition);
}
.social-btn:hover { background: var(--green-light); color: #fff; transform: translateY(-2px); border-color: transparent; }
.footer-stats { display: flex; gap: 12px; justify-content: flex-end; }
.fstat-item {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  padding: 12px 14px;
  text-align: center;
  min-width: 68px;
  transition: var(--transition);
}
.fstat-item.active {
  background: rgba(39,174,96,0.25);
  border-color: rgba(39,174,96,0.4);
}
.fstat-item i { display: block; font-size: 1rem; color: #ffd700; margin-bottom: 4px; }
.fstat-num { display: block; font-size: 1.2rem; font-weight: 800; color: #fff; }
.fstat-label { display: block; font-size: 0.6rem; color: rgba(255,255,255,0.5); letter-spacing: 0.5px; text-transform: uppercase; }
.footer-copy {
  text-align: center;
  padding: 16px;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
  border-top: 1px solid rgba(255,255,255,0.06);
}

/* ===== BOTTOM NAV MOBILE ===== */
.bottom-nav {
  display: none; /* hanya tampil di mobile via media query */
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: 60px;
  background: #fff;
  border-top: 1px solid var(--gray-200);
  box-shadow: 0 -4px 16px rgba(0,0,0,0.1);
  z-index: 1001;
  align-items: stretch;
}
.bnav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: var(--gray-600);
  font-size: 0.6rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  text-decoration: none;
  transition: var(--transition);
  position: relative;
}
.bnav-item i { font-size: 1.1rem; }
.bnav-item.active, .bnav-item:hover { color: var(--green); }
.bnav-item.active::after {
  content: '';
  position: absolute;
  top: 0; left: 20%; right: 20%;
  height: 2px;
  background: var(--green);
  border-radius: 0 0 4px 4px;
}
/* Tombol tengah menonjol */
.bnav-center {
  color: var(--green);
  margin-top: -16px;
}
.bnav-center-icon {
  width: 48px; height: 48px;
  background: var(--green);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-size: 1.2rem;
  box-shadow: 0 4px 12px rgba(26,107,60,0.4);
  border: 3px solid #fff;
}
.bnav-center i { display: none; } /* icon sudah di dalam .bnav-center-icon */

/* ===== BACK TO TOP ===== */
.back-to-top {
  position: fixed; bottom: 24px; right: 24px;
  width: 44px; height: 44px;
  background: var(--green);
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(26,107,60,0.4);
  opacity: 0; pointer-events: none;
  transition: var(--transition);
  z-index: 999;
}
.back-to-top.visible { opacity: 1; pointer-events: all; }
.back-to-top:hover { background: var(--green-dark); transform: translateY(-2px); }

/* ===== MODAL ===== */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.5);
  display: flex; align-items: center; justify-content: center;
  z-index: 9999;
  opacity: 0; pointer-events: none;
  transition: var(--transition);
}
.modal-overlay.show { opacity: 1; pointer-events: all; }
.modal-box {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  max-width: 380px;
  width: 90%;
  text-align: center;
  position: relative;
  transform: scale(0.9);
  transition: var(--transition);
}
.modal-overlay.show .modal-box { transform: scale(1); }
.modal-close {
  position: absolute; top: 12px; right: 12px;
  background: none; border: none;
  font-size: 1.1rem; color: var(--gray-600);
  cursor: pointer;
}
.modal-icon { font-size: 3rem; color: var(--green); margin-bottom: 12px; }
.modal-box h3 { font-size: 1.2rem; font-weight: 800; margin-bottom: 8px; }
.modal-box p { font-size: 0.88rem; color: var(--gray-600); margin-bottom: 20px; }
.btn-modal-ok {
  background: var(--green);
  color: #fff;
  border: none;
  padding: 10px 32px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}
.btn-modal-ok:hover { background: var(--green-dark); }

/* ===== RESPONSIVE — TABLET (≤1024px) ===== */
@media (max-width: 1024px) {
  /* Navbar sedikit lebih kompak di tablet */
  .logo-icon  { width: 58px; height: 58px; }
  .logo-title { font-size: 1.1rem; }
  .header-inner { height: 74px; }
  .nav-link   { padding: 5px 8px; font-size: 0.78rem; }
  .layanan-grid { grid-template-columns: repeat(3, 1fr); }
  .kegiatan-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-stats { grid-column: 1 / -1; justify-content: center; }
  .trans-right { grid-template-columns: repeat(3, 1fr); }
}

/* ===== RESPONSIVE — MOBILE (≤768px) ===== */
@media (max-width: 768px) {
  /* Topbar: sembunyikan tanggal di mobile */
  .topbar-left { display: none; }
  /* Topbar jam di tengah mobile */
  .topbar-inner { justify-content: center; }

  /* Logo sedikit lebih kecil di mobile tapi tetap jelas */
  .logo-icon { width: 52px; height: 52px; border-radius: 11px; }
  .logo-title { font-size: 1.05rem; }
  .logo-sub   { font-size: 0.68rem; }
  .header-inner { height: 68px; gap: 10px; }

  /* Hamburger tampil, portal text hilang, nav desktop hilang */
  .nav { display: none; }
  .btn-portal { display: none; }
  .hamburger { display: flex; }

  /* Nav dropdown mobile */
  .nav-dropdown { display: block; }

  /* Bottom nav tampil */
  .bottom-nav { display: flex; }

  /* Beri padding bawah agar konten tidak tertutup bottom-nav */
  body { padding-bottom: 60px; }

  /* site-header tetap sticky */
  .site-header { position: sticky; top: 0; }
  .nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    background: #fff;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    padding: 16px;
    transform: translateY(-120%);
    transition: transform 0.35s ease;
    z-index: 997;
    margin-top: 0;
  }
  .nav.open { transform: translateY(var(--nav-offset, 96px)); }
  .nav-list { flex-direction: column; gap: 4px; }
  .nav-link { display: block; padding: 10px 14px; font-size: 0.92rem; }

  /* Hero */
  .hero { height: 380px; }
  .slide-content h1 { font-size: 1.6rem; }
  .slide-content p { font-size: 0.88rem; }

  /* Sambutan */
  .sambutan-card { flex-direction: column; text-align: center; padding: 28px 20px; gap: 20px; }
  .sambutan-card::before { width: 100%; height: 5px; top: 0; bottom: auto; left: 0; right: 0; }
  .quote-icon { display: none; }

  /* Pengurus */
  .pengurus-grid { grid-template-columns: repeat(3, 1fr); gap: 12px; }

  /* Layanan */
  .layanan-grid { grid-template-columns: repeat(2, 1fr); }

  /* Kegiatan */
  .kegiatan-grid { grid-template-columns: 1fr 1fr; }





  /* Kontak */
  .kontak-grid { grid-template-columns: 1fr; }

  /* Footer */
  .footer-inner { grid-template-columns: 1fr; text-align: center; }
  .footer-logo { justify-content: center; }
  .footer-socials { justify-content: center; }
  .footer-stats { justify-content: center; flex-wrap: wrap; }

  /* Stat */
  .stat-grid { gap: 20px; }
  .stat-circle { width: 90px; height: 90px; }
  .stat-num { font-size: 1.4rem; }
}

/* ===== RESPONSIVE — SMALL MOBILE (≤480px) ===== */
@media (max-width: 480px) {
  .topbar-left span { display: none; } /* sembunyikan teks hari di HP kecil, sisakan ikon+jam */
  .hero { height: 320px; }
  .slide-content h1 { font-size: 1.3rem; }
  .slide-btn { width: 36px; height: 36px; font-size: 0.85rem; }
  .pengurus-grid { grid-template-columns: repeat(2, 1fr); }
  .layanan-grid { grid-template-columns: 1fr 1fr; }
  .kegiatan-grid { grid-template-columns: 1fr; }
  .trans-right { grid-template-columns: 1fr; }
  .trans-item-col { border-left: none; border-top: 1px solid var(--gray-200); }
  .trans-item-col:first-child { border-top: none; }
  .section-header h2 { font-size: 1.4rem; }
  .stat-grid { gap: 16px; }
  .fstat-item { min-width: 56px; padding: 10px 10px; }
  .fstat-num { font-size: 1rem; }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-in { animation: fadeInUp 0.5s ease forwards; }

/* ===== ALERT FORM (PHP) ===== */
.alert-success, .alert-error {
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 500;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.alert-success { background: #e8f5e9; color: #2e7d32; border: 1.5px solid #a5d6a7; }
.alert-error   { background: #fce4ec; color: #c62828; border: 1.5px solid #ef9a9a; }
.req { color: var(--red); }

/* ===== TABEL KAS ===== */
.kas-table-wrap {
  margin-top: 28px;
  background: #fff;
  border-radius: var(--radius);
  border: 1.5px solid var(--gray-200);
  overflow: hidden;
}
.kas-table-title {
  padding: 16px 20px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--gray-800);
  border-bottom: 1.5px solid var(--gray-200);
}
.kas-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}
.kas-table thead tr { background: var(--gray-50); }
.kas-table th {
  padding: 12px 16px;
  text-align: left;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--gray-600);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  border-bottom: 1.5px solid var(--gray-200);
}
.kas-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--gray-100);
  color: var(--gray-800);
}
.kas-table tbody tr:last-child td { border-bottom: none; }
.kas-table tbody tr:hover { background: var(--gray-50); }
.badge-jenis {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 700;
}
.badge-jenis.masuk  { background: #e8f5e9; color: #2e7d32; }
.badge-jenis.keluar { background: #fce4ec; color: #c62828; }
.text-green { color: var(--green-light); font-weight: 700; }
.text-red   { color: var(--red);         font-weight: 700; }

/* ===== TRANS TAHUN ===== */
.trans-tahun {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.6);
  margin-top: -8px;
}



