/* ============================================================
   EL BATEY PUERTO RICAN CULTURAL CENTER — styles.css
   Shared stylesheet for all pages
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;0,900;1,400;1,700&family=Inter:wght@300;400;500;600;700&display=swap');

/* === CSS VARIABLES === */
:root {
  --red:        #E00000;
  --red-dark:   #B50000;
  --red-light:  rgba(224, 0, 0, 0.08);
  --blue:       #0066CC;
  --blue-dark:  #0052A3;
  --blue-light: rgba(0, 102, 204, 0.08);
  --black:      #000000;
  --white:      #FFFFFF;
  --gray-50:    #FAFAFA;
  --gray-100:   #F5F5F5;
  --gray-200:   #EEEEEE;
  --gray-300:   #DDDDDD;
  --gray-500:   #888888;
  --gray-700:   #444444;
  --gray-900:   #111111;

  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body:    'Inter', system-ui, -apple-system, sans-serif;

  --transition:      all 0.3s ease;
  --transition-slow: all 0.5s ease;

  --shadow-sm:    0 2px 8px rgba(0, 0, 0, 0.07);
  --shadow:       0 4px 20px rgba(0, 0, 0, 0.10);
  --shadow-hover: 0 8px 32px rgba(0, 0, 0, 0.15);
  --shadow-red:   0 4px 20px rgba(224, 0, 0, 0.25);

  --radius:     8px;
  --radius-lg:  16px;
  --radius-pill:50px;

  --max-width:  1200px;
  --nav-height: 72px;
}

/* === RESET === */
*, *::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(--gray-900);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}
img  { max-width: 100%; height: auto; display: block; }
a    { color: inherit; text-decoration: none; }
ul   { list-style: none; }
address { font-style: normal; }

/* === TYPOGRAPHY === */
h1,h2,h3,h4,h5,h6 {
  font-family: var(--font-heading);
  line-height: 1.2;
  color: var(--gray-900);
}
h1 { font-size: clamp(2rem, 5vw, 3.5rem);   font-weight: 900; }
h2 { font-size: clamp(1.75rem, 4vw, 2.75rem); font-weight: 700; }
h3 { font-size: clamp(1.25rem, 3vw, 1.875rem); font-weight: 700; }
h4 { font-size: 1.25rem; font-weight: 600; }
p  { font-size: 1rem; line-height: 1.75; color: var(--gray-700); }

/* === LAYOUT === */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}
.section    { padding: 5rem 0; }
.section-sm { padding: 3rem 0; }

.section-header { margin-bottom: 3rem; }
.section-header.centered { text-align: center; }

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 900;
  margin-bottom: 0.75rem;
  position: relative;
}
.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: var(--red);
  margin-top: 0.75rem;
  border-radius: 2px;
}
.section-title.centered { text-align: center; }
.section-title.centered::after { margin: 0.75rem auto 0; }

.section-subtitle {
  font-size: 1.125rem;
  color: var(--gray-500);
  max-width: 640px;
}
.section-subtitle.centered { text-align: center; margin-left: auto; margin-right: auto; }

/* === PATTERNS — CSS-only, Puerto Rican inspired === */
/* Subtle lattice (woven textile feel) */
.pattern-bg {
  background-color: var(--gray-50);
  background-image:
    repeating-linear-gradient(45deg,  rgba(224,0,0,0.04) 0px, rgba(224,0,0,0.04) 1px, transparent 1px, transparent 18px),
    repeating-linear-gradient(-45deg, rgba(0,102,204,0.04) 0px, rgba(0,102,204,0.04) 1px, transparent 1px, transparent 18px);
}

/* Hero overlay pattern — diagonal hatching */
.pattern-overlay {
  background-image:
    repeating-linear-gradient(60deg,  rgba(255,255,255,0.04) 0px, rgba(255,255,255,0.04) 1px, transparent 1px, transparent 36px),
    repeating-linear-gradient(-60deg, rgba(255,255,255,0.04) 0px, rgba(255,255,255,0.04) 1px, transparent 1px, transparent 36px);
}

.diagonal-cut         { clip-path: polygon(0 0, 100% 0, 100% 92%, 0 100%); }
.diagonal-cut-reverse { clip-path: polygon(0 8%, 100% 0, 100% 100%, 0 100%); }

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
  text-align: center;
  white-space: nowrap;
  line-height: 1;
}
.btn-primary  { background: var(--red);  color: var(--white); border-color: var(--red); }
.btn-primary:hover  { background: var(--red-dark); border-color: var(--red-dark); transform: translateY(-2px); box-shadow: var(--shadow-red); }

.btn-secondary { background: var(--blue); color: var(--white); border-color: var(--blue); }
.btn-secondary:hover { background: var(--blue-dark); border-color: var(--blue-dark); transform: translateY(-2px); box-shadow: 0 4px 20px rgba(0,102,204,0.3); }

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

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

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

.btn-sm { padding: 0.5rem 1.25rem; font-size: 0.875rem; }
.btn-lg { padding: 1.125rem 2.5rem; font-size: 1.0625rem; }

/* === NAVIGATION === */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  height: var(--nav-height);
  transition: var(--transition);
}
.navbar.scrolled { box-shadow: var(--shadow); }

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
}

.nav-logo {
  font-family: var(--font-heading);
  font-size: 1.625rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1;
  flex-shrink: 0;
}
.logo-el    { color: var(--red); }
.logo-batey { color: var(--blue); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.125rem;
}
.nav-links li a {
  padding: 0.5rem 0.875rem;
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gray-700);
  transition: var(--transition);
  display: block;
}
.nav-links li a:hover,
.nav-links li a.active {
  color: var(--red);
  background: var(--red-light);
}
.btn-nav-donate {
  background: var(--red) !important;
  color: var(--white) !important;
  border-radius: var(--radius-pill) !important;
  padding: 0.5rem 1.25rem !important;
  font-weight: 600 !important;
  margin-left: 0.25rem;
}
.btn-nav-donate:hover {
  background: var(--red-dark) !important;
  transform: translateY(-1px);
  box-shadow: var(--shadow-red);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--gray-900);
  border-radius: 2px;
  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); }

