/* =============================================
   USEF – Ummatic Services & Equity Foundation
   Main Stylesheet
   ============================================= */

/* ---------- CSS Variables ---------- */
:root {
  /* ── Logo palette: deep navy + red + white ── */
  --green-dark:   #1d3461;   /* deep navy  */
  --green-mid:    #25408f;   /* mid navy   */
  --green-light:  #4a6bb8;   /* light navy */
  --gold:         #c8102e;   /* logo red   */
  --gold-light:   #ffffff;   /* white — used as highlight text on navy */
  --red-soft:     #fde8eb;   /* pale red tint for badges / light accents */
  --cream:        #f5f7fc;
  --bg-light:     #eef2fb;
  --white:        #ffffff;
  --text-dark:    #111827;
  --text-mid:     #374151;
  --text-light:   #6b7280;
  --border:       #cdd6f0;
  --shadow-sm:    0 2px 8px  rgba(29,52,97,0.08);
  --shadow-md:    0 4px 20px rgba(29,52,97,0.13);
  --shadow-lg:    0 8px 40px rgba(29,52,97,0.18);
  --radius-sm:    6px;
  --radius-md:    12px;
  --radius-lg:    20px;
  --transition:   all 0.25s ease;
  --font-main:    'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-heading: 'Georgia', 'Times New Roman', serif;
  --max-width:    1200px;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-main);
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--green-dark); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--green-mid); }
ul { list-style: none; }
button { cursor: pointer; font-family: var(--font-main); }

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: 1.25;
  color: var(--green-dark);
}
h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); }
h4 { font-size: 1.15rem; }
p  { margin-bottom: 1rem; color: var(--text-mid); }
p:last-child { margin-bottom: 0; }

/* ---------- Layout Utilities ---------- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}
.section {
  padding: 5rem 0;
}
.section-alt {
  background: var(--bg-light);
}
.section-dark {
  background: var(--green-dark);
  color: var(--white);
}
.section-dark h2, .section-dark h3, .section-dark h4 { color: var(--gold-light); }
.section-dark p { color: rgba(255,255,255,0.85); }
.section-label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}
.section-title {
  margin-bottom: 1rem;
}
.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-light);
  max-width: 640px;
  margin-bottom: 2.5rem;
}
.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}
.section-header .section-subtitle { margin-left: auto; margin-right: auto; }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.text-center { text-align: center; }
.text-white { color: var(--white) !important; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.gap-1 { gap: 1rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border: 2px solid transparent;
  transition: var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: var(--green-dark);
  color: var(--white);
  border-color: var(--green-dark);
}
.btn-primary:hover {
  background: var(--green-mid);
  border-color: var(--green-mid);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn-gold {
  background: var(--gold);
  color: var(--white);
  border-color: var(--gold);
}
.btn-gold:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  color: var(--text-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn-outline {
  background: transparent;
  color: var(--green-dark);
  border-color: var(--green-dark);
}
.btn-outline:hover {
  background: var(--green-dark);
  color: var(--white);
  transform: translateY(-1px);
}
.btn-outline-white {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.6);
}
.btn-outline-white:hover {
  background: var(--white);
  color: var(--green-dark);
  border-color: var(--white);
}
.btn-lg { padding: 1rem 2.25rem; font-size: 1.05rem; border-radius: var(--radius-md); }
.btn-sm { padding: 0.5rem 1.2rem; font-size: 0.85rem; }

/* ---------- Cards ---------- */
.card {
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  padding: 2rem;
  transition: var(--transition);
}
.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  border-color: var(--green-light);
}
.card-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  background: #dce6fb;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  font-size: 1.6rem;
}
.card h3 { margin-bottom: 0.6rem; font-size: 1.15rem; }

