@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Inter:wght@300;400;500;600;700&family=Amiri:ital,wght@0,400;0,700;1,400&display=swap');

/* ============================================================
   CSS VARIABLES
   ============================================================ */
:root {
  --primary: #0d5c3a;
  --primary-dark: #094d30;
  --primary-light: #1a7a50;
  --accent: #c9963f;
  --accent-light: #e8b84b;
  --bg: #faf8f3;
  --bg-card: #ffffff;
  --text: #1a1a1a;
  --text-mid: #4a5568;
  --text-light: #718096;
  --border: #e8e0d0;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.12);
  --radius: 12px;
  --radius-lg: 20px;
  --nav-height: 70px;
}

[data-theme="dark"] {
  --bg: #0f1a14;
  --bg-card: #182d20;
  --text: #f0ede6;
  --text-mid: #9bb0a5;
  --text-light: #6b7280;
  --border: #2a4535;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.45);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  transition: background 0.3s ease, color 0.3s ease;
}

img { display: block; max-width: 100%; }
a { color: inherit; }

/* ============================================================
   ISLAMIC GEOMETRIC PATTERNS
   ============================================================ */
.geo-bg {
  background-color: var(--primary);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Cg fill='none' stroke='rgba(255,255,255,0.07)' stroke-width='0.8'%3E%3Cpath d='M50 8L59.5 31.5L83 22.5L70 44.5L96 50L70 55.5L83 77.5L59.5 68.5L50 92L40.5 68.5L17 77.5L30 55.5L4 50L30 44.5L17 22.5L40.5 31.5Z'/%3E%3Ccircle cx='50' cy='50' r='16'/%3E%3Cpath d='M50 34L55 44L66 44L57 51L60 63L50 56L40 63L43 51L34 44L45 44Z'/%3E%3C/g%3E%3C/svg%3E");
}

.geo-bg-light {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='70' height='70' viewBox='0 0 70 70'%3E%3Cg fill='none' stroke='rgba(13,92,58,0.07)' stroke-width='0.8'%3E%3Cpath d='M35 6L41.6 21.4L57.5 15.6L48 28.5L63 35L48 41.5L57.5 54.4L41.6 48.6L35 64L28.4 48.6L12.5 54.4L22 41.5L7 35L22 28.5L12.5 15.6L28.4 21.4Z'/%3E%3C/g%3E%3C/svg%3E");
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(250, 248, 243, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s;
}

[data-theme="dark"] .navbar { background: rgba(15, 26, 20, 0.95); }

.navbar.scrolled { box-shadow: var(--shadow); }

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
  gap: 1rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-logo-icon {
  width: 42px; height: 42px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
}

.nav-logo-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem; font-weight: 700;
  color: var(--primary); line-height: 1.2;
}

.nav-logo-sub {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 0.6rem; font-weight: 500;
  color: var(--text-light);
  text-transform: uppercase; letter-spacing: 0.08em;
}

.nav-links {
  display: flex; align-items: center;
  gap: 0.15rem; list-style: none;
}

.nav-links a {
  display: block;
  text-decoration: none;
  color: var(--text-mid);
  font-size: 0.88rem; font-weight: 500;
  padding: 0.45rem 0.7rem;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}

.nav-links a:hover, .nav-links a.active {
  color: var(--primary);
  background: rgba(13, 92, 58, 0.08);
}

.nav-right {
  display: flex; align-items: center; gap: 0.6rem; flex-shrink: 0;
}

.btn-nav-donate {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  color: white; text-decoration: none;
  padding: 0.45rem 1.1rem;
  border-radius: 25px;
  font-size: 0.85rem; font-weight: 600;
  transition: transform 0.2s, box-shadow 0.2s;
  white-space: nowrap;
}

.btn-nav-donate:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(201, 150, 63, 0.4);
}

.dark-toggle {
  background: none; border: 1.5px solid var(--border);
  border-radius: 20px; padding: 0.38rem 0.65rem;
  cursor: pointer; color: var(--text-mid); font-size: 0.9rem;
  transition: all 0.2s; display: flex; align-items: center;
}

.dark-toggle:hover { background: var(--border); }

.hamburger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; background: none; border: none; padding: 4px;
}

.hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--text); border-radius: 2px; transition: all 0.3s;
}

.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); }

/* Mobile Menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-height); left: 0; right: 0;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  padding: 1rem 1.5rem 1.5rem;
  z-index: 999;
  box-shadow: var(--shadow);
}

.mobile-menu.open { display: block; }

.mobile-menu ul { list-style: none; display: flex; flex-direction: column; gap: 0.25rem; }

.mobile-menu a {
  display: block; text-decoration: none; color: var(--text);
  padding: 0.7rem 0.75rem; border-radius: 8px;
  font-size: 0.95rem; font-weight: 500; transition: all 0.2s;
}

.mobile-menu a:hover { background: rgba(13, 92, 58, 0.08); color: var(--primary); }
.mobile-menu a.active { color: var(--primary); font-weight: 600; }

.mobile-menu-footer {
  margin-top: 1rem; padding-top: 1rem;
  border-top: 1px solid var(--border);
  display: flex; gap: 0.75rem; align-items: center;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
  background: linear-gradient(150deg, #083526 0%, #0d5c3a 45%, #1a7a50 100%);
}

.hero-pattern {
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg fill='none' stroke='rgba(255,255,255,0.05)' stroke-width='1'%3E%3Cpath d='M60 8L71.5 37.5L101 27L83 50.5L112 60L83 69.5L101 93L71.5 82.5L60 112L48.5 82.5L19 93L37 69.5L8 60L37 50.5L19 27L48.5 37.5Z'/%3E%3Ccircle cx='60' cy='60' r='22'/%3E%3Cpath d='M60 38L66 52L81 52L69 61.5L73 77L60 68L47 77L51 61.5L39 52L54 52Z'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 120px 120px;
}

.hero-content {
  position: relative; z-index: 2;
  text-align: center; color: white;
  max-width: 820px; padding: 2rem 1.5rem;
}

.hero-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 25px; padding: 0.4rem 1.25rem;
  font-size: 0.82rem; margin-bottom: 1.75rem;
  backdrop-filter: blur(5px);
}

.hero-bismillah {
  font-family: 'Amiri', serif;
  font-size: 2rem; color: var(--accent-light);
  margin-bottom: 1rem; opacity: 0.9;
}

.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  font-weight: 700; line-height: 1.15; margin-bottom: 1.25rem;
}

.hero h1 em { color: var(--accent-light); font-style: normal; }

.hero p {
  font-size: 1.1rem; opacity: 0.88; max-width: 580px;
  margin: 0 auto 2.5rem; line-height: 1.75;
}

.hero-buttons {
  display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap;
}

.hero-scroll {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
  color: rgba(255,255,255,0.6); font-size: 0.75rem; text-transform: uppercase;
  letter-spacing: 0.1em; animation: bounce 2s infinite;
}

.hero-scroll svg { opacity: 0.6; }

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.78rem 1.75rem; border-radius: 50px;
  font-weight: 600; font-size: 0.92rem;
  text-decoration: none; transition: all 0.3s;
  cursor: pointer; border: none; font-family: inherit;
  line-height: 1;
}

.btn-white { background: white; color: var(--primary); }
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.18); }

.btn-outline-white { background: transparent; color: white; border: 2px solid rgba(255,255,255,0.55); }
.btn-outline-white:hover { background: rgba(255,255,255,0.1); border-color: white; transform: translateY(-2px); }

.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(13,92,58,0.35); }

.btn-gold { background: linear-gradient(135deg, var(--accent), var(--accent-light)); color: white; }
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(201,150,63,0.4); }

.btn-outline { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-outline:hover { background: var(--primary); color: white; }

.btn-sm { padding: 0.5rem 1.1rem; font-size: 0.82rem; }

.btn-danger { background: #dc2626; color: white; }
.btn-danger:hover { background: #b91c1c; }

/* ============================================================
   LAYOUT
   ============================================================ */
.section { padding: 5rem 0; }
.section-sm { padding: 3.5rem 0; }
.section-dark { background: var(--primary); }
.section-beige { background: rgba(201, 150, 63, 0.05); }

.container { max-width: 1280px; margin: 0 auto; padding: 0 1.5rem; }
.container-sm { max-width: 860px; margin: 0 auto; padding: 0 1.5rem; }

