/* ============================================================
   Divine Mercy Foundation — Main Stylesheet
   Color palette: Crimson Red #C8102E | Navy #0D1F35 | White #FFFFFF
   ============================================================ */

:root {
  --red:        #C8102E;
  --red-dark:   #9a0c22;
  --red-light:  #f5e6e9;
  --navy:       #0D1F35;
  --navy-mid:   #1a3557;
  --navy-light: #e8eef6;
  --white:      #FFFFFF;
  --off-white:  #F9F6F4;
  --light-gray: #F4F4F6;
  --text:       #1A1A2E;
  --text-muted: #6B7280;
  --border:     #E5E7EB;
  --shadow-sm:  0 1px 3px rgba(0,0,0,.08);
  --shadow-md:  0 4px 16px rgba(0,0,0,.10);
  --shadow-lg:  0 12px 40px rgba(0,0,0,.14);
  --radius:     12px;
  --radius-sm:  8px;
  --radius-lg:  20px;
  --font-body:  'Inter', system-ui, sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;
  --max-width:  1200px;
  --transition: 0.25s ease;
}

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

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

body {
  font-family: var(--font-body);
  color: var(--text);
  line-height: 1.7;
  background: var(--white);
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--red); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--red-dark); }

h1,h2,h3,h4,h5 { line-height: 1.25; font-weight: 700; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); }
h3 { font-size: 1.25rem; }

p { max-width: 70ch; }

ul { list-style: none; }

/* ── Container ── */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .7rem 1.6rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
}
.btn-lg { padding: .9rem 2.2rem; font-size: 1rem; }
.btn-sm { padding: .45rem 1rem; font-size: .85rem; }
.btn-full { width: 100%; justify-content: center; }

.btn-primary {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
}
.btn-primary:hover {
  background: var(--red-dark);
  border-color: var(--red-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(200,16,46,.35);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.6);
}
.btn-outline:hover {
  background: rgba(255,255,255,.15);
  border-color: var(--white);
  color: var(--white);
}

.btn-secondary {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}
.btn-secondary:hover {
  background: var(--navy-mid);
  border-color: var(--navy-mid);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-white {
  background: var(--white);
  color: var(--red);
  border-color: var(--white);
}
.btn-white:hover {
  background: var(--off-white);
  color: var(--red-dark);
  transform: translateY(-2px);
}

/* ── Top Bar ── */
.topbar {
  background: var(--navy);
  color: rgba(255,255,255,.75);
  font-size: .82rem;
  padding: .45rem 0;
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.topbar-donate-link {
  color: #FFB3BE;
  font-weight: 600;
  transition: color var(--transition);
}
.topbar-donate-link:hover { color: var(--white); }

/* ── Header ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition);
}
.site-header.scrolled { box-shadow: var(--shadow-md); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: .75rem;
  padding-bottom: .75rem;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: .75rem;
  text-decoration: none;
}
.logo-img { width: 52px; height: 52px; object-fit: contain; }
.logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.logo-name { font-size: 1.1rem; font-weight: 700; color: var(--navy); }
.logo-sub  { font-size: .75rem; font-weight: 500; color: var(--red); text-transform: uppercase; letter-spacing: .08em; }

.site-nav > ul {
  display: flex;
  align-items: center;
  gap: .25rem;
}
.site-nav a {
  color: var(--text);
  font-weight: 500;
  font-size: .92rem;
  padding: .45rem .85rem;
  border-radius: 8px;
  transition: all var(--transition);
  position: relative;
}
.site-nav a:hover,
.site-nav a.active {
  color: var(--red);
  background: var(--red-light);
}
.nav-donate-btn {
  background: var(--red) !important;
  color: var(--white) !important;
  border-radius: 50px !important;
  padding: .45rem 1.2rem !important;
  margin-left: .5rem;
}
.nav-donate-btn:hover {
  background: var(--red-dark) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(200,16,46,.3);
}

/* ── Dropdown nav ── */
.has-dropdown { position: relative; }
/* Invisible bridge that fills the gap between the nav item and the dropdown,
   keeping :hover active so the mouse can travel down without losing the menu */
.has-dropdown::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 10px; /* slightly more than the 8px gap */
  display: block;
}
.has-dropdown > a { display: flex; align-items: center; gap: .22rem; cursor: pointer; }
.dropdown-arrow {
  font-size: .58rem;
  opacity: .5;
  transition: transform .2s ease, opacity .2s;
  margin-top: 1px;
  display: inline-block;
}
.has-dropdown.open > a .dropdown-arrow,
.has-dropdown:hover > a .dropdown-arrow { transform: rotate(180deg); opacity: .85; }

/* Desktop dropdown — opens on hover; JS adds .open for keyboard/mobile */
.dropdown-menu {
  display: flex;
  flex-direction: column;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: #fff;
  border: 1px solid rgba(13,31,53,.09);
  border-radius: 8px;
  box-shadow: 0 6px 24px rgba(13,31,53,.11), 0 1px 4px rgba(13,31,53,.07);
  min-width: 0;
  width: max-content;
  padding: .3rem 0;
  z-index: 300;
  /* short delay on hide so the mouse can cross the 8px gap */
  transition: opacity .15s ease, visibility .15s ease;
}
/* Tiny caret */
.dropdown-menu::before {
  content: '';
  position: absolute;
  top: -5px; left: 16px;
  width: 9px; height: 9px;
  background: #fff;
  border-left: 1px solid rgba(13,31,53,.09);
  border-top: 1px solid rgba(13,31,53,.09);
  transform: rotate(45deg);
}
.has-dropdown.open .dropdown-menu,
.has-dropdown:hover > .dropdown-menu {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}
.dropdown-menu li { list-style: none; }
.dropdown-menu a {
  display: block;
  padding: .38rem 1.1rem;
  font-size: .83rem;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
  border-left: 2px solid transparent;
  transition: color .15s, background .15s, border-color .15s;
  border-radius: 0;
}
.dropdown-menu a:hover {
  color: var(--red);
  background: var(--red-light);
  border-left-color: var(--red);
}
.dropdown-menu a.active {
  color: var(--red);
  font-weight: 600;
  border-left-color: var(--red);
}
.dropdown-menu li + li { border-top: 1px solid rgba(13,31,53,.05); }

/* ── Gallery grid ── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}
.gallery-item {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  display: block;
  aspect-ratio: 16/10;
  background: var(--navy-light);
}
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.gallery-item:hover img { transform: scale(1.05); }
.gallery-overlay {
  position: absolute; inset: 0;
  background: rgba(13,31,53,.45);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .3s ease;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay span {
  color: #fff; font-weight: 600; font-size: .9rem;
  border: 2px solid #fff; border-radius: 50px;
  padding: .3rem 1rem;
}

/* ── Orphanage photo grid (smaller, on overview pages) ── */
.orphanage-photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: .75rem;
}
.orphanage-photo-item {
  border-radius: 10px; overflow: hidden;
  aspect-ratio: 16/10; background: var(--navy-light);
}
.orphanage-photo-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.orphanage-photo-item:hover img { transform: scale(1.04); }

