/* =============================================
   AFRAH FOUNDATION v2 – GLOBAL STYLES
   Brand Colors from Logo:
   - Deep Blue:   #1a3a8c
   - Orange/Red:  #e05a1c
   - Gold:        #e6a817
   - White:       #ffffff
   - Off White:   #f7f8fc
   - Dark:        #111827
============================================= */

:root {
  --blue:        #1a3a8c;
  --blue-dark:   #122a6e;
  --blue-mid:    #1e4db7;
  --orange:      #e05a1c;
  --orange-light:#f07a3c;
  --gold:        #e6a817;
  --gold-light:  #f5c842;
  --gold-pale:   #fdf3d8;
  --white:       #ffffff;
  --off-white:   #f7f8fc;
  --text:        #111827;
  --text-mid:    #4b5563;
  --text-light:  #9ca3af;
  --border:      #e5e7eb;
  --dark:        #0d1526;

  --font-display: 'Playfair Display', serif;
  --font-body:    'DM Sans', sans-serif;

  --shadow:    0 4px 24px rgba(26,58,140,0.10);
  --shadow-lg: 0 12px 48px rgba(26,58,140,0.16);
  --radius:    14px;
  --transition: 0.3s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.75;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* Full width container — very little side padding */
.container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}
.section-pad { padding: 5.5rem 0; }
.center { text-align: center; }

/* ─── SECTION LABELS & TITLES ─── */
.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 0.75rem;
  padding-left: 2rem;
  position: relative;
}
.section-label::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 1.4rem; height: 2px;
  background: var(--orange);
}
.section-label.light { color: var(--gold-light); }
.section-label.light::before { background: var(--gold-light); }
.section-label.blue { color: var(--blue-mid); }
.section-label.blue::before { background: var(--blue-mid); }

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  color: var(--text);
  line-height: 1.22;
  margin-bottom: 1rem;
}
.section-title em { font-style: italic; color: var(--orange); }
.section-title.light { color: var(--white); }
.section-title.light em { color: var(--gold-light); }
.section-header { margin-bottom: 3rem; }
.section-header.center .section-label { display: block; }

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.85rem 2.2rem;
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
  white-space: nowrap;
}
.btn-blue {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
}
.btn-blue:hover {
  background: var(--blue-mid);
  border-color: var(--blue-mid);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(26,58,140,0.3);
}
.btn-orange {
  background: var(--orange);
  color: var(--white);
  border-color: var(--orange);
}
.btn-orange:hover {
  background: var(--orange-light);
  border-color: var(--orange-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(224,90,28,0.3);
}
.btn-gold {
  background: var(--gold);
  color: var(--dark);
  border-color: var(--gold);
  font-weight: 700;
}
.btn-gold:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(230,168,23,0.35);
}
.btn-outline-white {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.55);
}
.btn-outline-white:hover {
  background: var(--white);
  color: var(--blue);
  border-color: var(--white);
}

/* ─── TOP BAR ─── */
.topbar {
  background: var(--blue-dark);
  color: rgba(255,255,255,0.72);
  font-size: 0.82rem;
  padding: 0.45rem 0;
}
.topbar-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  align-items: center;
  justify-content: center;
}
.topbar span i { color: var(--gold); margin-right: 0.45rem; }

/* ─── NAVBAR ─── */
.navbar {
  position: sticky; top: 0; z-index: 1000;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 14px rgba(26,58,140,0.07);
  transition: var(--transition);
}
.navbar.scrolled { box-shadow: 0 4px 28px rgba(26,58,140,0.13); }
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.65rem;
  padding-bottom: 0.65rem;
}
.brand { display: flex; align-items: center; gap: 1.05rem; }
.nav-logo { height: 72px; width: auto; }
.brand-text { display: flex; flex-direction: column; }
.brand-name {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--blue);
  letter-spacing: 0.04em;
  line-height: 1.1;
}
.brand-sub {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--orange);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}
.nav-links a {
  padding: 0.5rem 1rem;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-mid);
  border-radius: 8px;
  transition: var(--transition);
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--blue);
  background: rgba(26,58,140,0.07);
}
.btn-volunteer {
  background: var(--blue) !important;
  color: var(--white) !important;
  border-radius: 50px !important;
  padding: 0.5rem 1.5rem !important;
  font-weight: 600 !important;
  margin-left: 0.5rem;
}
.btn-volunteer:hover {
  background: var(--blue-mid) !important;
  color: var(--white) !important;
}
.nav-donate {
  background: linear-gradient(135deg, var(--orange), #ff6f1f) !important;
  color: var(--white) !important;
  border-radius: 50px !important;
  padding: 0.5rem 1.25rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.02em;
  box-shadow: 0 4px 14px rgba(224,90,28,0.28);
  transition: var(--transition);
  display: inline-flex !important;
  align-items: center;
  gap: 0.45rem;
}
.nav-donate:hover {
  background: linear-gradient(135deg, #c54d18, var(--orange)) !important;
  color: var(--white) !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(224,90,28,0.4);
}
.nav-donate i {
  font-size: 0.82rem;
  animation: pulse-heart 1.8s ease-in-out infinite;
}
@keyframes pulse-heart {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.18); }
}
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none; border: none;
  cursor: pointer; padding: 0.4rem;
}
.hamburger span {
  display: block;
  width: 26px; height: 2.5px;
  background: var(--blue);
  border-radius: 4px;
  transition: var(--transition);
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* ─── HERO ─── */
.hero {
  min-height: 90vh;
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue) 55%, #1a4fa8 100%);
  position: relative;
  display: flex; align-items: center;
  overflow: hidden;
}
.hero-pattern {
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 15% 50%, rgba(230,168,23,0.10) 0%, transparent 45%),
    radial-gradient(circle at 85% 20%, rgba(224,90,28,0.12) 0%, transparent 40%),
    radial-gradient(circle at 70% 80%, rgba(255,255,255,0.04) 0%, transparent 35%);
}
.hero-circles {
  position: absolute; inset: 0; overflow: hidden; pointer-events: none;
}
.hero-circles span {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.06);
}
.hero-circles span:nth-child(1) { width:600px;height:600px;top:-150px;right:-100px; }
.hero-circles span:nth-child(2) { width:400px;height:400px;bottom:-80px;left:-60px;border-color:rgba(230,168,23,0.08); }
.hero-circles span:nth-child(3) { width:250px;height:250px;top:40%;right:15%; border-color:rgba(224,90,28,0.1);}

.hero-inner {
  position: relative; z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  padding: 4rem 0;
  width: 100%;
}
.hero-left { color: var(--white); }
.hero-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: rgba(230,168,23,0.18);
  border: 1px solid rgba(230,168,23,0.45);
  color: var(--gold-light);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.4rem 1.2rem;
  border-radius: 50px;
  margin-bottom: 1.5rem;
}
.hero-badge i { font-size: 0.7rem; }
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1.25rem;
}
.hero-title em { font-style: italic; color: var(--gold-light); }
.hero-title .accent { color: var(--orange-light); }
.hero-desc {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.78);
  max-width: 520px;
  margin-bottom: 2.25rem;
  line-height: 1.8;
}
.hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 3rem; }
.hero-stats {
  display: flex; gap: 0;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  overflow: hidden;
  backdrop-filter: blur(10px);
  max-width: 460px;
}
.h-stat {
  flex: 1; text-align: center;
  padding: 1.1rem 0.75rem;
  border-right: 1px solid rgba(255,255,255,0.1);
}
.h-stat:last-child { border-right: none; }
.h-stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--gold-light);
  line-height: 1;
}
.h-stat-label {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-top: 0.2rem;
  display: block;
}

