/* ── VARIABLES ─────────────────────────────── */
:root {
  --navy:       #001F3F;
  --navy-light: #0A2D58;
  --royal:      #4169E1;
  --gold:       #FFD700;
  --gold-muted: #CBB26A;
  --white:      #FFFFFF;
  --off-white:  #F7F9FF;
  --light-blue: #EEF2FF;
  --gray:       #4A5568;
  --gray-light: #718096;
  --serif:      'Poppins', sans-serif;
  --sans:       'Open Sans', 'Helvetica Neue', sans-serif;
  --max:        1180px;
  --ease:       cubic-bezier(0.22, 1, 0.36, 1);
}

/* ── RESET ─────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { overflow-x: hidden; max-width: 100%; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--sans); color: var(--gray); background: var(--white); line-height: 1.7; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img  { max-width: 100%; height: auto; display: block; }
a    { color: var(--royal); text-decoration: none; transition: color .2s; }
a:hover { color: var(--navy); }

/* ── ANIMATION ─────────────────────────────── */
.reveal { opacity: 0; transform: translateY(32px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }
.reveal-delay-4 { transition-delay: .4s; }
.reveal-delay-4 { transition-delay: .4s; }

/* ── LAYOUT ────────────────────────────────── */
.container { max-width: var(--max); margin: 0 auto; padding: 0 1.5rem; }
.section    { padding: 6rem 0; }
.text-center { text-align: center; }
.text-center h1, .text-center h2, .text-center h3 { text-align: center; }
.section-sm { padding: 4rem 0; }

/* ── TYPOGRAPHY ────────────────────────────── */
h1, h2, h3, h4 { font-family: var(--serif); color: var(--navy); line-height: 1.2; }
h1 { font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); font-weight: 700; }
h3 { font-size: 1.3rem; font-weight: 700; }
.eyebrow { font-size: .75rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-muted); display: block; margin-bottom: .6rem; }
.divider  { width: 50px; height: 3px; background: var(--gold); margin: 1rem auto 1.5rem; border-radius: 2px; }
.divider-left { margin-left: 0; }
p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* ── BUTTONS ───────────────────────────────── */
.btn { display: inline-flex; align-items: center; gap: .5rem; padding: .85rem 2rem; font-family: var(--sans); font-size: .95rem; font-weight: 600; border-radius: 50px; border: 2px solid transparent; cursor: pointer; transition: all .25s var(--ease); text-decoration: none; white-space: nowrap; }
.btn-primary { background: var(--gold); color: var(--navy); border-color: var(--gold); }
.btn-primary:hover { background: #e6c200; border-color: #e6c200; color: var(--navy); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(255,215,0,.35); }
.btn-outline  { background: transparent; color: var(--white); border-color: rgba(255,255,255,.6); }
.btn-outline:hover  { background: rgba(255,255,255,.12); border-color: var(--white); color: var(--white); transform: translateY(-2px); }
.btn-navy   { background: var(--navy); color: var(--white); border-color: var(--navy); }
.btn-navy:hover { background: var(--navy-light); border-color: var(--navy-light); color: var(--white); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,31,63,.3); }
.btn svg { width: 18px; height: 18px; flex-shrink: 0; transition: transform .2s; }
.btn:hover svg { transform: translateX(3px); }

