/* ===========================================
   MINHAJ-UL-QURAN LONDON
   Design System & Main Stylesheet
   =========================================== */

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

/* ---------- TOKENS ---------- */
:root {
  /* Colors - Islamic emerald + gold palette */
  --emerald-deep: #00aeae;
  --emerald: #1bc4c4;
  --emerald-light: #3edada;
  --emerald-muted: #cdebf6;
  --gold: #6EC1E4;
  --gold-light: #a5d8ed;
  --gold-deep: #3596c1;
  --cream: #f4fafc;
  --cream-warm: #e6f4fa;
  --ivory: #fcffff;
  --charcoal: #1f1f1f;
  --slate: #4a4a4a;
  --slate-light: #6b6b6b;
  --line: #e7e0d0;
  --line-soft: #efe9dc;
  --danger: #b3261e;

  /* Typography */
  --font-display: 'Playfair Display', 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Manrope', system-ui, -apple-system, sans-serif;
  --font-arabic: 'Amiri', 'Scheherazade New', serif;

  /* Spacing */
  --container: 1280px;
  --container-wide: 1440px;
  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 20px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 110, 110, 0.06);
  --shadow: 0 8px 24px rgba(0, 110, 110, 0.08);
  --shadow-lg: 0 24px 48px rgba(0, 110, 110, 0.14);
  --shadow-gold: 0 12px 36px rgba(110, 193, 228, 0.28);

  --transition: 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- RESET ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--charcoal);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color var(--transition); }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select { font-family: inherit; font-size: inherit; }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.2; letter-spacing: -0.01em; color: var(--charcoal); }
h1 { font-size: clamp(2.5rem, 5.5vw, 4.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.4rem, 2.5vw, 1.85rem); }
h4 { font-size: 1.25rem; }
p { color: var(--slate); }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container-wide { max-width: var(--container-wide); margin: 0 auto; padding: 0 24px; }

/* ---------- DECORATIVE PATTERN ---------- */
.pattern-bg {
  background-image:
    radial-gradient(circle at 1px 1px, rgba(0, 110, 110, 0.08) 1px, transparent 0);
  background-size: 24px 24px;
}

/* ---------- TOP BAR ---------- */
.topbar {
  background: var(--emerald-deep);
  color: var(--ivory);
  font-size: 13px;
  letter-spacing: 0.02em;
  border-bottom: 1px solid rgba(110, 193, 228, 0.25);
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 10px 0;
  flex-wrap: wrap;
}
.topbar-left { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.topbar-item { display: inline-flex; align-items: center; gap: 8px; }
.topbar-item svg { width: 14px; height: 14px; color: rgba(255,255,255,0.85); flex-shrink: 0; }
.topbar-divider { width: 1px; height: 14px; background: rgba(255,255,255,0.18); }
.topbar-brand { font-family: var(--font-display); font-style: italic; color: #ffffff; font-weight: 500; }
.topbar-prayer { display: inline-flex; align-items: center; gap: 6px; }
.topbar-prayer strong { color: #ffffff; font-weight: 600; }
.topbar-socials { display: flex; gap: 10px; }
.topbar-socials a {
  width: 28px; height: 28px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  transition: all var(--transition);
}
.topbar-socials a:hover { background: var(--gold); color: #ffffff; transform: translateY(-2px); }
.topbar-socials svg { width: 13px; height: 13px; }

/* ---------- HEADER ---------- */
.header {
  background: var(--ivory);
  padding: 22px 0;
  position: relative;
  border-bottom: 1px solid var(--line-soft);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.brand { display: flex; align-items: center; gap: 18px; }
.brand-logo {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--emerald-deep), var(--emerald-light));
  display: flex; align-items: center; justify-content: center;
  position: relative;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.brand-logo img { width: 100%; height: 100%; object-fit: cover; }
.brand-logo-fallback {
  font-family: var(--font-arabic);
  color: #ffffff;
  font-size: 26px;
  font-weight: 700;
}
.brand-text h1, .brand-text .brand-name {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--emerald-deep);
  letter-spacing: -0.01em;
  line-height: 1.1;
  margin: 0;
}
.brand-text .brand-name { font-size: 1.7rem; }
.brand-text small {
  display: block;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-deep);
  font-weight: 600;
  margin-top: 4px;
}

.header-contacts { display: flex; align-items: center; gap: 32px; }
.contact-item { display: flex; gap: 12px; align-items: center; }
.contact-icon {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--emerald-muted);
  display: flex; align-items: center; justify-content: center;
  color: var(--emerald-deep);
}
.contact-icon svg { width: 18px; height: 18px; }
.contact-meta { font-size: 13px; }
.contact-meta span { display: block; color: var(--slate-light); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 600; }
.contact-meta strong { color: var(--charcoal); font-weight: 600; font-size: 14px; }
.contact-meta a:hover strong { color: var(--emerald); }

.btn-donate {
  display: inline-flex; align-items: center; gap: 10px;
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
  color: #ffffff;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: var(--shadow-gold);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.btn-donate::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  opacity: 0; transition: opacity var(--transition);
}
.btn-donate:hover { transform: translateY(-2px); box-shadow: 0 18px 42px rgba(110, 193, 228, 0.36); }
.btn-donate:hover::before { opacity: 1; }
.btn-donate span { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 10px; }
.btn-donate svg { width: 16px; height: 16px; }

/* ---------- ANNOUNCEMENT TICKER ---------- */
.ticker {
  background: linear-gradient(90deg, var(--emerald), var(--emerald-deep), var(--emerald));
  color: var(--ivory);
  overflow: hidden;
  position: relative;
  border-top: 1px solid rgba(110, 193, 228, 0.3);
  border-bottom: 1px solid rgba(110, 193, 228, 0.3);
}
.ticker-label {
  background: var(--gold);
  color: #ffffff;
  padding: 12px 22px;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 8px;
  position: absolute;
  left: 0; top: 0; bottom: 0;
  z-index: 2;
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 50%, calc(100% - 16px) 100%, 0 100%);
  padding-right: 30px;
}
.ticker-track {
  display: flex;
  padding: 12px 0;
  padding-left: 200px;
  white-space: nowrap;
  animation: marquee 45s linear infinite;
}
.ticker-content { display: inline-flex; gap: 60px; padding-right: 60px; }
.ticker-content span { font-size: 14px; font-weight: 500; letter-spacing: 0.02em; }
.ticker-content span::before {
  content: '✦';
  color: #ffffff;
  margin-right: 24px;
}
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.ticker:hover .ticker-track { animation-play-state: paused; }

