/* ============================================================================
 * PROYEK : SISTEM INFORMASI & PORTAL RESMI REMAJA MASJID MIFTAHUL JANNAH
 * Lokasi : Parit Tengah Baru, Desa Sungai Malaya, Kec. Sungai Ambawang, Kubu Raya
 * File   : css/style.css
 * Peran  : Master Responsive Design System - Modern Islamic Aesthetic
 * Author : ZianBOT by zianxy
 * ============================================================================
 */

/* ----------------------------------------------------------------------------
 * 1. MODERN DESIGN TOKENS & CSS VARIABLES
 * ---------------------------------------------------------------------------- */
:root {
  /* Palet Hijau Zamrud Islami Modern */
  --primary-50: #f0fdf4;
  --primary-100: #dcfce7;
  --primary-200: #bbf7d0;
  --primary-300: #86efac;
  --primary-400: #4ade80;
  --primary-500: #22c55e;
  --primary-600: #16a34a;
  --primary-700: #15803d;
  --primary-800: #166534;
  --primary-900: #14532d;
  --primary-950: #052e16;

  /* Emerald Dalam & Variasi Aksen */
  --emerald-deep: #064e3b;
  --emerald-dark: #065f46;
  --emerald-main: #059669;
  --emerald-light: #10b981;
  --emerald-subtle: #ecfdf5;

  /* Emas & Warm Amber */
  --gold-50: #fffbeb;
  --gold-100: #fef3c7;
  --gold-200: #fde68a;
  --gold-300: #fcd34d;
  --gold-400: #fbbf24;
  --gold-500: #f59e0b;
  --gold-600: #d97706;
  --gold-700: #b45309;

  /* Netral Bersih & Elegan */
  --neutral-white: #ffffff;
  --neutral-50: #f8fafc;
  --neutral-100: #f1f5f9;
  --neutral-200: #e2e8f0;
  --neutral-300: #cbd5e1;
  --neutral-400: #94a3b8;
  --neutral-500: #64748b;
  --neutral-600: #475569;
  --neutral-700: #334155;
  --neutral-800: #1e293b;
  --neutral-900: #0f172a;

  /* Status Colors */
  --success-bg: #dcfce7;
  --success-text: #166534;
  --warning-bg: #fef3c7;
  --warning-text: #92400e;
  --danger-bg: #fee2e2;
  --danger-text: #991b1b;
  --info-bg: #e0f2fe;
  --info-text: #075985;

  /* Tipografi */
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-arabic: 'Amiri', serif;

  /* Modern Layered Shadows */
  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-sm: 0 2px 5px -1px rgba(6, 78, 59, 0.06), 0 1px 3px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 6px 16px -3px rgba(6, 78, 59, 0.08), 0 2px 6px -1px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 16px 32px -6px rgba(6, 78, 59, 0.12), 0 4px 10px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 24px 44px -8px rgba(6, 78, 59, 0.16), 0 8px 16px -4px rgba(0, 0, 0, 0.06);
  --shadow-gold: 0 8px 24px -4px rgba(245, 158, 11, 0.28);
  --shadow-glow: 0 0 24px rgba(16, 185, 129, 0.25);

  /* Kelengkungan Sudut Modern (Consistent Math) */
  --radius-xs: 6px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  /* Transisi Halus */
  --tr-fast: 0.16s cubic-bezier(0.16, 1, 0.3, 1);
  --tr-normal: 0.26s cubic-bezier(0.16, 1, 0.3, 1);
  --tr-slow: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

body {
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.65;
  color: var(--neutral-800);
  background-color: #f8fafc;
  background-image: 
    radial-gradient(at 100% 0%, rgba(16, 185, 129, 0.06) 0px, transparent 50%),
    radial-gradient(at 0% 50%, rgba(245, 158, 11, 0.04) 0px, transparent 50%),
    radial-gradient(at 100% 100%, rgba(5, 150, 105, 0.05) 0px, transparent 50%);
  background-attachment: fixed;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: all var(--tr-fast);
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #10b981;
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
  background: #059669;
}

/* ----------------------------------------------------------------------------
 * 3. LAYOUT CONTAINER & UTILITY CLASSES
 * ---------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.d-flex { display: flex; }
.flex-column { flex-direction: column; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }

/* ----------------------------------------------------------------------------
 * 4. TOP INFO BAR
 * ---------------------------------------------------------------------------- */
.top-bar {
  background: linear-gradient(90deg, #043d2e 0%, #064e3b 50%, #043d2e 100%);
  color: rgba(255, 255, 255, 0.92);
  font-size: 12.5px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  z-index: 1001;
}

.top-bar-inner {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
}

@media (min-width: 768px) {
  .top-bar-inner {
    flex-direction: row;
    gap: 16px;
  }
}

.top-bar-left, .top-bar-right {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

.top-info-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
  letter-spacing: 0.1px;
}

.top-info-item svg {
  width: 14px;
  height: 14px;
  fill: var(--gold-400);
  flex-shrink: 0;
}

.top-bar-badge {
  background: rgba(251, 191, 36, 0.18);
  border: 1px solid var(--gold-400);
  color: var(--gold-300);
  padding: 3px 12px;
  border-radius: var(--radius-full);
  font-size: 11.5px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all var(--tr-fast);
}

.top-bar-badge:hover {
  background: var(--gold-400);
  color: var(--neutral-900);
  transform: translateY(-1px);
}

/* ----------------------------------------------------------------------------
 * 5. MODERN STICKY HEADER & NAVBAR
 * ---------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.85);
  box-shadow: 0 4px 20px -2px rgba(6, 78, 59, 0.05);
  transition: all var(--tr-normal);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-logo-img {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  object-fit: cover;
  border: 2px solid var(--primary-100);
  box-shadow: 0 4px 10px rgba(6, 78, 59, 0.12);
  transition: transform var(--tr-fast);
}

.brand-wrapper:hover .brand-logo-img {
  transform: scale(1.05);
  border-color: var(--emerald-main);
}

.brand-title-group h1 {
  font-size: 15px;
  font-weight: 800;
  color: var(--emerald-deep);
  line-height: 1.25;
  letter-spacing: -0.2px;
  white-space: nowrap;
}

.brand-title-group p {
  font-size: 11.5px;
  color: var(--neutral-500);
  font-weight: 500;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 300px;
}

/* Desktop Navigation */
.nav-links-desktop {
  display: none;
  align-items: center;
  gap: 4px;
}

@media (min-width: 992px) {
  .nav-links-desktop {
    display: flex;
  }
}

/* Header Actions & Search Component */
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mobile-action-buttons {
  display: flex;
  align-items: center;
  gap: 8px;
}

@media (min-width: 992px) {
  .mobile-action-buttons {
    display: none;
  }
}

.header-search-wrap {
  display: none;
  position: relative;
}

@media (min-width: 992px) {
  .header-search-wrap {
    display: block;
  }
}

.search-input-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background-color: var(--neutral-100);
  border: 1.5px solid var(--neutral-300);
  border-radius: var(--radius-full);
  padding: 6px 13px;
  height: 38px;
  width: 220px;
  transition: all var(--tr-fast);
}

.search-input-box:focus-within {
  background-color: #ffffff;
  border-color: var(--emerald-main);
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.15);
  width: 270px;
}

