/* ════════════════════════════════════════════════════════
   Muslim Association of Malawi — Main Stylesheet
   ════════════════════════════════════════════════════════ */

/* ─── Custom Properties ─────────────────────────────────────────────────── */
:root {
  --emerald-900: #0d3b2a;
  --emerald-800: #14522f;
  --emerald-700: #1a6638;
  --emerald-600: #237a42;
  --emerald-100: #cce8d4;
  --gold-500:    #c9a55c;
  --gold-400:    #d8b876;
  --gold-300:    #e6cd9a;
  --cream-50:    #fbf8f1;
  --cream-100:   #f5efe2;
  --cream-200:   #ece2c9;
  --ink-900:     #1a1a1a;
  --ink-700:     #3a3a3a;
  --ink-500:     #6b6b6b;
  --ink-300:     #a8a8a8;
  --red-500:     #dc2626;
  --green-500:   #16a34a;
  --line:        rgba(15,58,46,0.12);
  --shadow-sm:   0 1px 3px rgba(15,58,46,0.07);
  --shadow-md:   0 6px 24px rgba(15,58,46,0.10);
  --shadow-lg:   0 24px 64px rgba(15,58,46,0.18);
  --serif:       'Cormorant Garamond', Georgia, serif;
  --sans:        'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --arabic:      'Amiri', serif;
  --radius:      2px;
  --transition:  0.25s ease;
}

/* ─── Reset & Base ──────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--sans);
  color: var(--ink-900);
  background: var(--cream-50);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img  { max-width: 100%; display: block; height: auto; }
a    { color: inherit; text-decoration: none; }
ul   { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ─── Utility classes ───────────────────────────────────────────────────── */
.container      { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.section        { padding: 96px 0; }
.section--alt   { background: var(--cream-100); }
.section--dark  { background: var(--emerald-900); color: var(--cream-100); }
.section--gold  { background: linear-gradient(135deg, var(--emerald-900), var(--emerald-700)); color: var(--cream-100); }
.section--tight { padding: 60px 0; }
.text-center    { text-align: center; }
.sr-only        { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ─── Section Headings ──────────────────────────────────────────────────── */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--emerald-700); font-size: 11.5px; font-weight: 600;
  letter-spacing: .22em; text-transform: uppercase; margin-bottom: 16px;
}
.eyebrow::before { content: ''; width: 28px; height: 1px; background: var(--gold-500); }
.section--dark .eyebrow,
.section--gold .eyebrow { color: var(--gold-400); }
.section--dark .eyebrow::before,
.section--gold .eyebrow::before { background: var(--gold-400); }

.section-title {
  font-family: var(--serif);
  font-size: clamp(30px, 4.5vw, 56px);
  font-weight: 500; line-height: 1.08;
  letter-spacing: -.02em; margin-bottom: 18px;
  color: var(--emerald-900);
}
.section--dark .section-title,
.section--gold .section-title { color: var(--cream-50); }
.section-title em { font-style: italic; color: var(--emerald-700); }
.section--dark .section-title em,
.section--gold .section-title em { color: var(--gold-400); }

.section-lead { font-size: 17px; color: var(--ink-700); line-height: 1.75; }
.section--dark .section-lead,
.section--gold .section-lead { color: var(--cream-200); }

.section-head { margin-bottom: 56px; }
.section-head.center { text-align: center; max-width: 720px; margin-left: auto; margin-right: auto; }