.section-header { text-align: center; margin-bottom: 3.5rem; }

.section-tag {
  display: inline-block;
  background: rgba(13, 92, 58, 0.1); color: var(--primary);
  padding: 0.3rem 1rem; border-radius: 20px;
  font-size: 0.75rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em;
  margin-bottom: 0.9rem;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 4vw, 2.7rem);
  font-weight: 700; color: var(--text); line-height: 1.25;
  margin-bottom: 1rem;
}

.section-subtitle {
  color: var(--text-mid); font-size: 1rem;
  max-width: 580px; margin: 0 auto; line-height: 1.75;
}

.ornament {
  display: flex; align-items: center; gap: 0.75rem;
  justify-content: center; margin: 1.25rem 0;
}

.ornament-line {
  width: 60px; height: 1.5px;
  background: linear-gradient(to right, transparent, var(--accent));
}

.ornament-line.right { background: linear-gradient(to left, transparent, var(--accent)); }
.ornament-icon { color: var(--accent); font-size: 1rem; }

/* Page Header */
.page-header {
  padding: 8.5rem 0 3.5rem;
  background: linear-gradient(150deg, var(--primary-dark), var(--primary));
  position: relative; overflow: hidden; text-align: center;
}

.page-header::before {
  content: '';
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cg fill='none' stroke='rgba(255,255,255,0.06)' stroke-width='0.8'%3E%3Cpath d='M40 6L47.5 25L67 18L56 37L77 40L56 43L67 62L47.5 55L40 74L32.5 55L13 62L24 43L3 40L24 37L13 18L32.5 25Z'/%3E%3C/g%3E%3C/svg%3E");
}

.page-header-content { position: relative; z-index: 1; }

.breadcrumb {
  display: flex; align-items: center; gap: 0.5rem; justify-content: center;
  font-size: 0.82rem; color: rgba(255,255,255,0.55); margin-bottom: 1rem;
}

.breadcrumb a { color: rgba(255,255,255,0.55); text-decoration: none; }
.breadcrumb a:hover { color: white; }

.page-header h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 5vw, 3.2rem); color: white; font-weight: 700;
}

.page-header p {
  color: rgba(255,255,255,0.75); font-size: 1rem; margin-top: 0.75rem;
}

/* ============================================================
   CARDS
   ============================================================ */
.card {
  background: var(--bg-card); border-radius: var(--radius-lg);
  overflow: hidden; border: 1px solid var(--border);
  box-shadow: var(--shadow); transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }

.card-img { width: 100%; height: 200px; object-fit: cover; }

.card-body { padding: 1.5rem; }

.card-tag {
  display: inline-block;
  background: rgba(13, 92, 58, 0.1); color: var(--primary);
  padding: 0.22rem 0.75rem; border-radius: 20px;
  font-size: 0.72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 0.7rem;
}

.card-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem; font-weight: 700;
  color: var(--text); margin-bottom: 0.5rem; line-height: 1.35;
}

.card-text { color: var(--text-mid); font-size: 0.88rem; line-height: 1.65; margin-bottom: 1rem; }

.card-meta {
  display: flex; align-items: center; gap: 0.4rem;
  color: var(--text-light); font-size: 0.82rem;
}

/* ============================================================
   GRIDS
   ============================================================ */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }

@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

/* ============================================================
   PRAYER TIMES
   ============================================================ */
.prayer-card {
  background: var(--bg-card); border-radius: var(--radius-lg);
  padding: 2rem; border: 1px solid var(--border); box-shadow: var(--shadow);
}

.prayer-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.9rem 1.1rem; border-radius: var(--radius);
  margin-bottom: 0.6rem; transition: all 0.2s;
  border: 1px solid transparent;
}

.prayer-item:last-child { margin-bottom: 0; }

.prayer-item:hover { background: rgba(13,92,58,0.05); border-color: rgba(13,92,58,0.15); }

.prayer-item.current {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: white; box-shadow: 0 4px 15px rgba(13,92,58,0.35);
}

.prayer-info { display: flex; align-items: center; gap: 0.75rem; }

.prayer-icon {
  width: 36px; height: 36px; border-radius: 8px;
  background: rgba(13,92,58,0.1);
  display: flex; align-items: center; justify-content: center; font-size: 1rem;
}

