/* ============================================
   QUINCY CODERS — DESIGN SYSTEM v3
   Reusable component library
   Navy + Gold + Vibrant accents
   ============================================ */

/* ---- Design Tokens ---- */
:root {
  /* Navy palette */
  --qc-navy: #16213e;
  --qc-navy-deep: #0f1a30;
  --qc-navy-card: #1a2744;

  /* Gold — primary accent */
  --qc-gold: #fbbf24;
  --qc-gold-light: #fcd34d;
  --qc-gold-glow: rgba(251,191,36,0.15);

  /* Vibrant accents */
  --qc-pink: #ec4899;
  --qc-teal: #14b8a6;
  --qc-orange: #f97316;
  --qc-purple: #8b5cf6;
  --qc-sky: #0ea5e9;
  --qc-lime: #84cc16;
  --qc-coral: #f43f5e;

  /* Light backgrounds */
  --qc-cream: #fefcf6;
  --qc-light: #f8fafc;
  --qc-light-warm: #fef9ee;

  /* Text */
  --qc-text-white: rgba(255,255,255,0.95);
  --qc-text-muted-light: rgba(255,255,255,0.6);
  --qc-text-dark: #1e293b;
  --qc-text-dark-sub: #64748b;

  /* Layout */
  --qc-max: 1120px;
  --qc-font: 'Nunito', -apple-system, BlinkMacSystemFont, sans-serif;
  --qc-radius: 14px;
  --qc-radius-lg: 20px;
  --qc-radius-pill: 50px;
}

/* ---- Reset ---- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

/* ---- Body + Global Lattice Background ---- */
body {
  font-family: var(--qc-font);
  color: var(--qc-text-dark);
  background-color: var(--qc-cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(22,33,62,0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(22,33,62,0.09) 1px, transparent 1px);
  background-size: 30px 30px;
  pointer-events: none;
  z-index: 0;
}
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: radial-gradient(circle, rgba(22,33,62,0.14) 1.2px, transparent 1.2px);
  background-size: 30px 30px;
  pointer-events: none;
  z-index: 0;
}
body > * { position: relative; z-index: 1; }

/* ---- Layout Components ---- */
.container { max-width: var(--qc-max); margin: 0 auto; padding: 0 24px; }

.section { padding: 80px 0; }

.section-header { text-align: center; margin-bottom: 48px; }
.section-header h2 { font-size: 34px; font-weight: 800; color: var(--qc-text-dark); margin-bottom: 10px; }
.section-header p { font-size: 16px; color: var(--qc-text-dark-sub); font-weight: 500; }

/* Dark section variant */
.dark-section { background: var(--qc-navy); position: relative; overflow: hidden; }
.dark-section::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.07) 1px, transparent 1px);
  background-size: 30px 30px;
  pointer-events: none;
}
.dark-section::after {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.12) 1.2px, transparent 1.2px);
  background-size: 30px 30px;
  pointer-events: none;
}
.dark-section > * { position: relative; z-index: 2; }
.dark-section .section-header h2 { color: #fff; }
.dark-section .section-header p { color: rgba(255,255,255,0.6); }

/* Page wrap — for inner pages that need centered max-width */
.page-wrap {
  position: relative; z-index: 1;
  max-width: var(--qc-max); margin: 0 auto;
  padding: 0 24px 80px;
}

/* ---- Decorative Blobs ---- */
.blob {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
  filter: blur(60px);
}

/* ---- Scrolling Emoji Ticker ---- */
@keyframes ticker-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.ticker {
  background: var(--qc-gold);
  overflow: hidden;
  padding: 9px 0;
  white-space: nowrap;
  position: relative;
  z-index: 10;
}
.ticker-track {
  display: inline-flex;
  animation: ticker-scroll 40s linear infinite;
}
.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 28px;
  font-size: 13px;
  font-weight: 700;
  color: var(--qc-navy);
}
.ticker-item .t-emoji { font-size: 16px; }

/* ---- Donate Highlight Banner ---- */
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(249,115,22,0.3); }
  50% { box-shadow: 0 0 20px 4px rgba(249,115,22,0.15); }
}
.donate-banner {
  background: linear-gradient(135deg, var(--qc-orange), var(--qc-pink));
  padding: 18px 24px;
  position: relative;
  overflow: hidden;
  animation: pulse-glow 3s ease-in-out infinite;
}
.donate-banner::before {
  content: '';
  position: absolute;
  top: -30px; right: -30px;
  width: 120px; height: 120px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
}
.donate-banner::after {
  content: '';
  position: absolute;
  bottom: -20px; left: -20px;
  width: 80px; height: 80px;
  background: rgba(255,255,255,0.07);
  border-radius: 50%;
}
.donate-banner-inner {
  max-width: var(--qc-max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}
.donate-banner-text {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
}
.btn-donate-banner {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  color: var(--qc-navy);
  padding: 8px 20px;
  border-radius: var(--qc-radius-pill);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.25s;
  white-space: nowrap;
}
.btn-donate-banner:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

/* ---- Hero Section ---- */
.hero {
  background: var(--qc-navy);
  padding: 72px 24px 0;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.07) 1px, transparent 1px);
  background-size: 30px 30px;
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.12) 1.2px, transparent 1.2px);
  background-size: 30px 30px;
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 2; }