.search-box-icon {
  width: 16px;
  height: 16px;
  fill: var(--neutral-400);
  flex-shrink: 0;
  transition: fill var(--tr-fast);
}

.search-input-box:focus-within .search-box-icon {
  fill: var(--emerald-main);
}

.header-search-input {
  border: none;
  background: transparent;
  outline: none;
  font-size: 13px;
  color: var(--neutral-900);
  width: 100%;
  font-family: inherit;
  font-weight: 500;
}

.header-search-input::placeholder {
  color: var(--neutral-400);
  font-size: 12.5px;
}

.search-clear-btn {
  background: none;
  border: none;
  color: var(--neutral-400);
  font-size: 18px;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color var(--tr-fast);
}

.search-clear-btn:hover {
  color: var(--neutral-800);
}

.search-shortcut-badge {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--neutral-500);
  background-color: var(--neutral-200);
  border-radius: 4px;
  padding: 2px 5px;
  letter-spacing: 0.5px;
  line-height: 1;
  pointer-events: none;
  flex-shrink: 0;
  user-select: none;
}

.search-input-box:focus-within .search-shortcut-badge {
  display: none;
}

/* Dropdown Search Results */
.header-search-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 480px;
  max-height: 520px;
  background: #ffffff;
  border: 1px solid var(--neutral-200);
  border-radius: var(--radius-xl);
  box-shadow: 0 20px 40px -6px rgba(15, 23, 42, 0.16), 0 6px 16px -2px rgba(6, 78, 59, 0.08);
  z-index: 1000;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: dropdownFade 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes dropdownFade {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Mobile Search Button */
.mobile-search-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 8px;
  border-radius: var(--radius-sm);
  background: var(--neutral-100);
  cursor: pointer;
  border: 1px solid var(--neutral-200);
  color: var(--emerald-deep);
  transition: all var(--tr-fast);
}

.mobile-search-btn svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.mobile-search-btn:hover {
  background: var(--primary-50);
  color: var(--emerald-main);
  border-color: var(--primary-200);
}

/* Mobile Drawer Search Bar */
.mobile-drawer-search {
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--neutral-200);
}

.mobile-drawer-search .search-input-box {
  width: 100%;
}

/* Search Modal Overlay (Mobile / Command palette) */
.search-modal-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 99999;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 16px;
  animation: fadeIn 0.2s ease-out forwards;
}

.search-modal-container {
  background: #ffffff;
  width: 100%;
  max-width: 620px;
  margin-top: 40px;
  border-radius: var(--radius-xl);
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.25);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 80px);
  animation: modalScale 0.22s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@media (max-width: 640px) {
  .search-modal-backdrop {
    padding: 0;
  }
  .search-modal-container {
    margin-top: 0;
    max-height: 100vh;
    height: 100vh;
    border-radius: 0;
  }
}

.search-modal-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--neutral-200);
  background: #ffffff;
}

.modal-search-box {
  width: 100% !important;
  height: 44px;
  padding: 8px 16px;
}

.modal-search-input {
  border: none;
  background: transparent;
  outline: none;
  font-size: 14.5px;
  color: var(--neutral-900);
  width: 100%;
  font-family: inherit;
  font-weight: 500;
}