.prayer-item.current .prayer-icon { background: rgba(255,255,255,0.2); }

.prayer-name { font-weight: 600; font-size: 0.92rem; }
.prayer-arabic { font-family: 'Amiri', serif; font-size: 0.85rem; color: var(--accent); }
.prayer-item.current .prayer-arabic { color: rgba(255,255,255,0.8); }

.prayer-time { font-weight: 700; font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.prayer-item.current .prayer-time { color: white; }

/* ============================================================
   GALLERY
   ============================================================ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.gallery-item {
  position: relative; border-radius: var(--radius);
  overflow: hidden; aspect-ratio: 4/3; cursor: pointer;
  background: var(--border);
}

.gallery-item img {
  width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease;
}

.gallery-item:hover img { transform: scale(1.07); }

.gallery-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, transparent 60%);
  opacity: 0; transition: opacity 0.3s;
  display: flex; align-items: flex-end; padding: 1rem;
}

.gallery-item:hover .gallery-overlay { opacity: 1; }

.gallery-overlay h3 { color: white; font-size: 0.95rem; font-weight: 600; }
.gallery-overlay span { color: rgba(255,255,255,0.75); font-size: 0.78rem; display: block; margin-top: 0.2rem; }

/* Lightbox */
.lightbox {
  display: none; position: fixed; inset: 0; z-index: 10000;
  background: rgba(0,0,0,0.96);
  align-items: center; justify-content: center;
}

.lightbox.active { display: flex; }

.lightbox-img-wrap {
  max-width: 92vw; max-height: 88vh;
  display: flex; align-items: center; justify-content: center;
}

.lightbox img {
  max-width: 90vw; max-height: 82vh;
  object-fit: contain; border-radius: 8px;
}

.lightbox-close {
  position: absolute; top: 1.5rem; right: 1.5rem;
  background: rgba(255,255,255,0.1); border: none; color: white;
  width: 44px; height: 44px; border-radius: 50%; cursor: pointer;
  font-size: 1.3rem; display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}

.lightbox-close:hover { background: rgba(255,255,255,0.2); }

.lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,0.1); border: none; color: white;
  width: 48px; height: 48px; border-radius: 50%; cursor: pointer;
  font-size: 1.2rem; display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}

.lightbox-nav:hover { background: rgba(255,255,255,0.2); }
.lightbox-prev { left: 1.5rem; }
.lightbox-next { right: 1.5rem; }

.lightbox-caption {
  position: absolute; bottom: 1.5rem; left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,0.75); font-size: 0.88rem; text-align: center;
  background: rgba(0,0,0,0.5); padding: 0.5rem 1.5rem; border-radius: 20px;
}

/* ============================================================
   EVENTS
   ============================================================ */
.event-list-item {
  background: var(--bg-card); border-radius: var(--radius);
  border: 1px solid var(--border); padding: 1.5rem;
  display: flex; gap: 1.5rem; align-items: flex-start;
  transition: all 0.3s; margin-bottom: 1rem;
}

.event-list-item:hover {
  box-shadow: var(--shadow); border-color: rgba(13,92,58,0.3);
  transform: translateX(4px);
}

.event-date-box {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: white; border-radius: var(--radius);
  padding: 0.75rem; min-width: 68px; text-align: center; flex-shrink: 0;
}

.event-day { font-size: 1.75rem; font-weight: 700; line-height: 1; }
.event-month { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.06em; opacity: 0.9; }

.event-info { flex: 1; }

.event-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem; font-weight: 700; color: var(--text);
  margin-bottom: 0.4rem;
}

.event-desc { color: var(--text-mid); font-size: 0.85rem; line-height: 1.6; margin-bottom: 0.75rem; }

.event-meta { display: flex; gap: 1.25rem; flex-wrap: wrap; }

.event-meta-item {
  display: flex; align-items: center; gap: 0.35rem;
  color: var(--text-light); font-size: 0.8rem;
}

/* ============================================================
   FORMS
   ============================================================ */
.form-group { margin-bottom: 1.2rem; }

.form-label {
  display: block; font-weight: 600; font-size: 0.88rem;
  color: var(--text); margin-bottom: 0.45rem;
}