.hero-right {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.hero-img-wrap {
  position: relative;
  width: 100%;
  max-width: 480px;
}
.hero-img-main {
  width: 100%;
  border-radius: 20px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.35);
  aspect-ratio: 4/3;
  object-fit: cover;
}
.hero-img-badge {
  position: absolute;
  bottom: -18px; left: -18px;
  background: var(--orange);
  color: var(--white);
  padding: 1.1rem 1.4rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  text-align: center;
}
.hero-img-badge .big { display:block; font-family:var(--font-display); font-size:1.4rem; font-weight:800; line-height:1; }
.hero-img-badge .sm { display:block; font-size:0.72rem; font-weight:600; letter-spacing:0.06em; text-transform:uppercase; margin-top:0.15rem; opacity:.85; }
.hero-scroll {
  position: absolute; bottom: 2rem; left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.4);
  font-size: 1.1rem;
  animation: bounce 2s infinite;
  z-index: 2;
}
@keyframes bounce {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}
@keyframes fadeUp {
  from { opacity:0; transform:translateY(32px); }
  to   { opacity:1; transform:translateY(0); }
}
.hero-left { animation: fadeUp 0.8s ease both; }
.hero-right { animation: fadeUp 0.8s 0.2s ease both; }

/* ─── MISSION STRIP ─── */
.mission-strip {
  background: linear-gradient(90deg, var(--blue-dark) 0%, var(--blue) 100%);
  padding: 0;
}
.mission-strip-inner {
  display: grid;
  grid-template-columns: repeat(4,1fr);
}
.mc {
  padding: 2.25rem 2rem;
  border-right: 1px solid rgba(255,255,255,0.1);
  display: flex; align-items: flex-start; gap: 1rem;
  transition: var(--transition);
}
.mc:last-child { border-right: none; }
.mc:hover { background: rgba(255,255,255,0.05); }
.mc-icon {
  width: 48px; height: 48px; flex-shrink: 0;
  border-radius: 12px;
  background: rgba(230,168,23,0.18);
  border: 1px solid rgba(230,168,23,0.3);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  color: var(--gold-light);
}
.mc-text h3 { font-size: 1rem; font-weight: 700; color: var(--white); margin-bottom: 0.25rem; }
.mc-text p  { font-size: 0.83rem; color: rgba(255,255,255,0.58); line-height: 1.55; }

/* ─── ABOUT SNIPPET ─── */
.about-snippet-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.about-img-wrap { position: relative; }
.about-img {
  width: 100%; border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4/3; object-fit: cover;
}
.about-badge-box {
  position: absolute; bottom: -20px; right: -20px;
  background: var(--orange); color: var(--white);
  padding: 1.2rem 1.6rem; border-radius: var(--radius);
  box-shadow: var(--shadow-lg); text-align: center;
}
.ab-num { display:block; font-family:var(--font-display); font-size:1.5rem; font-weight:800; line-height:1; }
.ab-txt { display:block; font-size:0.72rem; font-weight:700; letter-spacing:0.07em; text-transform:uppercase; margin-top:0.2rem; opacity:.85; }
.about-text .section-label { display: block; }
.about-text p { color: var(--text-mid); margin-bottom: 1rem; font-size: 0.97rem; }
.check-list { margin: 1.5rem 0; display: flex; flex-direction: column; gap: 0.6rem; }
.check-list li { display: flex; align-items: center; gap: 0.65rem; font-weight: 500; font-size: 0.95rem; }
.check-list li i { color: var(--blue); font-size: 1rem; }
.btn-row { display:flex; gap:1rem; flex-wrap:wrap; margin-top:1.75rem; }

/* ─── PROGRAMS HIGHLIGHT ─── */
.prog-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 1.75rem;
}
.prog-card {
  background: var(--off-white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 2.25rem 1.75rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.prog-card::before {
  content: '';
  position: absolute; top:0; left:0; right:0;
  height: 4px;
  background: var(--blue);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.35s ease;
}
.prog-card:hover::before { transform: scaleX(1); }
.prog-card:hover {
  border-color: rgba(26,58,140,0.25);
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}
.prog-icon {
  width: 56px; height: 56px; border-radius: 14px;
  background: linear-gradient(135deg, var(--blue), var(--blue-mid));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; color: var(--white);
  margin-bottom: 1.25rem;
  box-shadow: 0 4px 16px rgba(26,58,140,0.2);
}
.prog-card.orange-accent .prog-icon {
  background: linear-gradient(135deg, var(--orange), var(--orange-light));
  box-shadow: 0 4px 16px rgba(224,90,28,0.2);
}
.prog-card.orange-accent::before { background: var(--orange); }
.prog-card h3 { font-family:var(--font-display); font-size:1.15rem; color:var(--text); margin-bottom:0.65rem; }
.prog-card p  { color:var(--text-mid); font-size:0.9rem; line-height:1.65; }
.prog-link {
  display: inline-flex; align-items: center; gap: 0.4rem;
  margin-top: 1.25rem;
  color: var(--blue); font-weight: 600; font-size: 0.88rem;
  transition: var(--transition);
}
.prog-card.orange-accent .prog-link { color: var(--orange); }
.prog-link:hover { gap: 0.7rem; }

/* ─── IMPACT NUMBERS ─── */
.impact-grid {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 2rem;
}
.impact-card {
  text-align: center;
  padding: 2.75rem 1.5rem;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border-top: 4px solid var(--blue);
  transition: var(--transition);
  position: relative; overflow: hidden;
}
.impact-card.orange-top { border-top-color: var(--orange); }
.impact-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.impact-card::after {
  content: '';
  position: absolute; bottom:0; left:0; right:0; height:3px;
  background: linear-gradient(90deg, var(--blue), var(--orange));
  opacity: 0; transition: var(--transition);
}
.impact-card:hover::after { opacity: 1; }
.impact-card i { font-size:2rem; color:var(--blue); margin-bottom:1rem; display:block; }
.impact-card.orange-top i { color: var(--orange); }
.impact-num {
  display:block;
  font-family:var(--font-display);
  font-size:2.8rem; font-weight:800;
  color:var(--text); line-height:1;
  margin-bottom:0.4rem;
}
.impact-label { display:block; font-size:0.88rem; color:var(--text-mid); font-weight:500; }

/* ─── CTA SECTION ─── */
.cta-section {
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue) 60%, var(--blue-mid) 100%);
  padding: 5.5rem 0;
  text-align: center;
  position: relative; overflow: hidden;
}
.cta-section::before {
  content:'';position:absolute;inset:0;
  background: radial-gradient(circle at 20% 50%, rgba(224,90,28,0.15) 0%,transparent 50%),
              radial-gradient(circle at 80% 50%, rgba(230,168,23,0.1) 0%,transparent 50%);
}
.cta-inner { position:relative; z-index:1; }
.cta-inner h2 {
  font-family:var(--font-display);
  font-size:clamp(1.75rem,3.5vw,2.75rem);
  color:var(--white); margin-bottom:1rem;
}
.cta-inner p { color:rgba(255,255,255,0.72); max-width:560px; margin:0 auto 2.5rem; font-size:1.02rem; }
.cta-btns { display:flex; gap:1rem; justify-content:center; flex-wrap:wrap; }