.modal-search-input::placeholder {
  color: var(--neutral-400);
}

.search-modal-close-btn {
  background: none;
  border: none;
  color: var(--neutral-600);
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  transition: all var(--tr-fast);
}

.search-modal-close-btn:hover {
  background: var(--neutral-100);
  color: var(--neutral-900);
}

/* Results Content Inside Dropdown & Modal */
.search-results-panel {
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  max-height: 440px;
}

.search-filter-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  background: var(--neutral-50);
  border-bottom: 1px solid var(--neutral-200);
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
}

.search-filter-tabs::-webkit-scrollbar {
  display: none;
}

.search-filter-chip {
  font-size: 12px;
  font-weight: 600;
  color: var(--neutral-600);
  background: #ffffff;
  border: 1px solid var(--neutral-200);
  padding: 5px 12px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--tr-fast);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  user-select: none;
}

.search-filter-chip:hover {
  border-color: var(--emerald-main);
  color: var(--emerald-deep);
}

.search-filter-chip.active {
  background: var(--primary-100);
  color: var(--emerald-deep);
  border-color: var(--primary-300);
  font-weight: 700;
}

.search-results-list {
  padding: 4px 0;
  display: flex;
  flex-direction: column;
}

.search-result-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--neutral-100);
  cursor: pointer;
  transition: background var(--tr-fast);
  text-decoration: none;
}

.search-result-item:last-child {
  border-bottom: none;
}

.search-result-item:hover,
.search-result-item.selected {
  background-color: var(--primary-50);
}

.search-result-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.search-badge {
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.search-badge-kegiatan {
  background-color: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.search-badge-pengumuman {
  background-color: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
}

.search-badge-prestasi {
  background-color: #eff6ff;
  color: #1e40af;
  border: 1px solid #bfdbfe;
}

.search-badge-galeri {
  background-color: #f5f3ff;
  color: #5b21b6;
  border: 1px solid #ddd6fe;
}

.search-badge-donasi {
  background-color: #fdf2f8;
  color: #9d174d;
  border: 1px solid #fbcfe8;
}

.search-result-date {
  font-size: 11.5px;
  color: var(--neutral-500);
  font-weight: 500;
  white-space: nowrap;
}

.search-result-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--neutral-900);
  line-height: 1.35;
  margin-top: 2px;
}

.search-result-desc {
  font-size: 12.5px;
  color: var(--neutral-600);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.search-result-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 4px;
  font-size: 11.5px;
  color: var(--emerald-dark);
  font-weight: 600;
}

.search-highlight {
  background-color: #fef08a;
  color: #854d0e;
  padding: 0 2px;
  border-radius: 2px;
  font-weight: 700;
}

/* Empty & Suggestion States */
.search-empty-state {
  padding: 36px 20px;
  text-align: center;
  color: var(--neutral-500);
}

.search-empty-icon {
  width: 44px;
  height: 44px;
  fill: var(--neutral-300);
  margin: 0 auto 12px;
}

.search-empty-title {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--neutral-700);
  margin-bottom: 6px;
}

.search-empty-text {
  font-size: 12.5px;
  color: var(--neutral-500);
  max-width: 340px;
  margin: 0 auto;
  line-height: 1.5;
}

.search-suggestions-box {
  padding: 16px 20px 20px;
}

.search-suggestions-title {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--neutral-500);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.search-suggestion-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.search-suggestion-chip {
  font-size: 12px;
  font-weight: 600;
  color: var(--neutral-700);
  background: var(--neutral-100);
  border: 1px solid var(--neutral-200);
  padding: 6px 13px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--tr-fast);
  white-space: nowrap;
}

.search-suggestion-chip:hover {
  background: var(--primary-50);
  color: var(--emerald-deep);
  border-color: var(--primary-300);
}

/* Footer of Search Results Dropdown */
.search-dropdown-footer {
  padding: 10px 16px;
  background: var(--neutral-50);
  border-top: 1px solid var(--neutral-200);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11.5px;
  color: var(--neutral-500);
}

.nav-link {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--neutral-700);
  padding: 7px 13px;
  border-radius: var(--radius-full);
  position: relative;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1.2;
  letter-spacing: 0.1px;
  transition: all var(--tr-fast);
}

.nav-link:hover {
  color: var(--emerald-main);
  background: var(--primary-50);
}

.nav-link.active {
  color: var(--emerald-deep);
  background: var(--primary-100);
  font-weight: 700;
}

.nav-link.active::after {
  display: none;
}

.nav-cta-btn {
  background: linear-gradient(135deg, var(--emerald-main) 0%, var(--emerald-dark) 100%);
  color: var(--neutral-white);
  font-size: 13px;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.25);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-left: 6px;
  transition: all var(--tr-fast);
}

.nav-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(5, 150, 105, 0.35);
  color: var(--neutral-white);
}

/* Mobile Toggle Hamburger */
.mobile-toggle-btn {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  border-radius: var(--radius-sm);
  background: var(--neutral-100);
  cursor: pointer;
  border: 1px solid var(--neutral-200);
}

@media (min-width: 992px) {
  .mobile-toggle-btn {
    display: none;
  }
}