/* ---------- MAIN NAV ---------- */
.nav {
  background: var(--ivory);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 16px rgba(0, 110, 110, 0.06);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0;
}
.nav-list {
  display: flex;
  list-style: none;
  align-items: center;
  width: 100%;
  justify-content: center;
}
.nav-item { position: relative; }
.nav-link {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 18px 22px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--charcoal);
  position: relative;
  transition: all var(--transition);
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 8px; left: 22px; right: 22px;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform var(--transition);
  transform-origin: left;
}
.nav-link:hover, .nav-link.active { color: var(--emerald-deep); }
.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); }
.nav-link svg { width: 12px; height: 12px; transition: transform var(--transition); }
.nav-item:hover .nav-link svg { transform: rotate(180deg); }

.nav-submenu {
  position: absolute;
  top: 100%; left: 0;
  background: var(--ivory);
  min-width: 280px;
  padding: 12px 0;
  border-top: 3px solid var(--gold);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--transition);
  z-index: 50;
}
.nav-item:hover .nav-submenu { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-submenu a {
  display: block;
  padding: 12px 22px;
  font-size: 13px;
  font-weight: 500;
  color: var(--slate);
  border-left: 3px solid transparent;
  transition: all var(--transition);
}
.nav-submenu a:hover { background: var(--cream); color: var(--emerald-deep); border-left-color: var(--gold); padding-left: 26px; }

.nav-toggle {
  display: none;
  padding: 18px;
  color: var(--emerald-deep);
}
.nav-toggle svg { width: 24px; height: 24px; }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 86vh;
  display: flex;
  align-items: center;
  background: var(--emerald-deep);
  color: var(--ivory);
  overflow: hidden;
  padding: 100px 0;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 15% 25%, rgba(110, 193, 228, 0.22) 0%, transparent 55%),
    radial-gradient(ellipse 70% 50% at 85% 75%, rgba(31, 128, 89, 0.45) 0%, transparent 55%),
    radial-gradient(ellipse 50% 40% at 50% 100%, rgba(165, 216, 237, 0.10) 0%, transparent 60%),
    linear-gradient(170deg, #001f24 0%, #003a44 35%, #00aeae 65%, #1d8a8a 100%);
}
.hero-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg width='120' height='120' viewBox='0 0 120 120' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%236ec1e4' stroke-width='.7'%3E%3Cpath d='M60 12 L70 38 L96 42 L75 60 L82 86 L60 72 L38 86 L45 60 L24 42 L50 38 Z'/%3E%3Ccircle cx='60' cy='50' r='4'/%3E%3Cpath d='M0 60 L24 60 M96 60 L120 60 M60 0 L60 12 M60 108 L60 120'/%3E%3C/g%3E%3C/svg%3E");
}
.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 60px;
  align-items: center;
}