/* ─── PAGE HERO ─── */
.page-hero {
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue) 100%);
  padding: 5rem 0 4rem;
  text-align: center;
  position: relative; overflow: hidden;
}
.page-hero::before {
  content:''; position:absolute; inset:0;
  background: radial-gradient(circle at 80% 30%, rgba(224,90,28,0.15) 0%,transparent 50%),
              radial-gradient(circle at 20% 70%, rgba(230,168,23,0.1) 0%,transparent 40%);
}
.page-hero-content { position:relative; z-index:1; }
.page-hero h1 {
  font-family:var(--font-display);
  font-size:clamp(2rem,5vw,3.2rem);
  color:var(--white); margin-bottom:0.75rem;
}
.page-hero h1 em { font-style:italic; color:var(--gold-light); }
.page-hero p { color:rgba(255,255,255,0.72); max-width:600px; margin:0 auto; font-size:1rem; }
.breadcrumb {
  display:flex; align-items:center; justify-content:center;
  gap:0.5rem; font-size:0.84rem; color:rgba(255,255,255,0.45); margin-top:1rem;
}
.breadcrumb a { color:var(--gold-light); }
.breadcrumb span { color:rgba(255,255,255,0.3); }

/* ─── ABOUT PAGE ─── */
/* What We Do – RESPONSIVE GRID */
.wwd-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.wwd-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.6rem;
  transition: var(--transition);
}
.wwd-card:hover { border-color: var(--blue); box-shadow: var(--shadow); transform: translateY(-3px); }
.wwd-icon {
  width: 52px; height: 52px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; color: var(--white);
  margin-bottom: 1.1rem;
}
.wwd-icon.blue  { background: linear-gradient(135deg, var(--blue), var(--blue-mid)); }
.wwd-icon.orange { background: linear-gradient(135deg, var(--orange), var(--orange-light)); }
.wwd-icon.gold  { background: linear-gradient(135deg, #b8860b, var(--gold)); }
.wwd-card h3 { font-family:var(--font-display); font-size:1.05rem; margin-bottom:0.5rem; }
.wwd-card p { font-size:0.88rem; color:var(--text-mid); line-height:1.6; }

/* Values */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 1.75rem;
}
.value-card {
  background: var(--off-white);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  border-left: 4px solid var(--blue);
  transition: var(--transition);
}
.value-card.orange-border { border-left-color: var(--orange); }
.value-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); background: var(--white); }
.value-card i { font-size:1.75rem; color:var(--blue); margin-bottom:1rem; }
.value-card.orange-border i { color: var(--orange); }
.value-card h3 { font-family:var(--font-display); font-size:1.08rem; margin-bottom:0.5rem; }
.value-card p { font-size:0.88rem; color:var(--text-mid); }

/* Team */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 2rem;
}
.team-card {
  text-align: center;
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  box-shadow: var(--shadow);
  transition: var(--transition);
}
.team-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.team-avatar {
  width: 76px; height: 76px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; color: var(--white);
  margin: 0 auto 1rem;
}
.team-avatar.blue   { background: linear-gradient(135deg, var(--blue), var(--blue-mid)); }
.team-avatar.orange { background: linear-gradient(135deg, var(--orange), var(--orange-light)); }
.team-card h3 { font-family:var(--font-display); font-size:1rem; margin-bottom:0.2rem; }
.team-card .role { font-size:0.82rem; color:var(--orange); font-weight:600; }
.team-card p { margin-top:0.65rem; font-size:0.84rem; color:var(--text-mid); }