.form-control {
  width: 100%; padding: 0.72rem 1rem;
  border: 1.5px solid var(--border); border-radius: var(--radius);
  font-family: inherit; font-size: 0.92rem;
  color: var(--text); background: var(--bg-card);
  transition: border-color 0.2s, box-shadow 0.2s; outline: none;
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(13,92,58,0.12);
}

.form-control::placeholder { color: var(--text-light); }

textarea.form-control { resize: vertical; min-height: 120px; }
select.form-control { cursor: pointer; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }

.form-note { font-size: 0.8rem; color: var(--text-light); margin-top: 0.35rem; }

.checkbox-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; }

.checkbox-item { display: flex; align-items: center; gap: 0.5rem; cursor: pointer; font-size: 0.88rem; color: var(--text-mid); }
.checkbox-item input[type="checkbox"] { accent-color: var(--primary); width: 16px; height: 16px; cursor: pointer; }

/* ============================================================
   STATS
   ============================================================ */
.stat-card {
  background: var(--bg-card); border-radius: var(--radius-lg);
  padding: 2rem; text-align: center; border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.stat-icon { font-size: 2rem; margin-bottom: 0.75rem; }

.stat-number {
  font-family: 'Playfair Display', serif;
  font-size: 2.8rem; font-weight: 700; color: var(--primary);
  line-height: 1; margin-bottom: 0.4rem;
}

.stat-label { color: var(--text-mid); font-size: 0.9rem; font-weight: 500; }

/* ============================================================
   IMAM / TEAM CARDS
   ============================================================ */
.imam-card {
  background: var(--bg-card); border-radius: var(--radius-lg);
  padding: 2rem; text-align: center;
  border: 1px solid var(--border); box-shadow: var(--shadow);
}

.imam-avatar-wrap {
  width: 96px; height: 96px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  margin: 0 auto 1.25rem;
  display: flex; align-items: center; justify-content: center;
  font-size: 2.2rem;
  border: 3px solid rgba(13,92,58,0.2);
}

.imam-name { font-family: 'Playfair Display', serif; font-size: 1.1rem; font-weight: 700; margin-bottom: 0.3rem; }
.imam-title { color: var(--primary); font-size: 0.82rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 0.75rem; }
.imam-bio { color: var(--text-mid); font-size: 0.85rem; line-height: 1.65; }

/* ============================================================
   TIMELINE
   ============================================================ */
.timeline { position: relative; padding-left: 2.5rem; }

.timeline::before {
  content: ''; position: absolute; left: 0; top: 0.5rem; bottom: 0;
  width: 2px; background: linear-gradient(to bottom, var(--primary), transparent);
}

.timeline-item { position: relative; margin-bottom: 2.25rem; }

.timeline-dot {
  position: absolute; left: -2.9rem; top: 0.3rem;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--accent); border: 3px solid var(--bg);
  box-shadow: 0 0 0 2px var(--primary);
}

.timeline-year { font-weight: 700; color: var(--primary); font-size: 0.88rem; margin-bottom: 0.3rem; }
.timeline-text { color: var(--text-mid); font-size: 0.9rem; line-height: 1.65; }

/* ============================================================
   FILTER TABS
   ============================================================ */
.filter-tabs { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 2rem; }

.filter-tab {
  padding: 0.48rem 1.15rem; border-radius: 25px;
  border: 1.5px solid var(--border); background: transparent;
  color: var(--text-mid); font-size: 0.82rem; font-weight: 500;
  cursor: pointer; transition: all 0.2s; font-family: inherit;
}

.filter-tab:hover { border-color: var(--primary); color: var(--primary); }
.filter-tab.active { background: var(--primary); border-color: var(--primary); color: white; }

/* ============================================================
   HADITH / QUOTE BANNER
   ============================================================ */
.quote-banner {
  background: linear-gradient(150deg, var(--primary-dark), var(--primary));
  color: white; padding: 5rem 0; position: relative; overflow: hidden;
}

.quote-banner::before {
  content: ''; position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cg fill='none' stroke='rgba(255,255,255,0.05)' stroke-width='0.8'%3E%3Cpath d='M40 5L47.5 24L67 17L56 36L77 40L56 44L67 63L47.5 56L40 75L32.5 56L13 63L24 44L3 40L24 36L13 17L32.5 24Z'/%3E%3C/g%3E%3C/svg%3E");
}