.mobile-toggle-btn span {
  display: block;
  height: 2.5px;
  width: 100%;
  background-color: var(--emerald-deep);
  border-radius: 2px;
  transition: all var(--tr-fast);
}

/* Mobile Drawer */
.mobile-menu-drawer {
  display: none;
  background: #ffffff;
  border-top: 1px solid var(--neutral-200);
  border-bottom: 1px solid var(--neutral-200);
  padding: 16px 20px 24px;
  box-shadow: var(--shadow-lg);
}

.mobile-menu-drawer.show {
  display: block;
  animation: slideDown 0.25s ease-out forwards;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.mobile-nav-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mobile-nav-link {
  display: block;
  padding: 10px 14px;
  font-weight: 600;
  color: var(--neutral-800);
  border-radius: var(--radius-md);
  font-size: 14.5px;
}

.mobile-nav-link.active, .mobile-nav-link:hover {
  background-color: var(--primary-50);
  color: var(--emerald-main);
}

/* ----------------------------------------------------------------------------
 * 6. HERO SECTION & PRAYER SCHEDULE WIDGET
 * ---------------------------------------------------------------------------- */
.hero-section {
  position: relative;
  background-color: #032b21;
  background-image: 
    radial-gradient(circle at 85% 20%, rgba(16, 185, 129, 0.35) 0%, transparent 55%),
    radial-gradient(circle at 10% 80%, rgba(245, 158, 11, 0.15) 0%, transparent 50%),
    linear-gradient(135deg, rgba(4, 61, 46, 0.88) 0%, rgba(3, 43, 33, 0.92) 100%),
    url('../assets/images/masjid_hero.jpg');
  background-size: cover;
  background-position: center;
  color: var(--neutral-white);
  padding: 68px 0 100px;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}

@media (min-width: 992px) {
  .hero-grid {
    grid-template-columns: 1.25fr 0.9fr;
  }
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(251, 191, 36, 0.15);
  border: 1px solid rgba(251, 191, 36, 0.5);
  color: var(--gold-300);
  font-size: 12.5px;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  margin-bottom: 20px;
  backdrop-filter: blur(8px);
}

.hero-title {
  font-size: 32px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin-bottom: 18px;
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 44px;
  }
}

.gold-accent {
  background: linear-gradient(120deg, #fcd34d 0%, #fbbf24 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline;
}

.hero-desc {
  font-size: 15.5px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 30px;
  max-width: 600px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn-hero-gold {
  background: linear-gradient(135deg, #fbbf24 0%, #d97706 100%);
  color: #0f172a;
  font-weight: 800;
  font-size: 14px;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-gold);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all var(--tr-fast);
}

.btn-hero-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px -3px rgba(245, 158, 11, 0.45);
  color: #0f172a;
}

.btn-hero-outline {
  background: rgba(255, 255, 255, 0.12);
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  color: var(--neutral-white);
  font-weight: 700;
  font-size: 14px;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  backdrop-filter: blur(8px);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all var(--tr-fast);
}

.btn-hero-outline:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: #ffffff;
  color: #ffffff;
  transform: translateY(-2px);
}

/* Prayer Widget Box */
.prayer-widget-box {
  background: rgba(6, 78, 59, 0.65);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-xl);
  padding: 24px;
  box-shadow: var(--shadow-xl);
  color: var(--neutral-white);
}

.prayer-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.prayer-card-top h3 {
  font-size: 16px;
  font-weight: 800;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.hijri-pill {
  background: rgba(251, 191, 36, 0.18);
  border: 1px solid rgba(251, 191, 36, 0.4);
  color: var(--gold-300);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.next-prayer-highlight {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.25) 0%, rgba(6, 78, 59, 0.45) 100%);
  border: 1px solid rgba(52, 211, 153, 0.35);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  position: relative;
  overflow: hidden;
}

.next-prayer-highlight::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: #10b981;
}

.next-prayer-label {
  font-size: 12px;
  color: var(--gold-300);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.next-prayer-clock {
  font-size: 22px;
  font-weight: 800;
  color: #ffffff;
  margin-top: 2px;
}

.countdown-badge {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 6px 14px;
  border-radius: var(--radius-md);
  font-family: monospace;
  font-size: 15px;
  font-weight: 800;
  color: #a7f3d0;
  display: flex;
  align-items: center;
  gap: 6px;
  position: relative;
}

.countdown-badge::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.7);
  animation: livePulse 1.8s infinite;
}

@keyframes livePulse {
  0% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.7); }
  70% { box-shadow: 0 0 0 8px rgba(74, 222, 128, 0); }
  100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
}

.prayer-grid-slots {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}

.prayer-slot-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  padding: 10px 6px;
  text-align: center;
  transition: all var(--tr-fast);
}

.prayer-slot-card:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.prayer-slot-card.is-active {
  background: linear-gradient(180deg, rgba(251, 191, 36, 0.25) 0%, rgba(217, 119, 6, 0.35) 100%);
  border: 1.5px solid var(--gold-400);
  box-shadow: 0 0 14px rgba(245, 158, 11, 0.3);
}

.slot-name {
  font-size: 11px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 4px;
  text-transform: uppercase;
}

.prayer-slot-card.is-active .slot-name {
  color: var(--gold-300);
}