/* ---------- Badge ---------- */
.badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.badge-green { background: #dce6fb; color: var(--green-dark); }
.badge-gold  { background: var(--red-soft); color: #9b0e22; }
.badge-blue  { background: #dbeafe; color: #1d4ed8; }

/* ---------- Email links ---------- */
/* Non-button mailto links always show an envelope icon + underline */
a[href^="mailto"]:not(.btn) {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-underline-offset: 3px;
  color: var(--green-dark);
}
a[href^="mailto"]:not(.btn)::before {
  content: '✉';
  font-style: normal;
  text-decoration: none;
  display: inline-block;
  flex-shrink: 0;
}
a[href^="mailto"]:not(.btn):hover {
  color: var(--gold);
}
/* Button mailto links get the envelope icon via their text (set in HTML) */

/* ---------- Divider ---------- */
.divider {
  width: 60px;
  height: 3px;
  background: var(--gold);
  border-radius: 2px;
  margin: 1rem 0 1.5rem;
}
.divider-center { margin: 1rem auto 1.5rem; }

/* ==============================================
   HEADER / NAVIGATION
   ============================================== */
#site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}
#site-header.scrolled {
  box-shadow: var(--shadow-sm);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.5rem;
  max-width: var(--max-width);
  margin: 0 auto;
  gap: 1rem;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--green-dark);
  text-decoration: none;
  flex-shrink: 0;
}
.nav-logo span { font-family: var(--font-heading); }
.logo-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--green-dark);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 900;
  font-family: var(--font-heading);
  flex-shrink: 0;
}
.logo-img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  flex-shrink: 0;
}
.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.1rem;
  flex: 1;
  justify-content: center;
}
.nav-item {
  position: relative;
}
.nav-link {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.5rem 0.8rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dark);
  white-space: nowrap;
  transition: var(--transition);
}
.nav-link:hover, .nav-link.active {
  background: var(--bg-light);
  color: var(--green-dark);
}
.nav-link .arrow {
  font-size: 0.6rem;
  transition: transform 0.2s;
  opacity: 0.5;
}
.nav-item:hover .arrow { transform: rotate(180deg); }

/* ── Standard dropdown ── */
.dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 210px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: var(--transition);
  z-index: 200;
  padding: 0.4rem 0;
}
.nav-item:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.1rem;
  font-size: 0.875rem;
  color: var(--text-dark);
  transition: var(--transition);
  border-radius: 0;
}
.dropdown a:hover { background: var(--bg-light); color: var(--green-dark); padding-left: 1.35rem; }

/* ── Mega dropdown (Programs) ── */
.dropdown-mega {
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  min-width: 520px;
  padding: 1.25rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem 1.5rem;
}
.nav-item:hover .dropdown-mega {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  visibility: visible;
}
.mega-col { display: flex; flex-direction: column; gap: 0.1rem; }
.mega-label {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-light);
  padding: 0.25rem 0.75rem 0.6rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 0.3rem;
}
.dropdown-mega a {
  border-radius: var(--radius-sm) !important;
  padding: 0.55rem 0.75rem !important;
}
.dropdown-mega a:hover { padding-left: 1rem !important; }

/* ── Nav CTA area ── */
.nav-cta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}
.nav-zakat {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--gold);
  background: var(--red-soft);
  border: 1px solid rgba(200,16,46,0.2);
  border-radius: var(--radius-sm);
  padding: 0.45rem 0.9rem;
  white-space: nowrap;
  transition: var(--transition);
}
.nav-zakat:hover {
  background: var(--gold);
  color: var(--white);
  border-color: var(--gold);
}

/* ── Mobile toggle ── */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 0.4rem;
  cursor: pointer;
  flex-shrink: 0;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--green-dark);
  border-radius: 2px;
  transition: var(--transition);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ==============================================
   PAGE HEADER (Inner pages)
   ============================================== */
.page-hero {
  padding: 7rem 0 4rem;
  background: linear-gradient(135deg, var(--green-dark) 0%, var(--green-mid) 100%);
  color: var(--white);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: var(--white); margin-bottom: 0.75rem; }
.page-hero p { color: rgba(255,255,255,0.85); font-size: 1.1rem; max-width: 600px; margin: 0 auto; }
.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.65);
  margin-bottom: 1.25rem;
}
.breadcrumb a { color: rgba(255,255,255,0.75); }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb-sep { opacity: 0.5; }

/* ==============================================
   HOME HERO
   ============================================== */