.quote-icon {
  font-size: 3rem; opacity: 0.3; font-family: 'Amiri', serif;
  line-height: 0.5; margin-bottom: 1.5rem; color: var(--accent-light);
}

.quote-arabic {
  font-family: 'Amiri', serif; font-size: 1.75rem;
  color: rgba(255,255,255,0.95); line-height: 1.9; text-align: center;
  margin-bottom: 1.5rem; position: relative;
}

.quote-translation {
  color: rgba(255,255,255,0.75); font-size: 1rem; text-align: center;
  font-style: italic; line-height: 1.7; max-width: 600px; margin: 0 auto;
  position: relative;
}

.quote-source {
  color: var(--accent-light); font-size: 0.85rem; font-weight: 600;
  text-align: center; margin-top: 1.25rem; position: relative;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: #091810;
  color: rgba(255,255,255,0.75); padding: 4.5rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2.2fr 1fr 1fr 1.6fr;
  gap: 3rem; margin-bottom: 3rem;
}

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

.footer-brand-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.35rem; font-weight: 700; color: white; margin-bottom: 0.9rem;
}

.footer-desc { font-size: 0.88rem; line-height: 1.75; opacity: 0.65; margin-bottom: 1.5rem; }

.footer h4 {
  color: white; font-size: 0.82rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 1.2rem;
}

.footer-links { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }

.footer-links a {
  text-decoration: none; color: rgba(255,255,255,0.6); font-size: 0.88rem; transition: color 0.2s;
}

.footer-links a:hover { color: var(--accent-light); }

.footer-contact-item {
  display: flex; align-items: flex-start; gap: 0.75rem;
  margin-bottom: 0.75rem; font-size: 0.87rem; color: rgba(255,255,255,0.6);
}

.footer-contact-icon { flex-shrink: 0; margin-top: 2px; }

.footer-social { display: flex; gap: 0.65rem; margin-bottom: 1.5rem; }

.social-btn {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  text-decoration: none; color: rgba(255,255,255,0.7);
  font-size: 0.85rem; transition: all 0.2s;
}

.social-btn:hover { background: var(--primary); color: white; transform: translateY(-2px); }

.footer-newsletter { display: flex; gap: 0.6rem; }

.footer-newsletter input {
  flex: 1; padding: 0.6rem 1rem;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 25px;
  background: rgba(255,255,255,0.07); color: white;
  font-size: 0.85rem; outline: none; font-family: inherit;
}

.footer-newsletter input::placeholder { color: rgba(255,255,255,0.4); }
.footer-newsletter input:focus { border-color: rgba(255,255,255,0.3); }

.footer-divider { height: 1px; background: rgba(255,255,255,0.08); margin-bottom: 1.75rem; }

.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 0.75rem;
  font-size: 0.82rem; color: rgba(255,255,255,0.4);
}

/* ============================================================
   DONATE CTA
   ============================================================ */