/* ── Before/After grid ── */
.before-after-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 1rem;
}
.before-card, .after-card {
  border-radius: 12px;
  padding: 2rem;
}
.before-card { background: #fff5f5; border: 1px solid #fecdd3; }
.after-card  { background: #f0fdf4; border: 1px solid #bbf7d0; }
.before-card h3, .after-card h3 { font-size: 1.1rem; margin-bottom: 1rem; }
.before-card ul, .after-card ul { list-style: none; display: flex; flex-direction: column; gap: .6rem; }
.before-card li, .after-card li { font-size: .9rem; line-height: 1.5; padding-left: 1.2rem; position: relative; }
.before-card li::before { content: '✗'; position: absolute; left: 0; color: #dc2626; font-weight: 700; }
.after-card  li::before { content: '✓'; position: absolute; left: 0; color: #16a34a; font-weight: 700; }

/* ── Impact amounts ── */
.impact-amounts {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: .75rem;
  margin-top: 1rem;
}
.impact-amount-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1rem .85rem;
  text-align: center;
  transition: box-shadow .2s, transform .2s;
}
.impact-amount-card:hover { box-shadow: 0 6px 20px rgba(13,31,53,.1); transform: translateY(-3px); }
.impact-amount {
  font-size: 1.45rem; font-weight: 700;
  color: var(--red); font-family: var(--font-display);
  margin-bottom: .35rem;
}
.impact-desc { font-size: .78rem; color: var(--text-light); line-height: 1.45; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: .5rem;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: all var(--transition);
}

/* ── Hero ── */
/* ── Hero slider ── */
.slider-track {
  position: absolute; inset: 0;
  z-index: 0;
}
.slide-panel {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.2s ease;
}
.slide-panel.active { opacity: 1; }

.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  background: rgba(0,0,0,.35);
  border: none;
  color: #fff;
  width: 48px; height: 48px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background .2s;
}
.slider-arrow:hover { background: rgba(0,0,0,.6); }
.slider-arrow--prev { left: 1.25rem; }
.slider-arrow--next { right: 1.25rem; }

.slider-dots {
  position: absolute;
  bottom: 5.5rem;
  left: 50%; transform: translateX(-50%);
  z-index: 5;
  display: flex; gap: .5rem;
}
.slider-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,.45);
  border: none; cursor: pointer;
  transition: background .25s, transform .25s;
  padding: 0;
}
.slider-dot.active {
  background: #fff;
  transform: scale(1.3);
}

.hero {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 50%, #2a1535 100%);
  overflow: hidden;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(13,31,53,.82) 0%, rgba(13,31,53,.55) 60%, rgba(13,31,53,.3) 100%);
  z-index: 1;
}
.hero-bg-pattern {
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 40px 40px;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 780px;
  padding-top: 4rem;
  padding-bottom: 4rem;
}
.hero-badge {
  display: inline-block;
  background: rgba(200,16,46,.2);
  border: 1px solid rgba(200,16,46,.4);
  color: #FFB3BE;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: .35rem 1rem;
  border-radius: 50px;
  margin-bottom: 1.5rem;
}
.hero-title {
  font-family: var(--font-serif);
  color: var(--white);
  margin-bottom: 1.2rem;
  line-height: 1.2;
}
.hero-subtitle {
  color: rgba(255,255,255,.8);
  font-size: 1.1rem;
  max-width: 600px;
  margin-bottom: 2.5rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }

.hero-scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}
.hero-scroll-indicator span {
  display: block;
  width: 24px;
  height: 40px;
  border: 2px solid rgba(255,255,255,.4);
  border-radius: 12px;
  position: relative;
}
/* Mission photo */
.mission-photo {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0,0,0,.18);
  aspect-ratio: 4/3;
}
.mission-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s ease;
}
.mission-photo:hover img { transform: scale(1.03); }

.hero-scroll-indicator span::after {
  content: '';
  display: block;
  width: 4px;
  height: 8px;
  background: rgba(255,255,255,.6);
  border-radius: 2px;
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  animation: scroll-dot 1.6s infinite;
}
@keyframes scroll-dot {
  0% { opacity: 1; transform: translateX(-50%) translateY(0); }
  100% { opacity: 0; transform: translateX(-50%) translateY(14px); }
}

/* ── Stats Strip ── */
.stats-strip {
  background: var(--red);
  padding: 2rem 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.stat-item {
  text-align: center;
  color: var(--white);
  padding: .5rem;
}
.stat-value {
  display: block;
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1.1;
  font-family: var(--font-serif);
}
.stat-label {
  display: block;
  font-size: .8rem;
  opacity: .85;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-top: .25rem;
}

/* ── Sections ── */
.section { padding: 5rem 0; }
.section-white { background: var(--white); }
.section-light { background: var(--off-white); }
.section-dark  { background: var(--navy); color: var(--white); }

.section-header { text-align: center; max-width: 640px; margin: 0 auto 3.5rem; }
.section-header h2 { margin-bottom: .75rem; }
.section-header p { color: var(--text-muted); }
.section-header--light h2 { color: var(--white); }
.section-header--light p { color: rgba(255,255,255,.7); }

.section-center { text-align: center; }
.section-center > * { margin-left: auto; margin-right: auto; }
.section-center .lead { max-width: 640px; color: var(--text-muted); font-size: 1.05rem; margin-bottom: 1.5rem; }

.section-eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: .75rem;
}
.section-eyebrow--light { color: #FFB3BE; }

.section-cta { text-align: center; margin-top: 3rem; }

/* ── Split layout ── */
.section-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.section-split.reverse { direction: rtl; }
.section-split.reverse > * { direction: ltr; }

.section-split-text h2 { margin-bottom: 1rem; }
.section-split-text p { color: var(--text-muted); margin-bottom: 1rem; }
.section-split-text .btn { margin-top: .5rem; }

/* ── Mission Card ── */
.mission-card {
  background: var(--navy);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.5rem;
}
.mission-card-icon img { width: 100px; height: 100px; object-fit: contain; filter: drop-shadow(0 0 20px rgba(200,16,46,.5)); }
.mission-card blockquote {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-style: italic;
  color: rgba(255,255,255,.9);
  line-height: 1.6;
}

/* ── Programs Grid ── */
.programs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1.25rem;
}
.program-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  text-decoration: none;
  color: var(--text);
  transition: all var(--transition);
  display: block;
}
.program-card:hover {
  border-color: var(--red);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
  color: var(--text);
}
.program-icon {
  width: 72px;
  height: 72px;
  background: var(--red-light);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--red);
  margin-bottom: 1.25rem;
}
.program-card h3 { margin-bottom: .5rem; }
.program-card p { color: var(--text-muted); font-size: .93rem; margin-bottom: 1rem; }
.program-link { color: var(--red); font-weight: 600; font-size: .88rem; }

/* ── Impact Banner ── */
.impact-banner {
  background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%);
  padding: 4rem 0;
}
.impact-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.impact-text h2 {
  color: var(--white);
  font-family: var(--font-serif);
  max-width: 640px;
}
.impact-text h2 em { font-style: normal; text-decoration: underline; text-decoration-style: wavy; text-underline-offset: 4px; }
.impact-text p { color: rgba(255,255,255,.8); margin-top: .75rem; }

/* ── News Grid ── */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.news-grid--large { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }

.news-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}
.news-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }

.news-card-img { aspect-ratio: 16/9; overflow: hidden; }
.news-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--transition); }
.news-card:hover .news-card-img img { transform: scale(1.04); }
.news-card-img-placeholder {
  background: var(--navy-light);
  display: flex;
  align-items: center;
  justify-content: center;
}
.news-card-img-placeholder img { width: 80px; height: 80px; object-fit: contain; opacity: .3; }

.news-card-body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.news-card-body h3 { font-size: 1.05rem; margin-bottom: .5rem; }
.news-card-body h3 a { color: var(--text); }
.news-card-body h3 a:hover { color: var(--red); }
.news-card-body p { color: var(--text-muted); font-size: .9rem; flex: 1; }

.news-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}
.news-card-footer time { font-size: .82rem; color: var(--text-muted); }
.read-more { font-size: .85rem; font-weight: 600; color: var(--red); }

.news-tag {
  display: inline-block;
  background: var(--red-light);
  color: var(--red);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .2rem .7rem;
  border-radius: 50px;
  margin-bottom: .75rem;
}