.home-hero {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--green-dark) 0%, #0d1e45 60%, #111a38 100%);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 8rem 0 5rem;
}
.home-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M50 50c0-5.523 4.477-10 10-10s10 4.477 10 10-4.477 10-10 10c0 5.523-4.477 10-10 10s-10-4.477-10-10 4.477-10 10-10zM10 10c0-5.523 4.477-10 10-10s10 4.477 10 10-4.477 10-10 10c0 5.523-4.477 10-10 10S0 25.523 0 20s4.477-10 10-10z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.home-hero::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 80px;
  background: var(--white);
  clip-path: ellipse(55% 100% at 50% 100%);
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 740px;
}
.hero-tagline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(200,16,46,0.18);
  border: 1px solid rgba(200,16,46,0.45);
  color: var(--gold-light);
  padding: 0.4rem 1rem;
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}
.home-hero h1 {
  color: var(--white);
  margin-bottom: 1.25rem;
  font-size: clamp(2.2rem, 5vw, 3.8rem);
}
.home-hero h1 em {
  font-style: normal;
  color: var(--gold-light);
}
.home-hero p {
  color: rgba(255,255,255,0.8);
  font-size: 1.15rem;
  margin-bottom: 2rem;
  max-width: 560px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3rem;
}
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.12);
}
.hero-stat-num {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--gold-light);
  font-family: var(--font-heading);
  line-height: 1;
}
.hero-stat-label {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.65);
  margin-top: 0.2rem;
}

/* ---------- Stats Bar ---------- */
.stats-bar {
  background: var(--green-dark);
  padding: 2.5rem 0;
  color: var(--white);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  text-align: center;
}
.stat-item { padding: 1rem; }
.stat-number {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--gold-light);
  font-family: var(--font-heading);
  line-height: 1;
  display: block;
}
.stat-label {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
  margin-top: 0.4rem;
  display: block;
}

/* ---------- Programs Grid ---------- */
.programs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}
.programs-grid .program-card-icon {
  margin-left: auto;
  margin-right: auto;
}
.programs-grid .program-card {
  text-align: center;
}
.programs-grid .program-card-footer a {
  justify-content: center;
}

.program-card {
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}
.program-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
  border-color: var(--green-light);
}
.program-card-top {
  padding: 2rem 2rem 1.25rem;
  flex: 1;
}
.program-card-icon {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.2rem;
  background: transparent;
}
.program-card h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.program-card p { font-size: 0.9rem; color: var(--text-light); }
.program-card-footer {
  padding: 1rem 2rem;
  border-top: 1px solid var(--border);
  background: var(--bg-light);
}
.program-card-footer a {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--green-dark);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.program-card-footer a:hover { gap: 0.7rem; }

/* ---------- Mission Section ---------- */
.pillar-card {
  text-align: center;
  padding: 2.5rem 2rem;
  border-radius: var(--radius-md);
  background: var(--white);
  border: 1px solid var(--border);
  transition: var(--transition);
}
.pillar-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.pillar-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: block;
}
.pillar-card h3 { margin-bottom: 0.6rem; }
.pillar-card p { font-size: 0.9rem; color: var(--text-light); }

/* ---------- Testimonial / Quote ---------- */
.quote-block {
  background: var(--green-dark);
  border-radius: var(--radius-lg);
  padding: 3.5rem;
  color: var(--white);
  text-align: center;
  position: relative;
}
.quote-block::before {
  content: '"';
  position: absolute;
  top: 1rem;
  left: 2rem;
  font-size: 6rem;
  color: rgba(201,168,76,0.2);
  font-family: serif;
  line-height: 1;
}
.quote-block blockquote {
  font-size: 1.3rem;
  font-style: italic;
  color: rgba(255,255,255,0.9);
  max-width: 680px;
  margin: 0 auto 1.5rem;
  line-height: 1.7;
}
.quote-author { color: var(--gold-light); font-weight: 600; }

