/* =====================================================================
   SISTEM INFORMASI MASJID - MAIN STYLESHEET
   Design System: Inspired by Masjid Istiqlal Jakarta
   ===================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700;800;900&family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  /* === Primary Colors === */
  --color-forest-green: #03402A;
  --color-teal-green: #198754;
  --color-emerald: #04A476;

  /* === Accent Colors === */
  --color-warm-gold: #9B6D1F;
  --color-bright-gold: #F1C84E;
  --color-cyan: #0DCAF0;
  --color-blue: #0D6EFD;

  /* === Interactive === */
  --color-charcoal: #212529;
  --color-navy: #333333;
  --color-black: #000000;

  /* === Neutrals === */
  --color-white: #FFFFFF;
  --color-light-gray: #F8F9FA;
  --color-pale-gray: #F0F0F0;
  --color-border-light: #E9ECEF;
  --color-border-medium: #DEE2E6;
  --color-muted-gray: #ADB5BD;
  --color-dark-gray: #6C757D;

  /* === Surfaces & Borders === */
  --border-green-soft: rgba(3, 64, 42, 0.05);
  --border-gold-soft: rgba(155, 109, 31, 0.1);
  --border-white-soft: rgba(255, 255, 255, 0.2);
  --overlay-dark: rgba(6, 26, 18, 0.95);

  /* === Semantic === */
  --color-error: #DC3545;
  --color-warning: #FFC107;
  --color-success: #198754;

  /* === Typography === */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* === Spacing === */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-9: 36px;
  --space-10: 40px;
  --space-12: 48px;
  --space-15: 60px;
  --space-18: 72px;

  /* === Radius === */
  --radius-input: 4px;
  --radius-sm: 6px;
  --radius-form: 12px;
  --radius-icon: 20px;
  --radius-card: 30px;
  --radius-pill: 50px;
  --radius-circle: 50%;

  /* === Shadows === */
  --shadow-sm: rgba(0, 0, 0, 0.03) 0px 10px 40px 0px;
  --shadow-md: rgba(0, 0, 0, 0.075) 0px 2px 4px 0px;
  --shadow-lg: rgba(0, 0, 0, 0.176) 0px 16px 48px 0px;
  --shadow-xl: rgba(0, 0, 0, 0.15) 0px 8px 16px 0px;
  --shadow-nav: rgba(0, 0, 0, 0.2) 0px 10px 30px 0px;

  --container-max: 1200px;
}