/* ─── PROGRAMS PAGE ─── */
.prog-full-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 2rem;
}
.prog-full-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1.5px solid var(--border);
  transition: var(--transition);
}
.prog-full-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--blue); }
.prog-full-card-img {
  height: 170px;
  display: flex; align-items: center; justify-content: center;
  font-size: 3.5rem; color: var(--white);
}
.prog-full-card-img.blue-bg   { background: linear-gradient(135deg, var(--blue-dark), var(--blue)); }
.prog-full-card-img.orange-bg { background: linear-gradient(135deg, #b03200, var(--orange)); }
.prog-full-card-body { padding: 1.75rem; }
.prog-full-card-body h3 { font-family:var(--font-display); font-size:1.15rem; margin-bottom:0.65rem; }
.prog-full-card-body p  { color:var(--text-mid); font-size:0.9rem; margin-bottom:1rem; }
.prog-tag {
  display: inline-block;
  font-size: 0.75rem; font-weight: 700;
  padding: 0.22rem 0.85rem;
  border-radius: 50px;
  margin-bottom: 0.75rem;
}
.prog-tag.blue-tag   { background: rgba(26,58,140,0.1); color: var(--blue); border:1px solid rgba(26,58,140,0.2); }
.prog-tag.orange-tag { background: rgba(224,90,28,0.1); color: var(--orange); border:1px solid rgba(224,90,28,0.2); }

/* ─── GALLERY PAGE ─── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 1.25rem;
}
.gallery-item {
  border-radius: var(--radius); overflow: hidden;
  position: relative; aspect-ratio: 4/3; cursor: pointer;
}
.gallery-item img { width:100%;height:100%;object-fit:cover;transition:transform 0.45s ease; }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-overlay {
  position:absolute;inset:0;
  background:linear-gradient(to top,rgba(26,58,140,0.75),transparent);
  opacity:0;transition:var(--transition);
  display:flex;align-items:flex-end;padding:1.25rem;
}
.gallery-item:hover .gallery-overlay { opacity:1; }
.gallery-overlay span { color:var(--white);font-weight:600;font-size:0.92rem; }
.gallery-placeholder {
  background: linear-gradient(135deg, var(--off-white), #edf0f7);
  border: 2px dashed var(--border);
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 0.75rem;
  color: var(--text-light); font-size: 2.25rem;
}
.gallery-placeholder p { font-size:0.85rem;color:var(--text-light); }
.gallery-section-title {
  font-family:var(--font-display); font-size:1.25rem; color:var(--blue);
  margin: 3rem 0 1.25rem;
  padding-bottom:0.6rem;
  border-bottom:3px solid var(--gold);
  display:inline-block;
}
.lightbox {
  position:fixed;inset:0;
  background:rgba(8,12,26,0.96);
  z-index:9999;display:none;
  align-items:center;justify-content:center;padding:2rem;
}
.lightbox.open { display:flex; }
.lightbox img { max-width:90vw;max-height:85vh;border-radius:var(--radius);object-fit:contain; }
.lightbox-close {
  position:absolute;top:1.5rem;right:1.75rem;
  color:rgba(255,255,255,0.7);font-size:2rem;
  cursor:pointer;background:none;border:none;transition:var(--transition);
}
.lightbox-close:hover { color:var(--gold); }

/* ─── CONTACT PAGE ─── */
.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
.contact-info-box { display: flex; flex-direction: column; gap: 1.5rem; }
.contact-info-item {
  display: flex; gap: 1.1rem; align-items: flex-start;
  padding: 1.5rem; background: var(--off-white);
  border-radius: var(--radius);
  border-left: 4px solid var(--blue);
  transition: var(--transition);
}
.contact-info-item.orange-border { border-left-color: var(--orange); }
.contact-info-item:hover { background: var(--white); box-shadow: var(--shadow); }
.contact-info-item i { font-size:1.4rem; color:var(--blue); margin-top:2px; flex-shrink:0; }
.contact-info-item.orange-border i { color: var(--orange); }
.contact-info-item h4 { font-family:var(--font-display); font-size:1rem; margin-bottom:0.25rem; }
.contact-info-item p { font-size:0.9rem; color:var(--text-mid); }
.contact-info-item a { color:var(--blue); }

.volunteer-box {
  background: linear-gradient(135deg, var(--blue-dark), var(--blue));
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  color: var(--white);
  margin-top: 2rem;
}
.volunteer-box h3 { font-family:var(--font-display); font-size:1.4rem; margin-bottom:0.75rem; }
.volunteer-box p { color:rgba(255,255,255,0.72); font-size:0.92rem; margin-bottom:1.5rem; line-height:1.7; }

/* Contact right — info cards */
.contact-right-info {
  background: var(--off-white);
  border-radius: var(--radius);
  padding: 2.5rem;
  box-shadow: var(--shadow);
}
.contact-right-info h3 { font-family:var(--font-display); font-size:1.45rem; margin-bottom:0.5rem; }
.contact-right-info > p { color:var(--text-mid); font-size:0.92rem; margin-bottom:2rem; }
.reg-card {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 1.25rem; margin-bottom: 2rem;
}
.reg-item {
  background: var(--white);
  border-radius: 10px; padding: 1.25rem;
  text-align: center;
  border-top: 3px solid var(--blue);
}
.reg-item.orange-top { border-top-color: var(--orange); }
.reg-item .ri-num { display:block; font-family:var(--font-display); font-size:1.15rem; font-weight:800; color:var(--text); margin-bottom:0.25rem; }
.reg-item .ri-label { display:block; font-size:0.78rem; color:var(--text-mid); font-weight:600; text-transform:uppercase; letter-spacing:0.08em; }
.social-section h4 { font-family:var(--font-display); font-size:1.05rem; margin-bottom:1rem; }
.social-links { display:flex; gap:0.75rem; flex-wrap:wrap; }
.social-links a {
  width:44px;height:44px;border-radius:50%;
  display:flex;align-items:center;justify-content:center;
  font-size:0.95rem; transition:var(--transition);
  color:var(--white);
}
.social-links a:hover { transform:translateY(-3px); box-shadow:var(--shadow); }
.soc-fb   { background:#1877f2; }
.soc-ig   { background:linear-gradient(45deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888); }
.soc-wa   { background:#25d366; }
.soc-yt   { background:#ff0000; }
.map-wrap { border-radius: var(--radius); overflow:hidden; box-shadow:var(--shadow); margin-top:4rem; }
.map-wrap iframe { width:100%;height:400px;border:0;display:block; }

/* ─── FOOTER ─── */
.footer { background: var(--dark); color: rgba(255,255,255,0.65); padding-top: 4.5rem; }
.footer-inner {
  display: grid;
  grid-template-columns: 2.2fr 1fr 1.2fr 1.6fr;
  gap: 3rem;
  padding-bottom: 3.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

/* Footer logo – transparent / outlined treatment */
.footer-logo-wrap {
  display: flex; align-items: center; gap: 1rem;
  margin-bottom: 1.25rem;
}
.footer-logo-img {
  width: 90px; height: 90px; flex-shrink: 0;
  object-fit: contain;
  filter: brightness(1.1);
}
.footer-logo-text .fn { display:block; font-family:var(--font-display); font-size:1.05rem; font-weight:800; color:var(--white); line-height:1.1; }
.footer-logo-text .fs { display:block; font-size:0.67rem; font-weight:700; color:var(--gold); letter-spacing:0.1em; text-transform:uppercase; margin-top:0.2rem; }

.footer-col p { font-size:0.88rem; line-height:1.75; }
.footer-col h4 {
  font-family:var(--font-display); font-size:1rem;
  color:var(--white); margin-bottom:1.25rem;
  padding-bottom:0.55rem;
  border-bottom:2px solid var(--orange);
  display:inline-block;
}
.footer-col ul { display:flex;flex-direction:column;gap:0.5rem; }
.footer-col ul a { font-size:0.88rem;transition:var(--transition); }
.footer-col ul a:hover { color:var(--gold-light);padding-left:4px; }
.footer-contact-list li { display:flex;gap:0.65rem;font-size:0.86rem;margin-bottom:0.55rem;align-items:flex-start; }
.footer-contact-list li i { color:var(--gold);margin-top:3px;flex-shrink:0; }
.footer-social { display:flex;gap:0.65rem;margin-top:1.25rem; }
.footer-social a {
  width:36px;height:36px;border-radius:50%;
  background:rgba(255,255,255,0.07);
  display:flex;align-items:center;justify-content:center;
  color:rgba(255,255,255,0.6);font-size:0.88rem;transition:var(--transition);
}
.footer-social a:hover { background:var(--orange);color:var(--white); }
.footer-bottom {
  padding:1.25rem 0;text-align:center;
  font-size:0.82rem;color:rgba(255,255,255,0.35);
}

/* ─── BACK TO TOP ─── */
.back-to-top {
  position:fixed;bottom:2rem;right:2rem;
  width:46px;height:46px;border-radius:50%;
  background:var(--blue);
  display:flex;align-items:center;justify-content:center;
  color:var(--white);font-size:1rem;
  box-shadow:0 4px 16px rgba(26,58,140,0.35);
  opacity:0;pointer-events:none;transition:var(--transition);z-index:999;
}
.back-to-top.visible { opacity:1;pointer-events:auto; }
.back-to-top:hover { background:var(--blue-mid);transform:translateY(-3px); }

/* ─── RESPONSIVE ─── */
@media (max-width:1100px){
  .hero-inner { grid-template-columns:1fr;text-align:center; }
  .hero-desc { margin:0 auto 2.25rem; }
  .hero-btns { justify-content:center; }
  .hero-stats { margin:0 auto; }
  .hero-right { display:none; }
  .impact-grid { grid-template-columns:repeat(2,1fr); }
  .team-grid   { grid-template-columns:repeat(2,1fr); }
  .prog-full-grid { grid-template-columns:repeat(2,1fr); }
  .footer-inner { grid-template-columns:1fr 1fr; gap:2.5rem; }
  .values-grid { grid-template-columns:repeat(2,1fr); }
  .wwd-grid { grid-template-columns:repeat(2,1fr); }
}
@media (max-width:900px){
  .about-snippet-inner { grid-template-columns:1fr; }
  .about-badge-box { bottom:-10px;right:10px; }
  .prog-grid { grid-template-columns:1fr 1fr; }
  .contact-wrap { grid-template-columns:1fr; }
  .gallery-grid { grid-template-columns:repeat(2,1fr); }
  .mission-strip-inner { grid-template-columns:repeat(2,1fr); }
  .mc:nth-child(2){ border-right:none; }
  .mc:nth-child(3){ border-top:1px solid rgba(255,255,255,0.1); }
  .wwd-grid { grid-template-columns:repeat(2,1fr); }
}
@media (max-width:768px){
  .container { padding:0 1.1rem; }
  .topbar-inner { flex-direction:column;gap:0.25rem;text-align:center; }
  .hamburger { display:flex; }
  .nav-links {
    position:fixed;top:0;right:-100%;width:min(320px,85vw);height:100vh;
    background:var(--white);flex-direction:column;align-items:flex-start;
    padding:5rem 1.5rem 2rem;box-shadow:-8px 0 40px rgba(0,0,0,0.15);
    transition:right 0.35s ease;z-index:999;gap:0.25rem;
  }
  .nav-links.open { right:0; }
  .nav-links li { width: 100%; }
  .nav-links a { padding:0.75rem 1rem;width:100%;font-size:1rem;border-radius:10px;display:block; }
  .btn-volunteer { margin-left:0;margin-top:0.5rem;text-align:center;justify-content:center; }
  .prog-grid { grid-template-columns:1fr; }
  .impact-grid { grid-template-columns:repeat(2,1fr); }
  .prog-full-grid { grid-template-columns:1fr; }
  .gallery-grid { grid-template-columns:1fr; }
  .footer-inner { grid-template-columns:1fr;gap:2rem; }
  .values-grid { grid-template-columns:1fr; }
  .team-grid { grid-template-columns:1fr 1fr; }
  .reg-card { grid-template-columns:1fr; }
  .section-pad { padding:3.5rem 0; }
  .wwd-grid { grid-template-columns:1fr 1fr; gap:1rem; }
  /* page hero */
  .page-hero { padding:5rem 0 3rem; }
  .page-hero h1 { font-size:clamp(1.6rem,5vw,2.5rem); }
  /* about section */
  .about-img { width:100%; height:260px; object-fit:cover; border-radius:var(--radius); }
  /* contact */
  .contact-info-grid { grid-template-columns:1fr; }
  /* programs */
  .prog-full-card { flex-direction:column; }
  .prog-full-img { width:100%; height:220px; }
  /* footer logo on mobile */
  .footer-logo-img { width:70px; height:70px; }
  .footer-logo-wrap { margin-bottom:1rem; }
}
@media (max-width:480px){
  .hero-btns { flex-direction:column;align-items:center; }
  .cta-btns  { flex-direction:column;align-items:center; }
  .btn-row   { flex-direction:column; }
  .mission-strip-inner { grid-template-columns:1fr; }
  .mc { border-right:none; border-top:1px solid rgba(255,255,255,0.1); }
  .mc:first-child { border-top:none; }
  .team-grid { grid-template-columns:1fr; }
  .brand-name { font-size:1.1rem; }
  .nav-logo { height:56px; }
  .wwd-grid { grid-template-columns:1fr; }
  .impact-grid { grid-template-columns:1fr 1fr; }
  .values-grid { grid-template-columns:1fr; }
  .topbar { display:none; }
  .section-title { font-size:clamp(1.4rem,5vw,2rem); }
  .footer-inner { grid-template-columns:1fr; }
  .footer-logo-img { width:60px; height:60px; }
  /* h-stats on mobile */
  .hero-stats { grid-template-columns:repeat(2,1fr); gap:0.75rem; }
  .prog-grid { grid-template-columns:1fr; }
}

/* ─── TRIBUTE SECTION (Homepage) ─── */
.tribute-section { position: relative; }
.tribute-section::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 12% 18%, rgba(224,90,28,0.06) 0%, transparent 35%),
    radial-gradient(circle at 88% 82%, rgba(26,58,140,0.06) 0%, transparent 35%);
  pointer-events: none;
}
.tribute-inner {
  display: grid;
  grid-template-columns: minmax(280px, 380px) 1fr;
  gap: 3.5rem;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
}
.tribute-photo-wrap {
  position: relative;
  display: flex; justify-content: center;
}
.tribute-photo-frame {
  position: relative;
  background: var(--white);
  padding: 1rem 1rem 0;
  border-radius: var(--radius);
  box-shadow: 0 22px 50px rgba(8,12,26,0.18), 0 4px 12px rgba(8,12,26,0.06);
  max-width: 360px;
  width: 100%;
  transition: var(--transition);
}
.tribute-photo-frame::before {
  content: ''; position: absolute;
  top: -14px; left: -14px;
  width: 80px; height: 80px;
  border-top: 4px solid var(--orange);
  border-left: 4px solid var(--orange);
  border-radius: 8px 0 0 0;
  z-index: -1;
}
.tribute-photo-frame::after {
  content: ''; position: absolute;
  bottom: -14px; right: -14px;
  width: 80px; height: 80px;
  border-bottom: 4px solid var(--gold, #d4a017);
  border-right: 4px solid var(--gold, #d4a017);
  border-radius: 0 0 8px 0;
  z-index: -1;
}
.tribute-photo-frame:hover { transform: translateY(-4px); }
.tribute-photo-main {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  object-position: top center;
  border-radius: calc(var(--radius) - 6px);
  display: block;
  filter: saturate(0.92);
}
.tribute-photo-caption {
  text-align: center;
  padding: 1.1rem 0.5rem 1rem;
  border-top: 1px solid var(--border);
  margin-top: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.tribute-photo-caption .tpc-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--blue);
  letter-spacing: 0.02em;
}
.tribute-photo-caption .tpc-dates {
  font-size: 0.82rem;
  color: var(--text-mid);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.tribute-text { max-width: 560px; }
.tribute-text .section-title { margin-bottom: 1.25rem; }
.tribute-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--blue);
  line-height: 1.55;
  background: var(--white);
  padding: 1.35rem 1.5rem 1.35rem 2.5rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  border-left: 4px solid var(--orange);
  box-shadow: 0 6px 18px rgba(8,12,26,0.06);
  position: relative;
  margin: 0;
}
.tribute-quote i {
  position: absolute;
  top: 0.85rem; left: 0.85rem;
  color: var(--orange);
  opacity: 0.4;
  font-size: 1rem;
}

@media (max-width: 860px) {
  .tribute-inner {
    grid-template-columns: 1fr;
    gap: 2.25rem;
    text-align: center;
  }
  .tribute-text { margin: 0 auto; }
  .tribute-text .section-label { padding-left: 0; }
  .tribute-photo-frame { max-width: 280px; }
  .tribute-quote { text-align: left; }
}

/* ─── ABOUT PAGE: Afrah Photo Strip ─── */
.afrah-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 2rem;
  max-width: 880px;
  margin-left: auto;
  margin-right: auto;
}
.afrah-strip-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 3/4;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: var(--transition);
}
.afrah-strip-item:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.afrah-strip-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.5s ease;
}
.afrah-strip-item:hover img { transform: scale(1.05); }
.afrah-strip-item .asi-caption {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(8,12,26,0.85), transparent);
  color: var(--white);
  padding: 1.5rem 1rem 0.85rem;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
@media (max-width: 700px) {
  .afrah-strip { grid-template-columns: repeat(2, 1fr); }
  .afrah-strip-item:nth-child(3) { grid-column: span 2; max-width: 50%; margin: 0 auto; aspect-ratio: 4/3; }
}

/* ─── Tribute date pills (DOB / DOD) ─── */
.tribute-dates {
  display: flex; flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1rem 0 1.5rem;
}
.td-pill {
  display: inline-flex; align-items: center; gap: 0.45rem;
  background: rgba(26,58,140,0.08);
  color: var(--blue);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.4rem 0.95rem;
  border-radius: 50px;
  letter-spacing: 0.02em;
}
.td-pill i { font-size: 0.72rem; }
.td-pill-orange {
  background: rgba(224,90,28,0.08);
  color: var(--orange);
}
@media (max-width: 860px) {
  .tribute-section .tribute-dates { justify-content: center; }
}

/* ─── Donate teaser (on contact page) ─── */
.donate-teaser {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2.5rem 2.5rem 2.25rem;
  box-shadow: var(--shadow-lg);
  border-top: 5px solid var(--orange);
}
.donate-teaser-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
}
.dt-item {
  background: var(--off-white);
  border-radius: 12px;
  padding: 1.25rem 1rem;
  text-align: center;
  display: flex; flex-direction: column;
  align-items: center; gap: 0.4rem;
  border-bottom: 3px solid var(--blue);
  transition: var(--transition);
}
.dt-item:nth-child(2) { border-bottom-color: var(--orange); }
.dt-item:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.dt-item i {
  font-size: 1.4rem;
  color: var(--blue);
  margin-bottom: 0.3rem;
}
.dt-item:nth-child(2) i { color: var(--orange); }
.dt-item .dt-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-mid);
}
.dt-item .dt-value {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
  word-break: break-word;
}
@media (max-width: 600px) {
  .donate-teaser { padding: 1.75rem 1.5rem; }
}