/* ── HEADER / NAV ──────────────────────────── */
.site-header { position: sticky; top: 0; z-index: 100; background: #EEF2FF; box-shadow: 0 2px 20px rgba(0,0,0,.1); width: 100%; border-bottom: 2px solid #D0DAF5; }
.nav-inner   { display: flex; align-items: center; justify-content: space-between; height: 108px; max-width: 100%; padding: 0 1.5rem 0 2rem; }
.nav-logo    { display: flex; align-items: center; gap: 1rem; text-decoration: none; flex-shrink: 0; }
.nav-logo img { height: 75px; width: auto; }
.nav-logo-text { font-family: var(--serif); font-size: 1.8rem; font-weight: 700; color: var(--navy); line-height: 1.2; }
.nav-links   { display: flex; align-items: center; gap: 1.4rem; list-style: none; }
.nav-donate  { margin-left: .25rem; margin-right: .5rem; }
.nav-links a { font-size: .875rem; font-weight: 600; color: var(--navy); transition: color .2s; padding: .25rem 0; position: relative; }
.nav-links a::after { content: ''; position: absolute; bottom: -2px; left: 0; right: 0; height: 2px; background: var(--royal); transform: scaleX(0); transition: transform .2s var(--ease); }
.nav-links a:hover, .nav-links a.current-menu-item { color: var(--royal); }
.nav-links a:hover::after, .nav-links a.current-menu-item::after { transform: scaleX(1); }
.nav-donate  { margin-left: .5rem; }
.hamburger   { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: .5rem; background: none; border: none; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--navy); border-radius: 2px; transition: all .3s var(--ease); }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-menu { display: none; background: #E4EBFF; border-top: 1px solid #D0DAF5; }
.mobile-menu.open { display: block; }
.mobile-menu ul  { list-style: none; padding: 1rem 1.5rem; }
.mobile-menu a   { display: block; padding: .75rem 0; color: var(--navy); font-weight: 600; border-bottom: 1px solid rgba(0,31,63,.1); }
.mobile-menu a:hover { color: var(--royal); }
.mobile-menu .btn { margin: 1rem 1.5rem 1.5rem; display: flex; justify-content: center; }

/* ── HERO ──────────────────────────────────── */
.hero { position: relative; min-height: 640px; display: flex; align-items: center; background-size: cover; background-position: center; background-repeat: no-repeat; overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(to right, rgba(0,31,63,.70) 0%, rgba(0,31,63,.45) 50%, rgba(0,31,63,.20) 100%); }
.hero-content { position: relative; z-index: 1; max-width: 680px; padding: 5rem 2.5rem; }
.hero h1 { color: var(--white); margin-bottom: 1.25rem; text-align: left; }
.hero p   { font-size: 1.15rem; color: rgba(255,255,255,.88); margin-bottom: 2.25rem; max-width: 560px; text-align: left; }
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: flex-start; }

/* ── MISSION INTRO ─────────────────────────── */
.mission-intro { background: var(--white); padding: 5rem 0 3rem; }
.mission-intro .inner { text-align: center; max-width: 680px; margin: 0 auto; }
.mission-intro h2 { margin-bottom: .5rem; }
.mission-intro p  { font-size: 1.1rem; color: var(--gray); }