/* ===================== RESET & BASE ===================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--color-navy);
  background-color: var(--color-white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select { font-family: inherit; }

h1, h2, h3, h4, h5, h6 { font-weight: 700; line-height: 1.3; color: var(--color-navy); }

h1, .display {
  font-family: var(--font-display);
  font-size: 56px;
  font-weight: 800;
  line-height: 1.2;
  color: var(--color-white);
}
h2 { font-family: var(--font-body); font-size: 20px; font-weight: 400; line-height: 1.8; }
h3 { font-family: var(--font-body); font-size: 24px; font-weight: 800; line-height: 1.3; }
h4 { font-family: var(--font-body); font-size: 24px; font-weight: 700; line-height: 1.2; }
h5 { font-family: var(--font-body); font-size: 20px; font-weight: 700; line-height: 1.2; }
h6 { font-family: var(--font-body); font-size: 14px; font-weight: 500; line-height: 1.2; letter-spacing: 0.5px; text-transform: uppercase; color: var(--color-warm-gold); }

p { font-size: 14px; line-height: 21px; color: var(--color-dark-gray); }

.section-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 40px;
  color: var(--color-forest-green);
  line-height: 1.25;
}

@media (max-width: 768px) {
  h1, .display { font-size: 34px; }
  .section-title { font-size: 28px; }
}
@media (max-width: 576px) {
  h1, .display { font-size: 26px; }
  .section-title { font-size: 22px; }
}

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

.section { padding: var(--space-18) 0; }
@media (max-width: 992px) { .section { padding: var(--space-12) 0; } }
@media (max-width: 576px) { .section { padding: var(--space-6) 0; } }

.text-center { text-align: center; }
.section-header { max-width: 700px; margin: 0 auto var(--space-12); text-align: center; }
.section-header h6 { margin-bottom: var(--space-3); }
.section-header p { margin-top: var(--space-4); font-size: 16px; }

/* ===================== ANIMATIONS ===================== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; } to { opacity: 1; }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.92); } to { opacity: 1; transform: scale(1); }
}
@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-40px); } to { opacity: 1; transform: translateX(0); }
}
@keyframes slideInRight {
  from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: translateX(0); }
}
@keyframes floatY {
  0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); }
}
@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(241, 200, 78, 0.4); }
  50% { box-shadow: 0 0 0 14px rgba(241, 200, 78, 0); }
}
@keyframes shimmer {
  0% { background-position: -400px 0; } 100% { background-position: 400px 0; }
}
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes ticker { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal.delay-1 { transition-delay: 0.1s; }
.reveal.delay-2 { transition-delay: 0.2s; }
.reveal.delay-3 { transition-delay: 0.3s; }
.reveal.delay-4 { transition-delay: 0.4s; }

.float-anim { animation: floatY 4s ease-in-out infinite; }

/* ===================== NAVBAR ===================== */
.navbar-wrap { position: sticky; top: 0; z-index: 1000; padding: var(--space-4) 0; transition: all 0.35s ease; }
.navbar-wrap.scrolled { padding: var(--space-2) 0; }

.navbar {
  background: var(--overlay-dark);
  border: 1px solid var(--border-white-soft);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-nav);
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 6px 10px 6px 30px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  backdrop-filter: blur(10px);
  transition: all 0.35s ease;
}

.navbar-brand { display: flex; align-items: center; gap: 12px; color: var(--color-white); }
.navbar-brand .logo-icon {
  width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, var(--color-bright-gold), var(--color-warm-gold));
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; flex-shrink: 0;
}
.navbar-brand .brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.navbar-brand .brand-text strong { font-family: var(--font-display); font-size: 17px; font-weight: 700; }
.navbar-brand .brand-text small { font-size: 11px; color: var(--color-bright-gold); letter-spacing: 0.5px; }

.navbar-links { display: flex; align-items: center; gap: var(--space-6); }
.navbar-links a {
  color: var(--color-white);
  font-size: 14px;
  font-weight: 500;
  padding: 8px 4px;
  position: relative;
  transition: color 0.3s ease;
}
.navbar-links a::after {
  content: '';
  position: absolute; left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--color-bright-gold);
  transition: width 0.3s ease;
}
.navbar-links a:hover, .navbar-links a.active { color: var(--color-bright-gold); }
.navbar-links a:hover::after, .navbar-links a.active::after { width: 100%; }

.navbar-cta {
  background: var(--color-teal-green);
  color: var(--color-white);
  font-weight: 700;
  font-size: 13px;
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  transition: all 0.3s ease;
  white-space: nowrap;
}
.navbar-cta:hover { background: var(--color-emerald); transform: translateY(-2px); box-shadow: var(--shadow-md); }

.navbar-toggle {
  display: none;
  width: 40px; height: 40px;
  flex-direction: column; justify-content: center; align-items: center; gap: 5px;
  background: transparent;
}
.navbar-toggle span { width: 22px; height: 2px; background: var(--color-white); border-radius: 2px; transition: all 0.3s ease; }
.navbar-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.navbar-toggle.open span:nth-child(2) { opacity: 0; }
.navbar-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.navbar-mobile-menu {
  display: none;
  position: fixed; top: 0; right: 0; height: 100vh; width: min(320px, 85vw);
  background: var(--overlay-dark);
  z-index: 1100;
  padding: var(--space-8) var(--space-6);
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  flex-direction: column;
  gap: var(--space-2);
  overflow-y: auto;
}
.navbar-mobile-menu.open { transform: translateX(0); }
.navbar-mobile-menu a {
  color: var(--color-white);
  font-size: 17px;
  padding: 14px 10px;
  border-bottom: 1px solid var(--border-white-soft);
}
.navbar-mobile-menu a:hover, .navbar-mobile-menu a.active { color: var(--color-bright-gold); }
.mobile-menu-close { align-self: flex-end; color: var(--color-white); font-size: 28px; width: 40px; height: 40px; }
.menu-overlay {
  display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 1050;
  opacity: 0; transition: opacity 0.3s ease; pointer-events: none;
}
.menu-overlay.open { display: block; opacity: 1; pointer-events: auto; }