/* ─── Buttons ───────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 28px; font-size: 13px; font-weight: 600;
  letter-spacing: .09em; text-transform: uppercase;
  transition: all var(--transition); border-radius: var(--radius);
}
.btn::after { content: '→'; transition: transform var(--transition); }
.btn:hover::after { transform: translateX(4px); }

.btn-primary {
  background: var(--emerald-800); color: var(--cream-50);
  border: 1px solid var(--emerald-800);
}
.btn-primary:hover { background: var(--emerald-900); transform: translateY(-1px); box-shadow: var(--shadow-md); }

.btn-outline {
  background: transparent; color: var(--emerald-800);
  border: 1px solid var(--emerald-800);
}
.btn-outline:hover { background: var(--emerald-800); color: var(--cream-50); }

.btn-gold {
  background: var(--gold-500); color: var(--emerald-900);
  border: 1px solid var(--gold-500);
}
.btn-gold:hover { background: var(--gold-400); }

.btn-white {
  background: var(--cream-50); color: var(--emerald-900);
  border: 1px solid var(--cream-50);
}
.btn-white:hover { background: transparent; color: var(--cream-50); border-color: var(--cream-50); }

.btn-donate {
  background: var(--emerald-800); color: var(--cream-50);
  padding: 11px 20px; font-size: 13px; font-weight: 600;
  letter-spacing: .07em; text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 8px;
  transition: all var(--transition);
}
.btn-donate:hover { background: var(--gold-500); color: var(--emerald-900); }

/* ─── Alerts ────────────────────────────────────────────────────────────── */
.alert {
  padding: 14px 20px; font-size: 14.5px; font-weight: 500;
  border-left: 3px solid; margin-bottom: 0;
}
.alert-success { background: #d1fae5; color: #065f46; border-color: #16a34a; }
.alert-error   { background: #fee2e2; color: #991b1b; border-color: #dc2626; }

/* ─── Islamic geometric background utility ──────────────────────────────── */
.geo-pattern {
  position: absolute; inset: 0; pointer-events: none; overflow: hidden;
}
.geo-pattern::before {
  content: '';
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'><g fill='none' stroke='%231c5b48' stroke-width='0.5' opacity='0.08'><path d='M40 0 L80 40 L40 80 L0 40 Z'/><path d='M40 10 L70 40 L40 70 L10 40 Z'/><circle cx='40' cy='40' r='14'/></g></svg>");
}

/* ─── Top bar ───────────────────────────────────────────────────────────── */
.top-bar {
  background: var(--emerald-900);
  border-bottom: 1px solid var(--gold-500);
  padding: 7px 0; font-size: 12.5px; color: var(--cream-100);
  position: relative; z-index: 200;
}
.top-bar__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.prayer-times { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.prayer-times__item { display: flex; gap: 6px; align-items: baseline; }
.prayer-times__name { color: var(--gold-400); font-weight: 600; font-size: 10.5px; text-transform: uppercase; letter-spacing: .1em; }
.prayer-times__time { font-size: 12.5px; }
.top-bar__meta { display: flex; gap: 8px; align-items: center; color: var(--cream-200); font-size: 12px; }
.top-bar__meta .separator { color: var(--gold-500); }

/* ─── Header ────────────────────────────────────────────────────────────── */
.site-header {
  background: rgba(251,248,241,0.97);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 100;
  transition: box-shadow var(--transition);
  overflow: visible;
}
.site-header.scrolled { box-shadow: var(--shadow-md); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 10px 0; overflow: visible; }

/* Logo */
.site-logo { display: flex; align-items: center; gap: 14px; overflow: visible; }
.site-logo__mark {
  width: 80px; height: 80px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(160deg, var(--emerald-700) 0%, var(--emerald-900) 100%);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold-400);
  font-family: var(--arabic); font-size: 32px;
  position: relative;
  top: 14px;            /* overlap upward into top-bar */
  box-shadow: 0 6px 24px rgba(13,59,42,.4), inset 0 0 0 3px var(--gold-500);
  z-index: 200;         /* above both top-bar and header */
  transition: transform var(--transition);
}
.site-logo:hover .site-logo__mark { transform: translateY(-2px) scale(1.03); }
.site-logo__mark::before {
  content: ''; position: absolute; inset: 5px; border-radius: 50%;
  border: 1px dashed rgba(201,165,92,.5); opacity: .8;
}
/* When a real logo image is uploaded, size it the same */
.site-logo img {
  width: 80px; height: 80px; border-radius: 50%; object-fit: contain;
  position: relative; top: 14px;
  box-shadow: 0 6px 24px rgba(13,59,42,.4), 0 0 0 3px var(--gold-500);
  z-index: 200;
  background: #fff;
  transition: transform var(--transition);
}
.site-logo:hover img { transform: translateY(-2px) scale(1.03); }
.site-logo__name { display: block; font-family: var(--serif); font-weight: 600; font-size: 19px; color: var(--emerald-900); line-height: 1.15; letter-spacing: -.01em; }
.site-logo__tagline { display: block; font-size: 10.5px; color: var(--ink-500); text-transform: uppercase; letter-spacing: .18em; margin-top: 2px; }

/* Main Nav */
.main-nav .main-nav__list { display: flex; align-items: center; gap: 2px; }
.main-nav a {
  display: block; padding: 10px 13px;
  font-size: 13.5px; font-weight: 500; color: var(--ink-700);
  position: relative; transition: color var(--transition); white-space: nowrap;
}
.main-nav a:hover, .main-nav a.active { color: var(--emerald-700); }
.main-nav a::after {
  content: ''; position: absolute; bottom: 4px; left: 13px; right: 13px;
  height: 1.5px; background: var(--gold-500);
  transform: scaleX(0); transform-origin: left; transition: transform .25s;
}
.main-nav a:hover::after, .main-nav a.active::after { transform: scaleX(1); }
.main-nav .chevron { font-size: 10px; opacity: .6; }

/* Dropdown */
.has-dropdown { position: relative; }
.dropdown {
  position: absolute; top: calc(100% + 8px); left: 0;
  min-width: 220px;
  background: var(--cream-50);
  border-top: 2px solid var(--gold-500);
  box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: all .25s;
  z-index: 200;
}
.dropdown li a {
  padding: 11px 18px; font-size: 13.5px; border-bottom: 1px solid var(--line);
  color: var(--ink-700);
}
.dropdown li:last-child a { border-bottom: none; }
.dropdown li a:hover { background: var(--cream-100); color: var(--emerald-700); padding-left: 24px; }
.dropdown li a::after { display: none; }
.has-dropdown:hover .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }

/* Hamburger */
.hamburger {
  display: none; flex-direction: column; justify-content: center; align-items: center; gap: 5px;
  width: 42px; height: 42px; border: 1px solid var(--line); border-radius: var(--radius);
  transition: all var(--transition);
}
.hamburger:hover { background: var(--cream-100); }
.hamburger span { display: block; width: 18px; height: 1.5px; background: var(--emerald-900); transition: all .3s; }
.hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile nav drawer */
.mobile-nav {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(360px, 100vw);
  background: var(--cream-50); z-index: 300;
  transform: translateX(100%);
  transition: transform .35s cubic-bezier(.4,0,.2,1);
  overflow-y: auto; padding: 0;
}
.mobile-nav.open { transform: translateX(0); }
.mobile-nav__header { display: flex; align-items: center; justify-content: space-between; padding: 18px 24px; border-bottom: 1px solid var(--line); }
.mobile-nav__close { font-size: 18px; color: var(--ink-500); padding: 4px 8px; }
.mobile-nav__list { padding: 12px 0; }
.mobile-nav__list > li { border-bottom: 1px solid var(--line); }
.mobile-nav__list > li > a,
.mob-sub-toggle {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; padding: 16px 24px;
  font-family: var(--serif); font-size: 22px; font-weight: 500;
  color: var(--emerald-900); text-align: left;
}
.mob-sub-toggle span { font-size: 14px; opacity: .5; }
.mobile-nav__list ul { background: var(--cream-100); display: none; }
.mobile-nav__list ul.open { display: block; }
.mobile-nav__list ul a { display: block; padding: 12px 36px; font-size: 15px; color: var(--ink-700); border-bottom: 1px solid var(--line); }
.mobile-nav__list ul li:last-child a { border-bottom: none; }
.mobile-nav__contact { padding: 24px; border-top: 1px solid var(--line); font-size: 14px; color: var(--ink-500); line-height: 1.8; }
.mobile-nav__contact a { color: var(--emerald-700); }
.mobile-nav__overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 299;
  display: none;
}
.mobile-nav__overlay.open { display: block; }