.hero-inner {
  max-width: var(--qc-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.hero-text { padding-bottom: 24px; color: #fff; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--qc-gold-glow);
  color: var(--qc-gold);
  font-size: 13px;
  font-weight: 700;
  padding: 7px 18px;
  border-radius: var(--qc-radius-pill);
  margin-bottom: 20px;
  border: 1px solid rgba(251,191,36,0.2);
}
.hero-text h1 {
  font-size: 44px;
  font-weight: 800;
  line-height: 1.12;
  margin-bottom: 18px;
  letter-spacing: -0.5px;
}
.hero-text h1 .gold { color: var(--qc-gold); }
.hero-text h1 .teal { color: var(--qc-teal); }
.hero-text p {
  font-size: 17px;
  color: rgba(255,255,255,0.7);
  line-height: 1.7;
  margin-bottom: 28px;
  max-width: 460px;
}
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---- Buttons ---- */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--qc-gold);
  color: var(--qc-navy);
  padding: 13px 28px;
  border-radius: var(--qc-radius-pill);
  font-size: 15px; font-weight: 700;
  text-decoration: none;
  transition: all 0.25s;
  box-shadow: 0 4px 20px rgba(251,191,36,0.25);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(251,191,36,0.35); }

.btn-ghost-light {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.08);
  color: #fff;
  padding: 13px 28px;
  border-radius: var(--qc-radius-pill);
  font-size: 15px; font-weight: 600;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.15);
  transition: all 0.25s;
}
.btn-ghost-light:hover { background: rgba(255,255,255,0.12); }

.btn-heart-light {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(244,114,182,0.15);
  color: #f9a8d4;
  padding: 13px 28px;
  border-radius: var(--qc-radius-pill);
  font-size: 15px; font-weight: 600;
  text-decoration: none;
  border: 1px solid rgba(244,114,182,0.2);
  transition: all 0.25s;
}
.btn-heart-light:hover { background: rgba(244,114,182,0.25); }

.btn-navy {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--qc-navy);
  color: var(--qc-gold);
  padding: 13px 28px;
  border-radius: var(--qc-radius-pill);
  font-size: 15px; font-weight: 700;
  text-decoration: none;
  transition: all 0.25s;
}
.btn-navy:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(22,33,62,0.25); }

.btn-outline {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent;
  color: var(--qc-navy);
  padding: 13px 28px;
  border-radius: var(--qc-radius-pill);
  font-size: 15px; font-weight: 700;
  text-decoration: none;
  border: 2px solid var(--qc-navy);
  transition: all 0.25s;
}
.btn-outline:hover { background: var(--qc-navy); color: #fff; }

.btn-heart-dark {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(236,72,153,0.1);
  color: var(--qc-pink);
  padding: 13px 28px;
  border-radius: var(--qc-radius-pill);
  font-size: 15px; font-weight: 700;
  text-decoration: none;
  border: 2px solid rgba(236,72,153,0.2);
  transition: all 0.25s;
}
.btn-heart-dark:hover { background: rgba(236,72,153,0.18); }

.btn-white {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; color: var(--qc-navy);
  padding: 14px 32px; border-radius: var(--qc-radius-pill);
  font-size: 16px; font-weight: 700; text-decoration: none;
  transition: all 0.25s; box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(0,0,0,0.2); }

/* ---- Media Grid (hero) ---- */
.media-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 10px;
  padding-bottom: 40px;
}
.media-slot {
  background: rgba(255,255,255,0.06);
  border-radius: var(--qc-radius);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  padding: 16px;
  position: relative;
}
.media-slot-carousel { grid-row: 1 / 3; min-height: 340px; }
.media-slot-video { min-height: 160px; }
.media-slot-static { min-height: 160px; }
.media-label {
  background: rgba(0,0,0,0.55); padding: 8px 14px; border-radius: 10px;
  font-size: 12px; line-height: 1.4; backdrop-filter: blur(4px);
  position: relative; z-index: 2;
}

/* ---- Carousel ---- */
.carousel { position: absolute; inset: 0; overflow: hidden; }
.carousel-track { display: flex; height: 100%; transition: transform 0.5s ease; }
.carousel-slide {
  min-width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; color: rgba(255,255,255,0.5); padding: 16px;
}
.carousel-dots {
  position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 8px; z-index: 5;
}
.carousel-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,0.3); cursor: pointer; border: none;
  transition: all 0.3s;
}
.carousel-dot.active { background: var(--qc-gold); width: 24px; border-radius: 4px; }