/* ─── BOARD OF TRUSTEES (full-photo portrait cards) ─── */
.trustees-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 1080px;
  margin: 0 auto;
}
.trustee-card {
  text-align: center;
  background: var(--white);
  border-radius: var(--radius);
  padding: 0 0 1.75rem;
  box-shadow: var(--shadow);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.trustee-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--blue);
  z-index: 2;
}
.trustee-card:nth-child(2)::before { background: var(--orange); }
.trustee-card:nth-child(3)::before { background: var(--blue); }
.trustee-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }

.trustee-photo-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  background: linear-gradient(180deg, #f6f4ef 0%, #faf8f3 100%);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  margin: 0 0 1.25rem;
}
.trustee-photo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: bottom center;
  display: block;
  transition: var(--transition);
}
.trustee-card:hover .trustee-photo {
  transform: scale(1.03);
}
.trustee-badge {
  position: absolute;
  top: 1rem; right: 1rem;
  z-index: 3;
  background: linear-gradient(135deg, #d4a017, #f5c842);
  color: #4a3500;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.35rem 0.75rem;
  border-radius: 50px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.trustee-badge i { font-size: 0.66rem; }
.trustee-card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin: 0 1.25rem 0.3rem;
  color: var(--text);
  line-height: 1.25;
}
.trustee-card .role {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--orange);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(224,90,28,0.08);
  padding: 0.3rem 0.85rem;
  border-radius: 50px;
  margin: 0.25rem 1.25rem 0;
}
.trustee-card p {
  margin: 1rem 1.25rem 0;
  font-size: 0.86rem;
  color: var(--text-mid);
  line-height: 1.55;
}