/* ---------- CTA Banner ---------- */
.cta-banner {
  background: linear-gradient(135deg, var(--gold) 0%, #8c0b1e 100%);
  padding: 4rem 0;
  text-align: center;
}
.cta-banner h2 { color: var(--white); margin-bottom: 0.75rem; }
.cta-banner p { color: rgba(255,255,255,0.85); margin-bottom: 2rem; }

/* ==============================================
   FOOTER
   ============================================== */
#site-footer {
  background: #0d1b3e;
  color: rgba(255,255,255,0.75);
  padding: 4rem 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-brand .nav-logo {
  color: var(--white);
  margin-bottom: 1rem;
}
.footer-brand p {
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
}
.footer-heading {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 1.1rem;
}
.footer-links li { margin-bottom: 0.55rem; }
.footer-links a {
  color: rgba(255,255,255,0.65);
  font-size: 0.875rem;
  transition: var(--transition);
}
.footer-links a:hover { color: var(--white); padding-left: 4px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-bottom p { font-size: 0.82rem; color: rgba(255,255,255,0.45); margin: 0; }
.footer-social {
  display: flex;
  gap: 0.75rem;
}
.social-link {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  text-decoration: none;
}
.social-link:hover {
  background: var(--green-mid);
  color: var(--white);
  transform: translateY(-2px);
}
.footer-ein {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.4);
  margin-top: 0.5rem;
}

/* ==============================================
   PAGE-SPECIFIC STYLES
   ============================================== */

/* ----- Zakat ----- */
.zakat-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin: 2.5rem 0;
}
.zakat-stat {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  text-align: center;
  border: 1px solid var(--border);
}
.zakat-stat .num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--green-dark);
  font-family: var(--font-heading);
  display: block;
}
.zakat-stat .lbl { font-size: 0.82rem; color: var(--text-light); margin-top: 0.25rem; }

/* ----- Steps ----- */
.steps {
  counter-reset: step;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.step {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}
.step-num {
  counter-increment: step;
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 50%;
  background: var(--green-dark);
  color: var(--white);
  font-weight: 800;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.step-body h4 { margin-bottom: 0.25rem; }
.step-body p { font-size: 0.9rem; color: var(--text-light); margin: 0; }

/* ----- FAQ Accordion ----- */
.faq-list { display: flex; flex-direction: column; gap: 0.75rem; max-width: 800px; margin: 0 auto; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
}
.faq-item.open { border-color: var(--green-mid); box-shadow: var(--shadow-sm); }
.faq-question {
  width: 100%;
  text-align: left;
  padding: 1.25rem 1.5rem;
  background: var(--white);
  border: none;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-dark);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  transition: var(--transition);
}
.faq-question:hover { background: var(--bg-light); }
.faq-item.open .faq-question { background: var(--bg-light); color: var(--green-dark); }
.faq-icon {
  width: 24px;
  height: 24px;
  min-width: 24px;
  border-radius: 50%;
  background: var(--bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: transform 0.3s;
  color: var(--green-dark);
}
.faq-item.open .faq-icon { transform: rotate(45deg); background: var(--green-dark); color: var(--white); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.2s;
}
.faq-answer-inner {
  padding: 0 1.5rem 1.5rem;
  color: var(--text-mid);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ----- Team Cards ----- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.team-card {
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  padding: 2rem;
  text-align: center;
  transition: var(--transition);
}
.team-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.team-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green-dark), var(--gold));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--white);
  font-family: var(--font-heading);
}
.team-card h4 { margin-bottom: 0.25rem; font-size: 1.05rem; }
.team-role {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--green-mid);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
  display: block;
}
.team-card p { font-size: 0.875rem; color: var(--text-light); }

/* ----- Events ----- */
.event-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1.5rem;
  align-items: start;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  transition: var(--transition);
}
.event-card:hover { box-shadow: var(--shadow-md); border-color: var(--green-light); }
.event-date-box {
  background: var(--green-dark);
  color: var(--white);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  text-align: center;
  min-width: 64px;
}
.event-date-box .month { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; opacity: 0.8; }
.event-date-box .day   { font-size: 2rem; font-weight: 900; line-height: 1; font-family: var(--font-heading); }
.event-date-box .year  { font-size: 0.72rem; opacity: 0.6; }
.event-info h3 { font-size: 1.1rem; margin-bottom: 0.4rem; }
.event-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.82rem;
  color: var(--text-light);
  margin-bottom: 0.5rem;
}
.event-meta span { display: flex; align-items: center; gap: 0.3rem; }
.event-desc { font-size: 0.9rem; color: var(--text-mid); margin: 0; }