.slot-time {
  font-size: 13.5px;
  font-weight: 800;
  color: #ffffff;
  font-family: monospace;
}

.prayer-card-footer {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.65);
  text-align: center;
  padding-top: 8px;
}

/* ----------------------------------------------------------------------------
 * 7. PAGE HERO (INNER PAGES BANNER)
 * ---------------------------------------------------------------------------- */
.page-hero {
  position: relative;
  background-color: #032b21;
  background-image: 
    radial-gradient(circle at 80% 20%, rgba(16, 185, 129, 0.28) 0%, transparent 60%),
    radial-gradient(circle at 20% 80%, rgba(245, 158, 11, 0.12) 0%, transparent 50%),
    linear-gradient(135deg, rgba(4, 61, 46, 0.96) 0%, rgba(3, 43, 33, 0.98) 100%);
  color: var(--neutral-white);
  padding: 48px 0 54px;
  border-bottom: 1px solid rgba(226, 232, 240, 0.15);
}

.breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 4px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 16px;
  backdrop-filter: blur(8px);
}

.breadcrumb a {
  color: var(--gold-300);
  font-weight: 600;
}

.breadcrumb a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.page-hero-title {
  font-size: 28px;
  font-weight: 800;
  line-height: 1.25;
  color: #ffffff;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

@media (min-width: 768px) {
  .page-hero-title {
    font-size: 38px;
  }
}

.page-hero-desc {
  font-size: 15px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.85);
  max-width: 760px;
}

.trophy-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(251, 191, 36, 0.2);
  border: 1px solid var(--gold-400);
  color: var(--gold-300);
  font-size: 12px;
  font-weight: 800;
  padding: 4px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 12px;
}

/* ----------------------------------------------------------------------------
 * 8. FLOATING BENTO HIGHLIGHT STRIP
 * ---------------------------------------------------------------------------- */
.highlight-strip-wrap {
  position: relative;
  z-index: 20;
  margin-top: -42px;
  margin-bottom: 40px;
}

.highlight-strip-inner {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: var(--radius-xl);
  padding: 16px 20px;
  box-shadow: 0 10px 30px -5px rgba(6, 78, 59, 0.08), 0 4px 12px rgba(0, 0, 0, 0.04);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

@media (min-width: 768px) {
  .highlight-strip-inner {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 992px) {
  .highlight-strip-inner {
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
  }
}

.highlight-box {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  background: #f8fafc;
  border: 1px solid #f1f5f9;
  transition: all var(--tr-fast);
}

.highlight-box:hover {
  background: var(--primary-50);
  border-color: var(--primary-200);
  transform: translateY(-2px);
}

.highlight-icon-box {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--primary-100) 0%, var(--primary-200) 100%);
  color: var(--emerald-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform var(--tr-fast);
}

.highlight-box:hover .highlight-icon-box {
  transform: scale(1.08);
  background: var(--emerald-main);
  color: #ffffff;
}

.highlight-icon-box svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.highlight-texts h4 {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--neutral-900);
  line-height: 1.25;
}

.highlight-texts p {
  font-size: 11.5px;
  color: var(--neutral-500);
  margin-top: 2px;
}

/* ----------------------------------------------------------------------------
 * 9. SECTION HEADERS & GENERAL SECTIONS
 * ---------------------------------------------------------------------------- */
.section {
  padding: 72px 0;
  position: relative;
}

.section-alt {
  background-color: #f1f5f9;
  background-image: radial-gradient(#cbd5e1 0.75px, transparent 0.75px);
  background-size: 24px 24px;
  border-top: 1px solid var(--neutral-200);
  border-bottom: 1px solid var(--neutral-200);
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 46px;
}

.section-tag {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 800;
  color: var(--emerald-main);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  background: var(--primary-100);
  padding: 4px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 12px;
}

.section-title {
  font-size: 26px;
  font-weight: 800;
  color: var(--emerald-deep);
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

@media (min-width: 768px) {
  .section-title {
    font-size: 34px;
  }
}

.section-desc {
  font-size: 15px;
  color: var(--neutral-600);
  line-height: 1.65;
}

/* ----------------------------------------------------------------------------
 * 10. WELCOME / ABOUT SECTION
 * ---------------------------------------------------------------------------- */
.welcome-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}

@media (min-width: 992px) {
  .welcome-grid {
    grid-template-columns: 1.05fr 1fr;
    gap: 52px;
  }
}

.welcome-photo-wrap {
  position: relative;
}

.welcome-photo-img {
  width: 100%;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  object-fit: cover;
  border: 4px solid var(--neutral-white);
  transition: transform var(--tr-slow);
}

.welcome-photo-wrap:hover .welcome-photo-img {
  transform: scale(1.015);
}

.welcome-badge-float {
  position: absolute;
  bottom: -20px;
  right: -10px;
  background: linear-gradient(135deg, #064e3b 0%, #043d2e 100%);
  color: var(--neutral-white);
  padding: 16px 24px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  border: 2px solid var(--gold-400);
  display: flex;
  align-items: center;
  gap: 14px;
}

@media (max-width: 576px) {
  .welcome-badge-float {
    position: static;
    margin-top: 16px;
  }
}

.welcome-badge-float h4 {
  font-size: 26px;
  font-weight: 800;
  color: var(--gold-300);
  line-height: 1;
}

.welcome-badge-float p {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
  line-height: 1.35;
}

.stats-counter-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin: 28px 0;
}

@media (min-width: 576px) {
  .stats-counter-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stat-box {
  background-color: #ffffff;
  border: 1px solid var(--neutral-200);
  padding: 16px 12px;
  border-radius: var(--radius-md);
  text-align: center;
  box-shadow: var(--shadow-xs);
  transition: all var(--tr-fast);
}

.stat-box:hover {
  transform: translateY(-3px);
  border-color: var(--emerald-main);
  box-shadow: var(--shadow-md);
  background: var(--primary-50);
}

.stat-num {
  font-size: 26px;
  font-weight: 800;
  color: var(--emerald-main);
  line-height: 1.15;
}

.stat-label {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--neutral-600);
  margin-top: 4px;
}

/* ----------------------------------------------------------------------------
 * 11. UNIVERSAL CARD & GRID SYSTEM (FOR ALL PAGES & DYNAMIC INJECTIONS)
 * ---------------------------------------------------------------------------- */
.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 768px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .card-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--neutral-200);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all var(--tr-normal);
  position: relative;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(5, 150, 105, 0.4);
}