@media (max-width: 860px) {
  .trustees-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
}
@media (max-width: 600px) {
  .trustees-grid { grid-template-columns: 1fr; max-width: 380px; }
}

/* =============================================
   RESPONSIVE — comprehensive multi-device pass
   (Mobile · Tablet · Desktop · Wide)
============================================= */

/* Defensive base — applies at all sizes */
img, video, iframe { max-width: 100%; height: auto; }
iframe { width: 100%; }
.map-wrap iframe { height: clamp(280px, 50vw, 460px); }
:root { --safe-pad: clamp(1rem, 4vw, 2rem); }

/* Allow buttons to wrap text on very narrow screens */
@media (max-width: 420px) {
  .btn { white-space: normal; padding: 0.85rem 1.4rem; font-size: 0.9rem; line-height: 1.25; }
}

/* ─────── ≤1200px : small laptops / large tablets ─────── */
@media (max-width: 1200px) {
  .container { padding: 0 1.5rem; }
  .section-pad { padding: 4.5rem 0; }
  .hero-inner { gap: 3rem; padding: 3rem 0; }
  .hero-title { font-size: clamp(2rem, 4vw, 3.2rem); }
}

/* ─────── ≤1024px : tablets landscape ─────── */
@media (max-width: 1024px) {
  /* Tighter nav padding */
  .nav-inner { padding-top: 0.5rem; padding-bottom: 0.5rem; }
  .nav-links { gap: 0.05rem; }
  .nav-links a { padding: 0.5rem 0.7rem; font-size: 0.88rem; }
  .nav-donate { padding: 0.45rem 0.95rem !important; font-size: 0.85rem !important; }
  .btn-volunteer { padding: 0.45rem 1.1rem !important; font-size: 0.85rem !important; margin-left: 0.25rem; }
  /* Slightly smaller logo */
  .nav-logo { height: 64px; }
  .brand-name { font-size: 1.25rem; }
  .brand-sub { font-size: 0.72rem; }
  /* Hero stats wrap cleanly */
  .hero-stats { max-width: 100%; }
}

/* ─────── ≤900px : tablets portrait ─────── */
@media (max-width: 900px) {
  .section-pad { padding: 4rem 0; }
  .section-header { margin-bottom: 2.25rem; }
  /* Hero — already collapsed to 1col at 1100; refine */
  .hero { min-height: auto; padding: 1.5rem 0 1rem; }
  .hero-inner { padding: 2.5rem 0 2rem; }
  .hero-desc { font-size: 1rem; max-width: 100%; }
  .hero-btns { margin-bottom: 2rem; gap: 0.75rem; }
  .hero-badge { font-size: 0.7rem; padding: 0.35rem 0.95rem; }
  .hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); max-width: 100%; }
  /* Tribute section already stacks at 860; tighten spacing */
  .tribute-inner { gap: 2rem !important; }
  /* Trustees text size adjust */
  .trustee-card h3 { font-size: 1.02rem; }
}