/* ----- Directory ----- */
.dir-search {
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  padding: 1.5rem;
  margin-bottom: 2rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.dir-search input {
  flex: 1;
  min-width: 220px;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  color: var(--text-dark);
  outline: none;
  transition: var(--transition);
}
.dir-search input:focus { border-color: var(--green-mid); box-shadow: 0 0 0 3px rgba(46,125,82,0.1); }
.cat-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}
.cat-tab {
  padding: 0.45rem 1rem;
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 600;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--text-mid);
  cursor: pointer;
  transition: var(--transition);
}
.cat-tab.active, .cat-tab:hover {
  background: var(--green-dark);
  color: var(--white);
  border-color: var(--green-dark);
}

/* ----- Scholarship cards ----- */
.scholarship-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: var(--transition);
}
.scholarship-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.scholarship-header {
  padding: 2rem;
  background: var(--green-dark);
  color: var(--white);
}
.scholarship-header h3 { color: var(--gold-light); font-size: 1.4rem; margin-bottom: 0.5rem; }
.scholarship-amount {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--white);
  font-family: var(--font-heading);
}
.scholarship-body { padding: 2rem; background: var(--white); }
.req-list { display: flex; flex-direction: column; gap: 0.6rem; }
.req-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: var(--text-mid);
}
.req-list li::before {
  content: '✓';
  color: var(--gold);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 0.05em;
}

/* ----- Volunteer steps ----- */
.vol-step {
  display: flex;
  gap: 1.5rem;
  padding: 2rem;
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  transition: var(--transition);
}
.vol-step:hover { box-shadow: var(--shadow-sm); border-color: var(--green-light); }
.vol-step-num {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 50%;
  background: var(--green-dark);
  color: var(--white);
  font-size: 1.25rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
}

/* ----- Job cards ----- */
.job-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.5rem;
  transition: var(--transition);
}
.job-card:hover { box-shadow: var(--shadow-md); border-color: var(--green-light); }
.job-info h3 { margin-bottom: 0.4rem; }
.job-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}
.job-tag {
  padding: 0.2rem 0.65rem;
  background: var(--bg-light);
  border-radius: 100px;
  font-size: 0.75rem;
  color: var(--text-mid);
  font-weight: 500;
}

/* ----- Ansar ----- */
.lang-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}
.lang-card {
  border-radius: var(--radius-md);
  border: 2px solid var(--border);
  padding: 2.5rem;
  text-align: center;
  transition: var(--transition);
}
.lang-card:hover { border-color: var(--green-mid); box-shadow: var(--shadow-md); }
.lang-card h3 { font-size: 1.75rem; margin-bottom: 0.5rem; }
.lang-card p { font-size: 0.9rem; color: var(--text-light); }

/* ----- Membership benefits ----- */
.benefit-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  padding: 1.1rem;
  background: var(--white);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}