@media (max-width: 992px) {
  .navbar-links { display: none; }
  .navbar-toggle { display: flex; }
  .navbar-mobile-menu { display: flex; }
  .navbar-cta { display: none; }
}
@media (max-width: 576px) {
  .navbar { padding: 6px 8px 6px 16px; border-radius: 40px; }
  .navbar-brand .brand-text strong { font-size: 14px; }
  .navbar-brand .brand-text small { font-size: 9px; }
}

/* ===================== BUTTONS ===================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: var(--radius-pill);
  font-weight: 700; font-size: 16px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
  cursor: pointer;
}
.btn-primary {
  background: var(--color-teal-green); color: var(--color-white);
  padding: 16px 48px; height: 56px; box-shadow: var(--shadow-lg);
}
.btn-primary:hover { background: var(--color-emerald); box-shadow: 0 20px 56px rgba(0,0,0,0.22); transform: translateY(-2px); }
.btn-primary:active { background: var(--color-forest-green); box-shadow: var(--shadow-md); transform: translateY(0); }

.btn-secondary {
  background: transparent; color: var(--color-white);
  border: 1.5px solid var(--border-white-soft);
  padding: 8px 24px; height: 40px;
}
.btn-secondary:hover { background: rgba(255,255,255,0.1); }
.btn-secondary:active { background: rgba(255,255,255,0.2); }

.btn-outline-dark {
  background: transparent; color: var(--color-forest-green);
  border: 1.5px solid var(--color-forest-green);
  padding: 14px 40px; height: 52px;
}
.btn-outline-dark:hover { background: var(--color-forest-green); color: var(--color-white); }

.btn-sm { height: 44px; padding: 10px 28px; font-size: 14px; }

.btn-block { width: 100%; }

/* ===================== HERO ===================== */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex; align-items: center;
  overflow: hidden;
  background: linear-gradient(160deg, #03402A 0%, #062418 55%, #04140d 100%);
  margin-top: -104px; padding-top: 104px;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(circle at 20% 20%, rgba(241,200,78,0.10), transparent 45%),
                     radial-gradient(circle at 85% 75%, rgba(13,202,240,0.08), transparent 40%);
  pointer-events: none;
}
.hero-pattern {
  position: absolute; inset: 0; opacity: 0.06; pointer-events: none;
  background-image: repeating-linear-gradient(45deg, #F1C84E 0, #F1C84E 1px, transparent 1px, transparent 32px),
                     repeating-linear-gradient(-45deg, #F1C84E 0, #F1C84E 1px, transparent 1px, transparent 32px);
}
.hero-content { position: relative; z-index: 2; max-width: 720px; padding: var(--space-18) 0; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(241, 200, 78, 0.12); border: 1px solid rgba(241,200,78,0.3);
  color: var(--color-bright-gold);
  padding: 8px 20px; border-radius: var(--radius-pill);
  font-size: 13px; font-weight: 600; letter-spacing: 0.5px;
  margin-bottom: var(--space-6);
  animation: fadeInUp 0.8s ease both;
}
.hero h1 { margin-bottom: var(--space-5); animation: fadeInUp 0.9s ease 0.1s both; }
.hero h1 span { color: var(--color-bright-gold); }
.hero p.lead {
  color: rgba(255,255,255,0.78); font-size: 18px; line-height: 1.7; max-width: 560px;
  margin-bottom: var(--space-9);
  animation: fadeInUp 0.9s ease 0.2s both;
}
.hero-actions { display: flex; gap: var(--space-4); flex-wrap: wrap; animation: fadeInUp 0.9s ease 0.3s both; }

.hero-prayer-card {
  position: absolute; right: 6%; top: 50%; transform: translateY(-50%);
  width: 320px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border-white-soft);
  backdrop-filter: blur(16px);
  border-radius: var(--radius-card);
  padding: var(--space-8) var(--space-6);
  box-shadow: var(--shadow-lg);
  animation: fadeIn 1.1s ease 0.4s both, floatY 5s ease-in-out 1.5s infinite;
  z-index: 2;
}
.hero-prayer-card .hpc-label { color: var(--color-bright-gold); font-size: 12px; letter-spacing: 1px; text-transform: uppercase; font-weight: 700; margin-bottom: 4px; }
.hero-prayer-card .hpc-name { font-family: var(--font-display); font-size: 32px; color: var(--color-white); font-weight: 800; margin-bottom: 4px; }
.hero-prayer-card .hpc-time { font-size: 40px; color: var(--color-white); font-weight: 800; margin-bottom: var(--space-3); }
.hero-prayer-card .hpc-countdown { color: rgba(255,255,255,0.65); font-size: 13px; }
.hero-prayer-card .hpc-divider { height: 1px; background: var(--border-white-soft); margin: var(--space-5) 0; }
.hero-prayer-card .hpc-mini { display: flex; justify-content: space-between; font-size: 12px; color: rgba(255,255,255,0.7); }
.hero-prayer-card .hpc-mini div { text-align: center; }
.hero-prayer-card .hpc-mini strong { display: block; color: var(--color-white); font-size: 14px; margin-top: 2px; }

@media (max-width: 1200px) { .hero-prayer-card { display: none; } }
@media (max-width: 768px) {
  .hero { min-height: auto; padding-bottom: var(--space-12); }
  .hero-content { padding: var(--space-12) 0; }
  .hero p.lead { font-size: 15px; }
}

/* Scroll-down ticker (jadwal sholat ringkas, opsional dekorasi) */
.marquee-strip {
  background: var(--color-forest-green);
  overflow: hidden; white-space: nowrap;
  padding: 10px 0;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.marquee-track { display: inline-flex; animation: ticker 26s linear infinite; }
.marquee-track span { color: var(--color-bright-gold); font-size: 13px; font-weight: 600; padding: 0 28px; }

/* ===================== STAT CARDS ===================== */
.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-4); margin-top: -56px; position: relative; z-index: 5; }
.stat-card {
  background: var(--color-white);
  border: 1px solid var(--border-gold-soft);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-sm);
  padding: var(--space-10) var(--space-5);
  text-align: center;
  transition: box-shadow 0.35s ease, transform 0.35s ease;
}
.stat-card:hover { box-shadow: var(--shadow-md); transform: translateY(-6px); }
.stat-card .stat-icon {
  width: 56px; height: 56px; margin: 0 auto var(--space-4);
  background: var(--color-warm-gold); color: var(--color-white);
  border-radius: var(--radius-icon);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
}
.stat-card .stat-number { font-family: var(--font-display); font-size: 32px; font-weight: 800; color: var(--color-forest-green); }
.stat-card .stat-label { font-size: 14px; color: var(--color-dark-gray); margin-top: 4px; }