.donate-cta {
  background: linear-gradient(135deg, #a07828, var(--accent));
  border-radius: var(--radius-lg);
  padding: 3rem 2rem; text-align: center; color: white;
  position: relative; overflow: hidden;
}

.donate-cta::before {
  content: '';
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Cg fill='none' stroke='rgba(255,255,255,0.08)' stroke-width='0.7'%3E%3Cpath d='M30 4L35.5 18L50 12.5L41 25L55 30L41 35L50 47.5L35.5 42L30 56L24.5 42L10 47.5L19 35L5 30L19 25L10 12.5L24.5 18Z'/%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.donate-cta h2 { font-family: 'Playfair Display', serif; font-size: 2rem; margin-bottom: 0.75rem; position: relative; }
.donate-cta p { opacity: 0.88; font-size: 1rem; margin-bottom: 2rem; position: relative; max-width: 480px; margin-left: auto; margin-right: auto; }
.donate-cta .btn { position: relative; }

/* ============================================================
   ADMIN
   ============================================================ */
.admin-layout { display: flex; min-height: 100vh; }

.admin-sidebar {
  width: 250px; flex-shrink: 0;
  background: #091810; color: rgba(255,255,255,0.8);
  padding: 1.5rem; position: fixed; top: 0; left: 0; bottom: 0; z-index: 100;
  overflow-y: auto;
}

.admin-main { margin-left: 250px; flex: 1; padding: 2rem; background: var(--bg); min-height: 100vh; }

.admin-brand { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 2rem; padding-bottom: 1.5rem; border-bottom: 1px solid rgba(255,255,255,0.08); }
.admin-brand-icon { width: 40px; height: 40px; background: var(--primary); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; }
.admin-brand-name { font-family: 'Playfair Display', serif; font-size: 1rem; font-weight: 700; color: white; }
.admin-brand-sub { font-size: 0.7rem; color: rgba(255,255,255,0.4); text-transform: uppercase; letter-spacing: 0.05em; }

.admin-nav-section { margin-bottom: 2rem; }
.admin-nav-label { font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; color: rgba(255,255,255,0.3); margin-bottom: 0.5rem; padding: 0 0.5rem; }

.admin-nav-btn {
  display: flex; align-items: center; gap: 0.7rem;
  padding: 0.65rem 0.75rem; border-radius: 8px;
  color: rgba(255,255,255,0.65); background: none; border: none;
  font-size: 0.87rem; font-family: inherit; cursor: pointer;
  transition: all 0.2s; width: 100%; text-align: left;
  margin-bottom: 0.2rem;
}

.admin-nav-btn:hover, .admin-nav-btn.active { background: rgba(255,255,255,0.1); color: white; }
.admin-nav-btn.active { background: var(--primary); }

.admin-stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 1.25rem; margin-bottom: 2rem; }

.admin-stat-card {
  background: var(--bg-card); border-radius: var(--radius); border: 1px solid var(--border);
  padding: 1.4rem; display: flex; align-items: center; gap: 1rem;
}

.admin-stat-icon { width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; flex-shrink: 0; }

.admin-stat-num { font-family: 'Playfair Display', serif; font-size: 2rem; font-weight: 700; color: var(--text); line-height: 1; }
.admin-stat-lbl { font-size: 0.78rem; color: var(--text-light); font-weight: 500; margin-top: 0.2rem; }

.admin-section { display: none; }
.admin-section.active { display: block; }

.admin-panel { background: var(--bg-card); border-radius: var(--radius-lg); border: 1px solid var(--border); overflow: hidden; }
.admin-panel-header { padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.admin-panel-title { font-weight: 700; font-size: 1rem; color: var(--text); }
.admin-panel-body { padding: 1.5rem; }

.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-light); padding: 0.75rem 1rem; text-align: left; border-bottom: 1px solid var(--border); background: rgba(13,92,58,0.04); }
.admin-table td { padding: 0.85rem 1rem; font-size: 0.88rem; border-bottom: 1px solid var(--border); color: var(--text); vertical-align: middle; }
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tbody tr:hover { background: rgba(13,92,58,0.03); }