/* ---- Beautiful SVG hero illustration ---- */
.hero-art {
  position: relative;
  aspect-ratio: 3 / 4;
  max-width: 480px;
  margin-left: auto;
  filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.35));
}
.hero-svg {
  width: 100%;
  height: 100%;
  display: block;
}
.hero-svg text {
  font-family: 'Amiri', 'Scheherazade New', serif;
}
/* gentle floating motion */
.hero-art {
  animation: heroFloat 9s ease-in-out infinite;
}
@keyframes heroFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: rgba(255,255,255,0.92);
  font-size: 12px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 28px;
}
.hero-eyebrow::before, .hero-eyebrow::after {
  content: '';
  width: 32px; height: 1px;
  background: var(--gold);
}
.hero-arabic {
  font-family: var(--font-arabic);
  font-size: clamp(2rem, 4vw, 3.4rem);
  color: rgba(255,255,255,0.88);
  margin-bottom: 20px;
  line-height: 1.5;
  direction: rtl;
  text-align: right;
  font-weight: 400;
}
.hero h1 {
  color: var(--ivory);
  font-weight: 700;
  line-height: 1.05;
  margin-bottom: 28px;
}
.hero h1 em {
  font-style: italic;
  color: rgba(255,255,255,0.9);
  font-weight: 500;
}
.hero-lead {
  font-size: 1.15rem;
  color: rgba(255, 253, 248, 0.85);
  line-height: 1.75;
  max-width: 600px;
  margin-bottom: 40px;
}
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; }
.btn-primary, .btn-secondary, .btn-outline {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 32px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: all var(--transition);
}
.btn-primary {
  background: var(--gold);
  color: #ffffff;
}
.btn-primary:hover { background: var(--gold-light); transform: translateY(-2px); box-shadow: var(--shadow-gold); }
.btn-outline {
  border: 1.5px solid rgba(255, 253, 248, 0.4);
  color: var(--ivory);
}
.btn-outline:hover { border-color: #ffffff; color: #ffffff; }
.btn-secondary {
  background: var(--emerald-deep);
  color: #ffffff;
}
.btn-secondary:hover { background: var(--emerald); }

/* ---------- SECTION DEFAULTS ---------- */
.section { padding: 100px 0; position: relative; }
.section-head { text-align: center; margin-bottom: 64px; }
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--gold-deep);
  font-size: 12px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 18px;
}
.section-eyebrow::before, .section-eyebrow::after {
  content: ''; width: 32px; height: 1px; background: var(--gold);
}
.section-head h2 { margin-bottom: 16px; }
.section-head h2 em { font-style: italic; color: var(--emerald); font-weight: 500; }
.section-head p { max-width: 640px; margin: 0 auto; font-size: 1.05rem; }