@media (max-width: 992px) { .stats-row { grid-template-columns: repeat(2, 1fr); margin-top: var(--space-8); } }
@media (max-width: 576px) { .stats-row { grid-template-columns: 1fr; } }

/* ===================== CARDS GENERIC ===================== */
.card {
  background: var(--color-white);
  border: 1px solid var(--border-gold-soft);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow 0.35s ease, transform 0.35s ease;
  display: flex; flex-direction: column;
  height: 100%;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-6px); }
.card-img { aspect-ratio: 16/10; overflow: hidden; position: relative; background: var(--color-pale-gray); }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.card:hover .card-img img { transform: scale(1.08); }
.card-badge {
  position: absolute; top: 14px; left: 14px;
  background: var(--color-warm-gold); color: var(--color-white);
  font-size: 11px; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase;
  padding: 6px 14px; border-radius: var(--radius-pill);
}
.card-body { padding: var(--space-6); flex: 1; display: flex; flex-direction: column; }
.card-meta { display: flex; gap: var(--space-4); font-size: 12px; color: var(--color-muted-gray); margin-bottom: var(--space-3); align-items: center; flex-wrap: wrap; }
.card-meta span { display: inline-flex; align-items: center; gap: 5px; }
.card-title { font-size: 18px; font-weight: 700; color: var(--color-navy); margin-bottom: var(--space-3); line-height: 1.4; }
.card-text { font-size: 14px; color: var(--color-dark-gray); line-height: 1.6; flex: 1; }
.card-link {
  margin-top: var(--space-5);
  color: var(--color-teal-green); font-weight: 700; font-size: 14px;
  display: inline-flex; align-items: center; gap: 6px;
  transition: gap 0.3s ease, color 0.3s ease;
}
.card-link:hover { gap: 10px; color: var(--color-forest-green); }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-4); }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-6); }
@media (max-width: 992px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 576px) { .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; } }