/* Transparent navbar over a full-bleed hero, solidifies on scroll */
.navbar.transparent {
  background: transparent;
  box-shadow: none;
}
.navbar.transparent .nav-links li a { color: rgba(255,255,255,0.92); }
.navbar.transparent .nav-links li a:hover,
.navbar.transparent .nav-links li a.active { color: var(--white); background: rgba(255,255,255,0.16); }
.navbar.transparent .logo-el    { color: var(--white); }
.navbar.transparent .logo-batey { color: rgba(255,255,255,0.85); }
.navbar.transparent .hamburger span { background: var(--white); }
.navbar.transparent .nav-links.open li a { color: var(--gray-700); }
.navbar.transparent .nav-links.open li a:hover,
.navbar.transparent .nav-links.open li a.active { color: var(--red); background: var(--red-light); }

.navbar.transparent.scrolled { background: var(--white); box-shadow: var(--shadow); }
.navbar.transparent.scrolled .nav-links li a { color: var(--gray-700); }
.navbar.transparent.scrolled .nav-links li a:hover,
.navbar.transparent.scrolled .nav-links li a.active { color: var(--red); background: var(--red-light); }
.navbar.transparent.scrolled .logo-el    { color: var(--red); }
.navbar.transparent.scrolled .logo-batey { color: var(--blue); }
.navbar.transparent.scrolled .hamburger span { background: var(--gray-900); }

/* === FLOATING DONATE BUTTON === */
.floating-donate {
  position: fixed;
  bottom: 2rem; right: 2rem;
  z-index: 900;
  background: var(--red);
  color: var(--white);
  border-radius: var(--radius-pill);
  padding: 0.875rem 1.5rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 700;
  box-shadow: 0 4px 24px rgba(224, 0, 0, 0.45);
  transition: var(--transition);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.375rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.floating-donate:hover {
  background: var(--red-dark);
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(224, 0, 0, 0.55);
  color: var(--white);
}

/* === HERO (home) === */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--black);
  color: var(--white);
  padding-bottom: 5rem;
}
/* Base layer: the original dark red/black gradient, also doubles as the
   still-image fallback (via the poster URL) behind/around the video. */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(135deg, rgba(26,0,0,0.6) 0%, rgba(192,0,0,0.4) 45%, rgba(0,61,122,0.55) 100%),
    url('assets/images/hero-poster.jpg');
  background-size: cover;
  background-position: center;
}
/* YouTube background embed: the source is a vertical 9:16 Short, so it's
   sized by height (a viewport-height unit, not a % of .hero — .hero only
   sets min-height, which percentage heights can't resolve against) and the
   matching 9:16 width, then scaled up until that narrow strip covers the
   full hero width with no black bars. 3.4x is tuned for typical ~1440-wide
   laptop viewports (16:9–16:10, i.e. ~810–900px tall); re-tune if the hero
   is redesigned to a very different aspect ratio. Sits above .hero-bg,
   below the tint/gradient/pattern, and is purely decorative — pointer-
   events:none plus tabindex="-1"/aria-hidden in the HTML keep it out of
   click and keyboard-focus order entirely. */
.hero-yt-frame {
  position: absolute;
  top: 50%; left: 50%;
  z-index: 1;
  height: 100vh;
  width: calc(100vh * 9 / 16);
  transform: translate(-50%, -50%) scale(3.4);
  border: 0;
  pointer-events: none;
}
/* Background video (alternate implementation — see the commented-out <video>
   in index.html). Kept here, unused while the YouTube embed above is active,
   so swapping back only requires uncommenting the HTML. */
.hero-video {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  animation: heroKenBurns 20s ease-in-out infinite alternate;
}
/* Flat backdrop tint over the video, ahead of the directional gradient below,
   to guarantee a minimum darkness under the video regardless of its content. */
.hero-tint {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: rgba(10,0,0,0.45);
}
.hero-gradient {
  position: absolute;
  inset: 0;
  z-index: 3;
  background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.35) 45%, rgba(0,0,0,0.18) 65%, rgba(0,0,0,0.5) 100%);
}
.hero-pattern {
  position: absolute;
  inset: 0;
  z-index: 4;
  background-image:
    repeating-linear-gradient(60deg,  rgba(255,255,255,0.04) 0, rgba(255,255,255,0.04) 1px, transparent 1px, transparent 40px),
    repeating-linear-gradient(-60deg, rgba(255,255,255,0.04) 0, rgba(255,255,255,0.04) 1px, transparent 1px, transparent 40px);
}
.hero-content {
  position: relative;
  z-index: 5;
  max-width: 820px;
}
.hero-scroll-cue {
  position: absolute;
  bottom: 1.75rem; left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  color: var(--white);
  font-size: 1.75rem;
  line-height: 1;
  opacity: 0.85;
  animation: heroBounce 2.2s ease-in-out infinite;
  cursor: pointer;
}
.hero-scroll-cue:hover { opacity: 1; }
@keyframes heroBounce {
  0%, 100% { transform: translate(-50%, 0); }
  50%      { transform: translate(-50%, 10px); }
}
@keyframes heroKenBurns {
  from { transform: scale(1); }
  to   { transform: scale(1.08); }
}

/* Fade-in-up entrance for the hero copy, staggered per element. Pure CSS —
   runs on page load with no JS dependency, so it still works if JS is disabled. */
@keyframes heroFadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-badge, .hero-title, .hero-subtitle, .hero-cta {
  opacity: 0;
  animation: heroFadeInUp 0.8s ease forwards;
}
.hero-badge    { animation-delay: 0.1s; }
.hero-title    { animation-delay: 0.25s; }
.hero-subtitle { animation-delay: 0.4s; }
.hero-cta      { animation-delay: 0.55s; }

/* .hero-video-failed is added by JS if the <video> fires an error event —
   hides the broken video so the .hero-bg poster shows through cleanly. */
.hero-video-failed .hero-video { display: none; }

@media (prefers-reduced-motion: reduce) {
  .hero-yt-frame { display: none; }
  .hero-video { display: none; animation: none; }
  .hero-badge, .hero-title, .hero-subtitle, .hero-cta {
    animation: none; opacity: 1; transform: none;
  }
}

@media (max-width: 768px) {
  /* On tall narrow phone screens, 100vh is often taller than the screen is
     wide, so the unscaled 9:16 strip already exceeds the viewport width —
     a smaller scale avoids zooming in past what's needed to fill it. */
  .hero-yt-frame { transform: translate(-50%, -50%) scale(1.15); }
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: var(--radius-pill);
  padding: 0.375rem 1rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 1.5rem;
}
.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 7vw, 5rem);
  font-weight: 900;
  line-height: 1.05;
  color: var(--white);
  margin-bottom: 1.5rem;
}
.hero-title em { font-style: italic; color: rgba(255,255,255,0.82); }
.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: rgba(255,255,255,0.82);
  margin-bottom: 2.5rem;
  max-width: 620px;
  line-height: 1.7;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }

/* === PAGE HERO (interior pages) === */
.page-hero {
  background: var(--black);
  color: var(--white);
  padding: 5.5rem 0 3.5rem;
  margin-top: var(--nav-height);
  position: relative;
  overflow: hidden;
}
.page-hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--red-dark) 0%, #7a0000 50%, var(--black) 100%);
  opacity: 0.88;
}
.page-hero-pattern {
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(45deg, rgba(255,255,255,0.03) 0, rgba(255,255,255,0.03) 1px, transparent 1px, transparent 22px);
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: var(--white); margin-bottom: 0.5rem; }
.page-hero p  { color: rgba(255,255,255,0.78); font-size: 1.125rem; }

.breadcrumb {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.875rem; color: rgba(255,255,255,0.6); margin-bottom: 1rem;
}
.breadcrumb a { color: rgba(255,255,255,0.6); transition: var(--transition); }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb .sep { opacity: 0.4; }

/* === STATS BAR === */
.stats-bar { background: var(--black); color: var(--white); padding: 1.5rem 0; }
.stats-bar-grid {
  display: flex; flex-wrap: wrap;
  justify-content: center;
}
.stat-item {
  text-align: center;
  padding: 0.875rem 2.5rem;
  border-right: 1px solid rgba(255,255,255,0.12);
}
.stat-item:last-child { border-right: none; }
.stat-number {
  font-family: var(--font-heading);
  font-size: 2rem; font-weight: 900;
  color: var(--red); line-height: 1; margin-bottom: 0.25rem;
}
.stat-label {
  font-size: 0.8rem; color: rgba(255,255,255,0.65);
  font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em;
}

/* Impact bar (text strip) */
.impact-bar { background: var(--red); color: var(--white); padding: 1.125rem 0; }
.impact-bar-inner {
  display: flex; flex-wrap: wrap;
  justify-content: center; align-items: center;
  gap: 0 0.5rem;
  font-size: 0.9375rem; font-weight: 600; letter-spacing: 0.02em;
}
.impact-bar-inner .sep { opacity: 0.55; }

/* === CARDS — GENERIC === */
.cards-grid   { display: grid; gap: 2rem; }
.cards-grid-2 { grid-template-columns: repeat(2, 1fr); }
.cards-grid-3 { grid-template-columns: repeat(3, 1fr); }
.cards-grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid var(--gray-200);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.card-img   { aspect-ratio: 4/3; overflow: hidden; }
.card-body  { padding: 1.75rem; }

.card-tag {
  display: inline-block;
  background: var(--red-light); color: var(--red);
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 0.25rem 0.75rem; border-radius: var(--radius-pill);
  margin-bottom: 0.75rem;
}
.card-tag.blue { background: var(--blue-light); color: var(--blue); }
.card-title {
  font-family: var(--font-heading);
  font-size: 1.25rem; font-weight: 700;
  margin-bottom: 0.75rem; color: var(--gray-900);
}
.card-text { color: var(--gray-500); font-size: 0.9375rem; line-height: 1.65; }

/* === PROGRAM CARDS === */
.program-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  background: var(--white);
}
.program-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-hover); }

.program-card-header {
  position: relative;
  overflow: hidden;
  height: 240px;
  padding: 1.5rem;
  display: flex; align-items: flex-end;
}
.program-card-photo {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 30%;
  transition: transform 0.4s ease;
}
.program-card:hover .program-card-photo { transform: scale(1.05); }
.program-card-header-gradient {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0) 60%);
}
.program-card-chip {
  position: absolute; top: 1rem; right: 1rem;
  background: rgba(255,255,255,0.22);
  color: var(--white);
  font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.05em; text-transform: uppercase;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255,255,255,0.4);
  backdrop-filter: blur(2px);
}
.program-card-header h3 {
  position: relative; z-index: 1;
  color: var(--white); font-size: 1.5rem;
}
.program-card-body { padding: 1.75rem; }

/* Per-program crop focus — tune independently once real photos are in place */
.program-photo-baby-bomba   { object-position: center 40%; }
.program-photo-chiqui-bomba { object-position: center 60%; }
.program-photo-bembe-buleo  { object-position: center 30%; }
.program-photo-bembe-baile  { object-position: center 75%; }

/* Larger detail-page photo (programs.html two-col layout) */
.program-detail-photo {
  width: 100%; height: 300px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  display: block;
}

/* Detailed program sections */
.program-section {
  padding: 4rem 0;
  border-bottom: 1px solid var(--gray-200);
}
.program-section:last-child { border-bottom: none; }
.program-section-header {
  display: flex; align-items: center; gap: 1.5rem;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid var(--gray-100);
}
.program-section-icon {
  width: 72px; height: 72px;
  border-radius: var(--radius-lg);
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; flex-shrink: 0;
}
.program-section-icon.red  { background: var(--red-light); }
.program-section-icon.blue { background: var(--blue-light); }

.class-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; margin: 1.5rem 0; }
.class-card {
  background: var(--gray-50);
  border-radius: var(--radius);
  padding: 1.25rem;
  border-left: 3px solid var(--red);
}
.class-card h4 { font-size: 1rem; margin-bottom: 0.25rem; color: var(--red); }
.class-card p  { font-size: 0.875rem; color: var(--gray-500); margin: 0; }

/* === TESTIMONIALS === */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}
.testimonial-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--red);
  position: relative;
}
.testimonial-card::before {
  content: '\201C';
  font-family: var(--font-heading);
  font-size: 6rem;
  color: var(--red-light);
  position: absolute; top: -0.75rem; left: 1.25rem;
  line-height: 1;
}
.testimonial-quote {
  font-size: 1rem; line-height: 1.75;
  color: var(--gray-700);
  margin-bottom: 1.5rem;
  position: relative; z-index: 1;
  margin-top: 1.75rem;
}
.testimonial-author { display: flex; align-items: center; gap: 1rem; }
.author-avatar {
  width: 50px; height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--red), var(--blue));
  flex-shrink: 0;
}
.author-name  { font-weight: 700; font-size: 0.9375rem; color: var(--gray-900); }
.author-role  { font-size: 0.8125rem; color: var(--gray-500); }