/* ─── Hero Slider ───────────────────────────────────────────────────────── */
.hero-slider {
  position: relative; overflow: hidden;
  background: var(--emerald-900);
  height: min(680px, 90vh);
}
.hero-slider__track {
  display: flex; height: 100%;
  transition: transform .7s cubic-bezier(.4,0,.2,1);
  will-change: transform;
}
.hero-slide {
  position: relative; min-width: 100%; height: 100%;
  display: flex; align-items: center;
  overflow: hidden;
}
.hero-slide__bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transition: transform 8s ease;
}
.hero-slide:not(.active) .hero-slide__bg { transform: scale(1.08); }
.hero-slide.active .hero-slide__bg { transform: scale(1); }
.hero-slide__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(105deg, rgba(15,58,46,.85) 40%, rgba(15,58,46,.35) 100%);
}
.hero-slide__pattern {
  position: absolute; inset: 0; pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'><g fill='none' stroke='%23d8b876' stroke-width='.6' opacity='0.15'><circle cx='60' cy='60' r='50'/><path d='M60 10 L110 60 L60 110 L10 60 Z'/><circle cx='60' cy='60' r='30'/></g></svg>");
  opacity: .5;
}
.hero-slide__content {
  position: relative; z-index: 2;
  padding: 0 60px; max-width: 760px;
  color: var(--cream-50);
}
.hero-slide__eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--gold-400); font-size: 11px; font-weight: 600;
  letter-spacing: .22em; text-transform: uppercase; margin-bottom: 20px;
}
.hero-slide__eyebrow::before { content: ''; width: 28px; height: 1px; background: var(--gold-400); }
.hero-slide__arabic {
  font-family: var(--arabic); font-size: 20px; color: var(--gold-300);
  direction: rtl; margin-bottom: 16px;
}
.hero-slide__title {
  font-family: var(--serif);
  font-size: clamp(34px, 5.5vw, 68px);
  font-weight: 500; line-height: 1.07; letter-spacing: -.02em;
  margin-bottom: 22px;
}
.hero-slide__title em { font-style: italic; color: var(--gold-400); }
.hero-slide__text { font-size: 17px; color: var(--cream-200); line-height: 1.75; max-width: 580px; margin-bottom: 32px; }
.hero-slide__actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* Slider controls */
.hero-slider__nav {
  position: absolute; bottom: 32px; left: 60px; z-index: 10;
  display: flex; align-items: center; gap: 14px;
}
.hero-slider__dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,.35); border: none; padding: 0;
  transition: all .3s; cursor: pointer;
}
.hero-slider__dot.active { background: var(--gold-400); width: 24px; border-radius: 4px; }
.hero-slider__prev,
.hero-slider__next {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 10;
  width: 48px; height: 48px;
  background: rgba(15,58,46,.7); color: var(--cream-50);
  border: 1px solid rgba(216,184,118,.4);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; transition: all var(--transition);
}
.hero-slider__prev { left: 20px; }
.hero-slider__next { right: 20px; }
.hero-slider__prev:hover,
.hero-slider__next:hover { background: var(--gold-500); color: var(--emerald-900); }
.hero-slider__progress {
  position: absolute; bottom: 0; left: 0; height: 3px;
  background: var(--gold-500); z-index: 10;
  animation: progress 6s linear;
}
@keyframes progress { from { width: 0; } to { width: 100%; } }

/* ─── Stats bar ─────────────────────────────────────────────────────────── */
.stats-bar { background: var(--emerald-800); border-top: 3px solid var(--gold-500); }
.stats-bar__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat-item { padding: 30px 24px; border-right: 1px solid rgba(216,184,118,.2); }
.stat-item:last-child { border-right: none; }
.stat-item__num { font-family: var(--serif); font-size: 44px; font-weight: 600; color: var(--gold-400); line-height: 1; }
.stat-item__label { font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: var(--cream-200); margin-top: 6px; }
.stat-item__sub { font-size: 13px; color: var(--cream-200); opacity: .7; margin-top: 6px; line-height: 1.4; }

/* ─── Mission / Chairman ────────────────────────────────────────────────── */
.mission-grid { display: grid; grid-template-columns: 1fr 1.35fr; gap: 80px; align-items: start; }
.chairman-card { background: var(--emerald-900); box-shadow: var(--shadow-lg); }
.chairman-portrait {
  aspect-ratio: 4/3; position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--emerald-700), var(--emerald-900));
  display: flex; align-items: center; justify-content: center;
}
.chairman-portrait img { width: 100%; height: 100%; object-fit: cover; }
.chairman-portrait__placeholder {
  font-family: var(--arabic); font-size: 80px; color: var(--gold-400); opacity: .3;
}
.chairman-portrait__badge {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(15,58,46,.9));
  padding: 40px 28px 22px;
  color: var(--cream-50);
}
.chairman-portrait__badge .since { font-size: 11px; color: var(--gold-400); text-transform: uppercase; letter-spacing: .15em; }
.chairman-portrait__badge h3 { font-family: var(--serif); font-size: 26px; font-weight: 600; line-height: 1.2; }
.chairman-portrait__badge .role { font-size: 13px; color: var(--cream-200); margin-top: 4px; }
.chairman-quote { padding: 32px; border-top: 2px solid var(--gold-500); }
.chairman-quote blockquote {
  font-family: var(--serif); font-style: italic; font-size: 18px;
  line-height: 1.6; color: var(--cream-100);
  border-left: 2px solid var(--gold-500); padding-left: 18px;
}

.mission-text .eyebrow { margin-bottom: 16px; }
.mission-text h2 { font-family: var(--serif); font-size: clamp(28px, 3.5vw, 44px); font-weight: 500; color: var(--emerald-900); line-height: 1.15; margin-bottom: 24px; letter-spacing: -.01em; }
.mission-text h2 em { font-style: italic; color: var(--emerald-700); }
.mission-text p { font-size: 16.5px; color: var(--ink-700); line-height: 1.8; margin-bottom: 18px; }
.mission-text p:first-of-type::first-letter { font-family: var(--serif); font-size: 56px; font-weight: 600; color: var(--emerald-700); float: left; line-height: .9; padding: 6px 12px 0 0; }
.mission-values { display: grid; grid-template-columns: repeat(2,1fr); gap: 20px; margin-top: 32px; }
.mission-value { padding-top: 18px; border-top: 1px solid var(--line); }
.mission-value .ico { font-size: 24px; }
.mission-value h4 { font-family: var(--serif); font-size: 19px; font-weight: 600; color: var(--emerald-900); margin: 8px 0 4px; }
.mission-value p { font-size: 13.5px; color: var(--ink-500); line-height: 1.5; margin: 0; }