/* ===================== PRAYER TIMES (Jadwal Sholat Section / Page) ===================== */
.prayer-section { background: linear-gradient(160deg, #03402A, #062418); position: relative; overflow: hidden; }
.prayer-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: var(--space-4); margin-top: var(--space-10); }
.prayer-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border-white-soft);
  border-radius: var(--radius-card);
  padding: var(--space-6) var(--space-3);
  text-align: center;
  transition: all 0.35s ease;
}
.prayer-card.active {
  background: linear-gradient(160deg, var(--color-bright-gold), var(--color-warm-gold));
  border-color: transparent;
  animation: pulseGlow 2.4s ease-in-out infinite;
}
.prayer-card:hover:not(.active) { background: rgba(255,255,255,0.1); transform: translateY(-4px); }
.prayer-card .pc-icon { font-size: 26px; margin-bottom: var(--space-3); }
.prayer-card .pc-name { font-size: 13px; color: rgba(255,255,255,0.7); margin-bottom: 6px; font-weight: 600; letter-spacing: 0.5px; }
.prayer-card.active .pc-name { color: rgba(6,26,18,0.75); }
.prayer-card .pc-time { font-family: var(--font-display); font-size: 24px; font-weight: 800; color: var(--color-white); }
.prayer-card.active .pc-time { color: var(--color-forest-green); }

@media (max-width: 992px) { .prayer-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 576px) { .prayer-grid { grid-template-columns: repeat(2, 1fr); gap: var(--space-3); } }

.city-select-bar {
  display: flex; gap: var(--space-3); align-items: center; justify-content: center;
  margin-top: var(--space-8); flex-wrap: wrap;
}
.city-select-bar select {
  background: rgba(255,255,255,0.08); border: 1px solid var(--border-white-soft);
  color: var(--color-white); padding: 12px 20px; border-radius: var(--radius-form);
  font-size: 14px; min-width: 220px;
}
.city-select-bar select option { color: var(--color-navy); }

/* ===================== TESTIMONIAL / QUOTE ===================== */
.quote-section { background: var(--color-light-gray); text-align: center; }
.quote-mark { font-family: var(--font-display); font-size: 80px; color: var(--color-bright-gold); line-height: 1; margin-bottom: var(--space-4); }
.quote-text { font-family: var(--font-display); font-size: 28px; color: var(--color-forest-green); font-weight: 700; max-width: 800px; margin: 0 auto var(--space-5); line-height: 1.5; }
.quote-source { color: var(--color-dark-gray); font-size: 14px; }