/* === EVENT CARDS === */
.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}
.event-card {
  display: flex; gap: 1.25rem;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  transition: var(--transition);
}
.event-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--red); }
.event-date {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  background: var(--red); color: var(--white);
  border-radius: var(--radius);
  padding: 0.875rem 0.75rem;
  min-width: 66px; text-align: center; flex-shrink: 0;
}
.event-month { font-size: 0.65rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; opacity: 0.9; }
.event-day   { font-family: var(--font-heading); font-size: 2.25rem; font-weight: 900; line-height: 1; }
.event-info h4 { font-size: 1rem; font-weight: 700; margin-bottom: 0.375rem; color: var(--gray-900); }
.event-meta {
  display: flex; gap: 1rem; flex-wrap: wrap;
  font-size: 0.8125rem; color: var(--gray-500);
  margin-bottom: 0.5rem;
}
.event-desc { font-size: 0.875rem; color: var(--gray-500); }

/* === FEATURED EVENT (Areyto-style headline event) === */
.event-featured {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-hover);
  border: 1px solid var(--gray-200);
}
.event-featured-media { position: relative; background: var(--gray-100); }
.event-featured-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  min-height: 320px;
}
.event-featured-body {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.event-featured-tagline {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--red);
  margin-bottom: 1rem;
}
.event-featured-meta {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin: 1.25rem 0;
  font-size: 0.9375rem;
  color: var(--gray-700);
}
.event-featured-meta span { display: flex; align-items: center; gap: 0.5rem; }
.event-featured-actions {
  display: flex; gap: 1rem; flex-wrap: wrap;
  margin-top: 1.5rem;
}

/* Compact muted rows for events that have already passed */
.event-row-muted {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.125rem 1.5rem;
  background: var(--gray-50);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
}
.event-row-muted h4 { font-size: 0.9375rem; font-weight: 700; color: var(--gray-700); margin-bottom: 0.25rem; }
.event-row-muted p  { font-size: 0.8125rem; color: var(--gray-500); margin: 0; }
.event-date.muted { background: var(--gray-200); color: var(--gray-500); }

/* === NEWSLETTER === */
.newsletter-section {
  background: linear-gradient(135deg, #8B0000 0%, var(--red) 50%, var(--blue-dark) 100%);
  color: var(--white);
  padding: 5rem 0;
  position: relative; overflow: hidden;
}
.newsletter-section::before {
  content: '';
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(45deg, rgba(255,255,255,0.03) 0, rgba(255,255,255,0.03) 1px, transparent 1px, transparent 22px);
}
.newsletter-inner {
  position: relative; z-index: 1;
  max-width: 580px; margin: 0 auto; text-align: center;
}
.newsletter-inner h2   { color: var(--white); margin-bottom: 0.75rem; }
.newsletter-inner p    { color: rgba(255,255,255,0.8); margin-bottom: 2rem; }
.newsletter-form       { display: flex; gap: 0.875rem; justify-content: center; flex-wrap: wrap; }
.newsletter-form input {
  flex: 1; min-width: 220px;
  padding: 0.875rem 1.25rem;
  border-radius: var(--radius-pill);
  border: 2px solid rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.14);
  color: var(--white);
  font-size: 0.9375rem; font-family: var(--font-body);
  outline: none; transition: var(--transition);
}
.newsletter-form input::placeholder { color: rgba(255,255,255,0.55); }
.newsletter-form input:focus { border-color: rgba(255,255,255,0.65); background: rgba(255,255,255,0.2); }

/* === FORMS === */
.form-group { margin-bottom: 1.5rem; }
.form-label {
  display: block;
  font-size: 0.9rem; font-weight: 600;
  color: var(--gray-700); margin-bottom: 0.5rem;
}
.form-control {
  width: 100%;
  padding: 0.875rem 1.125rem;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius);
  font-size: 1rem; font-family: var(--font-body);
  color: var(--gray-900); background: var(--white);
  transition: var(--transition); outline: none;
}
.form-control:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0,102,204,0.1); }
textarea.form-control { min-height: 140px; resize: vertical; }
select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23888' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1rem center;
  padding-right: 2.5rem; cursor: pointer;
}
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.form-note   { font-size: 0.8125rem; color: var(--gray-500); margin-top: 0.375rem; }

/* Checkbox / Radio */
.form-check { display: flex; align-items: flex-start; gap: 0.625rem; margin-bottom: 0.75rem; cursor: pointer; }
.form-check input { width: 18px; height: 18px; accent-color: var(--red); cursor: pointer; margin-top: 0.125rem; }
.form-check-label { font-size: 0.9375rem; color: var(--gray-700); }

/* === DONATION SELECTOR === */
.donation-wrapper {
  max-width: 620px;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 3rem;
  box-shadow: var(--shadow-hover);
}
.giving-toggle {
  display: flex; background: var(--gray-100);
  border-radius: var(--radius-pill); padding: 4px;
  margin: 0 auto 2rem; width: fit-content;
}
.toggle-btn {
  padding: 0.5rem 1.5rem; border-radius: var(--radius-pill);
  border: none; background: none; cursor: pointer;
  font-family: var(--font-body); font-size: 0.9rem; font-weight: 600;
  color: var(--gray-500); transition: var(--transition);
}
.toggle-btn.active { background: var(--white); color: var(--red); box-shadow: var(--shadow-sm); }

.donation-amounts {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem; margin-bottom: 1rem;
}
.amount-btn {
  padding: 1rem; border: 2px solid var(--gray-200);
  border-radius: var(--radius); background: var(--white);
  cursor: pointer;
  font-family: var(--font-heading); font-size: 1.375rem; font-weight: 700;
  color: var(--gray-700); transition: var(--transition); text-align: center;
}
.amount-btn:hover, .amount-btn.active {
  border-color: var(--red); color: var(--red); background: var(--red-light);
}
.custom-amount { position: relative; margin-bottom: 1.5rem; }
.custom-amount .currency {
  position: absolute; left: 1rem; top: 50%;
  transform: translateY(-50%);
  font-weight: 700; color: var(--gray-500); font-size: 1.125rem;
}
.custom-amount input { padding-left: 2rem; }