.card-img-wrapper {
  position: relative;
  height: 200px;
  background-color: var(--neutral-100);
  overflow: hidden;
}

.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--tr-slow);
}

.card:hover .card-img {
  transform: scale(1.06);
}

.card-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-sm);
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.card-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
}

.badge-mendatang {
  background-color: #fffbeb;
  color: #b45309;
  border: 1px solid #fde68a;
}
.badge-mendatang::before { background-color: #f59e0b; }

.badge-aktif {
  background-color: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}
.badge-aktif::before { background-color: #10b981; }

.badge-selesai {
  background-color: #f1f5f9;
  color: #475569;
  border: 1px solid #cbd5e1;
}
.badge-selesai::before { background-color: #94a3b8; }

.card-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 12px;
  color: var(--emerald-main);
  font-weight: 700;
  margin-bottom: 10px;
}

.card-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.card-meta-item svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.card-title {
  font-size: 17px;
  font-weight: 800;
  color: var(--neutral-900);
  line-height: 1.35;
  margin-bottom: 10px;
  letter-spacing: -0.2px;
}

.card-text {
  font-size: 13.5px;
  color: var(--neutral-600);
  line-height: 1.6;
  margin-bottom: 16px;
  flex-grow: 1;
}

.card-footer {
  border-top: 1px solid var(--neutral-100);
  padding-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--neutral-500);
}

.btn-link {
  color: var(--emerald-main);
  font-weight: 700;
  font-size: 12.5px;
}

/* Program Card (Academics/Divisions) */
.programs-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 768px) {
  .programs-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .programs-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.program-card {
  background: #ffffff;
  border: 1px solid var(--neutral-200);
  border-radius: var(--radius-lg);
  padding: 26px 22px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: all var(--tr-normal);
  position: relative;
  overflow: hidden;
}

.program-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--emerald-main), var(--gold-400));
  opacity: 0;
  transition: opacity var(--tr-fast);
}

.program-card:hover {
  transform: translateY(-6px);
  border-color: var(--emerald-main);
  box-shadow: var(--shadow-lg);
}

.program-card:hover::after {
  opacity: 1;
}

.program-icon-badge {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background-color: var(--primary-100);
  color: var(--emerald-main);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  transition: transform var(--tr-fast);
}

.program-card:hover .program-icon-badge {
  transform: scale(1.1);
  background: var(--emerald-main);
  color: #ffffff;
}

.program-icon-badge svg {
  width: 26px;
  height: 26px;
  fill: currentColor;
}

.program-title {
  font-size: 17px;
  font-weight: 800;
  color: var(--neutral-900);
  margin-bottom: 8px;
}

.program-desc {
  font-size: 13.5px;
  color: var(--neutral-600);
  line-height: 1.6;
  flex-grow: 1;
}

/* Facility Cards */
.facilities-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 576px) {
  .facilities-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .facilities-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.facility-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--neutral-200);
  transition: all var(--tr-normal);
  display: flex;
  flex-direction: column;
}

.facility-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--emerald-main);
}

.facility-img-box {
  position: relative;
  height: 180px;
  overflow: hidden;
}

.facility-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--tr-slow);
}

.facility-card:hover .facility-img-box img {
  transform: scale(1.08);
}

/* Member / Structure Cards */
.member-card {
  text-align: center;
  padding: 26px 20px;
}

.member-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  margin: 0 auto 16px;
  object-fit: cover;
  border: 3px solid var(--primary-200);
  box-shadow: var(--shadow-md);
  transition: transform var(--tr-fast);
}

.member-card:hover .member-avatar {
  transform: scale(1.06);
  border-color: var(--emerald-main);
}

.member-name {
  font-size: 16px;
  font-weight: 800;
  color: var(--neutral-900);
  margin-bottom: 4px;
}

.member-role {
  font-size: 13px;
  font-weight: 700;
  color: var(--emerald-main);
}

.member-divisi {
  font-size: 12px;
  color: var(--neutral-500);
  margin-top: 4px;
}