/* ===================== FORMS ===================== */
.form-group { margin-bottom: var(--space-5); }
.form-label { display: block; font-size: 14.4px; font-weight: 600; color: var(--color-navy); margin-bottom: var(--space-2); }
.form-control {
  width: 100%;
  background: var(--color-light-gray);
  color: var(--color-charcoal);
  font-size: 14.4px;
  padding: 12px 15px;
  border-radius: var(--radius-form);
  border: 1px solid var(--border-green-soft);
  transition: all 0.25s ease;
}
.form-control:focus { outline: none; border-color: var(--color-forest-green); background: var(--color-white); box-shadow: 0 0 0 4px rgba(3,64,42,0.06); }
textarea.form-control { min-height: 155px; resize: vertical; }
.form-control:disabled { background: var(--color-border-light); color: var(--color-muted-gray); border-color: var(--color-border-medium); }

/* ===================== FOOTER ===================== */
.site-footer { background: var(--overlay-dark); color: rgba(255,255,255,0.75); padding-top: var(--space-18); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.3fr; gap: var(--space-10); padding-bottom: var(--space-12); }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: var(--space-5); color: var(--color-white); }
.footer-brand .logo-icon {
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, var(--color-bright-gold), var(--color-warm-gold));
  display: flex; align-items: center; justify-content: center; font-size: 22px;
}
.footer-brand strong { font-family: var(--font-display); font-size: 19px; }
.footer-col h6 { color: var(--color-bright-gold); margin-bottom: var(--space-5); font-size: 14px; }
.footer-col ul li { margin-bottom: var(--space-3); }
.footer-col ul li a { font-size: 14px; transition: color 0.25s ease, padding-left 0.25s ease; display: inline-block; }
.footer-col ul li a:hover { color: var(--color-bright-gold); padding-left: 4px; }
.footer-contact li { display: flex; gap: 10px; margin-bottom: var(--space-4); font-size: 13.5px; align-items: flex-start; }
.footer-social { display: flex; gap: var(--space-3); margin-top: var(--space-5); }
.footer-social a {
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--border-white-soft);
  display: flex; align-items: center; justify-content: center;
  transition: all 0.3s ease;
}
.footer-social a:hover { background: var(--color-bright-gold); color: var(--color-forest-green); transform: translateY(-3px); }
.footer-bottom {
  border-top: 1px solid var(--border-white-soft);
  padding: var(--space-5) 0;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px;
  font-size: 13px;
}

@media (max-width: 992px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 576px) { .footer-grid { grid-template-columns: 1fr; } }

/* ===================== PAGE HEADER (inner pages) ===================== */
.page-header {
  background: linear-gradient(160deg, #03402A 0%, #062418 100%);
  padding: var(--space-15) 0 var(--space-12);
  position: relative;
  overflow: hidden;
  text-align: center;
}
.page-header::before {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(circle at 15% 30%, rgba(241,200,78,0.10), transparent 40%);
}
.page-header h1 { font-size: 42px; position: relative; z-index: 2; }
.breadcrumb { display: flex; gap: 8px; justify-content: center; color: rgba(255,255,255,0.6); font-size: 13px; margin-top: var(--space-3); position: relative; z-index: 2; }
.breadcrumb a:hover { color: var(--color-bright-gold); }

/* ===================== UTILITIES ===================== */
.badge { display: inline-block; padding: 5px 14px; border-radius: var(--radius-pill); font-size: 11px; font-weight: 700; letter-spacing: 0.4px; text-transform: uppercase; }
.badge-gold { background: rgba(155,109,31,0.12); color: var(--color-warm-gold); }
.badge-green { background: rgba(25,135,84,0.12); color: var(--color-teal-green); }
.badge-cyan { background: rgba(13,202,240,0.12); color: #0a93a8; }
.divider-gold { width: 60px; height: 3px; background: var(--color-bright-gold); margin: var(--space-4) auto; border-radius: 3px; }

.empty-state { text-align: center; padding: var(--space-15) var(--space-5); color: var(--color-muted-gray); }
.empty-state .ei { font-size: 48px; margin-bottom: var(--space-4); opacity: 0.5; }

/* Back to top */
.back-to-top {
  position: fixed; bottom: 28px; right: 28px; z-index: 900;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--color-teal-green); color: var(--color-white);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(20px);
  transition: all 0.35s ease;
  font-size: 18px;
}
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--color-emerald); transform: translateY(-4px); }