.tax-notice {
  text-align: center; font-size: 0.8125rem;
  color: var(--gray-500); margin-top: 1.25rem;
  display: flex; align-items: center; justify-content: center; gap: 0.375rem;
}

/* === PHOTO PLACEHOLDERS === */
.photo-placeholder {
  background: linear-gradient(135deg, var(--red) 0%, var(--blue) 100%);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
  font-size: 0.8rem; font-weight: 600;
  text-align: center; padding: 2rem;
  letter-spacing: 0.02em; text-transform: uppercase;
  position: relative; overflow: hidden;
}
.photo-placeholder::before {
  content: '';
  position: absolute; inset: 0;
  background: repeating-linear-gradient(45deg, rgba(255,255,255,0.05) 0, rgba(255,255,255,0.05) 10px, transparent 10px, transparent 20px);
}
.photo-placeholder span { position: relative; z-index: 1; max-width: 220px; line-height: 1.5; }
.photo-placeholder.black-red  { background: linear-gradient(135deg, var(--black) 0%, var(--red) 100%); }
.photo-placeholder.blue-black { background: linear-gradient(135deg, var(--blue) 0%, var(--black) 100%); }
.photo-placeholder.red-dark   { background: linear-gradient(135deg, var(--red-dark) 0%, var(--red) 100%); }
.photo-placeholder.blue-light-bg { background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue) 100%); }

/* === MISSION PHOTO (About Preview, index.html) === */
.mission-photo-wrap {
  height: 520px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.mission-photo {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.4s ease;
}
.mission-photo-wrap:hover .mission-photo { transform: scale(1.03); }

/* === GALLERY === */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.gallery-item { aspect-ratio: 4/3; border-radius: var(--radius); overflow: hidden; transition: var(--transition); }
.gallery-item:hover { transform: scale(1.02); box-shadow: var(--shadow); }
.gallery-item img,
img.gallery-item {
  width: 100%; height: 100%;
  object-fit: cover;
  cursor: pointer;
  transition: var(--transition);
}

/* === LIGHTBOX === */
.lightbox-overlay {
  position: fixed; inset: 0;
  z-index: 2000;
  background: rgba(0,0,0,0.92);
  display: none;
  align-items: center; justify-content: center;
  padding: 3rem 1.5rem;
}
.lightbox-overlay.open { display: flex; }
.lightbox-overlay img {
  max-width: 100%; max-height: 88vh;
  border-radius: var(--radius);
  box-shadow: var(--shadow-hover);
}
.lightbox-close {
  position: absolute; top: 1.5rem; right: 1.5rem;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.3);
  color: var(--white);
  font-size: 1.5rem; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: var(--transition);
}
.lightbox-close:hover { background: rgba(255,255,255,0.25); }

/* === TIMELINE === */
.timeline { position: relative; max-width: 800px; margin: 0 auto; }
.timeline::before {
  content: '';
  position: absolute; left: 50%; top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--red), var(--blue));
  transform: translateX(-50%);
}
.timeline-item {
  display: grid;
  grid-template-columns: 1fr 48px 1fr;
  gap: 1.5rem; align-items: start;
  margin-bottom: 3rem;
}
.timeline-content {
  background: var(--white); border-radius: var(--radius-lg);
  padding: 1.5rem; box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
}
.timeline-item.left  .timeline-content { grid-column: 1; text-align: right; }
.timeline-item.right .timeline-content { grid-column: 3; }
.timeline-dot {
  grid-column: 2;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--red); border: 4px solid var(--white);
  box-shadow: 0 0 0 2px var(--red);
  display: flex; align-items: center; justify-content: center;
  justify-self: center; z-index: 1;
  color: var(--white); font-weight: 900; font-size: 0.75rem;
}
.timeline-year  { font-family: var(--font-heading); font-size: 1.125rem; font-weight: 900; color: var(--red); margin-bottom: 0.25rem; }
.timeline-title { font-weight: 700; font-size: 1rem; margin-bottom: 0.5rem; color: var(--gray-900); }
.timeline-desc  { font-size: 0.875rem; color: var(--gray-500); margin: 0; }

/* === TEAM CARDS === */
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 2rem; }
.team-card {
  text-align: center; background: var(--white);
  border-radius: var(--radius-lg); padding: 2rem 1.5rem;
  box-shadow: var(--shadow-sm); border: 1px solid var(--gray-200);
  transition: var(--transition);
}
.team-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.team-avatar {
  width: 100px; height: 100px; border-radius: 50%;
  margin: 0 auto 1.25rem;
  border: 4px solid var(--red-light);
}
.team-name { font-family: var(--font-heading); font-weight: 700; font-size: 1.125rem; margin-bottom: 0.25rem; }
.team-role { font-size: 0.875rem; color: var(--red); font-weight: 600; margin-bottom: 0.75rem; }
.team-bio  { font-size: 0.875rem; color: var(--gray-500); margin: 0; }

/* === VALUES CARDS === */
.values-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.5rem; }
.value-card {
  text-align: center; padding: 2rem 1rem;
  border-radius: var(--radius-lg); background: var(--white);
  box-shadow: var(--shadow-sm); border: 1px solid var(--gray-200);
  transition: var(--transition);
}
.value-card:hover { transform: translateY(-4px); border-color: var(--red); box-shadow: var(--shadow); }
.value-icon    { font-size: 2.5rem; margin-bottom: 0.75rem; }
.value-name    { font-family: var(--font-heading); font-weight: 700; font-size: 1rem; color: var(--red); margin-bottom: 0.2rem; }
.value-name-es { font-size: 0.75rem; color: var(--gray-500); font-style: italic; }

/* === SPONSORSHIP TIERS === */
.tiers-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; align-items: start; }
.tier-card {
  border-radius: var(--radius-lg); padding: 2.5rem;
  border: 2px solid var(--gray-200); background: var(--white);
  text-align: center; transition: var(--transition); position: relative;
}
.tier-card:hover  { border-color: var(--red); transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.tier-card.featured { border-color: var(--red); background: linear-gradient(to bottom, var(--red-light), var(--white)); }
.tier-badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--red); color: var(--white);
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 0.25rem 1rem; border-radius: var(--radius-pill);
}
.tier-name  { font-family: var(--font-heading); font-size: 1.5rem; font-weight: 900; margin-bottom: 0.375rem; }
.tier-price { font-family: var(--font-heading); font-size: 2.75rem; font-weight: 900; color: var(--red); margin-bottom: 1.5rem; line-height: 1; }
.tier-benefits { text-align: left; margin-bottom: 2rem; }
.tier-benefits li {
  padding: 0.5rem 0; font-size: 0.9rem; color: var(--gray-700);
  border-bottom: 1px solid var(--gray-100);
  display: flex; align-items: flex-start; gap: 0.5rem;
}
.tier-benefits li::before { content: '✓'; color: var(--red); font-weight: 700; flex-shrink: 0; }