/* ---------- SERVICES (FLIP CARDS) ---------- */
.services { background: var(--cream); position: relative; }
.services::before {
  content: ''; position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 0l6 24 24-6-18 18 18 18-24-6-6 24-6-24-24 6 18-18-18-18 24 6z' fill='%2300aeae' opacity='0.025'/%3E%3C/svg%3E");
  pointer-events: none;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  position: relative;
  z-index: 1;
}
.flip-card {
  perspective: 1500px;
  height: 360px;
  cursor: pointer;
}
.flip-card-inner {
  position: relative;
  width: 100%; height: 100%;
  transition: transform 700ms cubic-bezier(0.4, 0, 0.2, 1);
  transform-style: preserve-3d;
}
.flip-card:hover .flip-card-inner,
.flip-card.flipped .flip-card-inner { transform: rotateY(180deg); }
.flip-card-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}
.flip-card-front {
  background: var(--ivory);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.flip-card-front::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--gold-deep));
}
.flip-card-icon {
  width: 64px; height: 64px;
  border-radius: 50% 50% 4px 4px / 60% 60% 4px 4px;
  background: linear-gradient(135deg, var(--emerald-muted), rgba(212, 228, 221, 0.4));
  display: flex; align-items: center; justify-content: center;
  color: var(--emerald-deep);
  margin-bottom: 24px;
  position: relative;
}
.flip-card-icon::after {
  content: '';
  position: absolute;
  inset: 6px;
  border-radius: 50% 50% 2px 2px / 60% 60% 2px 2px;
  border: 1px solid rgba(0, 110, 110, 0.15);
}
.flip-card-icon svg { width: 28px; height: 28px; position: relative; z-index: 1; }
.flip-card-number {
  position: absolute;
  top: 28px; right: 28px;
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--cream-warm);
  line-height: 1;
}
.flip-card-front h3 {
  font-size: 1.4rem;
  margin-bottom: 12px;
  color: var(--emerald-deep);
}
.flip-card-front p {
  font-size: 0.92rem;
  color: var(--slate);
  margin-bottom: 16px;
}
.flip-card-cue {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-deep);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.flip-card-cue svg { width: 14px; height: 14px; }
.flip-card-back {
  background: linear-gradient(135deg, var(--emerald-deep), var(--emerald));
  color: var(--ivory);
  transform: rotateY(180deg);
}
.flip-card-back::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M20 0l4 16 16-4-12 12 12 12-16-4-4 16-4-16-16 4 12-12L0 12l16 4z' fill='%236ec1e4' opacity='0.08'/%3E%3C/svg%3E");
}
.flip-card-back > * { position: relative; z-index: 1; }
.flip-card-back h3 {
  color: var(--gold-light);
  font-size: 1.4rem;
  margin-bottom: 16px;
}
.flip-card-back p {
  color: rgba(255,253,248,0.9);
  font-size: 0.95rem;
  line-height: 1.7;
}
.flip-card-link {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 20px;
  border: 1px solid var(--gold);
  color: var(--gold-light);
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  transition: all var(--transition);
  align-self: flex-start;
}
.flip-card-link:hover { background: var(--gold); color: #ffffff; }

/* ---------- PRAYER TIMES ---------- */
.prayer { background: var(--ivory); position: relative; }
.prayer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 40px;
  align-items: start;
}
.prayer-table-wrap {
  background: var(--cream);
  border-radius: var(--radius-lg);
  padding: 36px;
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.prayer-table-wrap::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 200px; height: 200px;
  background: radial-gradient(circle at center, rgba(110, 193, 228, 0.12) 0%, transparent 70%);
  pointer-events: none;
}
.prayer-table-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
.prayer-table-head h3 {
  color: var(--emerald-deep);
  font-size: 1.5rem;
  margin: 0;
}
.prayer-table-head .arabic-bismillah {
  font-family: var(--font-arabic);
  color: var(--gold-deep);
  font-size: 1.4rem;
  direction: rtl;
}
.prayer-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}
.prayer-table thead th {
  background: var(--emerald-deep);
  color: var(--gold-light);
  padding: 14px 16px;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  text-align: left;
}
.prayer-table thead th:first-child { border-radius: 8px 0 0 8px; }
.prayer-table thead th:last-child { border-radius: 0 8px 8px 0; text-align: right; }
.prayer-table tbody td {
  padding: 16px;
  background: var(--ivory);
  border-bottom: 1px solid var(--line-soft);
  font-size: 15px;
  color: var(--charcoal);
  transition: background var(--transition);
}
.prayer-table tbody tr:hover td { background: var(--cream-warm); }
.prayer-table tbody td:first-child {
  font-weight: 700;
  color: var(--emerald-deep);
  font-size: 1.05rem;
}
.prayer-table tbody td:last-child {
  text-align: right;
  color: var(--gold-deep);
  font-weight: 700;
}
.prayer-table tr.jummah td {
  background: linear-gradient(135deg, rgba(110, 193, 228, 0.08), rgba(110, 193, 228, 0.02));
  border-bottom: 1px solid rgba(110, 193, 228, 0.2);
}
.prayer-table tr.jummah td:first-child { color: var(--gold-deep); }
.prayer-table-foot {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  color: var(--slate);
}
.prayer-table-foot .location {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600;
  color: var(--emerald-deep);
}
.prayer-table-foot .location svg { width: 14px; height: 14px; }
.prayer-table-foot .dates { text-align: right; }
.prayer-table-foot .dates strong { color: var(--charcoal); display: block; }
.prayer-table-foot .dates .hijri {
  font-family: var(--font-arabic);
  color: var(--gold-deep);
  font-size: 15px;
}

.prayer-aside {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.next-prayer-card {
  background: linear-gradient(135deg, var(--emerald-deep), var(--emerald));
  color: var(--ivory);
  padding: 32px;
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}
.next-prayer-card::before {
  content: '';
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M50 0l12 38 38-12-28 28 28 28-38-12-12 38-12-38-38 12 28-28L0 26l38 12z' fill='%236ec1e4' opacity='0.06'/%3E%3C/svg%3E");
}
.next-prayer-card > * { position: relative; z-index: 1; }
.next-prayer-card .label {
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold-light);
  font-weight: 700;
  margin-bottom: 12px;
}
.next-prayer-card .name {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--ivory);
  line-height: 1;
  margin-bottom: 8px;
}
.next-prayer-card .countdown {
  font-size: 1.1rem;
  color: var(--gold-light);
  margin-bottom: 24px;
}
.next-prayer-card .times {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,253,248,0.15);
}
.next-prayer-card .times div span {
  display: block;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,253,248,0.6);
  margin-bottom: 4px;
}
.next-prayer-card .times div strong { font-size: 1.4rem; font-weight: 700; color: var(--ivory); }

.qibla-card {
  background: var(--cream-warm);
  padding: 28px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 20px;
}
.qibla-icon {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--gold);
  display: flex; align-items: center; justify-content: center;
  color: var(--emerald-deep);
  flex-shrink: 0;
}
.qibla-icon svg { width: 24px; height: 24px; }
.qibla-card h4 { color: var(--emerald-deep); margin-bottom: 4px; }
.qibla-card p { font-size: 14px; margin: 0; }

/* ---------- EVENTS ---------- */
.events { background: var(--cream); }
.events-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.event-card {
  background: var(--ivory);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}