/* ── Faith section ── */
.faith-section {
  background: var(--navy);
  padding: 5rem 0;
  text-align: center;
}
.faith-quote p {
  font-family: var(--font-serif);
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  color: rgba(255,255,255,.9);
  font-style: italic;
  max-width: 700px;
  margin: 0 auto .75rem;
}
.faith-quote cite {
  color: #FFB3BE;
  font-size: .88rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}

/* ── Page Hero ── */
.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  padding: 4rem 0 3rem;
  color: var(--white);
}
.page-hero--sm { padding: 2.5rem 0 2rem; }
.page-hero h1 { color: var(--white); margin-bottom: .75rem; }
.page-hero p  { color: rgba(255,255,255,.75); max-width: 640px; }

.breadcrumb {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .83rem;
  color: rgba(255,255,255,.55);
  margin-bottom: 1rem;
}
.breadcrumb a { color: rgba(255,255,255,.7); }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb span { opacity: .4; }

/* ── About page ── */
.about-visual-card {
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 2rem;
  text-align: center;
  gap: 1rem;
}
.about-visual-card--red { background: var(--red); color: var(--white); }
.about-stat-big { font-size: 4rem; font-weight: 700; font-family: var(--font-serif); }
.about-stat-label { font-size: 1rem; opacity: .85; }

.story-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  padding: 2rem;
  background: var(--off-white);
  border-radius: var(--radius-lg);
}
.story-logo { width: 120px; height: 120px; object-fit: contain; }
.story-countries { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; }
.story-countries span {
  background: var(--white);
  border: 1px solid var(--border);
  padding: .35rem .85rem;
  border-radius: 50px;
  font-size: .88rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.value-card {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius);
  padding: 1.75rem;
  text-align: center;
}
.value-icon { font-size: 1.5rem; color: #FFB3BE; margin-bottom: 1rem; }
.value-card h3 { color: var(--white); margin-bottom: .5rem; }
.value-card p  { color: rgba(255,255,255,.65); font-size: .9rem; }

/* ── Programs page ── */
.program-visual {
  border-radius: var(--radius-lg);
  padding: 3rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
}
.program-visual--red  { background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%); color: var(--white); }
.program-visual--navy { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%); color: var(--white); }
.program-visual-icon { opacity: .9; }
.program-visual-label { font-size: 1.1rem; font-weight: 700; }
.program-visual-stat  { font-size: .85rem; opacity: .75; }

.program-list {
  list-style: none;
  margin: 1rem 0 1.5rem;
}
.program-list li {
  padding: .5rem 0 .5rem 1.5rem;
  position: relative;
  color: var(--text-muted);
  font-size: .93rem;
  border-bottom: 1px solid var(--border);
}
.program-list li:last-child { border-bottom: none; }
.program-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--red);
  font-weight: 700;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.step-card {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius);
  padding: 1.75rem;
  text-align: center;
}
.step-num {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--red);
  font-family: var(--font-serif);
  margin-bottom: .5rem;
  line-height: 1;
}
.step-card h3 { color: var(--white); margin-bottom: .5rem; }
.step-card p  { color: rgba(255,255,255,.65); font-size: .9rem; }

/* ── Filter tabs ── */
.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 2rem;
}
.filter-tab {
  padding: .45rem 1.1rem;
  border-radius: 50px;
  font-size: .88rem;
  font-weight: 500;
  color: var(--text-muted);
  border: 1.5px solid var(--border);
  background: var(--white);
  transition: all var(--transition);
}
.filter-tab:hover,
.filter-tab.active {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
}

/* ── Pagination ── */
.pagination {
  display: flex;
  justify-content: center;
  gap: .5rem;
  margin-top: 2.5rem;
}
.page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  font-size: .9rem;
  font-weight: 500;
  color: var(--text);
  transition: all var(--transition);
}
.page-btn:hover,
.page-btn.active {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
}