/* === NEWS / BLOG CARDS === */
.news-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.news-card {
  background: var(--white); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200); transition: var(--transition);
}
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.news-img   { aspect-ratio: 16/9; }
.news-body  { padding: 1.5rem; }
.news-meta  { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.75rem; font-size: 0.8125rem; color: var(--gray-500); }
.news-title { font-family: var(--font-heading); font-size: 1.125rem; font-weight: 700; margin-bottom: 0.5rem; color: var(--gray-900); line-height: 1.3; }
.news-excerpt { font-size: 0.9rem; color: var(--gray-500); margin-bottom: 1rem; line-height: 1.65; }
.read-more {
  font-size: 0.875rem; font-weight: 700; color: var(--red);
  display: inline-flex; align-items: center; gap: 0.375rem; transition: var(--transition);
}
.read-more:hover { gap: 0.625rem; }

.category-tag {
  background: var(--red-light); color: var(--red);
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  padding: 0.2rem 0.625rem; border-radius: var(--radius-pill);
}

/* === SIDEBAR === */
.content-with-sidebar { display: grid; grid-template-columns: 1fr 320px; gap: 3rem; align-items: start; }
.sidebar { position: sticky; top: calc(var(--nav-height) + 2rem); }
.sidebar-card {
  background: var(--white); border-radius: var(--radius-lg);
  padding: 1.75rem; box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200); margin-bottom: 1.5rem;
}
.sidebar-card h4 {
  font-family: var(--font-heading); font-size: 1.0625rem;
  margin-bottom: 1.25rem; padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--red);
}
.sidebar-links { display: flex; flex-direction: column; gap: 0; }
.sidebar-links a {
  font-size: 0.9rem; color: var(--gray-700);
  padding: 0.5rem 0; border-bottom: 1px solid var(--gray-100);
  transition: var(--transition);
  display: flex; justify-content: space-between; align-items: center;
}
.sidebar-links a:hover { color: var(--red); padding-left: 0.375rem; }
.sidebar-links a:last-child { border-bottom: none; }
.sidebar-count {
  background: var(--red-light); color: var(--red);
  font-size: 0.75rem; font-weight: 700;
  padding: 0.1rem 0.5rem; border-radius: var(--radius-pill);
}

/* === FAQ === */
.faq-list { max-width: 720px; margin: 0 auto; }
.faq-item {
  border: 1px solid var(--gray-200); border-radius: var(--radius);
  margin-bottom: 0.875rem; overflow: hidden; transition: var(--transition);
}
.faq-item:hover { border-color: var(--red); }
.faq-question {
  padding: 1.25rem 1.5rem; font-weight: 700; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
  background: var(--white); user-select: none; color: var(--gray-900);
}
.faq-question .faq-icon { font-size: 1.5rem; color: var(--red); font-weight: 300; flex-shrink: 0; line-height: 1; }
.faq-answer {
  padding: 0 1.5rem 1.25rem;
  color: var(--gray-500); font-size: 0.9375rem; line-height: 1.75;
}

/* === CALENDAR === */
.calendar-wrapper { background: var(--white); border-radius: var(--radius-lg); padding: 2rem; box-shadow: var(--shadow); }
.calendar-nav { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.5rem; }
.cal-nav-btn { background: var(--gray-100); border: none; cursor: pointer; border-radius: 50%; width: 36px; height: 36px; font-size: 1rem; transition: var(--transition); }
.cal-nav-btn:hover { background: var(--red-light); color: var(--red); }
.cal-month { font-family: var(--font-heading); font-size: 1.25rem; font-weight: 700; }
.calendar-header { display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--gray-500); margin-bottom: 0.5rem; }
.calendar-days   { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.cal-day {
  aspect-ratio: 1; display: flex; align-items: center; justify-content: center;
  border-radius: 50%; font-size: 0.875rem; color: var(--gray-700);
  cursor: default; position: relative; transition: var(--transition);
}
.cal-day.has-event  { color: var(--red); font-weight: 700; cursor: pointer; background: var(--red-light); }
.cal-day.today      { background: var(--red); color: var(--white); font-weight: 700; }
.cal-day.other-month { color: var(--gray-300); }
.cal-day:hover:not(.today):not(.other-month) { background: var(--gray-100); }

/* === IMPACT NUMBERS === */
.impact-numbers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; text-align: center; }
.impact-number-item {
  padding: 2.25rem 1.5rem; border-radius: var(--radius-lg);
  background: var(--white); box-shadow: var(--shadow-sm);
  border-top: 4px solid var(--red); transition: var(--transition);
}
.impact-number-item:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.impact-num   { font-family: var(--font-heading); font-size: 3rem; font-weight: 900; color: var(--red); line-height: 1; margin-bottom: 0.5rem; }
.impact-label { font-size: 0.8rem; color: var(--gray-500); font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; }

/* === PARTNERS === */
.partners-row { display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: center; justify-content: center; }
.partner-logo {
  width: 160px; height: 80px;
  background: var(--gray-100); border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.875rem; font-weight: 700; color: var(--gray-500);
  border: 2px solid var(--gray-200); text-align: center; transition: var(--transition);
  padding: 0.5rem;
}
.partner-logo:hover { border-color: var(--red); color: var(--red); }

/* === TRUST INDICATORS === */
.trust-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.5rem; }
.trust-item {
  text-align: center; padding: 2rem 1.25rem;
  border-radius: var(--radius-lg); border: 2px solid var(--gray-200);
  background: var(--white); transition: var(--transition);
}
.trust-item:hover { border-color: var(--red); }
.trust-icon  { font-size: 2.5rem; margin-bottom: 0.875rem; }
.trust-title { font-weight: 700; font-size: 0.9375rem; margin-bottom: 0.375rem; color: var(--gray-900); }
.trust-desc  { font-size: 0.8125rem; color: var(--gray-500); }