/* ---- Wave Dividers ---- */
.wave-divider { width: 100%; height: 60px; overflow: hidden; position: relative; z-index: 2; }
.wave-divider svg { position: absolute; bottom: 0; width: 100%; height: 60px; }

/* ---- Stat Cards ---- */
.stats-section { padding: 48px 24px; }
.stats-inner {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.stat-card {
  text-align: center;
  padding: 24px 12px;
  border-radius: var(--qc-radius-lg);
  border: 2px solid;
  background: #fff;
  transition: transform 0.25s;
}
.stat-card:hover { transform: translateY(-4px); }
.stat-card .stat-num { font-size: 28px; font-weight: 800; margin-bottom: 2px; }
.stat-card .stat-label { font-size: 13px; font-weight: 600; }
.sc-gold { border-color: var(--qc-gold); }
.sc-gold .stat-num { color: var(--qc-gold); }
.sc-gold .stat-label { color: #92710d; }
.sc-teal { border-color: var(--qc-teal); }
.sc-teal .stat-num { color: var(--qc-teal); }
.sc-teal .stat-label { color: #0f766e; }
.sc-pink { border-color: var(--qc-pink); }
.sc-pink .stat-num { color: var(--qc-pink); }
.sc-pink .stat-label { color: #9d174d; }
.sc-purple { border-color: var(--qc-purple); }
.sc-purple .stat-num { color: var(--qc-purple); }
.sc-purple .stat-label { color: #5b21b6; }

/* ---- Who We Are Cards ---- */
.who-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

.mission-statement {
  max-width: 800px;
  margin: -20px auto 48px;
  text-align: center;
  background: var(--qc-navy);
  border-radius: var(--qc-radius-lg);
  padding: 28px 36px;
  border-left: 4px solid var(--qc-gold);
  position: relative;
}
.mission-statement p {
  font-size: 15px;
  line-height: 1.75;
  color: rgba(255,255,255,0.8);
  margin-bottom: 10px;
}
.mission-statement p:last-child { margin-bottom: 0; }

.who-card {
  background: var(--qc-navy);
  border-radius: var(--qc-radius-lg);
  padding: 28px 24px;
  color: #fff;
  transition: transform 0.25s, box-shadow 0.25s;
  position: relative;
  overflow: hidden;
}
.who-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  border-radius: var(--qc-radius-lg) var(--qc-radius-lg) 0 0;
}
.who-card:nth-child(1)::before { background: var(--qc-gold); }
.who-card:nth-child(2)::before { background: var(--qc-pink); }
.who-card:nth-child(3)::before { background: var(--qc-teal); }
.who-card:nth-child(4)::before { background: var(--qc-orange); }
.who-card:nth-child(5)::before { background: var(--qc-purple); }
.who-card:nth-child(6)::before { background: var(--qc-sky); }
.who-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 48px rgba(22,33,62,0.25);
}
.who-card .card-emoji { font-size: 32px; margin-bottom: 14px; display: block; }
.who-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 6px; }
.who-card p { font-size: 14px; color: rgba(255,255,255,0.65); line-height: 1.6; }

/* ---- What We Teach Cards ---- */
.teach-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.teach-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--qc-radius-lg);
  overflow: hidden;
  transition: transform 0.25s, border-color 0.25s;
  color: #fff;
}
.teach-card:hover { transform: translateY(-4px); border-color: rgba(255,255,255,0.18); }
.teach-card-photo {
  height: 110px;
  background: rgba(0,0,0,0.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; color: rgba(255,255,255,0.4);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.teach-card-body { padding: 20px 22px; }
.teach-card-body .card-emoji { font-size: 24px; margin-bottom: 8px; display: block; }
.teach-card-body h3 { font-size: 17px; font-weight: 700; margin-bottom: 6px; }
.teach-card-body p { font-size: 14px; color: rgba(255,255,255,0.6); line-height: 1.55; }

/* Level badges */
.level-badge {
  display: inline-block; margin-top: 12px;
  font-size: 12px; padding: 4px 12px;
  border-radius: var(--qc-radius-pill); font-weight: 700;
}
.lvl-beginner { background: rgba(20,184,166,0.2); color: #5eead4; }
.lvl-intermediate { background: rgba(14,165,233,0.2); color: #7dd3fc; }
.lvl-all { background: rgba(251,191,36,0.2); color: var(--qc-gold-light); }

.teach-link { text-align: center; margin-top: 36px; }
.teach-link a { color: var(--qc-gold); font-size: 15px; font-weight: 700; text-decoration: none; }

/* ---- Donate Section ---- */
.donate-section {
  background: linear-gradient(135deg, var(--qc-orange) 0%, var(--qc-pink) 100%);
  padding: 64px 24px;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.donate-section::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 300px; height: 300px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
}
.donate-section::after {
  content: '';
  position: absolute;
  bottom: -50px; left: -50px;
  width: 200px; height: 200px;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
}
.donate-section > * { position: relative; z-index: 1; }
.donate-section h2 { font-size: 28px; font-weight: 800; margin-bottom: 12px; }
.donate-section p { font-size: 16px; max-width: 600px; margin: 0 auto 24px; opacity: 0.9; line-height: 1.6; }
.donate-note { font-size: 13px; margin-top: 16px; opacity: 0.7; font-weight: 600; }

/* ---- Testimonials ---- */
.test-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 16px; }
.test-featured {
  background: var(--qc-navy);
  border-radius: var(--qc-radius-lg);
  padding: 36px 32px;
  color: #fff;
  display: flex; flex-direction: column; justify-content: center;
}
.test-featured .qm { font-size: 52px; color: var(--qc-gold); line-height: 1; margin-bottom: 12px; font-weight: 800; }
.test-featured blockquote { font-size: 18px; line-height: 1.7; font-style: italic; margin-bottom: 18px; font-weight: 500; }
.test-featured .attr { font-size: 14px; color: rgba(255,255,255,0.5); font-weight: 700; }
.test-stack { display: flex; flex-direction: column; gap: 12px; }
.test-sm {
  background: #fff;
  border: 2px solid #e2e8f0;
  border-radius: var(--qc-radius-lg);
  padding: 24px; flex: 1;
}
.test-sm blockquote { font-size: 14px; line-height: 1.65; font-style: italic; margin-bottom: 12px; color: var(--qc-text-dark); }
.test-sm .attr { font-size: 13px; color: var(--qc-text-dark-sub); font-weight: 700; }

/* ---- Community Recognition ---- */
.recog-row { display: flex; justify-content: center; gap: 48px; flex-wrap: wrap; }
.recog-item { display: flex; align-items: center; gap: 14px; }
.recog-avatar {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--qc-navy);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; flex-shrink: 0;
}
.recog-info h4 { font-size: 15px; font-weight: 700; color: var(--qc-text-dark); }
.recog-info p { font-size: 13px; color: var(--qc-text-dark-sub); }

/* ---- Footer CTA Section ---- */
.footer-cta {
  background: var(--qc-navy);
  text-align: center;
  padding: 80px 24px;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.footer-cta::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.07) 1px, transparent 1px),
    radial-gradient(circle, rgba(255,255,255,0.12) 1.2px, transparent 1.2px);
  background-size: 30px 30px, 30px 30px, 30px 30px;
  pointer-events: none;
}
.footer-cta > * { position: relative; z-index: 2; }
.footer-cta h2 { font-size: 34px; font-weight: 800; margin-bottom: 12px; }
.footer-cta p { font-size: 16px; color: rgba(255,255,255,0.6); margin-bottom: 32px; max-width: 480px; margin-left: auto; margin-right: auto; font-weight: 500; }
.footer-cta-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---- Floating Background Icons ---- */
@keyframes float-drift {
  0%   { transform: translate(0, 0) rotate(0deg); }
  25%  { transform: translate(12px, -18px) rotate(8deg); }
  50%  { transform: translate(-8px, -30px) rotate(-5deg); }
  75%  { transform: translate(15px, -12px) rotate(10deg); }
  100% { transform: translate(0, 0) rotate(0deg); }
}
@keyframes float-drift-alt {
  0%   { transform: translate(0, 0) rotate(0deg); }
  33%  { transform: translate(-15px, 20px) rotate(-10deg); }
  66%  { transform: translate(10px, -15px) rotate(6deg); }
  100% { transform: translate(0, 0) rotate(0deg); }
}
.floating-icons {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.floating-icons .fi {
  position: absolute;
  font-size: 28px;
  animation: float-drift 20s ease-in-out infinite;
  will-change: transform;
}
.floating-icons .fi:nth-child(even) { animation-name: float-drift-alt; }
.float-light .fi { opacity: 0.08; filter: grayscale(0.8); }
.float-dark .fi { opacity: 0.12; filter: brightness(1.5); }
.float-gradient .fi { opacity: 0.15; filter: brightness(2) saturate(0); }

/* ---- Page Hero (dark navy banner) ---- */
.page-hero {
  background: var(--qc-navy); padding: 56px 24px; text-align: center;
  color: #fff; position: relative; overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.07) 1px, transparent 1px),
    radial-gradient(circle, rgba(255,255,255,0.12) 1.2px, transparent 1.2px);
  background-size: 30px 30px; pointer-events: none;
}
.page-hero > * { position: relative; z-index: 2; }
.page-hero h1 { font-size: 40px; font-weight: 800; margin-bottom: 10px; }
.page-hero h1 .gold { color: var(--qc-gold); }
.page-hero p { font-size: 17px; color: rgba(255,255,255,0.65); max-width: 600px; margin: 0 auto; }

/* ---- Section Nav (sticky horizontal tabs) ---- */
.section-nav {
  background: #fff; border-bottom: 2px solid #e2e8f0;
  position: sticky; top: 68px; z-index: 90;
  overflow-x: auto; -webkit-overflow-scrolling: touch;
}
.section-nav::-webkit-scrollbar { height: 0; }
.section-nav-inner {
  max-width: var(--qc-max); margin: 0 auto; padding: 0 24px;
  display: flex; gap: 0; white-space: nowrap;
}
.section-nav a {
  padding: 14px 20px; font-size: 14px; font-weight: 700;
  color: var(--qc-text-dark-sub); text-decoration: none;
  border-bottom: 3px solid transparent; transition: all 0.2s;
  flex-shrink: 0;
}
.section-nav a:hover { color: var(--qc-text-dark); }
.section-nav a.active { color: var(--qc-navy); border-bottom-color: var(--qc-gold); }

/* ---- About Section ---- */
.about-section { padding: 72px 0; }
.section-title { font-size: 28px; font-weight: 800; color: var(--qc-text-dark); margin-bottom: 8px; }
.section-subtitle { font-size: 15px; color: var(--qc-text-dark-sub); margin-bottom: 32px; }

/* Dark background variant (like .dark-section but simpler for inner pages) */
.dark-bg {
  background: var(--qc-navy); color: #fff; position: relative; overflow: hidden;
}
.dark-bg::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.07) 1px, transparent 1px),
    radial-gradient(circle, rgba(255,255,255,0.12) 1.2px, transparent 1.2px);
  background-size: 30px 30px; pointer-events: none;
}
.dark-bg > * { position: relative; z-index: 2; }
.dark-bg .section-title { color: #fff; }
.dark-bg .section-subtitle { color: rgba(255,255,255,0.55); }

/* ---- Story Grid (text + photo 2-col) ---- */
.story-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: stretch; }
.story-text p { font-size: 15px; line-height: 1.8; color: var(--qc-text-dark-sub); margin-bottom: 16px; }
.story-photo {
  background: var(--qc-navy); border-radius: var(--qc-radius-lg);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; color: rgba(255,255,255,0.5); padding: 40px 20px;
}