/* ─── Services Grid ─────────────────────────────────────────────────────── */
.services-grid { display: grid; grid-template-columns: repeat(3,1fr); border: 1px solid var(--line); border-right: none; border-bottom: none; }
.service-card {
  padding: 36px 30px; background: var(--cream-50);
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  transition: all .35s; position: relative; overflow: hidden;
}
.service-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--gold-500); transform: scaleX(0); transform-origin: left; transition: transform .35s;
}
.service-card:hover { background: var(--cream-100); }
.service-card:hover::before { transform: scaleX(1); }
.service-card--cta { background: var(--emerald-900); }
.service-card--cta:hover { background: var(--emerald-800); }
.service-card__num { font-family: var(--serif); font-style: italic; font-size: 13px; color: var(--gold-500); margin-bottom: 22px; }
.service-card__icon { width: 54px; height: 54px; background: var(--emerald-800); border: 1px solid var(--gold-500); display: flex; align-items: center; justify-content: center; font-size: 24px; margin-bottom: 20px; }
.service-card--cta .service-card__icon { background: var(--gold-500); }
.service-card h3 { font-family: var(--serif); font-size: 24px; font-weight: 600; color: var(--emerald-900); margin-bottom: 12px; letter-spacing: -.01em; }
.service-card--cta h3 { color: var(--cream-50); }
.service-card p { font-size: 14.5px; color: var(--ink-500); line-height: 1.65; margin-bottom: 20px; }
.service-card--cta p { color: var(--cream-200); }
.service-card .more { font-size: 11.5px; font-weight: 600; letter-spacing: .15em; color: var(--emerald-700); text-transform: uppercase; display: inline-flex; align-items: center; gap: 6px; }
.service-card--cta .more { color: var(--gold-400); }
.service-card .more::after { content: '→'; transition: transform .25s; }
.service-card:hover .more::after { transform: translateX(4px); }

/* Service detail page */
.service-detail-hero { position: relative; padding: 80px 0; background: var(--emerald-900); color: var(--cream-100); overflow: hidden; }
.service-hero-image { aspect-ratio: 16/7; object-fit: cover; width: 100%; position: relative; }
.service-hero-image img { width: 100%; height: 100%; object-fit: cover; }
.service-hero-image .overlay { position: absolute; inset: 0; background: linear-gradient(to bottom, transparent 40%, rgba(15,58,46,.9)); }