/* === VOLUNTEER CARDS === */
.volunteer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.volunteer-card {
  background: var(--white); border-radius: var(--radius-lg);
  padding: 1.75rem; box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200); border-left: 4px solid var(--blue);
  transition: var(--transition);
}
.volunteer-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-left-color: var(--red); }
.volunteer-card h4 { margin-bottom: 0.5rem; color: var(--gray-900); }
.volunteer-card p  { font-size: 0.9rem; margin: 0; }

/* === MAP PLACEHOLDER === */
.map-placeholder {
  width: 100%; height: 350px;
  background: linear-gradient(135deg, #e8e8e8, #d5d5d5);
  border-radius: var(--radius-lg);
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 0.75rem;
  font-size: 1rem; font-weight: 600; color: var(--gray-500);
  border: 2px dashed var(--gray-300);
}
.map-placeholder .map-icon { font-size: 2.5rem; }

/* === STORIES (Impact page) === */
.story-card {
  background: var(--white); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow);
  transition: var(--transition);
}
.story-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.story-img { aspect-ratio: 3/2; }
.story-body { padding: 2rem; }
.story-quote {
  font-family: var(--font-heading); font-size: 1.125rem; font-style: italic;
  color: var(--gray-700); line-height: 1.6; margin-bottom: 1.25rem;
  border-left: 3px solid var(--red); padding-left: 1rem;
}
.story-name { font-weight: 700; color: var(--gray-900); }
.story-role { font-size: 0.875rem; color: var(--red); font-weight: 600; }

/* === UTILITIES === */
.text-red    { color: var(--red); }
.text-blue   { color: var(--blue); }
.text-white  { color: var(--white); }
.text-center { text-align: center; }
.text-muted  { color: var(--gray-500); }

.mt-1 { margin-top: 0.5rem;  } .mt-2 { margin-top: 1rem;    }
.mt-3 { margin-top: 1.5rem;  } .mt-4 { margin-top: 2rem;    }
.mb-1 { margin-bottom: 0.5rem; } .mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; } .mb-4 { margin-bottom: 2rem; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.two-col.reverse > :first-child { order: 2; }
.two-col.reverse > :last-child  { order: 1; }

.divider     { border: none; border-top: 1px solid var(--gray-200); margin: 3rem 0; }
.divider-red { border-top: 3px solid var(--red); }

.badge {
  display: inline-block;
  padding: 0.25rem 0.875rem;
  border-radius: var(--radius-pill);
  font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
}
.badge-red   { background: var(--red-light);  color: var(--red); }
.badge-blue  { background: var(--blue-light); color: var(--blue); }
.badge-black { background: var(--gray-100);   color: var(--gray-700); }

.alert {
  padding: 1rem 1.5rem; border-radius: var(--radius);
  margin-bottom: 1.5rem; font-size: 0.9375rem;
}
.alert-info    { background: var(--blue-light); border-left: 4px solid var(--blue); color: var(--blue-dark); }
.alert-success { background: #e8f5e9; border-left: 4px solid #4caf50; color: #2e7d32; }
.alert-warning { background: #fff8e1; border-left: 4px solid #f9a825; color: #8a6100; }

/* === REGISTRATION WIZARD === */
.wizard-stepper {
  display: flex;
  align-items: flex-start;
  max-width: 720px;
  margin: 0 auto 3rem;
}
.wizard-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  flex: 0 0 auto;
  width: 100px;
}
.wizard-step-circle {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--gray-200);
  color: var(--gray-500);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700; font-size: 1rem;
  transition: var(--transition);
  flex-shrink: 0;
}
.wizard-step.active .wizard-step-circle,
.wizard-step.completed .wizard-step-circle {
  background: var(--red); color: var(--white);
}
.wizard-step-label {
  font-size: 0.75rem; font-weight: 600;
  color: var(--gray-500); text-align: center;
  line-height: 1.3;
}
.wizard-step.active .wizard-step-label,
.wizard-step.completed .wizard-step-label { color: var(--gray-900); }
.wizard-step-line {
  flex: 1 1 auto;
  height: 2px;
  background: var(--gray-200);
  margin-top: 20px;
  transition: var(--transition);
}
.wizard-step-line.completed { background: var(--red); }

.wizard-panel { display: none; }
.wizard-panel.active { display: block; animation: fadeIn 0.35s ease; }

.wizard-actions {
  display: flex; justify-content: space-between; align-items: center;
  gap: 1rem; margin-top: 2.5rem;
}

.select-card {
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  background: var(--white);
  cursor: pointer;
  transition: var(--transition);
  position: relative;
}
.select-card:hover { border-color: var(--red); transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.select-card.selected { border-color: var(--red); background: var(--red-light); }
.select-card.selected::after {
  content: '\2713';
  position: absolute; top: 1rem; right: 1rem;
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--red); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.8rem;
}
.select-card.disabled { opacity: 0.55; cursor: not-allowed; }
.select-card.disabled:hover { border-color: var(--gray-200); transform: none; box-shadow: none; }

.select-card-icon { font-size: 1.75rem; margin-bottom: 0.5rem; }
.select-card-thumb {
  width: 48px; height: 48px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 0.5rem;
}
.select-card-title { font-family: var(--font-heading); font-size: 1.125rem; font-weight: 700; margin-bottom: 0.25rem; color: var(--gray-900); }
.select-card-meta { font-size: 0.8125rem; color: var(--gray-500); margin-bottom: 0.75rem; }
.select-card-price { font-family: var(--font-heading); font-weight: 900; font-size: 1.25rem; color: var(--red); margin-bottom: 0.5rem; }

.wizard-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }

.order-summary {
  background: var(--gray-50);
  border-radius: var(--radius-lg);
  padding: 2rem;
  border: 1px solid var(--gray-200);
}
.order-summary-row {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--gray-200);
  font-size: 0.9375rem;
}
.order-summary-row:last-child { border-bottom: none; }
.order-summary-row .label { color: var(--gray-500); }
.order-summary-row .value { font-weight: 600; color: var(--gray-900); text-align: right; }
.order-summary-total { font-size: 1.125rem; }
.order-summary-total .value { color: var(--red); font-family: var(--font-heading); font-weight: 900; }

.wizard-confirmation { text-align: center; max-width: 560px; margin: 0 auto; padding: 2rem 0; }
.wizard-confirmation-icon {
  width: 72px; height: 72px; border-radius: 50%;
  background: #e8f5e9; color: #2e7d32;
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; margin: 0 auto 1.5rem;
}