/* ---- Vision Block ---- */
.vision-block {
  max-width: 780px; margin: 0 auto;
  background: var(--qc-navy); border-radius: var(--qc-radius-lg);
  padding: 40px 44px; text-align: center; color: #fff;
  border-left: 5px solid var(--qc-gold);
}
.vision-block p { font-size: 17px; line-height: 1.8; color: rgba(255,255,255,0.8); margin-bottom: 12px; }
.vision-block p:last-child { margin-bottom: 0; }

/* ---- Impact Cards ---- */
.impact-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px; }
.impact-card {
  background: #fff; border-radius: var(--qc-radius-lg);
  padding: 28px 16px; text-align: center; border: 2px solid;
  transition: transform 0.25s;
}
.impact-card:hover { transform: translateY(-4px); }
.impact-card .ic-num { font-size: 32px; font-weight: 800; margin-bottom: 4px; }
.impact-card .ic-label { font-size: 13px; font-weight: 600; }
.ic-gold { border-color: var(--qc-gold); } .ic-gold .ic-num { color: var(--qc-gold); } .ic-gold .ic-label { color: #92710d; }
.ic-teal { border-color: var(--qc-teal); } .ic-teal .ic-num { color: var(--qc-teal); } .ic-teal .ic-label { color: #0f766e; }
.ic-pink { border-color: var(--qc-pink); } .ic-pink .ic-num { color: var(--qc-pink); } .ic-pink .ic-label { color: #9d174d; }
.ic-purple { border-color: var(--qc-purple); } .ic-purple .ic-num { color: var(--qc-purple); } .ic-purple .ic-label { color: #5b21b6; }
.ic-sky { border-color: var(--qc-sky); } .ic-sky .ic-num { color: var(--qc-sky); } .ic-sky .ic-label { color: #0369a1; }

/* ---- Team Cards ---- */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.team-card {
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--qc-radius-lg); padding: 28px 24px; text-align: center;
  transition: transform 0.25s, border-color 0.25s;
}
.team-card:hover { transform: translateY(-4px); border-color: rgba(255,255,255,0.18); }
.team-avatar {
  width: 72px; height: 72px; border-radius: 50%;
  background: rgba(255,255,255,0.1); border: 2px solid rgba(255,255,255,0.15);
  margin: 0 auto 14px; display: flex; align-items: center; justify-content: center;
  font-size: 28px;
}
.team-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 2px; }
.team-card .role { font-size: 16px; color: var(--qc-gold); font-weight: 600; }
.team-card p { font-size: 13px; color: rgba(255,255,255,0.55); margin-top: 8px; line-height: 1.5; }

/* ---- Teacher Cards ---- */
.teacher-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.teacher-card {
  background: var(--qc-navy); border-radius: var(--qc-radius-lg);
  padding: 24px 18px; text-align: center; transition: transform 0.25s;
}
.teacher-card:hover { transform: translateY(-3px); }
.teacher-avatar {
  width: 64px; height: 64px; border-radius: 50%;
  background: rgba(255,255,255,0.08); border: 2px solid rgba(255,255,255,0.12);
  margin: 0 auto 12px; display: flex; align-items: center; justify-content: center;
  font-size: 24px; color: #fff;
}
.teacher-card h3 { font-size: 15px; font-weight: 700; color: #fff; margin-bottom: 4px; }
.teacher-card .teaches { font-size: 12px; color: rgba(255,255,255,0.5); }
.teacher-badge {
  display: inline-block; margin-top: 8px; font-size: 11px;
  padding: 3px 10px; border-radius: var(--qc-radius-pill); font-weight: 700;
}
.badge-lead { background: rgba(251,191,36,0.2); color: var(--qc-gold-light); }
.badge-asst { background: rgba(20,184,166,0.2); color: #5eead4; }

/* ---- Location Cards ---- */
.loc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.loc-card {
  background: var(--qc-navy); border-radius: var(--qc-radius-lg);
  padding: 28px 24px; color: #fff; transition: transform 0.25s;
  position: relative; overflow: hidden;
}
.loc-card:hover { transform: translateY(-3px); }
.loc-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
}
.loc-card:nth-child(1)::before { background: var(--qc-gold); }
.loc-card:nth-child(2)::before { background: var(--qc-teal); }
.loc-card:nth-child(3)::before { background: var(--qc-pink); }
.loc-card:nth-child(4)::before { background: var(--qc-orange); }
.loc-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 4px; }
.loc-card .loc-addr { font-size: 13px; color: var(--qc-gold); font-weight: 600; margin-bottom: 8px; }
.loc-card p { font-size: 14px; color: rgba(255,255,255,0.6); line-height: 1.6; }
.loc-label {
  display: inline-block; font-size: 11px; padding: 3px 10px;
  border-radius: var(--qc-radius-pill); font-weight: 700; margin-bottom: 10px;
  background: rgba(251,191,36,0.15); color: var(--qc-gold);
}

/* ---- Partner Cards ---- */
.partner-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.partner-card {
  background: #fff; border: 2px solid #e2e8f0; border-radius: var(--qc-radius-lg);
  padding: 28px 24px; transition: transform 0.25s, border-color 0.25s;
}
.partner-card:hover { transform: translateY(-3px); border-color: var(--qc-gold); }
.partner-card h3 { font-size: 17px; font-weight: 700; color: var(--qc-text-dark); margin-bottom: 4px; }
.partner-card .partner-type { font-size: 12px; color: var(--qc-teal); font-weight: 700; margin-bottom: 8px; }
.partner-card p { font-size: 14px; color: var(--qc-text-dark-sub); line-height: 1.6; }

/* ---- Connect Split CTA ---- */
.connect-split { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.connect-box { padding: 56px 40px; text-align: center; }
.connect-box h2 { font-size: 24px; font-weight: 800; margin-bottom: 10px; }
.connect-box p { font-size: 15px; margin-bottom: 24px; opacity: 0.85; line-height: 1.6; }
.connect-left { background: var(--qc-navy); color: #fff; }
.connect-right {
  background: linear-gradient(135deg, var(--qc-orange), var(--qc-pink));
  color: #fff; position: relative; overflow: hidden;
}
.connect-right::before { content: ''; position: absolute; top: -50px; right: -50px; width: 180px; height: 180px; background: rgba(255,255,255,0.08); border-radius: 50%; }
.connect-right::after { content: ''; position: absolute; bottom: -30px; left: -30px; width: 120px; height: 120px; background: rgba(255,255,255,0.06); border-radius: 50%; }
.connect-right > * { position: relative; z-index: 1; }

/* ============================================
   LEGACY COMPONENTS (for pages not yet migrated)
   ============================================ */

/* ---- Page Hero (inner pages) ---- */
.page-hero {
  text-align: center; padding: 48px 0 44px;
}
.page-hero h1 {
  font-weight: 700;
  font-size: clamp(2rem, 4.5vw, 3rem); color: var(--qc-text-dark); margin-bottom: 14px;
}
.page-hero p {
  font-size: 1.05rem; color: var(--qc-text-dark-sub); max-width: 520px;
  margin: 0 auto; line-height: 1.65;
}

/* ---- Section Label / Desc (old style) ---- */
.section-label {
  font-weight: 700;
  font-size: 1.7rem; margin-bottom: 8px; color: var(--qc-text-dark);
}
.section-desc {
  color: var(--qc-text-dark-sub); font-size: 0.95rem;
  margin-bottom: 32px; line-height: 1.55; max-width: 560px;
}
.section-block { margin-bottom: 60px; }

/* ---- Divider ---- */
.divider {
  height: 3px; border-radius: 2px; margin-bottom: 40px;
  background: linear-gradient(90deg, var(--qc-coral), var(--qc-purple), var(--qc-teal));
  width: 60px;
}

/* ---- Cards (old style) ---- */
.card-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}
.card {
  background: #fff; border-radius: var(--qc-radius);
  border: 1.5px solid #e2e8f0;
  padding: 24px; transition: transform 0.25s, box-shadow 0.25s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,0,0,0.08); }
.card-accent-bar { height: 5px; border-radius: 4px; margin-bottom: 18px; }
.card-icon {
  width: 48px; height: 48px; border-radius: 12px;
  display: grid; place-items: center; font-size: 22px; margin-bottom: 14px;
}
.card-title { font-weight: 700; font-size: 1.15rem; margin-bottom: 8px; color: var(--qc-text-dark); }
.card-body-text { font-size: 0.9rem; color: var(--qc-text-dark-sub); line-height: 1.6; }

/* ---- Quote Card (old style) ---- */
.quote-card {
  background: #fff; border-radius: var(--qc-radius);
  border: 1.5px solid #e2e8f0; padding: 28px;
  transition: transform 0.25s, box-shadow 0.25s;
}
.quote-card:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(0,0,0,0.07); }
.quote-mark {
  font-size: 3rem; line-height: 0.8;
  color: var(--qc-purple); opacity: 0.4; margin-bottom: 10px; display: block;
}
.quote-text { font-size: 0.93rem; color: var(--qc-text-dark); line-height: 1.65; margin-bottom: 16px; }
.quote-author { font-size: 0.82rem; font-weight: 600; color: var(--qc-text-dark-sub); }

/* ---- Feature List (old style) ---- */
.feature-list {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}
.feature-item {
  background: #fff; border: 1.5px solid #e2e8f0;
  border-radius: 12px; padding: 18px 20px;
  display: flex; align-items: flex-start; gap: 14px;
}
.feature-icon { font-size: 1.4rem; flex-shrink: 0; margin-top: 2px; }
.feature-title { font-weight: 600; font-size: 0.95rem; margin-bottom: 4px; }
.feature-desc { font-size: 0.85rem; color: var(--qc-text-dark-sub); line-height: 1.5; }

/* ---- Stat Row (old style) ---- */
.stat-row {
  display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 48px;
}

/* ---- Info Box ---- */
.info-box {
  background: var(--qc-light-warm); border: 1.5px solid var(--qc-gold);
  border-radius: var(--qc-radius); padding: 20px 24px;
  margin-bottom: 36px;
}
.info-box-title { font-weight: 700; color: #92710d; margin-bottom: 8px; }
.info-box p { font-size: 0.92rem; color: #6b5200; line-height: 1.55; }
.info-box a { color: var(--qc-purple); font-weight: 600; }

/* ---- FAQ Accordion ---- */
.faq-item {
  background: #fff; border: 1.5px solid #e2e8f0;
  border-radius: var(--qc-radius); overflow: hidden; margin-bottom: 12px;
}
.faq-q {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 18px 22px; cursor: pointer; user-select: none;
  font-weight: 600; font-size: 1rem; color: var(--qc-text-dark);
  transition: background 0.15s;
}
.faq-q:hover { background: var(--qc-cream); }
.faq-chevron {
  flex-shrink: 0; width: 24px; height: 24px; border-radius: 50%;
  background: rgba(139,92,246,0.1); color: var(--qc-purple);
  display: grid; place-items: center; font-size: 0.75rem;
  transition: transform 0.25s;
}
.faq-item.open .faq-chevron { transform: rotate(180deg); }
.faq-a {
  display: none; padding: 0 22px 20px;
  font-size: 0.92rem; color: var(--qc-text-dark-sub); line-height: 1.65;
  border-top: 1px solid #e2e8f0;
}
.faq-a.visible { display: block; padding-top: 16px; }

/* ---- Pill Badges ---- */
.pill {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 0.78rem; font-weight: 600; padding: 4px 12px;
  border-radius: 100px; letter-spacing: 0.02em;
}
.pill-violet { background: rgba(139,92,246,0.1); color: var(--qc-purple); }
.pill-teal { background: rgba(20,184,166,0.1); color: var(--qc-teal); }
.pill-coral { background: rgba(244,63,94,0.1); color: var(--qc-coral); }
.pill-amber { background: rgba(251,191,36,0.1); color: #92710d; }
.pill-lime { background: rgba(132,204,22,0.1); color: #4a7a20; }
.pill-sky { background: rgba(14,165,233,0.1); color: #0077cc; }

/* ---- Blog Cards ---- */
.blog-card {
  background: #fff; border-radius: var(--qc-radius);
  border: 1.5px solid #e2e8f0; padding: 28px;
  display: flex; flex-direction: column; gap: 12px;
  transition: transform 0.25s, box-shadow 0.25s;
}
.blog-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,0,0,0.08); }
.blog-tag { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--qc-purple); }
.blog-title { font-weight: 700; font-size: 1.2rem; color: var(--qc-text-dark); line-height: 1.3; }
.blog-excerpt { font-size: 0.9rem; color: var(--qc-text-dark-sub); line-height: 1.6; }
.blog-link {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 0.88rem; font-weight: 600; color: var(--qc-purple); text-decoration: none;
  margin-top: auto;
}
.blog-link:hover { text-decoration: underline; }

/* ---- Gallery ---- */
.gallery-section-title {
  font-weight: 700; font-size: 1.25rem;
  color: var(--qc-text-dark); margin-bottom: 16px; padding-bottom: 8px;
  border-bottom: 2px solid #e2e8f0;
}
.gallery-placeholder {
  background: rgba(139,92,246,0.06); border-radius: var(--qc-radius);
  border: 2px dashed var(--qc-purple); padding: 40px 20px;
  text-align: center; color: var(--qc-purple); font-size: 0.92rem;
}
.gallery-placeholder .gallery-icon { font-size: 2.5rem; margin-bottom: 10px; }

/* ============================================
   RESPONSIVE
   ============================================ */

/* Tablet (900px) */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-text { padding-bottom: 24px; text-align: center; }
  .hero-text p { margin-left: auto; margin-right: auto; }
  .hero-text h1 { font-size: 34px; }
  .hero-btns { justify-content: center; }
  .hero-badge { margin-left: auto; margin-right: auto; }
  .media-grid { max-width: 500px; margin: 0 auto; padding-bottom: 40px; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .who-grid, .teach-grid { grid-template-columns: 1fr 1fr; }
  .test-grid { grid-template-columns: 1fr; }
  .mission-statement { padding: 24px 28px; }
  .story-grid { grid-template-columns: 1fr; }
  .impact-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: 1fr 1fr; }
  .teacher-grid { grid-template-columns: repeat(2, 1fr); }
  .partner-grid { grid-template-columns: 1fr; }
  .connect-split { grid-template-columns: 1fr; }
}

/* Mobile (600px) */
@media (max-width: 600px) {
  .hero-text h1 { font-size: 28px; letter-spacing: -0.3px; }
  .hero-text p { font-size: 15px; }
  .section-header h2 { font-size: 26px; }
  .footer-cta h2 { font-size: 26px; }

  .hero { padding: 48px 16px 0; }
  .hero-btns { flex-direction: column; align-items: center; gap: 10px; }
  .hero-btns a { width: 100%; text-align: center; justify-content: center; }

  .media-grid { grid-template-columns: 1fr; gap: 8px; max-width: 100%; }
  .media-slot-carousel { grid-row: auto; min-height: 220px; }
  .media-slot-video, .media-slot-static { min-height: 140px; }

  .ticker { padding: 6px 0; }
  .ticker-item { padding: 0 18px; font-size: 12px; }

  .donate-banner { padding: 14px 16px; }
  .donate-banner-inner { flex-direction: column; gap: 10px; text-align: center; }
  .donate-banner-text { font-size: 14px; }
  .donate-banner-inner a { width: 100%; text-align: center; justify-content: center; }

  .stats-section { padding: 32px 16px; }
  .stats-inner { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat-card { padding: 18px 10px; }
  .stat-card .stat-num { font-size: 24px; }

  .who-grid, .teach-grid { grid-template-columns: 1fr; }
  .who-card { padding: 22px 20px; }
  .teach-card-body { padding: 16px 18px; }

  .mission-statement { padding: 20px 20px; margin: -12px auto 36px; }
  .mission-statement p { font-size: 14px; }

  .section { padding: 56px 0; }
  .section-header { margin-bottom: 32px; }
  .container { padding: 0 16px; }

  .donate-section { padding: 48px 16px; }
  .donate-section h2 { font-size: 24px; }
  .donate-section p { font-size: 14px; }

  .test-grid { grid-template-columns: 1fr; }
  .test-featured { padding: 28px 24px; }
  .test-featured blockquote { font-size: 16px; }
  .test-featured .qm { font-size: 40px; }

  .recog-row { gap: 20px; flex-direction: column; align-items: center; }

  .footer-cta { padding: 56px 16px; }
  .footer-cta-btns { flex-direction: column; align-items: center; gap: 10px; }
  .footer-cta-btns a { width: 100%; max-width: 300px; text-align: center; justify-content: center; }

  .wave-divider { height: 36px; }
  .wave-divider svg { height: 36px; }

  .floating-icons .fi { font-size: 20px !important; }

  .page-hero h1 { font-size: 28px; }
  .section-title { font-size: 24px; }
  .impact-grid { grid-template-columns: 1fr 1fr; }
  .team-grid, .teacher-grid { grid-template-columns: 1fr; }
  .loc-grid { grid-template-columns: 1fr; }
  .section-nav a { padding: 12px 14px; font-size: 13px; }
  .about-section { padding: 48px 0; }
  .connect-box { padding: 40px 24px; }
  .vision-block { padding: 28px 24px; }

  /* Legacy responsive */
  .card-grid { grid-template-columns: 1fr; }
}