/* Loading skeleton shimmer */
.skeleton {
  background: linear-gradient(90deg, var(--color-pale-gray) 25%, var(--color-border-light) 37%, var(--color-pale-gray) 63%);
  background-size: 400px 100%;
  animation: shimmer 1.4s ease infinite;
  border-radius: var(--radius-form);
}

/* Pagination */
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: var(--space-10); flex-wrap: wrap; }
.pagination a, .pagination span {
  min-width: 42px; height: 42px; padding: 0 12px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-form);
  border: 1px solid var(--border-gold-soft);
  font-size: 14px; color: var(--color-navy);
  transition: all 0.25s ease;
}
.pagination a:hover { background: var(--color-light-gray); border-color: var(--color-teal-green); }
.pagination .active { background: var(--color-teal-green); color: var(--color-white); border-color: var(--color-teal-green); }

/* Alert / flash message */
.alert { padding: 16px 20px; border-radius: var(--radius-form); margin-bottom: var(--space-5); font-size: 14px; display: flex; align-items: center; gap: 10px; animation: fadeInUp 0.4s ease both; }
.alert-success { background: rgba(25,135,84,0.1); color: #0f5c39; border: 1px solid rgba(25,135,84,0.25); }
.alert-error { background: rgba(220,53,69,0.08); color: #a02331; border: 1px solid rgba(220,53,69,0.2); }

/* Gallery lightbox */
.gallery-item { cursor: pointer; }
.lightbox-overlay {
  display: none; position: fixed; inset: 0; background: rgba(6,26,18,0.92); z-index: 2000;
  align-items: center; justify-content: center; padding: var(--space-6);
  animation: fadeIn 0.3s ease;
}
.lightbox-overlay.open { display: flex; }
.lightbox-content { max-width: 900px; width: 100%; animation: scaleIn 0.35s ease; }
.lightbox-content img { width: 100%; border-radius: var(--radius-form); max-height: 80vh; object-fit: contain; background: #000; }
.lightbox-caption { color: var(--color-white); text-align: center; margin-top: var(--space-4); font-size: 14px; }
.lightbox-close { position: absolute; top: 24px; right: 32px; color: var(--color-white); font-size: 32px; width: 44px; height: 44px; }

/* Map embed wrapper */
.map-wrap { border-radius: var(--radius-card); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--border-gold-soft); }
.map-wrap iframe { width: 100%; height: 380px; border: 0; display: block; }

/* Finance table */
.table-wrap { overflow-x: auto; border-radius: var(--radius-card); border: 1px solid var(--border-gold-soft); box-shadow: var(--shadow-sm); }
table.fin-table { width: 100%; border-collapse: collapse; background: var(--color-white); min-width: 640px; }
table.fin-table th { background: var(--color-forest-green); color: var(--color-white); text-align: left; padding: 16px 20px; font-size: 13px; font-weight: 700; }
table.fin-table td { padding: 14px 20px; border-bottom: 1px solid var(--color-border-light); font-size: 14px; color: var(--color-navy); }
table.fin-table tr:last-child td { border-bottom: none; }
table.fin-table tr:hover td { background: var(--color-light-gray); }
.amount-in { color: var(--color-teal-green); font-weight: 700; }
.amount-out { color: var(--color-error); font-weight: 700; }

.summary-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-4); margin-bottom: var(--space-10); }
@media (max-width: 768px) { .summary-cards { grid-template-columns: 1fr; } }