/* === FOOTER === */
.footer { background: var(--black); color: var(--white); padding: 5rem 0 0; }
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem; padding-bottom: 4rem;
}
.footer-logo { font-family: var(--font-heading); font-size: 1.875rem; font-weight: 900; margin-bottom: 1rem; display: block; }
.footer-desc { color: rgba(255,255,255,0.55); font-size: 0.9rem; line-height: 1.75; margin-bottom: 1.5rem; }
.footer h4 {
  color: var(--white); font-family: var(--font-heading); font-size: 1.0625rem;
  margin-bottom: 1.25rem; padding-bottom: 0.75rem; position: relative;
}
.footer h4::after { content: ''; position: absolute; bottom: 0; left: 0; width: 28px; height: 2px; background: var(--red); }
.footer-links { display: flex; flex-direction: column; gap: 0; }
.footer-links a {
  color: rgba(255,255,255,0.55); font-size: 0.9rem;
  padding: 0.4rem 0; border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: var(--transition);
}
.footer-links a:hover { color: var(--white); padding-left: 0.375rem; }
.footer-links a:last-child { border-bottom: none; }
.footer-contact { color: rgba(255,255,255,0.55); font-size: 0.9rem; line-height: 2; }
.footer-contact a { color: rgba(255,255,255,0.55); transition: var(--transition); }
.footer-contact a:hover { color: var(--white); }
.social-links { display: flex; gap: 0.625rem; margin-top: 1.25rem; }
.social-link {
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.18);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.72rem; font-weight: 800;
  color: rgba(255,255,255,0.65); transition: var(--transition);
  text-decoration: none; letter-spacing: 0.02em;
}
.social-link:hover { background: var(--red); border-color: var(--red); color: var(--white); transform: translateY(-2px); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 1.5rem 0;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 0.75rem;
}
.footer-bottom p { color: rgba(255,255,255,0.38); font-size: 0.8125rem; }

/* === ANIMATIONS === */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn   { from { opacity: 0; }  to { opacity: 1; } }
@keyframes pulse    { 0%,100% { transform: scale(1); } 50% { transform: scale(1.05); } }

/* === RESPONSIVE === */
@media (max-width: 1100px) {
  .values-grid   { grid-template-columns: repeat(3, 1fr); }
  .tiers-grid    { grid-template-columns: 1fr 1fr; }
  .footer-grid   { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .impact-numbers{ grid-template-columns: repeat(2, 1fr); }
  .two-col       { gap: 2rem; }
  .content-with-sidebar { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .cards-grid-3  { grid-template-columns: repeat(2, 1fr); }
  .cards-grid-4  { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  :root { --nav-height: 64px; }
  .section { padding: 3.5rem 0; }

  .program-card-header { height: 200px; }
  .mission-photo-wrap { height: 380px; }

  .hamburger { display: flex; }
  .nav-links {
    position: fixed; top: 0; right: -100%;
    height: 100vh; width: min(300px, 85vw);
    background: var(--white);
    flex-direction: column; justify-content: center;
    align-items: flex-start; padding: 2rem;
    box-shadow: -4px 0 24px rgba(0,0,0,0.14);
    transition: right 0.3s ease; gap: 0; z-index: 1000;
  }
  .nav-links.open { right: 0; }
  .nav-links li { width: 100%; }
  .nav-links li a { padding: 0.875rem 1rem; font-size: 1rem; width: 100%; }
  .btn-nav-donate { margin-top: 0.5rem; text-align: center; display: block; }

  .two-col { grid-template-columns: 1fr; gap: 2rem; }
  .two-col.reverse > :first-child { order: 0; }
  .two-col.reverse > :last-child  { order: 0; }
  .event-featured { grid-template-columns: 1fr; }
  .event-featured-media img { min-height: 240px; }
  .event-featured-body { padding: 1.75rem; }
  .cards-grid-3, .cards-grid-2 { grid-template-columns: 1fr; }
  .cards-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .values-grid  { grid-template-columns: repeat(2, 1fr); }
  .tiers-grid   { grid-template-columns: 1fr; }
  .footer-grid  { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .news-grid { grid-template-columns: 1fr; }

  .stats-bar-grid { flex-direction: column; }
  .stat-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.1); padding: 1rem; }
  .stat-item:last-child { border-bottom: none; }
  .impact-numbers { grid-template-columns: repeat(2, 1fr); }

  .timeline::before { left: 20px; }
  .timeline-item { grid-template-columns: 48px 1fr; }
  .timeline-item.left  .timeline-content,
  .timeline-item.right .timeline-content { grid-column: 2; text-align: left; }
  .timeline-dot { grid-column: 1; grid-row: 1; }

  .donation-amounts { grid-template-columns: repeat(2, 1fr); }
  .donation-wrapper { padding: 2rem 1.25rem; }
  .form-grid-2 { grid-template-columns: 1fr; }
  .floating-donate { bottom: 1.25rem; right: 1.25rem; padding: 0.75rem 1.125rem; font-size: 0.8rem; }

  .hero { align-items: center; padding-bottom: 0; }
  .hero-scroll-cue { display: none; }
  .wizard-stepper { max-width: 100%; }
  .wizard-step { width: auto; }
  .wizard-step-label { display: none; }
  .wizard-grid { grid-template-columns: 1fr; }
  .wizard-actions { flex-wrap: wrap; }
  .wizard-actions .btn { flex: 1 1 auto; }
}

@media (max-width: 480px) {
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { text-align: center; }
  .gallery-grid { grid-template-columns: 1fr; }
  .values-grid  { grid-template-columns: repeat(2, 1fr); }
  .impact-numbers { grid-template-columns: 1fr; }
  .cards-grid-4 { grid-template-columns: 1fr; }
  .newsletter-form { flex-direction: column; }
  .newsletter-form input { min-width: unset; }
  .class-cards { grid-template-columns: 1fr; }
  .impact-bar-inner { flex-direction: column; gap: 0.375rem; }
  .impact-bar-inner .sep { display: none; }
  .tiers-grid { grid-template-columns: 1fr; }
}

@media print {
  .navbar, .floating-donate, .hamburger { display: none; }
  body { padding-top: 0; }
  .page-hero { margin-top: 0; }
}