/* ----------------------------------------------------------------------------
 * 12. GALLERY GRID & FILTER TABS
 * ---------------------------------------------------------------------------- */
.filter-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
}

.filter-btn {
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 700;
  color: var(--neutral-600);
  background-color: #ffffff;
  border: 1px solid var(--neutral-200);
  transition: all var(--tr-fast);
}

.filter-btn:hover {
  color: var(--emerald-main);
  border-color: var(--emerald-main);
  background: var(--primary-50);
}

.filter-btn.active {
  background: var(--emerald-main);
  color: #ffffff;
  border-color: var(--emerald-main);
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.25);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

@media (min-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
}

@media (min-width: 992px) {
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 200px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--neutral-200);
  cursor: pointer;
  background: #000000;
}

.gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--tr-slow), opacity var(--tr-fast);
}

.gallery-item:hover .gallery-img {
  transform: scale(1.08);
  opacity: 0.85;
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(4, 61, 46, 0.92) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 16px;
  color: var(--neutral-white);
  transition: all var(--tr-fast);
}

.gallery-cat {
  font-size: 10.5px;
  font-weight: 800;
  color: var(--gold-300);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.gallery-title {
  font-size: 13.5px;
  font-weight: 800;
  line-height: 1.3;
  color: #ffffff;
}

/* ----------------------------------------------------------------------------
 * 13. DONATION, QRIS, & BANK CARDS
 * ---------------------------------------------------------------------------- */
.donasi-box-wrap {
  background: #ffffff;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--neutral-200);
  padding: 36px 28px;
}

.qris-display-box {
  background: linear-gradient(135deg, var(--primary-50) 0%, #ffffff 100%);
  border: 2px dashed var(--emerald-main);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: center;
}

.qris-image {
  max-width: 220px;
  margin: 0 auto 16px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  background-color: #ffffff;
  padding: 8px;
}

.bank-item-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  border: 1px solid var(--neutral-200);
  border-radius: var(--radius-md);
  background-color: var(--neutral-50);
  transition: all var(--tr-fast);
}

.bank-item-card:hover {
  background-color: var(--primary-50);
  border-color: var(--emerald-main);
}

.copy-btn {
  background-color: var(--primary-100);
  color: var(--emerald-dark);
  font-weight: 700;
  font-size: 12px;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  transition: all var(--tr-fast);
}

.copy-btn:hover {
  background-color: var(--emerald-main);
  color: var(--neutral-white);
}

/* ----------------------------------------------------------------------------
 * 14. FORMS & INPUTS
 * ---------------------------------------------------------------------------- */
.form-group {
  margin-bottom: 18px;
}

.form-label {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--neutral-800);
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--neutral-300);
  border-radius: var(--radius-md);
  background-color: var(--neutral-50);
  color: var(--neutral-900);
  font-size: 14px;
  transition: all var(--tr-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--emerald-main);
  background-color: #ffffff;
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.15);
}

textarea.form-control {
  resize: vertical;
  min-height: 110px;
}

.btn-primary-submit {
  width: 100%;
  background: linear-gradient(135deg, var(--emerald-main) 0%, var(--emerald-dark) 100%);
  color: var(--neutral-white);
  font-weight: 800;
  padding: 13px 20px;
  border-radius: var(--radius-md);
  font-size: 14.5px;
  box-shadow: 0 4px 14px rgba(5, 150, 105, 0.3);
  transition: all var(--tr-fast);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  cursor: pointer;
}

.btn-primary-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(5, 150, 105, 0.4);
}

/* ----------------------------------------------------------------------------
 * 15. CTA BANNER
 * ---------------------------------------------------------------------------- */
.cta-banner {
  background: linear-gradient(135deg, #043d2e 0%, #064e3b 50%, #032b21 100%);
  border-radius: var(--radius-xl);
  padding: 32px 36px;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-xl);
  border: 1px solid rgba(251, 191, 36, 0.3);
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #fbbf24, #10b981);
}

@media (min-width: 768px) {
  .cta-banner {
    flex-direction: row;
  }
}

.cta-left {
  display: flex;
  align-items: center;
  gap: 18px;
}

.cta-icon {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-md);
  background: rgba(251, 191, 36, 0.18);
  border: 1px solid var(--gold-400);
  color: var(--gold-300);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cta-icon svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
}

.cta-title {
  font-size: 20px;
  font-weight: 800;
  color: #ffffff;
}

.cta-desc {
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.85);
  margin-top: 4px;
  max-width: 560px;
}

.cta-btn {
  background: linear-gradient(135deg, #fbbf24 0%, #d97706 100%);
  color: #0f172a;
  font-weight: 800;
  font-size: 14px;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-gold);
  white-space: nowrap;
  transition: all var(--tr-fast);
}

.cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(245, 158, 11, 0.4);
}

/* ----------------------------------------------------------------------------
 * 16. SITE FOOTER
 * ---------------------------------------------------------------------------- */
.site-footer {
  background-color: #04241b;
  background-image: radial-gradient(circle at 50% 0%, rgba(16, 185, 129, 0.12) 0%, transparent 70%);
  color: rgba(255, 255, 255, 0.8);
  padding: 68px 0 28px;
  font-size: 13.5px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  margin-bottom: 40px;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1.35fr 1fr;
    gap: 56px;
    align-items: start;
  }
}