/* Org chart for Pengurus */
.org-card { text-align: center; padding: var(--space-6) var(--space-4); }
.org-photo {
  width: 110px; height: 110px; border-radius: 50%;
  margin: 0 auto var(--space-4);
  background: var(--color-pale-gray);
  overflow: hidden;
  border: 3px solid var(--color-bright-gold);
}
.org-photo img { width: 100%; height: 100%; object-fit: cover; }
.org-name { font-weight: 700; font-size: 16px; color: var(--color-navy); margin-bottom: 4px; }
.org-role { color: var(--color-warm-gold); font-size: 13px; font-weight: 600; }

/* Activity timeline (Kegiatan) */
.activity-list { display: flex; flex-direction: column; gap: var(--space-5); }
.activity-row {
  display: flex; gap: var(--space-5);
  background: var(--color-white); border: 1px solid var(--border-gold-soft);
  border-radius: var(--radius-card); padding: var(--space-6);
  box-shadow: var(--shadow-sm); transition: all 0.3s ease;
  align-items: center;
}
.activity-row:hover { box-shadow: var(--shadow-md); transform: translateX(6px); }
.activity-date-box {
  flex-shrink: 0; width: 80px; height: 80px;
  background: var(--color-forest-green); color: var(--color-white);
  border-radius: var(--radius-icon);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.activity-date-box .ad-day { font-family: var(--font-display); font-size: 26px; font-weight: 800; line-height: 1; }
.activity-date-box .ad-month { font-size: 11px; text-transform: uppercase; letter-spacing: 0.5px; margin-top: 4px; }
.activity-info { flex: 1; }
.activity-info h5 { margin-bottom: 6px; }
.activity-info .ai-meta { display: flex; gap: var(--space-4); font-size: 13px; color: var(--color-dark-gray); flex-wrap: wrap; }
.activity-info .ai-meta span { display: inline-flex; align-items: center; gap: 5px; }

@media (max-width: 576px) {
  .activity-row { flex-direction: column; align-items: flex-start; }
  .activity-date-box { width: 100%; height: auto; flex-direction: row; gap: 8px; padding: 10px; }
}

/* Filter tabs */
.filter-tabs { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-bottom: var(--space-10); }
.filter-tab {
  padding: 10px 22px; border-radius: var(--radius-pill);
  border: 1px solid var(--border-gold-soft);
  font-size: 14px; font-weight: 600; color: var(--color-navy);
  transition: all 0.3s ease;
}
.filter-tab:hover { border-color: var(--color-teal-green); color: var(--color-teal-green); }
.filter-tab.active { background: var(--color-teal-green); color: var(--color-white); border-color: var(--color-teal-green); }

/* ===================== KHUTBAH (Naskah Khutbah) ===================== */
.khutbah-card {
  background: var(--color-white);
  border: 1px solid var(--border-gold-soft);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-sm);
  padding: var(--space-8);
  transition: box-shadow 0.35s ease, transform 0.35s ease;
}
.khutbah-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.khutbah-icon {
  width: 52px; height: 52px; border-radius: var(--radius-icon);
  background: var(--color-warm-gold); color: var(--color-white);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; margin-bottom: var(--space-5);
}
.khutbah-card .card-meta { margin-bottom: var(--space-3); }
.khutbah-card .card-title { font-size: 19px; margin-bottom: var(--space-2); }
.khutbah-khatib { font-size: 13.5px; color: var(--color-warm-gold); font-weight: 600; margin-bottom: var(--space-4); }
.khutbah-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: var(--space-5); }
.khutbah-pdf-frame {
  width: 100%; height: 700px; max-height: 80vh;
  border: 1px solid var(--color-border-medium);
  border-radius: var(--radius-form);
  margin-top: var(--space-5);
  background: var(--color-light-gray);
}
@media (max-width: 576px) { .khutbah-pdf-frame { height: 480px; } }