.event-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--gold);
}
.event-img {
  height: 180px;
  background: linear-gradient(135deg, var(--emerald-deep), var(--emerald-light));
  position: relative;
  overflow: hidden;
}
.event-img::before {
  content: '';
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 0l6 24 24-6-18 18 18 18-24-6-6 24-6-24-24 6 18-18-18-18 24 6z' fill='%236ec1e4' opacity='0.12'/%3E%3C/svg%3E");
}
.event-img.has-image::before { display: none; }
.event-img.has-image .event-badge {
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
  border-color: rgba(255, 255, 255, 0.25);
}
.event-img.has-image .event-date {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(6px);
}
.event-img-emblem {
  position: absolute;
  inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-arabic);
  font-size: 3.5rem;
  color: rgba(165, 216, 237, 0.8);
  font-weight: 700;
}
.event-badge {
  position: absolute;
  top: 16px; left: 16px;
  background: var(--gold);
  color: var(--emerald-deep);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 800;
}
.event-badge.recurring { background: var(--cream); color: var(--emerald-deep); }
.event-date {
  position: absolute;
  bottom: -22px; right: 20px;
  background: var(--ivory);
  border-radius: var(--radius);
  padding: 8px 14px;
  text-align: center;
  box-shadow: var(--shadow);
  min-width: 64px;
}
.event-date .day {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--emerald-deep);
  line-height: 1;
}
.event-date .month {
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold-deep);
  font-weight: 700;
  margin-top: 2px;
}
.event-body {
  padding: 36px 28px 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.event-body h3 {
  font-size: 1.25rem;
  color: var(--emerald-deep);
  margin-bottom: 12px;
}
.event-body p { font-size: 0.92rem; flex: 1; margin-bottom: 16px; }
.event-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
  font-size: 13px;
  color: var(--slate);
}
.event-meta div { display: inline-flex; align-items: center; gap: 6px; }
.event-meta svg { width: 14px; height: 14px; color: var(--gold-deep); }

.events-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 80px 20px;
  color: var(--slate-light);
  background: var(--ivory);
  border-radius: var(--radius-lg);
  border: 1px dashed var(--line);
}

/* ---------- GOOGLE REVIEWS ---------- */
.reviews { background: var(--ivory); }
.reviews-head { display: flex; align-items: end; justify-content: space-between; flex-wrap: wrap; gap: 20px; margin-bottom: 50px; }
.reviews-rating {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  background: var(--cream-warm);
  border-radius: 999px;
  border: 1px solid var(--line);
}
.reviews-rating .stars { display: inline-flex; gap: 2px; color: var(--gold); }
.reviews-rating .stars svg { width: 16px; height: 16px; }
.reviews-rating strong { font-size: 18px; color: var(--emerald-deep); }
.reviews-rating span { font-size: 13px; color: var(--slate); }

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.review-card {
  background: var(--cream);
  border-radius: var(--radius-lg);
  padding: 32px;
  border: 1px solid var(--line);
  position: relative;
  transition: all var(--transition);
}
.review-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.review-card::before {
  content: '"';
  position: absolute;
  top: 12px; right: 24px;
  font-family: var(--font-display);
  font-size: 5rem;
  color: var(--gold);
  opacity: 0.3;
  line-height: 1;
}
.review-stars { display: inline-flex; gap: 2px; color: var(--gold); margin-bottom: 16px; }
.review-stars svg { width: 16px; height: 16px; }
.review-text {
  color: var(--charcoal);
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 24px;
  font-style: italic;
}
.review-author {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.review-avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--emerald-deep), var(--emerald-light));
  color: var(--gold-light);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-family: var(--font-display);
}
.review-author-info strong { display: block; font-size: 14px; color: var(--emerald-deep); }
.review-author-info span { font-size: 12px; color: var(--slate-light); }

.reviews-cta {
  text-align: center;
  margin-top: 40px;
}
.reviews-cta a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--emerald-deep);
  font-weight: 600;
  border-bottom: 1px solid var(--gold);
  padding-bottom: 4px;
}

/* ---------- IDARA BOOKING ---------- */
.booking { background: var(--cream); position: relative; }
.booking-inner {
  background: var(--ivory);
  border-radius: var(--radius-lg);
  padding: 60px;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.booking-inner::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--emerald-deep), var(--gold), var(--emerald-deep));
}
.booking-form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px 24px;
}
.form-field { display: flex; flex-direction: column; }
.form-field.full { grid-column: 1 / -1; }
.form-field label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--emerald-deep);
  margin-bottom: 8px;
}
.form-field label .required { color: var(--danger); }
.form-field input,
.form-field textarea,
.form-field select {
  padding: 14px 16px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--cream);
  font-size: 15px;
  color: var(--charcoal);
  transition: all var(--transition);
  width: 100%;
}
.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  outline: none;
  border-color: var(--gold);
  background: var(--ivory);
  box-shadow: 0 0 0 4px rgba(110, 193, 228, 0.12);
}
.form-field textarea { resize: vertical; min-height: 100px; }