/* ─── Projects ──────────────────────────────────────────────────────────── */
.projects-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.project-card { background: var(--cream-50); box-shadow: var(--shadow-sm); overflow: hidden; transition: all var(--transition); }
.project-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.project-card__image {
  aspect-ratio: 16/10; overflow: hidden; position: relative;
  background: linear-gradient(135deg, var(--emerald-700), var(--gold-500));
}
.project-card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.project-card:hover .project-card__image img { transform: scale(1.04); }
.project-card__badge {
  position: absolute; top: 14px; left: 14px;
  padding: 4px 12px; font-size: 10.5px; font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase;
}
.badge-active { background: var(--green-500); color: #fff; }
.badge-planning { background: var(--gold-500); color: var(--emerald-900); }
.badge-completed { background: var(--ink-700); color: #fff; }
.project-card__body { padding: 26px; }
.project-card__meta { display: flex; gap: 10px; flex-wrap: wrap; font-size: 11px; text-transform: uppercase; letter-spacing: .12em; color: var(--ink-500); margin-bottom: 12px; }
.project-card h3 { font-family: var(--serif); font-size: 22px; font-weight: 600; color: var(--emerald-900); margin-bottom: 10px; line-height: 1.3; }
.project-card p { font-size: 14px; color: var(--ink-500); line-height: 1.65; }

/* Project media gallery */
.media-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.media-gallery__item { position: relative; aspect-ratio: 4/3; overflow: hidden; cursor: pointer; }
.media-gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.media-gallery__item:hover img { transform: scale(1.06); }
.media-gallery__overlay { position: absolute; inset: 0; background: rgba(15,58,46,.5); display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity .3s; font-size: 36px; color: var(--cream-50); }
.media-gallery__item:hover .media-gallery__overlay { opacity: 1; }

/* ─── News ──────────────────────────────────────────────────────────────── */
.news-layout { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; }
.news-feature { background: var(--cream-50); box-shadow: var(--shadow-md); overflow: hidden; }
.news-feature__image { aspect-ratio: 16/10; overflow: hidden; position: relative; }
.news-feature__image img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.news-feature:hover .news-feature__image img { transform: scale(1.04); }
.news-feature__body { padding: 32px; }
.news-meta { display: flex; align-items: center; gap: 14px; font-size: 11px; text-transform: uppercase; letter-spacing: .16em; color: var(--ink-500); margin-bottom: 14px; }
.news-tag { background: var(--emerald-800); color: var(--gold-400); padding: 3px 10px; letter-spacing: .1em; }
.news-feature h3 { font-family: var(--serif); font-size: 28px; font-weight: 600; color: var(--emerald-900); line-height: 1.2; margin-bottom: 14px; }
.news-feature p { color: var(--ink-700); line-height: 1.72; margin-bottom: 20px; font-size: 15.5px; }

.news-list { display: flex; flex-direction: column; gap: 0; }
.news-item {
  display: grid; grid-template-columns: 78px 1fr; gap: 18px;
  padding: 22px 0; border-bottom: 1px solid var(--line); cursor: pointer; transition: all .2s;
}
.news-item:last-child { border-bottom: none; }
.news-item:hover h4 { color: var(--emerald-700); }
.news-date { text-align: center; }
.news-date__day { font-family: var(--serif); font-size: 34px; font-weight: 600; color: var(--emerald-800); line-height: 1; }
.news-date__month { font-size: 11px; text-transform: uppercase; letter-spacing: .12em; color: var(--ink-500); margin-top: 2px; }
.news-item h4 { font-family: var(--serif); font-size: 19px; font-weight: 600; color: var(--emerald-900); line-height: 1.3; margin-bottom: 6px; transition: color var(--transition); }
.news-item p { font-size: 13.5px; color: var(--ink-500); line-height: 1.55; }

.news-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 28px; }
.news-card { background: var(--cream-50); box-shadow: var(--shadow-sm); overflow: hidden; transition: all var(--transition); }
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.news-card__image { aspect-ratio: 16/10; overflow: hidden; position: relative; background: linear-gradient(135deg, var(--emerald-700), var(--gold-500)); }
.news-card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.news-card:hover .news-card__image img { transform: scale(1.04); }
.news-card__body { padding: 24px; }
.news-card h3 { font-family: var(--serif); font-size: 21px; font-weight: 600; color: var(--emerald-900); line-height: 1.3; margin-bottom: 10px; }
.news-card p { font-size: 14px; color: var(--ink-500); line-height: 1.65; }

/* ─── Post body typography ──────────────────────────────────────────────── */
.post-body { font-size: 17px; color: var(--ink-700); line-height: 1.85; max-width: 800px; }
.post-body h2 { font-family: var(--serif); font-size: 30px; color: var(--emerald-900); margin: 36px 0 14px; }
.post-body h3 { font-family: var(--serif); font-size: 22px; color: var(--emerald-900); margin: 28px 0 12px; }
.post-body p { margin-bottom: 20px; }
.post-body ul, .post-body ol { margin: 0 0 20px 24px; }
.post-body li { margin-bottom: 8px; }
.post-body blockquote { border-left: 3px solid var(--gold-500); padding-left: 20px; font-style: italic; color: var(--ink-700); margin: 28px 0; font-family: var(--serif); font-size: 20px; }
.post-body strong { color: var(--emerald-900); font-weight: 600; }
.post-body a { color: var(--emerald-700); text-decoration: underline; }

/* ─── Page banner ───────────────────────────────────────────────────────── */
.page-banner {
  position: relative; padding: 80px 0 64px;
  background: linear-gradient(135deg, var(--emerald-900), var(--emerald-700));
  color: var(--cream-100); overflow: hidden;
}
.page-banner .geo-pattern::before { stroke-opacity: .2; }
.page-banner__inner { position: relative; z-index: 2; }
.page-banner__image { position: absolute; inset: 0; }
.page-banner__image img { width: 100%; height: 100%; object-fit: cover; }
.page-banner__image::after { content: ''; position: absolute; inset: 0; background: rgba(15,58,46,.78); }
.breadcrumb { font-size: 12px; color: var(--gold-400); letter-spacing: .15em; text-transform: uppercase; margin-bottom: 18px; }
.breadcrumb span { color: var(--cream-200); }
.page-banner h1 { font-family: var(--serif); font-size: clamp(38px, 5.5vw, 72px); font-weight: 500; line-height: 1.05; letter-spacing: -.02em; color: var(--cream-50); }
.page-banner h1 em { font-style: italic; color: var(--gold-400); }
.page-banner p.lead { font-size: 17px; color: var(--cream-200); margin-top: 18px; max-width: 680px; line-height: 1.7; }

/* ─── Leadership ────────────────────────────────────────────────────────── */
.leadership-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 28px; }
.leader-card { background: var(--cream-50); box-shadow: var(--shadow-sm); text-align: center; overflow: hidden; }
.leader-card__photo {
  aspect-ratio: 1; overflow: hidden;
  background: linear-gradient(135deg, var(--emerald-700), var(--gold-500));
  position: relative;
}
.leader-card__photo img { width: 100%; height: 100%; object-fit: cover; }
.leader-card__photo__placeholder { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; font-family: var(--arabic); font-size: 60px; color: var(--gold-400); opacity: .4; }
.leader-card__body { padding: 24px 20px; }
.leader-card__role { font-size: 10.5px; text-transform: uppercase; letter-spacing: .18em; color: var(--gold-500); margin-bottom: 8px; }
.leader-card h3 { font-family: var(--serif); font-size: 21px; font-weight: 600; color: var(--emerald-900); line-height: 1.2; margin-bottom: 10px; }
.leader-card p { font-size: 13.5px; color: var(--ink-500); line-height: 1.6; }

.leader-card--national { border-top: 3px solid var(--gold-500); }
.leader-card--featured { grid-column: span 1; }

.org-chart { background: var(--cream-50); border-radius: var(--radius); padding: 40px; }
.org-level { margin-bottom: 32px; }
.org-level__title { font-size: 11px; text-transform: uppercase; letter-spacing: .2em; color: var(--gold-500); font-weight: 600; margin-bottom: 16px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.org-level__items { display: flex; flex-wrap: wrap; gap: 12px; }
.org-badge { background: var(--emerald-800); color: var(--cream-100); padding: 10px 16px; font-size: 13.5px; border-left: 2px solid var(--gold-500); }
.org-badge__name { font-family: var(--serif); font-weight: 600; font-size: 15px; }
.org-badge__title { font-size: 11px; color: var(--gold-400); margin-top: 2px; }

/* ─── Timeline ──────────────────────────────────────────────────────────── */
.timeline { position: relative; padding-left: 44px; }
.timeline::before { content: ''; position: absolute; left: 8px; top: 8px; bottom: 8px; width: 1px; background: var(--line); }
.timeline-item { position: relative; padding-bottom: 40px; }
.timeline-item::before {
  content: ''; position: absolute; left: -44px; top: 6px;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--gold-500); border: 2px solid var(--cream-50);
  box-shadow: 0 0 0 1px var(--gold-500);
}
.timeline-year { font-family: var(--serif); font-style: italic; font-size: 14px; color: var(--gold-500); margin-bottom: 6px; }
.timeline-item h4 { font-family: var(--serif); font-size: 21px; font-weight: 600; color: var(--emerald-900); margin-bottom: 8px; }
.timeline-item p { font-size: 15.5px; color: var(--ink-700); line-height: 1.75; }