/* ── Article layout ── */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 3rem;
  align-items: start;
}
.article-featured-img { border-radius: var(--radius); overflow: hidden; margin-bottom: 1.5rem; }
.article-featured-img img { width: 100%; max-height: 460px; object-fit: cover; }
.article-meta { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.article-meta time { font-size: .85rem; color: var(--text-muted); }
.article-title { margin-bottom: 1.5rem; font-family: var(--font-serif); }
.article-content { font-size: 1.02rem; line-height: 1.9; }
.article-content p { margin-bottom: 1.25rem; }
.article-content h2 { margin: 2rem 0 1rem; }
.article-content h3 { margin: 1.5rem 0 .75rem; }
.article-content ul { list-style: disc; padding-left: 1.5rem; margin-bottom: 1.25rem; }
.article-content strong { font-weight: 700; }

.article-share {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: .88rem;
  color: var(--text-muted);
}
.share-btn {
  padding: .35rem .9rem;
  border-radius: 50px;
  font-size: .82rem;
  font-weight: 600;
}
.share-btn--fb { background: #1877f2; color: #fff; }
.share-btn--tw { background: #000; color: #fff; }
.share-btn:hover { opacity: .85; }

.article-cta {
  background: var(--red-light);
  border: 1px solid rgba(200,16,46,.2);
  border-left: 4px solid var(--red);
  border-radius: var(--radius-sm);
  padding: 1.75rem;
  margin-top: 2.5rem;
}
.article-cta h3 { color: var(--navy); margin-bottom: .5rem; }
.article-cta p  { color: var(--text-muted); margin-bottom: 1rem; font-size: .93rem; }

.back-link {
  display: inline-block;
  margin-top: 2rem;
  font-size: .9rem;
  font-weight: 500;
  color: var(--text-muted);
}
.back-link:hover { color: var(--red); }

/* ── Sidebar ── */
.sidebar-widget {
  background: var(--off-white);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}
.sidebar-widget h3 { font-size: 1rem; margin-bottom: 1rem; }
.sidebar-posts { display: flex; flex-direction: column; gap: .85rem; }
.sidebar-posts li { border-bottom: 1px solid var(--border); padding-bottom: .85rem; }
.sidebar-posts li:last-child { border-bottom: none; padding-bottom: 0; }
.sidebar-posts a { font-size: .9rem; font-weight: 500; color: var(--text); }
.sidebar-posts a:hover { color: var(--red); }
.sidebar-posts time { display: block; font-size: .78rem; color: var(--text-muted); margin-top: .2rem; }

.sidebar-donate {
  background: var(--navy);
  text-align: center;
}
.sidebar-donate img { width: 70px; height: 70px; object-fit: contain; margin: 0 auto 1rem; }
.sidebar-donate h3 { color: var(--white); margin-bottom: .5rem; }
.sidebar-donate p  { color: rgba(255,255,255,.7); font-size: .88rem; margin-bottom: 1rem; }

/* ── Contact ── */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
.contact-info h2 { margin-bottom: 1rem; }
.contact-info p  { color: var(--text-muted); margin-bottom: 1.5rem; }
.contact-cards { display: flex; flex-direction: column; gap: .85rem; margin-bottom: 2rem; }
.contact-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem;
  background: var(--off-white);
  border-radius: var(--radius-sm);
}
.contact-card-icon {
  width: 42px;
  height: 42px;
  background: var(--red-light);
  color: var(--red);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-card strong { display: block; font-size: .85rem; color: var(--text-muted); margin-bottom: .1rem; }
.contact-card a, .contact-card span { font-weight: 500; font-size: .93rem; color: var(--text); }
.contact-card a:hover { color: var(--red); }

.contact-regions h3 { font-size: 1rem; margin-bottom: .75rem; }
.region-list { display: flex; flex-wrap: wrap; gap: .5rem; }
.region-tag {
  background: var(--navy-light);
  color: var(--navy);
  padding: .3rem .85rem;
  border-radius: 50px;
  font-size: .83rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
}
.region-flag {
  width: 22px;
  height: auto;
  border-radius: 3px;
  object-fit: cover;
  box-shadow: 0 1px 3px rgba(0,0,0,.2);
  flex-shrink: 0;
}

.contact-form-wrap {
  background: var(--off-white);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
}
.contact-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block;
  font-size: .88rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: .4rem;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: .75rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: .93rem;
  color: var(--text);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(200,16,46,.12);
}
.form-group textarea { resize: vertical; }
.required { color: var(--red); }

.form-success { text-align: center; padding: 2rem 0; }
.form-success-icon {
  width: 64px; height: 64px;
  background: #00b87a;
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin: 0 auto 1rem;
}

/* ── Donate page ── */
.impact-amounts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin: 2.5rem 0;
}
.impact-amount {
  background: var(--off-white);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  text-align: center;
  transition: all var(--transition);
}
.impact-amount:hover {
  border-color: var(--red);
  background: var(--red-light);
}
.impact-amount strong { display: block; font-size: 1.6rem; color: var(--red); margin-bottom: .3rem; }
.impact-amount span   { font-size: .82rem; color: var(--text-muted); }

.donate-cta-btn { font-size: 1.1rem; padding: 1rem 2.5rem; margin: 0 auto; display: inline-flex; }

.donate-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
  margin-top: 2rem;
}
.trust-item {
  background: var(--off-white);
  padding: .75rem 1.25rem;
  border-radius: var(--radius-sm);
  font-size: .85rem;
  color: var(--text-muted);
}
.trust-item strong { color: var(--text); }