.benefit-check {
  width: 28px;
  height: 28px;
  min-width: 28px;
  border-radius: 50%;
  background: #dce6fb;
  color: var(--green-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
}
.benefit-item h4 { font-size: 0.95rem; margin-bottom: 0.1rem; }
.benefit-item p  { font-size: 0.82rem; color: var(--text-light); margin: 0; }

/* ==============================================
   UTILITY ANIMATIONS
   ============================================== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.animate-fade-up { animation: fadeUp 0.6s ease forwards; }

/* ==============================================
   RESPONSIVE
   ============================================== */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid  { grid-template-columns: repeat(2, 1fr); }
  .zakat-stats { grid-template-columns: repeat(2, 1fr); }
  .team-grid   { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  /* === Mobile Nav === */
  .nav-menu, .nav-cta { display: none; }
  .nav-toggle { display: flex; }

  /* Full-height panel — starts at header bottom (top set by JS), fills to screen bottom.
     Menu is moved to document.body on open, so position:fixed works relative to
     the true viewport with no stacking-context clipping from the header. */
  .nav-menu.mobile-open {
    display: flex;
    flex-direction: column;
    position: fixed;
    /* top injected by JS via getBoundingClientRect().bottom */
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--white);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0.5rem 0 4rem;
    gap: 0;
    justify-content: flex-start;
    z-index: 9999;
    border-top: 1px solid #e8edf5;
    animation: mobileNavIn 0.2s ease forwards;
  }
  @keyframes mobileNavIn {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
  }

  /* Nav items — clean full-width rows, light separator */
  .nav-item {
    width: 100%;
    border-bottom: 1px solid #eef0f5;
  }
  .nav-item:last-of-type { border-bottom: none; }

  /* Large, readable links with generous tap target */
  .nav-link {
    padding: 1rem 1.5rem;
    border-radius: 0;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-dark);
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: transparent;
  }
  .nav-link:hover, .nav-link.active { color: var(--green-dark); background: transparent; }

  /* Chevron arrow — rotates smoothly when section opens */
  .nav-link .arrow {
    font-size: 0.75rem;
    opacity: 0.4;
    transition: transform 0.25s ease, opacity 0.2s;
    flex-shrink: 0;
  }
  .nav-item.open > .nav-link { color: var(--green-dark); }
  .nav-item.open > .nav-link .arrow { transform: rotate(180deg); opacity: 0.8; }

  /* Accordion — smooth max-height expand, no display toggling */
  .dropdown, .dropdown-mega {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none !important;
    box-shadow: none;
    border: none;
    border-radius: 0;
    min-width: 0;
    background: #f7f9fc;
    display: block;
    grid-template-columns: 1fr;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.32s ease;
    padding: 0;
    border-top: 1px solid #eef0f5;
  }
  .nav-item.open .dropdown,
  .nav-item.open .dropdown-mega { max-height: 900px; }

  /* Sub-links — clean indented rows */
  .dropdown a, .dropdown-mega a {
    display: flex;
    align-items: center;
    padding: 0.8rem 1.5rem 0.8rem 2.25rem !important;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-mid);
    border-radius: 0 !important;
    border-bottom: 1px solid #eef0f5;
  }
  .dropdown a:last-child, .dropdown-mega a:last-child { border-bottom: none; }
  .dropdown a:hover, .dropdown-mega a:hover {
    color: var(--green-dark);
    background: #eef2fb;
    padding-left: 2.5rem !important;
  }

  /* Mega-menu group labels (Aid & Welfare / Education & Community) */
  .mega-col { display: flex; flex-direction: column; }
  .mega-label {
    display: block;
    padding: 0.65rem 1.5rem 0.4rem 1.5rem;
    font-size: 0.67rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-light);
    background: #f7f9fc;
  }

  /* CTA buttons at bottom of menu */
  .nav-menu.mobile-open .nav-cta {
    display: flex;
    flex-direction: column;
    padding: 1.5rem 1.5rem 0;
    gap: 0.75rem;
    border-top: 1px solid #eef0f5;
    margin-top: 0.5rem;
  }
  .nav-menu.mobile-open .nav-cta .btn,
  .nav-menu.mobile-open .nav-cta .nav-zakat {
    width: 100%;
    justify-content: center;
    text-align: center;
    display: flex;
    padding: 0.9rem 1rem;
    font-size: 1rem;
    border-radius: var(--radius-sm);
  }

  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .programs-grid { grid-template-columns: repeat(2, 1fr); }
  .help-grid { grid-template-columns: 1fr !important; }
  .stay-connected-grid { grid-template-columns: 1fr !important; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .hero-stats { gap: 1.5rem; }
  .event-card { grid-template-columns: 1fr; }
  .job-card { flex-direction: column; }
  .benefit-list { grid-template-columns: 1fr; }
  .lang-cards { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .quote-block { padding: 2.5rem 1.5rem; }
  .dir-search { flex-direction: column; }
  .zakat-stats { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 3.5rem 0; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .programs-grid { grid-template-columns: 1fr; }
  .home-hero h1 { font-size: 2rem; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .team-grid { grid-template-columns: 1fr; }
  .zakat-stats { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
  .scholarship-amount { font-size: 2rem; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