/* ─── Affiliates ────────────────────────────────────────────────────────── */
.affiliates-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 28px; }
.affiliate-card { background: var(--cream-50); box-shadow: var(--shadow-sm); padding: 32px; border-top: 2px solid var(--gold-500); transition: all var(--transition); }
.affiliate-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.affiliate-card__header { display: flex; align-items: flex-start; gap: 18px; margin-bottom: 18px; }
.affiliate-card__logo { width: 64px; height: 64px; background: var(--cream-100); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-weight: 700; font-size: 22px; color: var(--emerald-800); flex-shrink: 0; overflow: hidden; }
.affiliate-card__logo img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.affiliate-card__name h3 { font-family: var(--serif); font-size: 22px; font-weight: 600; color: var(--emerald-900); margin-bottom: 4px; }
.affiliate-card__name .acronym { font-size: 11px; text-transform: uppercase; letter-spacing: .15em; color: var(--gold-500); font-weight: 600; }
.affiliate-card p { font-size: 14.5px; color: var(--ink-700); line-height: 1.72; margin-bottom: 18px; }
.affiliate-card__contact { border-top: 1px solid var(--line); padding-top: 16px; display: flex; flex-direction: column; gap: 6px; }
.affiliate-card__contact a { font-size: 13.5px; color: var(--emerald-700); font-weight: 500; display: inline-flex; align-items: center; gap: 6px; }

/* ─── Donate ────────────────────────────────────────────────────────────── */
.donate-split { display: grid; grid-template-columns: 1.2fr 1fr; gap: 60px; align-items: start; }
.donate-arabic { font-family: var(--arabic); font-size: 24px; color: var(--gold-400); direction: rtl; text-align: right; margin-bottom: 14px; }
.donate-verse { font-family: var(--serif); font-style: italic; font-size: 17px; color: var(--cream-200); line-height: 1.7; margin-bottom: 24px; border-left: 2px solid var(--gold-500); padding-left: 18px; }
.donate-box { background: rgba(0,0,0,.2); border: 1px solid var(--gold-500); padding: 36px; }
.donate-box h4 { font-family: var(--serif); font-size: 24px; color: var(--gold-400); margin-bottom: 22px; }
.amounts-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin-bottom: 16px; }
.amount-btn {
  background: transparent; color: var(--cream-100);
  border: 1px solid rgba(216,184,118,.35); padding: 14px 8px;
  font: inherit; text-align: center; transition: all .2s; cursor: pointer;
}
.amount-btn:hover, .amount-btn.active { background: var(--gold-500); color: var(--emerald-900); border-color: var(--gold-500); }
.amount-btn .currency { font-size: 10px; display: block; opacity: .7; }
.amount-btn .val { font-family: var(--serif); font-size: 22px; font-weight: 600; }
.donate-input {
  width: 100%; background: transparent; border: 1px solid rgba(216,184,118,.35);
  color: var(--cream-100); padding: 13px 14px; font: inherit; margin-bottom: 12px;
}
.donate-input::placeholder { color: rgba(245,239,226,.4); }
.donate-select {
  width: 100%; background: var(--emerald-800); border: 1px solid rgba(216,184,118,.35);
  color: var(--cream-100); padding: 13px 14px; font: inherit; margin-bottom: 14px;
}
.donate-trust { display: flex; gap: 14px; margin-top: 16px; flex-wrap: wrap; }
.trust-badge { background: rgba(0,0,0,.2); border: 1px solid rgba(216,184,118,.2); padding: 10px 14px; text-align: center; flex: 1; }
.trust-badge .val { font-family: var(--serif); font-size: 22px; color: var(--gold-400); font-weight: 600; }
.trust-badge .lbl { font-size: 10px; text-transform: uppercase; letter-spacing: .12em; color: var(--cream-200); margin-top: 2px; }

/* ─── Contact ───────────────────────────────────────────────────────────── */
.contact-split { display: grid; grid-template-columns: 1fr 1.3fr; gap: 60px; align-items: start; }
.contact-cards { display: flex; flex-direction: column; gap: 18px; }
.contact-card { background: var(--cream-50); padding: 26px; border-left: 3px solid var(--gold-500); box-shadow: var(--shadow-sm); }
.contact-card h4 { font-family: var(--serif); font-size: 20px; color: var(--emerald-900); margin-bottom: 8px; }
.contact-card p { font-size: 15px; color: var(--ink-700); line-height: 1.7; }
.contact-card a { color: var(--emerald-700); font-weight: 500; }

/* ─── Forms ─────────────────────────────────────────────────────────────── */
.form-box { background: var(--cream-50); padding: 44px; box-shadow: var(--shadow-md); }
.form-box h3 { font-family: var(--serif); font-size: 30px; color: var(--emerald-900); margin-bottom: 8px; }
.form-box > p { color: var(--ink-500); font-size: 14.5px; margin-bottom: 28px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.form-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.form-field label { font-size: 10.5px; letter-spacing: .15em; text-transform: uppercase; color: var(--ink-500); font-weight: 600; }
.form-field input,
.form-field textarea,
.form-field select {
  border: 1px solid var(--line); background: #fff;
  padding: 12px 14px; font: inherit; font-size: 15px; color: var(--ink-900);
  transition: border var(--transition);
}
.form-field input:focus,
.form-field textarea:focus { outline: none; border-color: var(--emerald-700); }

/* ─── Gallery / Lightbox ────────────────────────────────────────────────── */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.gallery-item { position: relative; aspect-ratio: 4/3; overflow: hidden; cursor: pointer; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item__caption { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(transparent, rgba(15,58,46,.85)); padding: 30px 16px 14px; color: var(--cream-50); font-size: 13px; opacity: 0; transition: opacity .3s; }
.gallery-item:hover .gallery-item__caption { opacity: 1; }

.lightbox { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.92); z-index: 1000; align-items: center; justify-content: center; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 90vw; max-height: 88vh; object-fit: contain; }
.lightbox__close { position: absolute; top: 20px; right: 24px; font-size: 32px; color: #fff; cursor: pointer; }
.lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); font-size: 32px; color: #fff; cursor: pointer; background: rgba(0,0,0,.4); padding: 12px 18px; }
.lightbox__prev { left: 12px; }
.lightbox__next { right: 12px; }

/* Video grid */
.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.video-card { background: var(--cream-50); box-shadow: var(--shadow-sm); overflow: hidden; }
.video-card__thumb { position: relative; aspect-ratio: 16/9; background: var(--emerald-900); overflow: hidden; cursor: pointer; }
.video-card__thumb img { width: 100%; height: 100%; object-fit: cover; }
.video-card__play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 54px; color: var(--cream-50); text-shadow: 0 2px 12px rgba(0,0,0,.5); opacity: .85; transition: opacity .2s; }
.video-card__thumb:hover .video-card__play { opacity: 1; }
.video-card__body { padding: 18px; }
.video-card h3 { font-family: var(--serif); font-size: 17px; color: var(--emerald-900); margin-bottom: 6px; }
.video-card p { font-size: 13px; color: var(--ink-500); }