.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 18px;
  background: var(--cream);
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--line);
}
.checkbox-grid label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--charcoal);
  margin: 0;
  cursor: pointer;
  padding: 6px;
  border-radius: 4px;
  transition: background var(--transition);
}
.checkbox-grid label:hover { background: rgba(110, 193, 228, 0.08); }
.checkbox-grid input[type="checkbox"] {
  width: 16px; height: 16px;
  accent-color: var(--emerald-deep);
  margin: 0;
  padding: 0;
}
.select-all { grid-column: 1 / -1; padding-bottom: 8px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.select-all label { font-weight: 700; color: var(--emerald-deep); text-transform: uppercase; font-size: 11px; letter-spacing: 0.1em; }

.disclaimer {
  margin-top: 12px;
  padding: 12px 16px;
  background: rgba(110, 193, 228, 0.1);
  border-left: 3px solid var(--gold);
  border-radius: 0 6px 6px 0;
  font-size: 13px;
  color: var(--slate);
  font-weight: 500;
}
.disclaimer strong { color: var(--gold-deep); }

.signature-pad {
  border: 1.5px dashed var(--line);
  border-radius: var(--radius-sm);
  background: var(--cream);
  position: relative;
  cursor: crosshair;
  overflow: hidden;
}
.signature-pad canvas { display: block; width: 100%; height: 160px; background: transparent; }
.signature-controls {
  position: absolute;
  top: 8px; right: 8px;
  display: flex;
  gap: 6px;
}
.signature-controls button {
  padding: 6px 12px;
  background: var(--ivory);
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--emerald-deep);
  transition: all var(--transition);
}
.signature-controls button:hover { background: var(--emerald-deep); color: var(--ivory); }
.signature-placeholder {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  color: var(--slate-light);
  font-size: 14px;
  pointer-events: none;
  font-style: italic;
}

.booking-submit {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.btn-submit {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--emerald-deep);
  color: #ffffff;
  padding: 16px 36px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: all var(--transition);
}
.btn-submit:hover { background: var(--emerald); transform: translateY(-2px); box-shadow: var(--shadow); }

/* ---------- FOOTER ---------- */
.footer {
  background: linear-gradient(180deg, #006670 0%, #001f24 100%);
  color: rgba(255, 253, 248, 0.85);
  padding: 80px 0 0;
  position: relative;
  overflow: hidden;
}
.footer::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='80' height='80' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M40 0l8 16L64 8l-8 16 16 8-16 8 8 16-16-8-8 16-8-16L8 56l8-16L0 32l16-8L8 8l16 8z' fill='%236ec1e4' opacity='0.04'/%3E%3C/svg%3E");
}
.footer > * { position: relative; z-index: 1; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1.2fr;
  gap: 60px;
  margin-bottom: 60px;
}
.footer-col h4 {
  color: var(--gold-light);
  font-size: 1.15rem;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.footer-col h4::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(110, 193, 228, 0.35), transparent);
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}
.footer-brand-logo {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--ivory);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.footer-brand-logo img { width: 100%; height: 100%; object-fit: cover; }
.footer-brand strong {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--gold-light);
  font-weight: 700;
  display: block;
  line-height: 1.2;
}
.footer-brand small {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(165, 216, 237, 0.7);
  display: block;
  margin-top: 2px;
}
.footer-col p { color: rgba(255, 253, 248, 0.75); font-size: 14px; line-height: 1.75; }
.footer-charity {
  margin-top: 20px;
  padding: 12px 16px;
  background: rgba(110, 193, 228, 0.08);
  border-left: 2px solid var(--gold);
  font-size: 12px;
  border-radius: 0 6px 6px 0;
}

.footer-contact-item {
  display: flex;
  gap: 14px;
  margin-bottom: 20px;
  align-items: flex-start;
}
.footer-contact-icon {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(110, 193, 228, 0.12);
  color: var(--gold-light);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.footer-contact-icon svg { width: 16px; height: 16px; }
.footer-contact-item .meta span {
  display: block;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(165, 216, 237, 0.8);
  margin-bottom: 4px;
  font-weight: 600;
}
.footer-contact-item .meta strong, .footer-contact-item .meta a {
  color: var(--ivory);
  font-weight: 500;
  font-size: 14px;
}
.footer-contact-item .meta a:hover { color: var(--gold-light); }

.footer-map {
  border-radius: var(--radius);
  overflow: hidden;
  height: 280px;
  background: rgba(255, 253, 248, 0.05);
  border: 1px solid rgba(110, 193, 228, 0.2);
}
.footer-map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(0.2) contrast(1.05); }

.footer-legal-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 28px;
  padding: 22px 0;
  border-top: 1px solid rgba(110, 193, 228, 0.18);
}
.footer-legal-links a {
  color: rgba(255, 253, 248, 0.6);
  font-size: 13px;
  letter-spacing: 0.02em;
  transition: color var(--transition);
}
.footer-legal-links a:hover { color: var(--gold-light); }