.badge { display: inline-block; padding: 0.22rem 0.65rem; border-radius: 20px; font-size: 0.72rem; font-weight: 600; }
.badge-green { background: rgba(13,92,58,0.12); color: var(--primary); }
.badge-gold { background: rgba(201,150,63,0.15); color: #8b6914; }
.badge-blue { background: rgba(59,130,246,0.12); color: #1d4ed8; }
.badge-red { background: rgba(220,38,38,0.12); color: #dc2626; }

.admin-login-screen {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(150deg, var(--primary-dark), var(--primary));
}

.admin-login-card {
  background: white; border-radius: var(--radius-lg);
  padding: 2.5rem; width: 100%; max-width: 400px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

/* ============================================================
   UTILITIES
   ============================================================ */
.toast {
  position: fixed; bottom: 2rem; right: 2rem;
  background: var(--primary); color: white;
  padding: 1rem 1.5rem; border-radius: var(--radius);
  box-shadow: var(--shadow-lg); z-index: 99999;
  transform: translateY(100px); opacity: 0;
  transition: all 0.35s ease; font-size: 0.9rem; font-weight: 500;
  max-width: 320px; line-height: 1.5;
}

.toast.error { background: #dc2626; }
.toast.show { transform: translateY(0); opacity: 1; }

.scroll-top {
  position: fixed; bottom: 2rem; right: 2rem;
  width: 44px; height: 44px;
  background: var(--primary); color: white;
  border: none; border-radius: 50%; cursor: pointer;
  font-size: 1rem; box-shadow: var(--shadow);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transform: translateY(20px); transition: all 0.3s; z-index: 100;
}

.scroll-top.show { opacity: 1; transform: translateY(0); }
.scroll-top:hover { background: var(--primary-dark); transform: translateY(-3px); }

.fade-in { opacity: 0; transform: translateY(22px); transition: opacity 0.65s ease, transform 0.65s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }

.spinner {
  display: inline-block; width: 16px; height: 16px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: white; border-radius: 50%;
  animation: spin 0.65s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.success-box {
  background: rgba(13,92,58,0.1); border: 1px solid rgba(13,92,58,0.25);
  color: var(--primary); border-radius: var(--radius);
  padding: 1.25rem; text-align: center; font-weight: 500;
  display: none;
}

.error-box {
  background: rgba(220,38,38,0.08); border: 1px solid rgba(220,38,38,0.25);
  color: #dc2626; border-radius: var(--radius);
  padding: 1rem; text-align: center; font-size: 0.88rem;
  display: none;
}

.loading { text-align: center; padding: 3rem; color: var(--text-light); }

.sticky-card { position: sticky; top: calc(var(--nav-height) + 1.5rem); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  .hamburger { display: flex; }
  .nav-links { display: none; }
  .dark-toggle { display: none; }
  .section { padding: 3.5rem 0; }
  .hero p { font-size: 1rem; }
  .hero-buttons { flex-direction: column; align-items: center; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .admin-sidebar { display: none; }
  .admin-main { margin-left: 0; padding: 1.25rem; }
  .event-list-item { flex-direction: column; gap: 1rem; }
  .event-date-box { display: flex; gap: 0.5rem; align-items: center; width: fit-content; }
}

@media (max-width: 480px) {
  .container { padding: 0 1rem; }
  .card-body { padding: 1.25rem; }
  .prayer-card { padding: 1.25rem; }
  .form-row { grid-template-columns: 1fr; }
  .checkbox-grid { grid-template-columns: 1fr; }
  .donate-cta { padding: 2rem 1.25rem; }
}

/* ============================================================
   WELCOME SECTION
   ============================================================ */
.welcome-flex { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
@media (max-width: 900px) { .welcome-flex { grid-template-columns: 1fr; gap: 2.5rem; } }

.welcome-img-wrap { position: relative; }
.welcome-img { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); aspect-ratio: 4/3; object-fit: cover; }

.welcome-badge {
  position: absolute; bottom: -1.25rem; right: -1.25rem;
  background: var(--bg-card); border-radius: var(--radius);
  padding: 1rem 1.5rem; box-shadow: var(--shadow-lg);
  text-align: center; border: 1px solid var(--border);
}

.welcome-badge-num { font-family: 'Playfair Display', serif; font-size: 2rem; font-weight: 700; color: var(--primary); line-height: 1; }
.welcome-badge-txt { font-size: 0.78rem; color: var(--text-light); }

.value-item { display: flex; gap: 1rem; margin-bottom: 1.25rem; }
.value-icon { width: 44px; height: 44px; background: rgba(13,92,58,0.1); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; flex-shrink: 0; }
.value-text h4 { font-weight: 700; color: var(--text); margin-bottom: 0.2rem; font-size: 0.95rem; }
.value-text p { color: var(--text-mid); font-size: 0.85rem; line-height: 1.6; }

/* Map */
.map-wrap { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--border); }
.map-wrap iframe { display: block; width: 100%; border: none; }

/* Ramadan timetable */
.ramadan-table { width: 100%; border-collapse: collapse; }
.ramadan-table th { background: var(--primary); color: white; padding: 0.75rem 1rem; text-align: left; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.06em; }
.ramadan-table td { padding: 0.7rem 1rem; border-bottom: 1px solid var(--border); font-size: 0.88rem; }
.ramadan-table tr:nth-child(even) td { background: rgba(13,92,58,0.03); }
.ramadan-table tr:hover td { background: rgba(13,92,58,0.06); }