/* ── Alerts ── */
.alert {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1.5rem;
  font-size: .93rem;
}
.alert-success { background: #ecfdf5; border: 1px solid #6ee7b7; color: #065f46; }
.alert-error   { background: #fef2f2; border: 1px solid #fca5a5; color: #991b1b; }
.alert p { margin: 0; }

/* ── Empty state ── */
.empty-state { text-align: center; padding: 4rem 1rem; color: var(--text-muted); }

/* ── Footer ── */
.site-footer { border-top: 1px solid var(--border); }

.footer-cta {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  padding: 3.5rem 0;
}
.footer-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.footer-cta-text h2 { color: var(--white); font-family: var(--font-serif); margin-bottom: .5rem; }
.footer-cta-text p  { color: rgba(255,255,255,.7); max-width: 480px; }

.footer-main { background: #0a1929; padding: 4rem 0 2rem; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
}

.footer-brand .footer-logo {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: 1rem;
}
.footer-brand .footer-logo img { width: 48px; height: 48px; object-fit: contain; }
.footer-brand .footer-logo strong { color: var(--white); font-size: 1rem; display: block; }
.footer-brand .footer-logo span  { color: rgba(255,255,255,.5); font-size: .75rem; }
.footer-brand p { color: rgba(255,255,255,.55); font-size: .88rem; }

.footer-col h3 {
  color: var(--white);
  font-size: .88rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: 1rem;
}
.footer-col ul li { margin-bottom: .55rem; }
.footer-col ul a { color: rgba(255,255,255,.55); font-size: .88rem; transition: color var(--transition); }
.footer-col ul a:hover { color: var(--white); }

.footer-contact-list li {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  margin-bottom: .75rem;
  color: rgba(255,255,255,.55);
  font-size: .88rem;
}
.footer-contact-list li svg { flex-shrink: 0; margin-top: 2px; stroke: rgba(255,255,255,.4); }
.footer-contact-list a { color: rgba(255,255,255,.7); }
.footer-contact-list a:hover { color: var(--white); }

.social-links { display: flex; gap: .75rem; margin-top: 1rem; }
.social-links a {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.6);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}
.social-links a:hover { background: var(--red); color: var(--white); }

.footer-bottom {
  background: #050e1a;
  padding: 1.1rem 0;
}
.footer-bottom .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-bottom p { font-size: .8rem; color: rgba(255,255,255,.35); margin: 0; }
.footer-admin-link { font-size: .75rem; color: rgba(255,255,255,.2); }
.footer-admin-link:hover { color: rgba(255,255,255,.5); }

/* ── Legal pages ── */
.legal-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-top: 1rem;
}
.legal-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.75rem 1.5rem;
  display: flex; flex-direction: column; gap: .75rem;
  transition: box-shadow .2s;
}
.legal-card:hover { box-shadow: 0 6px 20px rgba(13,31,53,.09); }
.legal-card-badge {
  display: inline-block;
  background: var(--red); color: #fff;
  font-size: .72rem; font-weight: 700; letter-spacing: .05em;
  padding: .2rem .65rem; border-radius: 50px;
  align-self: flex-start;
}
.legal-card h3 { font-size: 1.05rem; margin: 0; }
.legal-card p  { font-size: .88rem; color: var(--text-light); line-height: 1.65; margin: 0; }
.legal-info-box {
  background: var(--navy);
  border-radius: 14px;
  padding: 1.75rem;
  color: rgba(255,255,255,.9);
}
.legal-info-box h4 { color: #fff; margin-bottom: 1rem; font-size: 1rem; }
.legal-table { width: 100%; border-collapse: collapse; }
.legal-table tr + tr td { border-top: 1px solid rgba(255,255,255,.1); }
.legal-table td { padding: .55rem 0; font-size: .83rem; vertical-align: top; }
.legal-table td:first-child { color: rgba(255,255,255,.55); width: 42%; padding-right: .75rem; }
.legal-table td:last-child { color: #fff; font-weight: 500; }

/* ── IRS page ── */
.irs-status-card {
  background: var(--navy);
  border-radius: 14px;
  padding: 2rem;
  color: #fff;
  display: flex; flex-direction: column; gap: .75rem;
}
.irs-badge {
  display: inline-block;
  background: var(--red);
  color: #fff;
  font-size: 1.5rem; font-weight: 800;
  padding: .5rem 1.25rem;
  border-radius: 8px;
  align-self: flex-start;
  letter-spacing: .03em;
}
.irs-status-card h3 { color: #fff; font-size: 1.2rem; margin: .25rem 0 0; }
.irs-status-card > p { color: rgba(255,255,255,.7); font-size: .88rem; margin: 0; }
.irs-detail-row {
  display: flex; justify-content: space-between; align-items: flex-start;
  padding: .45rem 0;
  border-top: 1px solid rgba(255,255,255,.1);
  font-size: .83rem;
  gap: .5rem;
}
.irs-detail-row span { color: rgba(255,255,255,.5); }
.irs-detail-row strong { color: #fff; text-align: right; }

/* ── Mission page ── */
.mission-scripture-card {
  background: var(--navy);
  border-radius: 14px;
  padding: 2.25rem;
  color: #fff;
  text-align: center;
  display: flex; flex-direction: column; gap: 1rem; align-items: center;
}
.scripture-icon { font-size: 2.5rem; opacity: .5; }
.mission-scripture-card blockquote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.1rem;
  line-height: 1.7;
  color: rgba(255,255,255,.9);
  margin: 0;
  border: none;
  padding: 0;
}
.mission-scripture-card cite { font-size: .82rem; color: rgba(255,255,255,.5); }
/* ── Mission page blockquote ── */
.mission-blockquote {
  border-left: 4px solid var(--red);
  background: var(--light);
  border-radius: 0 10px 10px 0;
  padding: 1.5rem 1.75rem;
  margin: 1.5rem 0;
  font-style: italic;
  color: var(--navy);
  line-height: 1.8;
  font-size: .97rem;
}

.mission-quote-block {
  background: var(--light);
  border-left: 4px solid var(--red);
  border-radius: 0 12px 12px 0;
  padding: 2rem 2rem 2rem 1.75rem;
  margin: 1rem 0 2rem;
  max-width: 780px; margin-left: auto; margin-right: auto;
}
.mission-quote-text {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-style: italic;
  color: var(--navy);
  line-height: 1.7;
  margin: 0 0 1rem;
}
.mission-scripture-refs {
  display: flex; flex-wrap: wrap; gap: .4rem;
}
.mission-scripture-refs span {
  background: rgba(200,16,46,.08);
  color: var(--red);
  font-size: .75rem; font-weight: 600;
  padding: .2rem .65rem; border-radius: 50px;
}
.mission-verse-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
.mission-verse {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.5rem;
}
.mission-verse p  { font-style: italic; color: var(--text); line-height: 1.7; margin: 0 0 .5rem; }
.mission-verse cite { font-size: .78rem; color: var(--text-light); }
.mission-vision-card {
  background: var(--navy);
  border-radius: 14px;
  padding: 2rem;
  color: rgba(255,255,255,.9);
}
.mission-vision-card h3 { color: #fff; font-size: 1.05rem; margin: 0 0 .75rem; }
.mission-vision-card p  { font-size: .9rem; line-height: 1.65; margin: 0; }
.mission-values-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: .55rem; }
.mission-values-list li { font-size: .88rem; color: rgba(255,255,255,.85); }

/* ── Reach Out contacts ── */
.reach-out-contacts {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-top: 1rem;
}
.reach-contact-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  display: flex; flex-direction: column; gap: .5rem;
}
.reach-contact-icon { font-size: 1.75rem; }
.reach-contact-card h3 { font-size: .95rem; font-weight: 600; margin: 0; }
.reach-contact-card p  { font-size: .85rem; color: var(--text-light); margin: 0; }
.reach-contact-card a  { font-size: .85rem; color: var(--red); text-decoration: none; font-weight: 500; }
.reach-contact-card a:hover { text-decoration: underline; }

/* ── Elderly stats card ── */
.elderly-stat-card {
  background: var(--navy);
  border-radius: 14px;
  padding: 1.75rem;
  display: flex; flex-direction: column; gap: 0;
}
.elderly-stat-item {
  padding: 1.25rem 0;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.elderly-stat-item:last-child { border-bottom: none; }
.elderly-stat-num {
  font-size: 2rem; font-weight: 800;
  color: var(--red); font-family: var(--font-display);
  margin-bottom: .3rem;
}
.elderly-stat-label { font-size: .85rem; color: rgba(255,255,255,.7); line-height: 1.5; }

/* ── Reports page ── */
.reports-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.5rem;
}
.report-card {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem 1.75rem;
  transition: box-shadow .2s;
}
.report-card:hover { box-shadow: 0 4px 18px rgba(13,31,53,.09); }
.report-year {
  font-size: 2rem;
  font-weight: 800;
  font-family: var(--font-display);
  color: var(--navy);
  min-width: 4rem;
  text-align: center;
}
.report-info { flex: 1; }
.report-info h3 { font-size: 1rem; margin: 0 0 .3rem; }
.report-info p  { font-size: .85rem; color: var(--text-light); margin: 0; }
.report-actions { display: flex; gap: .75rem; align-items: center; }
.report-badge {
  font-size: .75rem; font-weight: 700; letter-spacing: .04em;
  padding: .3rem .85rem; border-radius: 50px;
}
.report-badge.upcoming { background: var(--light); color: var(--text-light); border: 1px solid var(--border); }
.report-badge.available { background: rgba(22,163,74,.1); color: #16a34a; border: 1px solid rgba(22,163,74,.25); }

/* ── Education Fund page ── */
.edu-qr-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 2rem 0;
  gap: .75rem;
}
.edu-qr-img {
  width: 150px; height: 150px;
  border: 4px solid var(--border);
  border-radius: 12px;
}
.edu-qr-caption {
  font-size: .82rem;
  color: var(--text-light);
  margin: 0;
}
.edu-appeal-box {
  background: var(--navy);
  border-radius: 14px;
  padding: 2.25rem 2rem;
  color: rgba(255,255,255,.9);
}
.edu-appeal-box h2 { color: #fff; margin-bottom: 1rem; }
.edu-appeal-box p  { font-size: .93rem; line-height: 1.75; margin-bottom: 1rem; }

/* ── School Tuition PDF viewer ── */
.pdf-viewer-block {
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  margin-top: 1.5rem;
}
.pdf-viewer-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: var(--light);
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}
.pdf-icon { font-size: 2.25rem; flex-shrink: 0; }
.pdf-viewer-header h3 { font-size: .95rem; margin: 0 0 .2rem; }
.pdf-viewer-header p  { font-size: .8rem; color: var(--text-light); margin: 0; }
.pdf-download-btn { margin-left: auto; white-space: nowrap; }
.pdf-embed-frame {
  width: 100%;
  height: 80vh;
  min-height: 600px;
  border: none;
  display: block;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .stats-grid     { grid-template-columns: repeat(2, 1fr); }
  .values-grid    { grid-template-columns: repeat(2, 1fr); }
  .steps-grid     { grid-template-columns: repeat(2, 1fr); }
  .footer-grid    { grid-template-columns: 1fr 1fr; }
  .article-layout { grid-template-columns: 1fr; }
  .impact-amounts { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .site-nav {
    display: none;
    position: fixed;
    inset: 0;
    background: var(--navy);
    z-index: 1100;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .25rem;
  }
  .site-nav.open { display: flex; }
  .site-nav > ul { flex-direction: column; text-align: center; gap: .25rem; width: 100%; }
  .site-nav a {
    color: rgba(255,255,255,.85) !important;
    font-size: 1.2rem;
    padding: .85rem 1.5rem;
    display: block;
  }
  .site-nav a:hover, .site-nav a.active { color: var(--white) !important; background: rgba(255,255,255,.1) !important; }
  .nav-donate-btn { margin-left: 0 !important; margin-top: .5rem; }
  .nav-toggle { display: flex; }

  /* Mobile dropdown */
  .has-dropdown > a .dropdown-arrow { display: inline-block; transition: transform .3s; }
  .has-dropdown.open > a .dropdown-arrow { transform: rotate(180deg); }
  .dropdown-menu {
    position: static;
    transform: none;
    box-shadow: none;
    border: none;
    background: rgba(255,255,255,.08);
    border-radius: 8px;
    margin: .25rem 1rem;
    padding: .25rem 0;
  }
  .dropdown-menu a {
    color: rgba(255,255,255,.75) !important;
    font-size: 1rem;
    padding: .6rem 1.5rem;
  }
  .dropdown-menu a:hover,
  .dropdown-menu a.active { color: var(--white) !important; background: rgba(255,255,255,.1) !important; }
  .has-dropdown:hover > .dropdown-menu { visibility: hidden; opacity: 0; pointer-events: none; }
  .has-dropdown.open .dropdown-menu { visibility: visible; opacity: 1; pointer-events: auto; }

  .before-after-grid { grid-template-columns: 1fr; }
  .section-split { grid-template-columns: 1fr; gap: 2.5rem; }
  .section-split.reverse { direction: ltr; }
  .contact-layout { grid-template-columns: 1fr; }
  .contact-form .form-row { grid-template-columns: 1fr; }
  .programs-grid  { grid-template-columns: 1fr; }
  .news-grid      { grid-template-columns: 1fr; }
  .footer-cta-inner { flex-direction: column; align-items: flex-start; }
  .impact-banner-inner { flex-direction: column; align-items: flex-start; }
  .topbar-contact { display: none; }

  /* Footer: hide brand, links, programs columns — show contact only */
  .footer-grid { grid-template-columns: 1fr; }
  .footer-col:not(:last-child) { display: none; }
}

@media (max-width: 480px) {
  .stats-grid   { grid-template-columns: repeat(2, 1fr); }
  .values-grid  { grid-template-columns: 1fr; }
  .steps-grid   { grid-template-columns: 1fr; }
  .footer-grid  { grid-template-columns: 1fr; }
  .impact-amounts { grid-template-columns: 1fr 1fr; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
}

/* ============================================================
   Lightbox
   ============================================================ */
.dmf-lightbox-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(10, 15, 25, 0.96);
  align-items: center;
  justify-content: center;
  flex-direction: column;
}
.dmf-lightbox-overlay.active { display: flex; }

.dmf-lightbox-img-wrap {
  position: relative;
  max-width: 92vw;
  max-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.dmf-lightbox-img-wrap img {
  max-width: 88vw;
  max-height: 78vh;
  border-radius: 8px;
  object-fit: contain;
  box-shadow: 0 24px 80px rgba(0,0,0,.6);
  transition: opacity .22s ease;
  display: block;
}
.dmf-lightbox-img-wrap img.fading { opacity: 0; }

.dmf-lightbox-caption {
  color: rgba(255,255,255,.72);
  font-size: .92rem;
  margin-top: .85rem;
  text-align: center;
  max-width: 640px;
  padding: 0 1rem;
  line-height: 1.5;
}
.dmf-lightbox-counter {
  color: rgba(255,255,255,.45);
  font-size: .78rem;
  margin-top: .35rem;
  letter-spacing: .05em;
}

/* nav buttons */
.dmf-lb-btn {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,.12);
  border: none;
  color: #fff;
  width: 48px;
  height: 64px;
  border-radius: 8px;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .18s;
  z-index: 10001;
  user-select: none;
}
.dmf-lb-btn:hover { background: rgba(255,255,255,.24); }
.dmf-lb-prev { left: 1rem; }
.dmf-lb-next { right: 1rem; }
.dmf-lb-btn.hidden { opacity: 0; pointer-events: none; }

.dmf-lb-close {
  position: fixed;
  top: 1rem;
  right: 1rem;
  background: rgba(255,255,255,.12);
  border: none;
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.4rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .18s;
  z-index: 10001;
}
.dmf-lb-close:hover { background: rgba(200,16,46,.7); }

/* gallery-item hover effect */
.gallery-item {
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
  position: relative;
  cursor: zoom-in;
}
.gallery-item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform .35s ease;
  display: block;
}
.gallery-item:hover img { transform: scale(1.06); }
.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10,15,25,.35);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .25s;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay span {
  color: #fff;
  font-weight: 600;
  font-size: .9rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  background: rgba(200,16,46,.85);
  padding: .45rem 1.1rem;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: .4rem;
}
.gallery-overlay span::before { content: '⊕'; font-size: 1rem; }

/* Make standalone linked images show zoom cursor */
a[data-gallery] img { cursor: zoom-in; }