.footer-bottom {
  padding: 24px 0;
  border-top: 1px solid rgba(110, 193, 228, 0.18);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-bottom p {
  font-size: 13px;
  color: rgba(255, 253, 248, 0.55);
  margin: 0;
}
.footer-socials { display: flex; gap: 10px; }
.footer-socials a {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(110, 193, 228, 0.12);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--gold-light);
  transition: all var(--transition);
}
.footer-socials a:hover { background: var(--gold); color: #ffffff; transform: translateY(-2px); }
.footer-socials svg { width: 16px; height: 16px; }

/* ---------- COOKIE CONSENT (GDPR) ---------- */
.cookie-banner {
  position: fixed;
  bottom: 16px;
  left: 16px;
  right: 16px;
  max-width: 880px;
  margin: 0 auto;
  background: #ffffff;
  border: 1px solid var(--gold);
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(0, 110, 110, 0.22);
  padding: 18px 22px;
  z-index: 9000;
  font-family: 'Manrope', sans-serif;
  animation: cookieSlideUp .35s ease;
}
@keyframes cookieSlideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.cookie-banner-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: center;
}
.cookie-banner-text strong {
  display: block;
  font-family: 'Playfair Display', serif;
  color: var(--emerald-deep);
  font-size: 17px;
  margin-bottom: 4px;
}
.cookie-banner-text p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.55;
  color: #3a4a4e;
}
.cookie-banner-text a { color: var(--emerald); text-decoration: underline; }
.cookie-banner-text a:hover { color: var(--gold); }
.cookie-banner-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-shrink: 0;
}
.cookie-btn {
  font-family: 'Manrope', sans-serif;
  font-weight: 600;
  font-size: 13px;
  padding: 9px 18px;
  border-radius: 100px;
  border: 1.5px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: all .2s ease;
}
.cookie-btn-primary {
  background: var(--emerald-deep);
  color: #ffffff;
  border-color: var(--emerald-deep);
}
.cookie-btn-primary:hover { background: var(--emerald); border-color: var(--emerald); }
.cookie-btn-ghost {
  background: transparent;
  color: var(--emerald-deep);
  border-color: rgba(0, 110, 110, 0.25);
}
.cookie-btn-ghost:hover { border-color: var(--emerald-deep); background: rgba(0, 110, 110, 0.04); }