.footer-brand-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.footer-logo {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-brand-title h3 {
  font-size: 15px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.25;
}

.footer-desc {
  font-size: 13px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 18px;
}

.footer-socials {
  display: flex;
  gap: 10px;
}

.social-icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--tr-fast);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.social-icon-btn:hover {
  background-color: var(--gold-400);
  color: #0f172a;
  transform: translateY(-2px);
}

.footer-col h4 {
  font-size: 15px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 18px;
  position: relative;
  padding-bottom: 8px;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 28px;
  height: 2.5px;
  background-color: var(--gold-400);
  border-radius: var(--radius-full);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.75);
  font-size: 13px;
}

.footer-links a:hover {
  color: var(--gold-300);
  padding-left: 4px;
}

.footer-contact-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.5;
}

.footer-contact-item svg {
  width: 16px;
  height: 16px;
  fill: var(--gold-400);
  flex-shrink: 0;
  margin-top: 3px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
  }
}

/* ----------------------------------------------------------------------------
 * 17. MODAL & TOAST COMPONENT
 * ---------------------------------------------------------------------------- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-backdrop.show {
  display: flex;
  animation: fadeIn 0.2s ease-out forwards;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-box {
  background: #ffffff;
  width: 100%;
  max-width: 540px;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  animation: modalScale 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes modalScale {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.toast {
  min-width: 280px;
  padding: 12px 18px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  font-size: 13.5px;
  font-weight: 600;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 10px;
  backdrop-filter: blur(8px);
}

/* ----------------------------------------------------------------------------
 * 18. SKELETON LOADING ANIMATION & DATABASE CONNECTION STATUS
 * ---------------------------------------------------------------------------- */
@keyframes skeletonShimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

.skeleton {
  background: linear-gradient(90deg, #e2e8f0 25%, #f1f5f9 50%, #e2e8f0 75%);
  background-size: 200% 100%;
  animation: skeletonShimmer 1.5s infinite ease-in-out;
  border-radius: var(--radius-sm);
  display: block;
}

.skeleton-card {
  background: #ffffff;
  border: 1px solid var(--neutral-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.skeleton-card-img {
  width: 100%;
  height: 200px;
}

.skeleton-card-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.skeleton-badge {
  width: 80px;
  height: 22px;
  border-radius: var(--radius-full);
}

.skeleton-meta {
  width: 140px;
  height: 14px;
}

.skeleton-title {
  width: 85%;
  height: 22px;
  border-radius: 4px;
}

.skeleton-text {
  width: 100%;
  height: 14px;
  border-radius: 4px;
}

.skeleton-text-short {
  width: 60%;
  height: 14px;
  border-radius: 4px;
}

.skeleton-footer {
  margin-top: auto;
  width: 110px;
  height: 16px;
  border-radius: 4px;
}

/* Skeleton Galeri */
.skeleton-gallery-item {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--neutral-200);
}

/* Skeleton Struktur */
.skeleton-member-card {
  background: #ffffff;
  border: 1px solid var(--neutral-200);
  border-radius: var(--radius-lg);
  padding: 26px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-sm);
}

.skeleton-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
}

.skeleton-member-name {
  width: 140px;
  height: 18px;
}

.skeleton-member-role {
  width: 100px;
  height: 14px;
}

.skeleton-member-divisi {
  width: 120px;
  height: 12px;
}

/* Skeleton Donasi */
.skeleton-donasi-card {
  background: #ffffff;
  border: 1px solid var(--neutral-200);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  box-shadow: var(--shadow-sm);
}

.skeleton-qr-box {
  width: 160px;
  height: 160px;
  border-radius: var(--radius-md);
  margin: 0 auto;
}

.skeleton-bank-box {
  width: 100%;
  height: 44px;
  border-radius: var(--radius-md);
}

/* Skeleton Table Rows */
.skeleton-table-cell {
  height: 18px;
  border-radius: 4px;
  margin: 8px 0;
}

/* Status Koneksi Database */
.db-status-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 18px;
  background: #fef3c7;
  border: 1px solid #fde68a;
  border-radius: var(--radius-md);
  color: #92400e;
  font-size: 13.5px;
  font-weight: 600;
  margin-bottom: 24px;
  grid-column: 1 / -1;
  animation: fadeIn 0.3s ease;
}

.db-status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #f59e0b;
  display: inline-block;
  flex-shrink: 0;
}

.db-status-dot.pulse {
  animation: pulse-ring 1.5s infinite;
}

@keyframes pulse-ring {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(245, 158, 11, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); }
}

.db-retry-btn {
  background: #d97706;
  color: #ffffff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  margin-left: 8px;
}
.db-retry-btn:hover {
  background: #b45309;
}

/* ==========================================================================
   ANIMASI REVEAL ON SCROLL (FADE-IN & SLIDE UP)
   ========================================================================== */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-on-scroll.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Transisi halus khusus hero section saat pertama kali load */
.hero-section.reveal-on-scroll,
.page-hero.reveal-on-scroll {
  transform: translateY(16px);
  transition-duration: 0.85s;
}

/* Dukungan aksesibilitas: hormati pengaturan reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .reveal-on-scroll {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}