/* ── STATS STRIP ───────────────────────────── */
.stats-strip { background: var(--navy); padding: 4rem 0; }
.stats-grid  { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.stat-card   { text-align: center; padding: 2.5rem 2rem; border: 1px solid rgba(255,215,0,.2); border-radius: 1rem; transition: border-color .3s, transform .3s; }
.stat-card:hover { border-color: var(--gold); transform: translateY(-4px); }
.stat-icon   { font-size: 2rem; margin-bottom: .75rem; }
.stat-number { font-family: var(--serif); font-size: 3.5rem; font-weight: 800; color: var(--white); line-height: 1; margin-bottom: .5rem; }
.stat-bar    { width: 40px; height: 3px; background: var(--gold); margin: .5rem auto .75rem; border-radius: 2px; }
.stat-label  { font-size: .8rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: #DCEEFB; }

/* ── WHO WE ARE ────────────────────────────── */
.who-section { background: var(--navy); padding: 0 0 5rem; }
.who-grid    { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.who-card    { background: var(--white); border-radius: 1rem; padding: 2.5rem; box-shadow: 0 4px 24px rgba(0,0,0,.08); }
.who-card h3 { margin-bottom: .75rem; }
.who-card p  { color: var(--gray); margin-bottom: 1.25rem; }
.text-link   { font-weight: 600; color: var(--royal); display: inline-flex; align-items: center; gap: .35rem; }
.text-link:hover { color: var(--navy); }
.text-link svg { width: 16px; height: 16px; transition: transform .2s; }
.text-link:hover svg { transform: translateX(4px); }

/* ── PROGRAMS ──────────────────────────────── */
.programs-section  { background: var(--light-blue); }
.programs-grid     { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.75rem; margin-bottom: 3rem; }
.program-card      { background: var(--white); border-radius: 1rem; padding: 2.25rem; box-shadow: 0 4px 20px rgba(0,0,0,.06); transition: transform .3s var(--ease), box-shadow .3s; }
.program-card:hover { transform: translateY(-6px); box-shadow: 0 12px 40px rgba(0,0,0,.12); }
.program-icon      { width: 56px; height: 56px; border-radius: .75rem; background: var(--light-blue); display: flex; align-items: center; justify-content: center; margin-bottom: 1.25rem; }
.program-icon svg  { width: 28px; height: 28px; stroke: var(--royal); }
.program-card h3   { margin-bottom: .6rem; }
.program-card p    { font-size: .95rem; color: var(--gray); }
.programs-cta      { text-align: center; }

/* ── TESTIMONIALS ──────────────────────────── */
.testimonials-section  { background: var(--white); }
.testimonials-grid     { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.75rem; }
.testimonial-card      { background: var(--light-blue); border-radius: 1rem; padding: 2.25rem; position: relative; box-shadow: 0 4px 20px rgba(0,0,0,.05); }
.testimonial-quote     { font-family: var(--serif); font-size: 4rem; color: var(--gold); line-height: 1; position: absolute; top: 1.25rem; left: 1.5rem; opacity: .7; }
.testimonial-author    { display: flex; align-items: center; gap: .85rem; margin-bottom: 1.25rem; margin-top: 1.5rem; }
.testimonial-author-name { font-weight: 700; color: var(--navy); font-size: .95rem; }
.testimonial-author-role { font-size: .8rem; color: var(--gray-light); }
.testimonial-text      { font-size: .95rem; color: var(--gray); line-height: 1.7; }

/* ── CTA CARDS ─────────────────────────────── */
.cta-section { background: var(--navy); }
.cta-grid    { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.cta-card    { background: var(--white); border-radius: 1rem; padding: 2.5rem; text-align: center; box-shadow: 0 8px 32px rgba(0,0,0,.15); transition: transform .3s var(--ease); }
.cta-card:hover { transform: translateY(-6px); }
.cta-icon    { width: 60px; height: 60px; border-radius: 50%; background: var(--light-blue); display: flex; align-items: center; justify-content: center; margin: 0 auto 1.25rem; }
.cta-icon svg { width: 28px; height: 28px; stroke: var(--royal); }
.cta-card h3 { margin-bottom: .6rem; }
.cta-card p  { font-size: .9rem; color: var(--gray); margin-bottom: 1.5rem; }
.cta-card .btn { width: 100%; justify-content: center; }

/* ── PAGE HEADER (inner pages) ─────────────── */
.page-header { background: var(--navy); padding: 4rem 0; text-align: center; }
.page-header h1 { color: var(--white); }
.page-header p  { color: rgba(255,255,255,.8); font-size: 1.1rem; max-width: 600px; margin: 1rem auto 0; }

/* ── FOOTER ────────────────────────────────── */
.site-footer  { background: #000D1C; color: rgba(255,255,255,.6); }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; padding: 4rem 0 3rem; }
.footer-brand-logo { display: flex; align-items: center; gap: .65rem; margin-bottom: 1rem; }
.footer-brand-logo img { height: 38px; }
.footer-brand-logo span { font-family: var(--serif); font-weight: 700; font-size: 1.2rem; color: var(--white); line-height: 1.25; }
.footer-brand p { font-size: .875rem; line-height: 1.7; max-width: 280px; }
.footer-col h4  { font-family: var(--sans); font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-muted); margin-bottom: 1.25rem; }
.footer-col ul  { list-style: none; padding: 0; }
.footer-col li  { margin-bottom: .6rem; }
.footer-col a   { font-size: .875rem; color: rgba(255,255,255,.55); transition: color .2s; }
.footer-col a:hover { color: var(--gold); }
.footer-bottom  { display: flex; align-items: center; justify-content: space-between; padding: 1.5rem 0; border-top: 1px solid rgba(255,255,255,.08); font-size: .8rem; }
.footer-bottom p { margin: 0; }

/* ── WORDPRESS CORE ────────────────────────── */
.wp-caption { max-width: 100%; }
.alignnone, .alignleft, .alignright, .aligncenter { max-width: 100%; }
.aligncenter { display: block; margin: 0 auto; }

/* ── RESPONSIVE ─────────────────────────────── */
@media (max-width: 1024px) {
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
@media (max-width: 900px) {
  .programs-grid     { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .cta-grid          { grid-template-columns: 1fr; }
  .who-grid          { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .nav-links, .nav-donate { display: none; }
  .hamburger { display: flex; }
  .stats-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; gap: .5rem; text-align: center; }
}

/* ── ABOUT PAGE ────────────────────────────── */

/* Founder cards — caption always visible at bottom */
.founder-card { border-radius: 1.25rem; overflow: hidden; box-shadow: 0 8px 32px rgba(0,0,0,.14); width: 100%; display: block; }
.founder-photo-wrap { position: relative; overflow: hidden; aspect-ratio: 2/3; width: 100%; margin: 0; padding: 0; display: block; }
.founder-photo { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform .6s var(--ease); display: block; margin: 0; padding: 0; vertical-align: top; }
.founder-card:hover .founder-photo { transform: scale(1.03); }
.founder-card:hover .founder-photo { transform: scale(1.03); }
.founder-caption {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(0,15,35,.95) 0%, rgba(0,15,35,.6) 70%, transparent 100%);
  padding: 3rem 1.5rem 1.5rem;
}
.founder-caption h3 { color: var(--white); font-size: 1.15rem; margin-bottom: .2rem; }
.founder-caption-role { color: var(--gold); font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; display: block; margin-bottom: .5rem; }
.founder-caption-bio { color: rgba(255,255,255,.82); font-size: .85rem; line-height: 1.6; margin: 0; }

/* Founders' Message — clean card style */
.founders-message { max-width: 860px; margin: 0 auto; }
.founders-message-inner {
  background: var(--white); border-radius: 1.25rem;
  padding: 2.5rem 3rem;
  border-left: 5px solid var(--gold);
  box-shadow: 0 4px 32px rgba(0,0,0,.07);
}
.founders-message-inner h3 { font-family: 'Poppins', sans-serif; font-size: 1.4rem; font-weight: 700; margin-bottom: 1.25rem; color: var(--navy); }
.founders-message-body { display: flex; flex-direction: column; gap: 1rem; }
.founders-message-body p { color: var(--gray); font-size: .98rem; line-height: 1.85; margin: 0; font-style: normal; }
.founders-message-sig { display: flex; align-items: center; gap: 1.5rem; margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid #e2e8f0; }
.sig-line { flex: 1; height: 1px; background: #e2e8f0; }
.founders-message-sig span { font-family: 'Poppins', sans-serif; font-size: 1rem; font-weight: 700; color: var(--navy); font-style: italic; white-space: nowrap; }

/* Our Story */
.story-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.story-text  { display: flex; flex-direction: column; gap: .85rem; }
.story-text p { color: var(--gray); margin: 0; }
.story-image { border-radius: 1.25rem; box-shadow: 0 12px 48px rgba(0,0,0,.14); width: 100%; height: auto; object-fit: cover; }

/* Core Values — 3 on top, 2 centered below */
.values-row { display: flex; justify-content: center; gap: 1.5rem; margin-bottom: 1.5rem; }
.values-row:last-child { margin-bottom: 0; }
.values-row-3 .value-card { flex: 0 1 calc(33.333% - 1rem); }
.values-row-2 .value-card { flex: 0 1 calc(33.333% - 1rem); }
.value-card {
  background: var(--light-blue); border-radius: 1rem;
  padding: 2rem; box-shadow: 0 2px 12px rgba(0,0,0,.05);
  transition: transform .3s var(--ease), box-shadow .3s;
  min-width: 220px;
}
.value-card:hover { transform: translateY(-5px); box-shadow: 0 10px 32px rgba(0,0,0,.1); }
.value-icon { width: 52px; height: 52px; border-radius: .75rem; background: var(--white); display: flex; align-items: center; justify-content: center; margin-bottom: 1rem; }
.value-icon svg { width: 26px; height: 26px; stroke: var(--royal); }
.value-card h3 { font-size: 1.05rem; margin-bottom: .5rem; }
.value-card p  { font-size: .9rem; color: var(--gray); margin: 0; line-height: 1.6; }

@media (max-width: 900px) {
  .values-row { flex-wrap: wrap; }
  .values-row-3 .value-card, .values-row-2 .value-card { flex: 0 1 calc(50% - .75rem); }
}
@media (max-width: 768px) {
  .founder-photo-wrap { aspect-ratio: 3/4; }
  .story-grid { grid-template-columns: 1fr; gap: 2rem; }
  .values-row-3 .value-card, .values-row-2 .value-card { flex: 0 1 100%; }
  .founders-message-inner { padding: 2rem; }
  .founders-message-sig { flex-direction: column; text-align: center; }
  .sig-line { display: none; }
}

/* ── BOARD MEMBERS PAGE ─────────────────────── */
.board-card {
  background: var(--white);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,.07);
  width: 100%;
  transition: transform .3s var(--ease), box-shadow .3s, border-color .3s;
  border-bottom: 4px solid transparent;
}
.board-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(0,0,0,.13);
  border-bottom-color: var(--gold);
}
.board-photo-wrap {
  width: 100%;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: #2563C3;
}
.board-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: transform .5s var(--ease);
}
.board-card:hover .board-photo { transform: scale(1.04); }
.board-info {
  padding: 1.25rem 1rem;
  text-align: center;
}
.board-info h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: .3rem;
  transition: color .2s;
}
.board-card:hover .board-info h3 { color: var(--gold-muted); }
.board-title {
  font-size: .75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--gray-light);
  line-height: 1.5;
  margin: 0;
}
.board-row {
  display: grid;
  gap: 1.75rem;
}
.board-row-4 { grid-template-columns: repeat(4, 1fr); margin-bottom: 1.75rem; }
.board-row-3 {
  grid-template-columns: repeat(4, 1fr);
  /* shift 3 cards to cols 2-4 to center under row 1 */
}
.board-row-3 .board-card:nth-child(1) { grid-column: 2; }
.board-row-3 .board-card:nth-child(2) { grid-column: 3; }
.board-row-3 .board-card:nth-child(3) { grid-column: 4; }

@media (max-width: 1024px) {
  .board-row-4 { grid-template-columns: repeat(2, 1fr); }
  .board-row-3 { grid-template-columns: repeat(2, 1fr); }
  .board-row-3 .board-card:nth-child(1),
  .board-row-3 .board-card:nth-child(2),
  .board-row-3 .board-card:nth-child(3) { grid-column: auto; }
}
@media (max-width: 600px) {
  .board-row-4, .board-row-3 { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════════
   COMPREHENSIVE MOBILE RESPONSIVE OVERRIDES
   Breakpoints: 1024px (tablet), 768px (mobile), 480px (small)
   ═══════════════════════════════════════════════════════════ */

/* ── GLOBAL ── */
@media (max-width: 768px) {
  .container { padding: 0 1.25rem; }
  h1 { font-size: clamp(1.8rem, 6vw, 2.8rem); }
  h2 { font-size: clamp(1.4rem, 5vw, 2.2rem); }
  section { padding: 3rem 0; }
}

/* ── HEADER / NAV ── */
@media (max-width: 768px) {
  .nav-inner {
    height: auto;
    min-height: 72px;
    padding: .75rem 1.25rem;
    flex-wrap: nowrap;
    gap: .5rem;
  }
  .nav-logo { gap: .6rem; flex: 1; }
  .nav-logo img { height: 52px; }
  .nav-logo-text { font-size: 1.1rem; }
  .nav-links, .nav-donate { display: none !important; }
  .hamburger { display: flex !important; flex-shrink: 0; }
  .mobile-menu a { font-size: .95rem; }
}

@media (max-width: 480px) {
  .nav-logo img { height: 44px; }
  .nav-logo-text { font-size: 1rem; }
}

/* ── HERO ── */
@media (max-width: 768px) {
  .hero { min-height: 480px; }
  .hero > div { padding: 3rem 1.25rem; }
  .hero h1 { font-size: clamp(1.8rem, 7vw, 3rem); }
  .hero p  { font-size: 1rem; }
  .hero-cta { flex-direction: column; align-items: center; gap: .75rem; }
  .hero-cta .btn { width: 100%; max-width: 280px; justify-content: center; }
}

/* ── STATS STRIP ── */
@media (max-width: 768px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
  .stat-number { font-size: 2.5rem; }
}
@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
}

/* ── WHO WE ARE / WHO WE SERVE ── */
@media (max-width: 768px) {
  .who-grid { grid-template-columns: 1fr; gap: 1rem; padding: 0 1.25rem 3rem; }
  .who-card { padding: 1.75rem; }
}

/* ── KEY PROGRAMS ── */
@media (max-width: 768px) {
  .programs-section .container { padding: 0 1.25rem; }
  .programs-grid { grid-template-columns: 1fr; gap: 1.25rem; }
  .program-card { padding: 1.75rem; }
}

/* ── TESTIMONIALS ── */
@media (max-width: 768px) {
  .testimonials-grid { grid-template-columns: 1fr; gap: 1.25rem; }
  .testimonial-card { padding: 1.5rem; }
}

/* ── CTA GRID (4 columns → 2 → 1) ── */
@media (max-width: 1024px) {
  .cta-section > .container > div[style*="grid-template-columns:repeat(4"] {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}
@media (max-width: 600px) {
  .cta-section > .container > div[style*="grid-template-columns:repeat(4"] {
    grid-template-columns: 1fr !important;
  }
}
.cta-card { padding: 2rem 1.5rem; }

/* ── PAGE HEADER BANNER ── */
@media (max-width: 768px) {
  .page-header { padding: 2.5rem 1.25rem; }
  .page-header h1 { font-size: clamp(1.6rem, 6vw, 2.4rem); }
  .page-header p  { font-size: 1rem; }
}

/* ── ABOUT PAGE ── */
@media (max-width: 768px) {
  /* Founders grid: 2 col → 1 col */
  .page-templates-page-about .founders-grid,
  [class*="about"] .founders-grid {
    grid-template-columns: 1fr !important;
  }
}
/* Target inline founders grid */
@media (max-width: 768px) {
  div[style*="grid-template-columns:repeat(2,1fr)"][style*="900px"] {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }
}

/* ── OUR STORY 2-COL ── */
@media (max-width: 768px) {
  div[style*="grid-template-columns:1fr 1fr"][style*="gap:4rem"] {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }
}

/* ── CORE VALUES inline grid ── */
@media (max-width: 768px) {
  div[style*="grid-template-columns:repeat(3,1fr)"] {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }
  div[style*="grid-template-columns:1fr 1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }
}
@media (max-width: 900px) {
  div[style*="grid-template-columns:repeat(3,1fr)"] {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

/* ── INITIATIVES ── */
@media (max-width: 900px) {
  div[style*="grid-template-columns:1fr 1fr 1fr"] {
    grid-template-columns: 1fr 1fr !important;
  }
}
@media (max-width: 600px) {
  div[style*="grid-template-columns:1fr 1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }
}

/* ── PARTNERS LOGO GRID (5 col → 3 → 2) ── */
@media (max-width: 900px) {
  div[style*="grid-template-columns:repeat(5,1fr)"] {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}
@media (max-width: 600px) {
  div[style*="grid-template-columns:repeat(5,1fr)"] {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

/* ── BOARD MEMBERS ── */
@media (max-width: 768px) {
  .board-row-4 { grid-template-columns: repeat(2, 1fr) !important; }
  .board-row-3 { grid-template-columns: repeat(2, 1fr) !important; }
  .board-row-3 .board-card:nth-child(1),
  .board-row-3 .board-card:nth-child(2),
  .board-row-3 .board-card:nth-child(3) { grid-column: auto !important; }
}
@media (max-width: 480px) {
  .board-row-4 { grid-template-columns: 1fr !important; }
  .board-row-3 { grid-template-columns: 1fr !important; }
}

/* ── CONTACT PAGE 2-COL ── */
@media (max-width: 768px) {
  div[style*="grid-template-columns:1fr 1fr"][style*="gap:4rem"] {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }
}

/* ── VOLUNTEER FORM CHECKBOXES (2 col → 1) ── */
@media (max-width: 600px) {
  div[style*="grid-template-columns:1fr 1fr"][style*="gap:.6rem"] {
    grid-template-columns: 1fr !important;
  }
  /* Availability table scrollable */
  .avail-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
}

/* ── FOOTER ── */
@media (max-width: 900px) {
  footer > div > div[style*="grid-template-columns:1.6fr 1fr 1fr"] {
    grid-template-columns: 1fr 1fr !important;
    gap: 2rem !important;
  }
  footer > div > div[style*="grid-template-columns:1.6fr 1fr 1fr"] > div:first-child {
    grid-column: 1 / -1 !important;
  }
}
@media (max-width: 600px) {
  footer { padding: 2.5rem 0 0; }
  footer > div { padding: 0 1.25rem; }
  footer > div > div[style*="grid-template-columns:1.6fr 1fr 1fr"] {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }
  footer > div > div[style*="grid-template-columns:1.6fr 1fr 1fr"] > div:first-child {
    grid-column: 1 !important;
  }
  footer .footer-brand-logo { flex-direction: row; }
  footer > div > div[style*="justify-content:space-between"] {
    flex-direction: column !important;
    text-align: center !important;
    gap: .4rem !important;
  }
}

/* ── BACK TO TOP BUTTON (smaller on mobile) ── */
@media (max-width: 600px) {
  #backToTop { width: 42px; height: 42px; bottom: 1.25rem; right: 1.25rem; }
}

/* ── GENERAL INLINE GRID FIXES ── */
/* 2-column inline grids → 1 column on mobile */
@media (max-width: 600px) {
  div[style*="grid-template-columns:1fr 1fr"]:not([style*="gap:.6rem"]) {
    grid-template-columns: 1fr !important;
    gap: 1.25rem !important;
  }
}

/* Buttons full width on small screens */
@media (max-width: 480px) {
  .btn { width: 100%; max-width: 320px; justify-content: center; }
  div[style*="display:flex"][style*="gap:1rem"][style*="justify-content:center"] {
    flex-direction: column !important;
    align-items: center !important;
  }
}

/* ── PHOTO GALLERY (GLightbox grid) ────────── */
.ewf-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.ewf-gallery-item {
  position: relative;
  display: block;
  border-radius: .75rem;
  overflow: hidden;
  background: var(--light-blue);
  aspect-ratio: 4 / 3;
  box-shadow: 0 4px 20px rgba(0,0,0,.07);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
  outline: none;
}

.ewf-gallery-item:hover,
.ewf-gallery-item:focus-visible {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 14px 40px rgba(0,31,63,.18);
}

.ewf-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s var(--ease);
}

.ewf-gallery-item:hover img,
.ewf-gallery-item:focus-visible img {
  transform: scale(1.06);
}

/* Overlay (zoom icon + label) */
.ewf-gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0,31,63,.65) 0%,
    rgba(0,31,63,.05) 55%,
    transparent 100%
  );
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
  padding: .85rem;
  opacity: 0;
  transition: opacity .3s var(--ease);
  pointer-events: none;
}

.ewf-gallery-item:hover .ewf-gallery-overlay,
.ewf-gallery-item:focus-visible .ewf-gallery-overlay {
  opacity: 1;
}

.ewf-gallery-zoom {
  background: rgba(255,255,255,.18);
  border: 1.5px solid rgba(255,255,255,.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border-radius: 50%;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
}

.ewf-gallery-label {
  align-self: flex-start;
  background: var(--gold);
  color: var(--navy);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  padding: .3rem .7rem;
  border-radius: 50px;
}

/* Responsive: 3 → 2 → 1 columns */
@media (max-width: 900px) {
  .ewf-gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .ewf-gallery-grid { grid-template-columns: 1fr; gap: .75rem; }
}