.cookie-prefs-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 110, 110, 0.55);
  display: grid;
  place-items: center;
  z-index: 9500;
  padding: 16px;
  animation: cookieFade .25s ease;
}
@keyframes cookieFade { from { opacity: 0; } to { opacity: 1; } }
.cookie-prefs {
  background: #fff;
  border-radius: 14px;
  max-width: 580px;
  width: 100%;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
}
.cookie-prefs-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
}
.cookie-prefs-head h3 {
  margin: 0;
  font-family: 'Playfair Display', serif;
  color: var(--emerald-deep);
  font-size: 1.3rem;
}
.cookie-prefs-close {
  background: none;
  border: 0;
  font-size: 28px;
  line-height: 1;
  color: var(--slate-mute);
  cursor: pointer;
  padding: 0 6px;
}
.cookie-prefs-close:hover { color: var(--emerald-deep); }
.cookie-prefs-body {
  padding: 18px 22px;
  overflow-y: auto;
  flex: 1;
}
.cookie-prefs-body > p {
  margin: 0 0 14px;
  color: var(--slate);
  font-size: 14px;
  line-height: 1.55;
}
.cookie-cat {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 12px;
}
.cookie-cat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}
.cookie-cat-head label { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.cookie-cat-head input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--emerald); }
.cookie-cat-head strong {
  font-family: 'Manrope', sans-serif;
  color: var(--emerald-deep);
  font-size: 14px;
}
.cookie-cat .always-active {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
}
.cookie-cat p {
  margin: 0;
  color: var(--slate);
  font-size: 13px;
  line-height: 1.5;
}
.cookie-prefs-foot {
  padding: 14px 22px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

@media (max-width: 700px) {
  .cookie-banner-inner { grid-template-columns: 1fr; }
  .cookie-banner-actions { flex-direction: row; flex-wrap: wrap; }
  .cookie-btn { flex: 1; min-width: 110px; }
}

/* ---------- TOAST / NOTIFICATIONS ---------- */
.toast {
  position: fixed;
  bottom: 30px; right: 30px;
  background: var(--emerald-deep);
  color: var(--ivory);
  padding: 16px 24px;
  border-radius: var(--radius);
  border-left: 4px solid var(--gold);
  box-shadow: var(--shadow-lg);
  z-index: 999;
  transform: translateX(120%);
  transition: transform 400ms cubic-bezier(0.4, 0, 0.2, 1);
  max-width: 360px;
}
.toast.show { transform: translateX(0); }
.toast.error { border-left-color: var(--danger); }

/* ---------- ANIMATIONS ---------- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
.reveal { opacity: 0; }
.reveal.in-view { animation: fadeInUp 800ms cubic-bezier(0.16, 1, 0.3, 1) forwards; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: 60px; }
  .hero-art { max-width: 340px; margin: 0 auto; }
  .services-grid, .events-grid, .reviews-grid { grid-template-columns: repeat(2, 1fr); }
  .prayer-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-col:nth-child(3) { grid-column: 1 / -1; }
  .booking-form-grid { grid-template-columns: 1fr; }
  .checkbox-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .topbar-inner { justify-content: center; text-align: center; }
  .topbar-divider { display: none; }
  .header-inner { flex-direction: column; gap: 24px; }
  .header-contacts { flex-wrap: wrap; justify-content: center; gap: 20px; }
  .nav-list { display: none; flex-direction: column; padding: 16px 0; }
  .nav-list.open { display: flex; align-items: stretch; }
  .nav-toggle { display: flex; align-items: center; gap: 8px; width: 100%; justify-content: space-between; padding: 16px 24px; font-weight: 700; color: var(--emerald-deep); }
  .nav-item { width: 100%; }
  .nav-link { width: 100%; padding: 14px 24px; }
  .nav-submenu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: none; padding-left: 20px; }
  .services-grid, .events-grid, .reviews-grid { grid-template-columns: 1fr; }
  .flip-card { height: 320px; }
  .section { padding: 70px 0; }
  .booking-inner { padding: 30px 24px; }
  .checkbox-grid { grid-template-columns: 1fr; }
  .ticker-label { padding: 12px 18px; font-size: 11px; }
  .ticker-track { padding-left: 160px; }
  .footer-grid { grid-template-columns: 1fr; gap: 40px; }
  .reviews-head { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 480px) {
  h1 { font-size: 2.2rem; }
  .brand-logo { width: 56px; height: 56px; }
  .brand-text h1, .brand-text .brand-name { font-size: 1.3rem; }
  .booking-submit { flex-direction: column; }
  .btn-submit { width: 100%; justify-content: center; }
}

/* ==========================================================================
   FEATURED EVENTS (homepage spotlight, between Hero and Services)
   Up to 2 cards. Section auto-hides when no upcoming featured events.
   ========================================================================== */
.section.featured {
  background: linear-gradient(180deg, var(--cream) 0%, #fff 100%);
  padding-top: 5rem;
  padding-bottom: 5rem;
}
.featured-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}
@media (min-width: 760px) {
  /* If there are 2 cards, show them side-by-side; if 1, keep centered & wide */
  .featured-grid.cards-2 { grid-template-columns: 1fr 1fr; }
}
.featured-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 110, 110, 0.07);
  display: flex;
  flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease;
  position: relative;
}
.featured-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 50px rgba(0, 110, 110, 0.12);
}
.featured-card-banner {
  position: relative;
  aspect-ratio: 16 / 8;
  background: linear-gradient(135deg, var(--emerald-deep) 0%, var(--emerald) 60%, var(--gold) 100%);
  overflow: hidden;
}
.featured-card-banner::before {
  content: '';
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='80' height='80' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M40 0l8 32 32-8-24 24 24 24-32-8-8 32-8-32-32 8 24-24-24-24 32 8z' fill='%236ec1e4' opacity='0.10'/%3E%3C/svg%3E");
}
.featured-card-banner.has-image::before { display: none; }
.featured-card-emblem {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-family: 'Amiri', serif;
  font-size: 4rem;
  color: rgba(255, 255, 255, 0.85);
}
.featured-card-tag {
  position: absolute;
  top: 18px; left: 18px;
  background: #fff;
  color: var(--emerald-deep);
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}
.featured-card-tag::before { content: '★'; color: var(--gold); }
.featured-card-date {
  position: absolute;
  bottom: 18px; right: 18px;
  background: #fff;
  border-radius: 12px;
  padding: 10px 14px;
  text-align: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
  min-width: 64px;
}
.featured-card-date .day {
  display: block;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--emerald-deep);
  line-height: 1;
}
.featured-card-date .month {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--slate-mute);
  margin-top: 2px;
}
.featured-card-body { padding: 1.75rem 1.75rem 2rem; }
.featured-card-body h3 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--emerald-deep);
  margin: 0 0 0.6rem;
  line-height: 1.25;
}
.featured-card-body h3 em { color: var(--emerald); font-style: italic; }
.featured-card-body p {
  margin: 0 0 1.2rem;
  color: var(--slate);
  font-size: 0.95rem;
  line-height: 1.6;
}
.featured-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line-soft);
  font-size: 0.85rem;
  color: var(--slate);
}
.featured-meta-item {
  display: inline-flex; align-items: center; gap: 6px;
}
.featured-meta-item svg {
  width: 14px; height: 14px; opacity: 0.6; flex-shrink: 0;
}