/* ─── Events ────────────────────────────────────────────────────────────── */
.events-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 28px; }
.event-card { background: var(--cream-50); box-shadow: var(--shadow-sm); overflow: hidden; display: grid; grid-template-columns: 80px 1fr; }
.event-card__date { background: var(--emerald-800); color: var(--cream-50); padding: 20px 12px; text-align: center; display: flex; flex-direction: column; justify-content: center; }
.event-card__day { font-family: var(--serif); font-size: 36px; font-weight: 600; color: var(--gold-400); line-height: 1; }
.event-card__month { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--cream-200); margin-top: 4px; }
.event-card__body { padding: 20px; }
.event-card h3 { font-family: var(--serif); font-size: 18px; font-weight: 600; color: var(--emerald-900); margin-bottom: 6px; }
.event-card p { font-size: 13px; color: var(--ink-500); }
.event-card__loc { font-size: 12px; color: var(--gold-500); margin-top: 8px; font-weight: 500; }

/* ─── Donate CTA strip ──────────────────────────────────────────────────── */
.donate-strip { display: grid; grid-template-columns: 1.3fr 1fr; gap: 60px; align-items: center; }

/* ─── Pagination ────────────────────────────────────────────────────────── */
.pagination { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 48px; }
.pg-link {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border: 1px solid var(--line);
  font-size: 14px; color: var(--ink-700); transition: all var(--transition);
}
.pg-link:hover { background: var(--emerald-800); color: var(--cream-50); border-color: var(--emerald-800); }
.pg-link.pg-active { background: var(--emerald-800); color: var(--cream-50); border-color: var(--emerald-800); }
.pg-prev, .pg-next { width: auto; padding: 0 16px; }