/* ─────── ≤768px : large phones & small tablets (hamburger) ─────── */
@media (max-width: 768px) {
  /* Topbar — let it show but center & shrink */
  .topbar { padding: 0.4rem 0; font-size: 0.74rem; display: block; }
  .topbar-inner { gap: 0.25rem 1rem; padding: 0 0.75rem; }
  .topbar-inner span { font-size: 0.74rem; }

  /* Navbar — smaller logo, mobile menu */
  .nav-logo { height: 52px; }
  .brand { gap: 0.7rem; }
  .brand-name { font-size: 1.05rem; letter-spacing: 0.02em; }
  .brand-sub { font-size: 0.62rem; letter-spacing: 0.08em; }
  .nav-inner { padding: 0.5rem 0; }

  /* Mobile nav drawer — normalise Donate and Contact Us buttons inside drawer */
  .nav-links .nav-donate,
  .nav-links .btn-volunteer {
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    padding: 0.85rem 1rem !important;
    font-size: 0.98rem !important;
    border-radius: 10px !important;
    margin: 0 !important;
    text-align: center !important;
    letter-spacing: 0.02em !important;
    box-shadow: none !important;
  }
  .nav-links .nav-donate {
    background: linear-gradient(135deg, var(--orange), #ff6f1f) !important;
    color: var(--white) !important;
    font-weight: 700 !important;
    margin-top: 0.75rem !important;
  }
  .nav-links .nav-donate:hover {
    transform: none;
    background: linear-gradient(135deg, #c54d18, var(--orange)) !important;
  }
  .nav-links .nav-donate i { animation: none; font-size: 0.9rem; }
  .nav-links .btn-volunteer {
    background: var(--blue) !important;
    color: var(--white) !important;
    font-weight: 600 !important;
    margin-top: 0.5rem !important;
  }
  .nav-links .btn-volunteer:hover {
    background: var(--blue-mid) !important;
  }

  /* Page hero typography */
  .page-hero { padding: 3.5rem 0 2.5rem; }
  .page-hero h1 { font-size: clamp(1.7rem, 6vw, 2.4rem); margin-bottom: 0.5rem; }
  .page-hero p { font-size: 0.95rem; }
  .breadcrumb { font-size: 0.78rem; }

  /* Section title smaller */
  .section-title { font-size: clamp(1.5rem, 5.5vw, 2.1rem); margin-bottom: 0.85rem; }
  .section-label { font-size: 0.68rem; letter-spacing: 0.18em; padding-left: 1.6rem; }
  .section-label::before { width: 1rem; }

  /* Hero — single col already; trim stats to 2 cols */
  .hero-stats { grid-template-columns: repeat(2, 1fr) !important; gap: 0; }
  .h-stat { border-right: 1px solid rgba(255,255,255,0.1) !important; }
  .h-stat:nth-child(2n) { border-right: none !important; }
  .h-stat:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,0.1); }
  .h-stat-num { font-size: 1.5rem; }
  .h-stat-label { font-size: 0.7rem; }

  /* Tribute */
  .tribute-photo-frame { max-width: 240px; }
  .tribute-photo-caption .tpc-name { font-size: 1.1rem; }
  .tribute-quote { font-size: 1rem; padding: 1.1rem 1.2rem 1.1rem 2.2rem; }

  /* CTAs stack cleanly */
  .cta-btns { flex-direction: column; align-items: stretch; max-width: 340px; margin-left: auto; margin-right: auto; }
  .cta-btns .btn { justify-content: center; width: 100%; }

  /* About snippet (Founder tribute on about) */
  .about-img { height: clamp(260px, 60vw, 380px) !important; }

  /* Contact page */
  .contact-info-item { gap: 0.85rem; }
  .contact-info-item i {
    width: 38px; height: 38px;
    font-size: 0.95rem;
  }
  .contact-info-item h4 { font-size: 0.95rem; }
  .contact-info-item p { font-size: 0.88rem; word-break: break-word; }
  .phone-grid { grid-template-columns: 1fr; gap: 0.6rem; }
  .reg-card { grid-template-columns: 1fr 1fr; }
  .reg-item { padding: 1.25rem 0.85rem; }
  .ri-num { font-size: 1.1rem; }
  .ri-label { font-size: 0.72rem; }
  .volunteer-box { padding: 1.5rem 1.25rem; }

  /* About page values & wwd grids */
  .values-grid, .wwd-grid { grid-template-columns: 1fr 1fr; gap: 1rem; }

  /* Trustees */
  .trustees-grid { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
  .trustee-card h3 { font-size: 0.98rem; }
  .trustee-card .role { font-size: 0.7rem; padding: 0.25rem 0.7rem; }
  .trustee-card p { font-size: 0.8rem; margin: 0.85rem 1rem 0; }
  .trustee-badge { top: 0.6rem; right: 0.6rem; font-size: 0.62rem; padding: 0.28rem 0.6rem; }

  /* Donate page — pay tabs become scrollable strip */
  .pay-tabs {
    flex-wrap: nowrap !important;
    overflow-x: auto;
    justify-content: flex-start !important;
    padding-bottom: 0.5rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }
  .pay-tabs::-webkit-scrollbar { height: 4px; }
  .pay-tabs::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
  .pay-tab { flex: 0 0 auto; }
  /* Bank-row already stacks at ≤720; tax-box, pay-card */
  .pay-card { padding: 1.5rem 1.25rem 1.5rem; }
  .pay-card h3 { font-size: 1.2rem; }
  .pay-card .pay-card-icon { width: 48px; height: 48px; font-size: 1.15rem; top: -24px; }
  .upi-id-display { padding: 1.2rem 0.85rem; }
  .upi-id-display .uid-value { font-size: 0.95rem; }
  .impact-amount-grid { grid-template-columns: repeat(2, 1fr); gap: 0.85rem; }
  .ia-amount { font-size: 1.4rem; }
  .ia-impact { font-size: 0.8rem; }
  .donate-final-cta { padding: 2rem 1.5rem; }
  .donate-final-cta h2 { font-size: 1.45rem; }
  .donate-final-cta .dcta-row { flex-direction: column; align-items: stretch; max-width: 320px; margin: 0 auto; }
  .donate-final-cta .dcta-row .btn { width: 100%; justify-content: center; }
  .faq-q { padding: 1rem 1.1rem; font-size: 0.93rem; }
  .faq-a-inner { padding: 0 1.1rem 1rem; font-size: 0.88rem; }
  .donate-intro-grid { gap: 0.85rem; }
  .donate-intro-card { padding: 1.3rem 1rem; }
  .donate-intro-card h4 { font-size: 0.98rem; }
  .donate-intro-card p { font-size: 0.82rem; }
  .tax-item { padding: 0.85rem 0.95rem; font-size: 0.85rem; }
  .pan-tag { font-size: 0.8rem; }

  /* Gallery — tabs scroll horizontally */
  .gallery-tabs {
    flex-wrap: nowrap !important;
    overflow-x: auto;
    justify-content: flex-start !important;
    padding-bottom: 0.5rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }
  .gallery-tabs::-webkit-scrollbar { height: 4px; }
  .gallery-tabs::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
  .gallery-tab { flex: 0 0 auto; padding: 0.5rem 1rem; font-size: 0.82rem; }
  .gallery-section-title { font-size: 1.15rem; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
  .gallery-item.video-item .video-play i { width: 50px; height: 50px; font-size: 1.1rem; }

  /* Afrah strip on about */
  .afrah-strip { gap: 0.85rem; }

  /* Footer */
  .footer { padding-top: 3rem; }
  .footer-inner { gap: 1.75rem; }
  .footer-col h4 { font-size: 0.92rem; margin-bottom: 0.75rem; }
  .footer-col p, .footer-col li { font-size: 0.88rem; line-height: 1.65; }
  .footer-logo-wrap { justify-content: flex-start; }
  .footer-bottom p { font-size: 0.75rem; }

  /* Back to top — smaller, lower */
  .back-to-top { width: 40px; height: 40px; right: 1rem; bottom: 1rem; font-size: 0.9rem; }

  /* Lightbox safe area */
  .lightbox img, .lightbox-video {
    max-width: 95vw !important;
    max-height: 80vh !important;
  }
  .lightbox-close {
    top: 0.75rem !important;
    right: 1rem !important;
    font-size: 1.4rem !important;
  }
}

/* ─────── ≤640px : most phones ─────── */
@media (max-width: 640px) {
  .container { padding: 0 1.1rem; }
  .section-pad { padding: 3rem 0; }

  /* Topbar wraps to one stacked line; drop the address (longest) */
  .topbar-inner span:first-child {
    display: none;
  }

  /* Hero */
  .hero-inner { padding: 2rem 0 1.5rem; gap: 2rem; }
  .hero-title { font-size: clamp(1.7rem, 7vw, 2.2rem); margin-bottom: 1rem; }
  .hero-desc { font-size: 0.95rem; margin-bottom: 1.75rem; }
  .hero-btns { gap: 0.6rem; margin-bottom: 1.75rem; }
  .hero-btns .btn { padding: 0.75rem 1.4rem; font-size: 0.88rem; }
  .hero-stats { grid-template-columns: repeat(2, 1fr) !important; }
  .h-stat:nth-child(3) { grid-column: auto; }
  .hero-badge { margin-bottom: 1rem; font-size: 0.66rem; padding: 0.3rem 0.85rem; }

  /* Tribute */
  .tribute-photo-frame { max-width: 220px; padding: 0.75rem 0.75rem 0; }
  .tribute-photo-caption { padding: 0.85rem 0.5rem 0.85rem; margin-top: 0.65rem; }
  .tribute-text .section-title { font-size: 1.5rem; }
  .tribute-quote { font-size: 0.95rem; padding: 1rem 1rem 1rem 2rem; }
  .tribute-quote i { font-size: 0.85rem; top: 0.7rem; left: 0.7rem; }
  .tribute-dates { gap: 0.45rem; margin: 0.85rem 0 1.25rem; }
  .td-pill { font-size: 0.74rem; padding: 0.35rem 0.85rem; }

  /* Impact / values grids */
  .impact-grid { grid-template-columns: 1fr 1fr !important; gap: 0.85rem; }
  .impact-card { padding: 1.3rem 0.85rem; }
  .impact-num { font-size: 1.45rem; }
  .impact-label { font-size: 0.72rem; }
  .values-grid, .wwd-grid { grid-template-columns: 1fr; }

  /* About snippet text */
  .about-text .section-title { font-size: 1.5rem; }
  .about-text p { font-size: 0.92rem; }
  .about-badge-box { right: 5px !important; bottom: -5px !important; padding: 0.85rem 1rem !important; }
  .ab-num { font-size: 0.95rem !important; }
  .ab-txt { font-size: 0.72rem !important; }

  /* Trustees → 1 col with tighter ratios */
  .trustees-grid { grid-template-columns: 1fr; max-width: 340px; gap: 1.25rem; }
  .trustee-photo-wrap { aspect-ratio: 1 / 1.1; }

  /* Afrah strip — single row */
  .afrah-strip { gap: 0.65rem; }
  .afrah-strip-item .asi-caption { font-size: 0.72rem; padding: 1rem 0.65rem 0.6rem; }

  /* Contact info phone-card layout */
  .phone-card { padding: 0.85rem 0.95rem; }
  .phone-card .pc-num { font-size: 0.95rem; }
  .reg-card { grid-template-columns: 1fr 1fr; gap: 0.75rem; }

  /* Donate page */
  .donate-intro-grid { grid-template-columns: 1fr 1fr; }
  .impact-amount-grid { grid-template-columns: 1fr 1fr; }
  .pay-card { padding: 1.25rem 1rem 1.25rem; border-radius: 10px; }
  .pay-card h3 { font-size: 1.1rem; }
  .pay-card .pay-card-sub { font-size: 0.85rem; }
  .bank-row { padding: 0.7rem 0; }
  .bank-row .br-label { font-size: 0.65rem; }
  .bank-row .br-val { font-size: 0.9rem; gap: 0.4rem; }
  .copy-btn { font-size: 0.68rem; padding: 0.22rem 0.55rem; }
  .upi-grid { gap: 1rem; }
  .upi-id-display .uid-value { font-size: 0.88rem; }
  .upi-app-chip { font-size: 0.72rem; padding: 0.32rem 0.7rem; }
  .tax-box { padding: 1.5rem 1.1rem; }
  .tax-box h3, .tax-box h4 { font-size: 1.05rem; }

  /* Gallery */
  .gallery-grid { grid-template-columns: 1fr 1fr; gap: 0.5rem; }
  .gallery-overlay span { font-size: 0.74rem; }

  /* Footer typography */
  .footer { padding-top: 2.5rem; }
  .footer-inner { grid-template-columns: 1fr !important; gap: 1.5rem; }
  .footer-col { text-align: left; }
  .fn { font-size: 0.95rem; }
  .fs { font-size: 0.65rem; }
  .footer-logo-img { width: 56px !important; height: 56px !important; }
  .footer-social { gap: 0.65rem; }
  .footer-social a { width: 38px; height: 38px; }
  .footer-bottom { padding: 0.85rem 0; }
}

/* ─────── ≤420px : small phones ─────── */
@media (max-width: 420px) {
  :root { --radius: 12px; }
  .container { padding: 0 0.9rem; }
  .section-pad { padding: 2.5rem 0; }
  .section-header { margin-bottom: 1.85rem; }

  /* Navbar logo smallest */
  .nav-logo { height: 44px; }
  .brand { gap: 0.55rem; }
  .brand-name { font-size: 0.95rem; }
  .brand-sub { font-size: 0.58rem; letter-spacing: 0.06em; }

  /* Hero */
  .hero-title { font-size: 1.7rem; }
  .hero-desc { font-size: 0.9rem; }
  .hero-btns .btn { width: 100%; justify-content: center; }
  .hero-stats { grid-template-columns: 1fr 1fr !important; }
  .h-stat { border-right: 1px solid rgba(255,255,255,0.1); }
  .h-stat:nth-child(2n) { border-right: none; }
  .h-stat:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,0.1); }
  .h-stat:nth-child(3) { grid-column: auto; }

  /* Section title */
  .section-title { font-size: 1.35rem; }
  .section-header p { font-size: 0.88rem; }

  /* Tribute on smallest */
  .tribute-photo-frame { max-width: 200px; }
  .tribute-text .section-title { font-size: 1.35rem; }

  /* Impact cards in single column */
  .impact-grid { grid-template-columns: 1fr !important; max-width: 280px; margin-left: auto; margin-right: auto; }
  .donate-intro-grid { grid-template-columns: 1fr; }

  /* Donate impact tiles */
  .impact-amount-grid { grid-template-columns: 1fr; max-width: 280px; margin-left: auto; margin-right: auto; }
  .ia-card { padding: 1.25rem 1rem; }

  /* Trustees */
  .trustee-card h3 { font-size: 0.95rem; }
  .trustee-card p { font-size: 0.78rem; }

  /* Gallery — single col on tiny screens */
  .gallery-grid { grid-template-columns: 1fr; }

  /* Volunteer / vol-card grid on contact */
  .vol-grid { grid-template-columns: 1fr !important; }

  /* Email CTA tighter */
  .email-cta { padding: 2rem 1.25rem !important; }
  .email-cta h3 { font-size: 1.2rem !important; }
  .email-cta p { font-size: 0.88rem !important; }

  /* Final donate CTA */
  .donate-final-cta { padding: 1.75rem 1.1rem; border-radius: 12px; }
  .donate-final-cta h2 { font-size: 1.25rem; }
  .donate-final-cta p { font-size: 0.88rem; }

  /* Footer logo block centers */
  .footer-logo-wrap { flex-direction: column; align-items: flex-start; gap: 0.5rem; }

  /* Lightbox */
  .lightbox-close { font-size: 1.2rem !important; top: 0.5rem !important; right: 0.5rem !important; }
}

/* Landscape phone hint — keep navbar height reasonable */
@media (max-width: 900px) and (orientation: landscape) {
  .hero { min-height: auto; }
  .hero-inner { padding: 2rem 0; }
}

/* Print friendliness (useful for donation receipts etc.) */
@media print {
  .navbar, .topbar, .footer, .back-to-top, .cta-section, .hero { display: none !important; }
  .section-pad { padding: 1rem 0; }
  a { color: var(--text) !important; text-decoration: underline; }
}