/* ─── Footer ────────────────────────────────────────────────────────────── */
.site-footer { background: var(--ink-900); color: var(--cream-200); }
.footer__top { padding: 72px 0 40px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 50px; }
.footer__brand h3 { font-family: var(--serif); font-size: 22px; color: var(--cream-50); margin: 18px 0 12px; line-height: 1.2; }
.footer__brand p { font-size: 14px; color: #888; line-height: 1.75; }
.footer__socials { display: flex; gap: 10px; margin-top: 22px; }
.footer__socials a {
  width: 36px; height: 36px; border: 1px solid #333; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--cream-200); font-size: 14px; transition: all var(--transition);
}
.footer__socials a:hover { background: var(--gold-500); color: var(--emerald-900); border-color: var(--gold-500); }

.footer__col h4 { font-size: 11px; text-transform: uppercase; letter-spacing: .2em; color: var(--gold-400); margin-bottom: 18px; font-weight: 600; }
.footer__col ul li { margin-bottom: 10px; }
.footer__col ul a { font-size: 14px; color: #888; transition: color var(--transition); }
.footer__col ul a:hover { color: var(--gold-400); }

.footer__contact-item { font-size: 14px; line-height: 1.75; color: #888; margin-bottom: 12px; display: flex; gap: 10px; }
.footer__contact-item .ico { flex-shrink: 0; color: var(--gold-400); }
.footer__contact-item a { color: #aaa; transition: color var(--transition); }
.footer__contact-item a:hover { color: var(--gold-400); }
.footer__prayers { margin-top: 24px; padding-top: 18px; border-top: 1px solid #222; }
.footer__prayers h5 { font-size: 10px; text-transform: uppercase; letter-spacing: .18em; color: var(--gold-400); margin-bottom: 12px; }
.footer__prayer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px 12px; font-size: 12.5px; color: #888; }
.footer__prayer-grid strong { color: var(--cream-200); }

.footer__bottom { background: #111; border-top: 1px solid #1a1a1a; padding: 20px 0; }
.footer__bottom-inner { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 12.5px; color: #555; }

/* ─── Back to top ───────────────────────────────────────────────────────── */
.back-to-top {
  position: fixed; bottom: 28px; right: 28px; z-index: 90;
  width: 42px; height: 42px; background: var(--emerald-800);
  color: var(--cream-50); border: none; display: flex;
  align-items: center; justify-content: center; font-size: 18px;
  opacity: 0; transform: translateY(10px); transition: all var(--transition);
  cursor: pointer;
}
.back-to-top.show { opacity: 1; transform: translateY(0); }
.back-to-top:hover { background: var(--gold-500); color: var(--emerald-900); }

/* ─── Responsive ────────────────────────────────────────────────────────── */
/* ─── 1100px ────────────────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .main-nav a { padding: 8px 9px; font-size: 12.5px; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .footer__brand { grid-column: 1 / -1; }
  /* About/structure inline grids */
  .mission-grid { gap: 48px; }
}

/* ─── 980px ─────────────────────────────────────────────────────────────── */
@media (max-width: 980px) {
  .main-nav { display: none; }
  .btn-donate { display: none; }
  .hamburger { display: flex; }

  /* All two-column grids → single column */
  .mission-grid,
  .news-layout,
  .donate-split,
  .donate-strip,
  .contact-split { grid-template-columns: 1fr !important; gap: 36px; }

  /* Three-column → two */
  .services-grid { grid-template-columns: repeat(2,1fr); }
  .projects-grid,
  .news-grid,
  .leadership-grid,
  .events-grid { grid-template-columns: repeat(2,1fr); }
  .affiliates-grid { grid-template-columns: 1fr; }

  .stats-bar__grid { grid-template-columns: repeat(2,1fr); }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .hero-slide__content { padding: 0 36px; }

  /* About page inline grids */
  [style*="grid-template-columns:1fr 1fr"] { grid-template-columns: 1fr !important; }
  [style*="grid-template-columns:1fr 1.3fr"] { grid-template-columns: 1fr !important; }
  [style*="grid-template-columns:1fr 1.35fr"] { grid-template-columns: 1fr !important; }
  [style*="grid-template-columns:1fr 320px"] { grid-template-columns: 1fr !important; }
  [style*="grid-template-columns:1fr 340px"] { grid-template-columns: 1fr !important; }
  [style*="grid-template-columns:1fr 300px"] { grid-template-columns: 1fr !important; }
  [style*="grid-template-columns:1.2fr 1fr"] { grid-template-columns: 1fr !important; }
  [style*="grid-template-columns:1.4fr 1fr"] { grid-template-columns: 1fr !important; }

  /* Project/service alternating rows */
  [style*="grid-template-columns:1.2fr 1fr"] > div:last-child,
  [style*="grid-template-columns:1fr 1.2fr"] > div:last-child { order: -1; }

  /* Sidebar sticky becomes static */
  aside[style*="position:sticky"] { position: static !important; top: auto !important; }

  /* Post body sidebar layout */
  [style*="grid-template-columns:1fr 300px"],
  [style*="grid-template-columns:1fr 320px"],
  [style*="grid-template-columns:1fr 340px"] { display: block !important; }
}

/* ─── 680px ─────────────────────────────────────────────────────────────── */
@media (max-width: 680px) {
  .container { padding: 0 16px; }
  .section { padding: 52px 0; }

  /* Top bar */
  .top-bar__meta { display: none; }
  .prayer-times { justify-content: center; font-size: 11px; gap: 8px 12px; }
  .prayer-times__item { flex-direction: column; text-align: center; gap: 1px; }

  /* Hero */
  .hero-slider { height: min(520px, 88vh); }
  .hero-slide__content { padding: 0 20px; max-width: 100%; }
  .hero-slide__arabic { font-size: 14px; }
  .hero-slide__actions { flex-direction: column; gap: 10px; }
  .hero-slide__actions .btn { width: 100%; justify-content: center; }
  .hero-slider__nav { left: 16px; bottom: 16px; }
  .hero-slider__prev { left: 8px; width: 38px; height: 38px; font-size: 18px; }
  .hero-slider__next { right: 8px; width: 38px; height: 38px; font-size: 18px; }

  /* All grids → 1 column */
  .stats-bar__grid,
  .services-grid,
  .projects-grid,
  .news-grid,
  .leadership-grid,
  .affiliates-grid,
  .events-grid { grid-template-columns: 1fr; }

  /* News layout */
  .news-layout { grid-template-columns: 1fr !important; }

  /* Events card */
  .event-card { grid-template-columns: 70px 1fr; }

  /* Donate */
  .amounts-grid { grid-template-columns: repeat(2,1fr); }

  /* Forms */
  .form-box { padding: 24px 18px; }
  .form-row { grid-template-columns: 1fr !important; }

  /* Footer */
  .footer__grid { grid-template-columns: 1fr; gap: 28px; }
  .footer__brand { grid-column: auto; }
  .footer__bottom-inner { flex-direction: column; text-align: center; gap: 6px; }
  .footer__prayer-grid { grid-template-columns: 1fr 1fr; }

  /* Page banner */
  .page-banner { padding: 48px 0 36px; }
  .page-banner h1 { font-size: clamp(28px, 8vw, 44px); }

  /* Drop-cap on mission text */
  .mission-text p:first-of-type::first-letter { float: none; font-size: inherit; color: inherit; padding: 0; }

  /* Org chart */
  .org-level__items { flex-direction: column; }

  /* About photo collage */
  [style*="grid-template-columns:1fr 1fr"][style*="grid-template-rows"] { display: flex !important; flex-direction: column !important; }

  /* Force all inline style grids to single column */
  [style*="grid-template-columns:repeat(3"] { grid-template-columns: 1fr !important; }
  [style*="grid-template-columns:1fr 1fr"] { grid-template-columns: 1fr !important; }
  [style*="grid-template-columns:1fr 1.3fr"] { grid-template-columns: 1fr !important; }
  [style*="grid-template-columns:1fr 1.2fr"] { grid-template-columns: 1fr !important; }
  [style*="grid-template-columns:1fr 300px"] { display: block !important; }
  [style*="grid-template-columns:1fr 320px"] { display: block !important; }
  [style*="grid-template-columns:1fr 340px"] { display: block !important; }
  [style*="grid-template-columns:1.2fr 1fr"] { grid-template-columns: 1fr !important; }
  [style*="grid-template-columns:1.3fr 1fr"] { grid-template-columns: 1fr !important; }
  [style*="grid-template-columns:1.4fr 1fr"] { grid-template-columns: 1fr !important; }

  /* Project/service alternating image rows */
  [style*="grid-template-columns:1.2fr 1fr"] > div { min-height: 220px; }

  /* Media gallery */
  .media-gallery { grid-template-columns: repeat(2,1fr); }
  .gallery-grid { grid-template-columns: repeat(2,1fr); }

  /* Leadership card photo in listing */
  [style*="grid-template-columns:auto-fill"] { grid-template-columns: repeat(2,1fr) !important; }

  /* Chairman card quote */
  .chairman-quote { padding: 20px; }
  .chairman-quote blockquote { font-size: 16px; }

  /* News item date column */
  .news-item { grid-template-columns: 56px 1fr; gap: 12px; }

  /* Logo overlap — reduce on mobile so no overflow issues */
  .site-logo__mark,
  .site-logo img { width: 56px; height: 56px; top: 6px; }

  /* Affiliate card */
  .aff-head { flex-wrap: wrap; }
}

/* ─── 420px ─────────────────────────────────────────────────────────────── */
@media (max-width: 420px) {
  .hero-slider { height: 72vh; }
  .hero-slide__title { font-size: 26px; }
  .hero-slide__text { font-size: 14px; }
  .amounts-grid { grid-template-columns: 1fr 1fr; }
  .stat-item__num { font-size: 34px; }
  .stat-item { padding: 22px 14px; }
  .news-date__day { font-size: 26px; }
  .gallery-grid { grid-template-columns: 1fr; }
  .media-gallery { grid-template-columns: 1fr; }

  /* Top bar prayer times — show only 3 on tiny screens */
  .prayer-times__item:nth-child(n+4) { display: none; }
}

/* ─── Print ─────────────────────────────────────────────────────────────── */
@media print {
  .top-bar, .site-header, .hero-slider, .site-footer, .back-to-top, .mobile-nav, .hamburger { display: none; }
  body { color: #000; background: #fff; font-size: 12pt; }
}
