/* ============================================================
   Books & Beyond v2.0 — Main Public Stylesheet
   FC-001 — main.css
   Replaces v1 style.css. All colors via var(--bb-*).
   Load order in base.html: variables.css → Bootstrap 5 → main.css
   ============================================================ */

/* === GLOBAL BASE ============================================ */
html, body {
  height: 100%;
  margin: 0;
  font-family: var(--bb-font-body);
  color: var(--bb-text);
  background-color: var(--bb-bg);
  font-size: 1.2rem;
  overflow-x: hidden;
}

body {
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
  overflow-x: hidden;
}

iframe {
  border-radius: 10px;
}

/* === FORM NORMALIZATION =====================================
   The body font-size is 1.2rem. Bootstrap form controls use rem
   units so inputs render at 1.2rem by default, which is fine.
   The problem is Bootstrap's .form-check-input uses 1em × 1em
   for checkbox/radio size — with a parent font-size of 1.2rem the
   boxes become visually oversized. Pin them to an absolute size.
   Also normalise label and hint font-sizes so every form on every
   page looks the same.
   ============================================================ */
.form-label       { font-size: 1rem; font-weight: 600; }
.form-control,
.form-select      { font-size: 1rem; }
.form-text        { font-size: 0.85rem; }
.form-check-label { font-size: 1rem; cursor: pointer; }
.form-check-input { width: 1rem; height: 1rem; margin-top: 0.15rem; flex-shrink: 0; cursor: pointer; }
.invalid-feedback { font-size: 0.85rem; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--bb-font-display);
}

/* === NAVBAR ================================================= */
/*
  Fixed navbar — solid white by default on all pages.
  JS in base.html adds .transparent-hero on pages with a hero section,
  and removes it when the user scrolls past 50px.
  Non-hero pages: navbar stays solid from first paint (no JS needed).
*/
#main-navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1050;
  background-color: rgba(255, 255, 255, 0.97);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: background-color 0.35s ease, box-shadow 0.35s ease;
  animation: none;
}

/* ── Transparent state — only on hero pages before scroll ── */
#main-navbar.transparent-hero {
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

/* ── Navbar links — white when transparent over dark hero ── */
#main-navbar.transparent-hero .nav-link,
#main-navbar.transparent-hero .navbar-brand .brand-text,
#main-navbar.transparent-hero .navbar-brand {
  color: white !important;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

#main-navbar.transparent-hero .nav-link:hover {
  color: var(--bb-accent) !important;
}

#main-navbar.transparent-hero .navbar-toggler {
  border-color: rgba(255, 255, 255, 0.75);
}

/* ── Navbar links — dark text when solid (default) ── */
#main-navbar .nav-link {
  color: var(--bb-text) !important;
  text-shadow: none;
}

#main-navbar .nav-link:hover {
  color: var(--bb-secondary) !important;
}

#main-navbar .navbar-brand .brand-text {
  color: var(--bb-text) !important;
  text-shadow: none;
}

.navbar-brand img {
  max-height: 56px;
  width: auto;
}

/* No background on the logo image itself */
.navbar-brand img.brand-logo {
  background: transparent;
  border-radius: 0;
}

.nav-link {
  font-weight: 600;
  font-size: 1rem;
  transition: color 0.25s ease, transform 0.25s ease;
  padding-left: 0.75rem !important;
  padding-right: 0.75rem !important;
}

.nav-link:hover {
  transform: translateY(-2px);
}

/* Active nav link underline */
.nav-link.active {
  border-bottom: 2px solid var(--bb-accent);
  padding-bottom: calc(0.5rem - 2px) !important;
}

/* ── Navbar Login button ── */
.btn-nav-login {
  border: 2px solid currentColor;
  border-radius: 50px;
  padding: 6px 18px;
  font-weight: 700;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.3s ease;
  text-decoration: none;
  line-height: 1.2;
}

#main-navbar.transparent-hero .btn-nav-login {
  color: white;
  border-color: rgba(255, 255, 255, 0.8);
}

#main-navbar.transparent-hero .btn-nav-login:hover {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border-color: white;
}

#main-navbar .btn-nav-login {
  color: var(--bb-text);
  border-color: var(--bb-text);
}

#main-navbar .btn-nav-login:hover {
  background: var(--bb-text);
  color: white;
}

/* ── Navbar Donate button ── */
.navbar .btn-donate {
  background-color: var(--bb-accent);
  color: var(--bb-text);
  font-weight: 700;
  border-radius: 50px;
  padding: 8px 20px;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1.2;
  animation: pulse 2s infinite;
  box-shadow: 0 4px 10px rgba(244, 208, 63, 0.4);
  transition: all 0.3s ease;
  text-decoration: none;
}

.navbar .btn-donate:hover {
  background-color: var(--bb-accent-hover);
  transform: scale(1.05);
  color: var(--bb-text);
}

/* ── Mobile: Login + Donate buttons need vertical gap when nav collapses ── */
@media (max-width: 991.98px) {
  #main-navbar .nav-item:has(.btn-nav-login) {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--bb-border-light);
  }
  #main-navbar .nav-item:has(.btn-donate) {
    margin-top: 0.5rem;
    padding-bottom: 0.5rem;
  }
}

/* ── Body offset for fixed navbar ── */
/*
  Hero pages: hero section fills viewport top, going behind the
  transparent navbar. Handled via .hero-homepage margin-top: -76px.
  Non-hero pages: body gets padding-top equal to navbar height.
  JS adds .page-no-hero to <body> on non-hero pages.
*/
body {
  padding-top: 0;   /* heroes manage their own spacing */
}

body.page-no-hero {
  padding-top: var(--bb-navbar-height);
}

/* === DROPDOWN MENU ========================================= */
.dropdown-menu {
  background-color: var(--bb-surface-white);
  border-radius: 10px;
  border: 1px solid var(--bb-border-light);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  padding: 0.5rem 0;
  margin-top: 0.5rem;
}

.dropdown-item {
  padding: 10px 18px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--bb-text);
  background-color: transparent;
  transition: all 0.2s ease;
}

.dropdown-item:hover {
  background-color: var(--bb-dropdown-hover);
  color: var(--bb-secondary);
  transform: translateX(4px);
}

/* === NAVBAR BRAND =========================================== */
.brand-flex-fix {
  display: flex;
  align-items: center;
  white-space: nowrap;
  overflow: hidden;
  flex-shrink: 1;
}

.brand-logo {
  height: 60px;
  width: auto;
  flex-shrink: 0;
}

.brand-text {
  font-family: var(--bb-font-display);
  font-weight: 700;
  font-size: 1.7rem;
  color: var(--bb-text-dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 576px) {
  .brand-logo {
    height: 45px !important;
  }
  .brand-text {
    font-size: 1.2rem !important;
  }
  .navbar-toggler {
    margin-left: auto;
  }
  .navbar {
    padding-top: 0.2rem;
    padding-bottom: 0.2rem;
  }
}

/* === HERO SECTION BASE ====================================== */
/*
  All hero sections use margin-top: calc(-1 * var(--bb-navbar-height))
  to pull up behind the fixed transparent navbar.
  Text is pinned to the BOTTOM of the hero so the background image
  is clearly visible — matching the original site pattern.
*/
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;   /* text at BOTTOM, not centre */
  align-items: stretch;
  padding-bottom: 4rem;
  min-height: 90vh;
  color: white;
  overflow: hidden;
  /* Pull up behind fixed navbar */
  margin-top: calc(-1 * var(--bb-navbar-height));
}

.hero .container {
  position: relative;
  z-index: 2;
  text-align: center;
}

.hero .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.70) 15%,
    rgba(0, 0, 0, 0.25) 55%,
    rgba(0, 0, 0, 0.05) 100%
  );
  z-index: 1;
}

.hero h1 {
  font-family: var(--bb-font-display);
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 800;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}

.hero p {
  font-size: 1.3rem;
  margin-top: 15px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.hero p.lead {
  font-size: 1.3rem;
  font-weight: 500;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
}

.z-2 {
  z-index: 2;
  position: relative;
}

/* === HERO: PAGE VARIANTS ===================================
   All variants inherit min-height: 90vh from the base .hero rule.
   Variants only define their background image (and overflow where needed).
   ============================================================ */
.hero-index {
  background: url("/static/images/imgnew/index_hero_page.jpeg") center center/cover no-repeat;
}

.hero-about {
  background: url("/static/images/v2/kathonzweni/bb_surina_keisha_launch_day.jpeg") center center/cover no-repeat;
  overflow-x: hidden;
}

.hero-contact {
  background: url("/static/images/v2/kathonzweni/bb_surina_explaining.jpeg") center center/cover no-repeat;
}

.hero-donate {
  background: url("/static/images/img_for_b&b/Library pic 2g (1).png") center center/cover no-repeat;
}

.hero-launch {
  background: url("/static/images/v2/kathonzweni/bb_surina_keisha_launch_day.jpeg") center top/cover no-repeat;
}

.hero-current_Campaign {
  background: url("/static/images/imgnew/CURRENTcampaings.jpeg") center center/cover no-repeat;
}

/* === SECTIONS =============================================== */
.section {
  padding: 80px 20px;
}

.section-light {
  background-color: var(--bb-surface);
}

.section-dark {
  background-color: var(--bb-section-dark);
  color: white;
}

.section h2 {
  font-family: var(--bb-font-display);
  font-size: 2.5rem;
  margin-bottom: 40px;
}

.section p {
  font-size: 1.3rem;
  line-height: 1.8;
}

.section img.img-fluid {
  max-height: 420px;
  object-fit: cover;
}

/* === VIDEO SECTION ========================================== */
.section-dark .ratio iframe {
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
}

/* === MISSION & VISION ======================================= */
.mission-vision h2 {
  color: var(--bb-secondary);
}

.mission-vision p {
  font-size: 1.3rem;
}

/* === LIBRARY HIGHLIGHT ====================================== */
.library-highlight {
  background: linear-gradient(to right, var(--bb-library-from), var(--bb-library-to));
  color: #fff;
}

.library-highlight ul {
  padding-left: 0;
}

.library-highlight li {
  list-style: none;
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.library-highlight i {
  margin-right: 10px;
}

/* === MANAGEMENT SECTION ===================================== */
.bg-management {
  background-color: var(--bb-management-bg);
}

.management-card {
  border: 1px solid var(--bb-border-light);
  background-color: var(--bb-surface-warm);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease;
}

.management-card:hover {
  transform: translateY(-4px);
}

.management-card h4 {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

.management-card p,
.management-card li {
  font-size: 1.15rem;
}

.management-card ul {
  padding-left: 1.2rem;
}

/* === MILESTONES ============================================= */
.milestone-card {
  background-color: var(--bb-surface-warm);
  border: 1px solid var(--bb-border);
  border-radius: 12px;
  padding: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.milestone-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
}

.milestone-card h4 {
  font-size: 1.3rem;
  color: var(--bb-secondary);
}

.milestone-card p,
.milestone-card li {
  font-size: 1.1rem;
}

.setup-task-card {
  border: 1px solid var(--bb-border);
  border-radius: 10px;
  background-color: var(--bb-surface-warm);
  transition: all 0.2s ease;
}

.setup-task-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.04);
}

.setup-task-card h5 {
  font-size: 1.2rem;
  color: var(--bb-secondary);
}

.setup-task-card p {
  font-size: 1.05rem;
  color: var(--bb-text);
}

/* === STATS / CARDS ========================================= */
.card {
  border-radius: 12px;
  text-align: center;
}

.card-body i {
  font-size: 2rem;
  margin-bottom: 0.8rem;
}

.card-link {
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-link:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.card-link .learn-more {
  font-size: 0.9rem;
  color: var(--bb-text-muted);
  transition: color 0.3s;
}

.card-link:hover .learn-more {
  color: #000;
}

.form-card {
  border-radius: 12px;
  background-color: var(--bb-surface-warm);
  border: 1px solid var(--bb-border);
}

/* === SECTION HEADING ACCENT ================================= */
.section-heading {
  font-family: var(--bb-font-display);
  font-weight: 700;
  color: var(--bb-text);
  border-left: 4px solid var(--bb-secondary);
  padding-left: 10px;
}

.form-section {
  background: var(--bb-bg);
  border-left: 4px solid var(--bb-accent);
}

/* === PHASE CARDS ============================================ */
.phase-card {
  border: 1px solid var(--bb-border);
  border-radius: 12px;
  background-color: var(--bb-surface-warm);
  transition: transform 0.2s ease;
}

.phase-card:hover {
  transform: translateY(-4px);
}

.phase-card .card-body {
  padding: 25px;
}

.phase-card h5 {
  font-size: 1.4rem;
}

.phase-card ul li {
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

/* === QUOTE SECTION ========================================== */
.quote-section {
  background-color: var(--bb-quote-bg);
  font-style: italic;
  padding: 60px 20px;
  color: var(--bb-quote-text);
}

.quote-section blockquote {
  font-size: 1.5rem;
  max-width: 900px;
  margin: auto;
  position: relative;
}

.quote-section blockquote::before {
  content: open-quote;
  font-size: 3rem;
  position: absolute;
  left: -20px;
  top: -10px;
}

/* === CTA BUTTON ============================================= */
.btn-cta {
  background-color: var(--bb-accent);
  color: var(--bb-text);
  padding: 14px 28px;
  border-radius: 30px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  animation: pulse 2s infinite;
  text-decoration: none;
  /* Ensure text is vertically centred in all contexts */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  line-height: 1.2;
  border: none;
}

.btn-cta:hover {
  background-color: var(--bb-accent-hover);
  transform: scale(1.05);
  color: var(--bb-text);
}

/* === FOUNDERS =============================================== */
.founders {
  text-align: center;
  background-color: var(--bb-founders-bg);
}

.founder-img {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 15px;
}

.founders h3 {
  font-size: 1.6rem;
  margin-top: 10px;
}

/* === FOOTER ================================================= */
/*
  Four-column polished footer:
  Col 1: Brand logo + tagline + social links
  Col 2: Explore links
  Col 3: Get Involved links
  Col 4: Newsletter signup block
  Bottom bar: copyright
*/
.footer {
  background-color: var(--bb-section-dark);
  color: var(--bb-text-white);
  padding: 0;
}

/* Gradient accent stripe at very top of footer */
.footer-accent-stripe {
  height: 4px;
  background: linear-gradient(90deg, var(--bb-primary), var(--bb-accent), var(--bb-secondary));
}

/* Impact numbers band */
.footer-impact-band {
  padding: 1.75rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-impact-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.75rem;
  flex-wrap: wrap;
}

.footer-impact-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
}

.footer-impact-num {
  font-family: var(--bb-font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--bb-accent);
  line-height: 1;
}

.footer-impact-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.45);
}

.footer-impact-sep {
  color: rgba(255, 255, 255, 0.18);
  font-size: 1.5rem;
  line-height: 1;
  align-self: center;
}

.footer-top {
  padding: 3.5rem 0 2.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer a {
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  transition: color 0.25s ease;
}

.footer a:hover {
  color: var(--bb-accent);
}

/* Brand column */
.footer-logo {
  max-height: 52px;
  width: auto;
  margin-bottom: 0.75rem;
}

.footer-heading {
  font-family: var(--bb-font-display);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--bb-accent);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

/* Brand column tagline paragraph */
.footer-tagline-text {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.6;
  margin-top: 0.5rem;
  margin-bottom: 0;
}

/* Link lists */
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  font-size: 0.9rem;
}

/* Social icons */
.footer-socials {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
  align-items: center;
}

.footer-social-link {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.65) !important;
  transition: all 0.25s ease;
}

.footer-social-link:hover {
  background: var(--bb-accent);
  border-color: var(--bb-accent);
  color: var(--bb-text) !important;
  transform: translateY(-2px);
}

/* Newsletter band — full-width row above sitemap columns */
.footer-newsletter-band {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 2rem 0;
}

.footer-newsletter-inner {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  flex-wrap: wrap;
}

.footer-newsletter-text {
  flex: 1 1 280px;
}

.footer-newsletter-form-wrap {
  flex: 0 1 400px;
}

.footer-newsletter-title {
  font-family: var(--bb-font-display);
  font-weight: 700;
  color: white;
  font-size: 1.05rem;
  margin-bottom: 0.25rem;
}

.footer-newsletter-desc {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 0;
}

.footer-newsletter-form {
  display: flex;
  gap: 0;
  border-radius: var(--bb-radius);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-newsletter-email {
  flex: 1;
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: white;
  padding: 11px 14px;
  font-size: 0.875rem;
  outline: none;
  min-width: 0;
}

.footer-newsletter-email::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.footer-newsletter-email:focus {
  background: rgba(255, 255, 255, 0.12);
}

.footer-newsletter-submit {
  background: var(--bb-accent);
  border: none;
  color: var(--bb-text);
  padding: 11px 18px;
  font-weight: 700;
  font-size: 0.875rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: background 0.25s ease;
  line-height: 1;
  white-space: nowrap;
}

.footer-newsletter-submit:hover {
  background: var(--bb-accent-hover);
}

.footer-newsletter-note {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.35);
  margin-top: 0.5rem;
  margin-bottom: 0;
}

/* Founders attribution line in brand column */
.footer-founders {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 0.4rem;
  margin-bottom: 0;
  font-style: italic;
}

/* Bottom bar */
.footer-bottom {
  padding: 1.5rem 0 1.25rem;
  text-align: center;
}

.footer-love {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.3);
  margin: 0 0 0.4rem;
  font-style: italic;
  letter-spacing: 0.03em;
}

.footer-copyright {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.4);
  margin: 0;
}

/* === ANIMATIONS ============================================= */
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(244, 208, 63, 0.7); }
  70%  { box-shadow: 0 0 0 12px rgba(244, 208, 63, 0); }
  100% { box-shadow: 0 0 0 0 rgba(244, 208, 63, 0); }
}

@keyframes fadeInDown {
  0%   { opacity: 0; transform: translateY(-10px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* === RESPONSIVE ============================================= */

/*
  Hero mobile strategy — mirrors the homepage hero exactly
  ─────────────────────────────────────────────────────────
  The homepage hero is the reference design. It works because:
    - min-height: 100svh  → fills the entire visible viewport on any phone
                            (svh = small viewport height: excludes browser
                             address/navigation bars so content is never
                             hidden behind them)
    - justify-content: flex-end  → content pins to the BOTTOM of the hero,
                            same dramatic layout as desktop — background image
                            fills the full viewport, dark gradient covers the
                            bottom where the text lives
    - overflow: hidden   → background stays cleanly contained
    - padding-bottom     → breathing room between text and screen edge

  All .hero variants get the same treatment at each breakpoint.

  At 768px  → lead paragraph clamped to 2 lines (keeps context, saves space)
  At 480px  → lead paragraph hidden (badge + h1 + CTAs fills the viewport
              cleanly; lead is the first body copy the user reads when they
              scroll past the hero)
*/

@media (max-width: 991px) {
  /* Tablet — hero shorter but still immersive */
  .hero {
    min-height: 75vh;
    justify-content: flex-end;
    overflow: hidden;
    padding-bottom: 3rem;
  }
  .hero h1     { font-size: clamp(1.7rem, 3.5vw, 2.4rem); line-height: 1.2; }
  .hero p.lead { font-size: 1rem; }
}

@media (max-width: 768px) {
  /* Mobile phones — near-full viewport, lead clamped to 2 lines */
  .hero {
    min-height: 90vh;
    min-height: 90svh;
    padding-bottom: 2.5rem;
  }
  .hero h1     { font-size: 1.55rem; line-height: 1.2; }
  .hero p.lead {
    font-size: 0.95rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-clamp: 2;
    overflow: hidden;
  }
  .hero-badge  { font-size: 0.6rem; letter-spacing: 1.5px; padding: 0.25rem 0.7rem; margin-bottom: 0.75rem; }
  .hero-cta-group {
    flex-direction: column;
    align-items: center;
    gap: 0.55rem;
    margin-top: 0.75rem;
  }
  .btn-cta,
  .btn-hero-outline { width: 100%; max-width: 260px; text-align: center; }

  .section h2         { font-size: 2rem; }
  .section p,
  .library-highlight li,
  .phase-card ul li   { font-size: 1.1rem; }
  .btn-cta            { padding: 12px 24px; font-size: 1rem; }
  .outcome-row h4     { font-size: 1.3rem; }
  .outcome-row p      { font-size: 1.1rem; }
  .outcome-row img    { margin-bottom: 1rem; }
  .bg-management .card { flex-direction: column !important; text-align: center; }
  .bg-management .card i { margin-bottom: 1rem; }
  .bg-management .img-fluid { max-height: 220px; }
}

@media (max-width: 480px) {
  /* Small phones — full viewport height, lead hidden */
  .hero {
    min-height: 100vh;
    min-height: 100svh;
    padding-bottom: 2rem;
  }
  .hero h1     { font-size: 1.35rem; line-height: 1.2; }
  .hero p.lead { display: none; }
  .hero-cta-group { margin-top: 1rem; }
  .btn-cta,
  .btn-hero-outline { max-width: 100%; font-size: 0.9rem; padding: 10px 20px; }
}

/* === HOVER OVERLAY CARDS (Before/After) ==================== */
.hover-card {
  position: relative;
  cursor: pointer;
  overflow: hidden;
  border-radius: 12px;
}

.hover-card img {
  transition: transform 0.4s ease, filter 0.4s ease;
  width: 100%;
  display: block;
}

.hover-card .hover-overlay {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  opacity: 0;
  transition: opacity 0.4s ease;
  font-size: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  justify-content: center;
  align-items: center;
  display: flex;
}

.hover-card:hover img {
  filter: brightness(70%);
  transform: scale(1.05);
}

.hover-card:hover .hover-overlay {
  opacity: 0.9;
}

/* === IMAGE COLLAGE ========================================= */
.section.bg-light .row.g-3 img {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.section.bg-light .row.g-3 img:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

/* === TRANSFORMATION CARDS (Equal Height) =================== */
.transform-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: 0.3s ease;
  background: var(--bb-surface-white);
  border-radius: 20px;
}

.transform-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.transform-img-wrapper.equal-img {
  width: 100%;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--bb-bg);
}

.transform-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.5s ease;
}

.transform-card:hover .transform-img {
  transform: scale(1.08);
}

.equal-text {
  flex-grow: 1;
  display: flex;
  align-items: center;
}

.equal-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

@media (max-width: 767px) {
  .transform-img-wrapper.equal-img {
    aspect-ratio: 16/12;
  }
}

/* === HORIZONTAL SCROLL PREVENTION ========================== */
html, body {
  overflow-x: hidden;
}

.alert {
  box-sizing: border-box;
}

/* === COLLAGE IMAGES ======================================== */
.collage-img-big {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.collage-img {
  width: 100%;
  max-height: 200px;
  object-fit: cover;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.collage-img-big:hover,
.collage-img:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
  .collage-img-big { max-height: 300px; }
  .collage-img     { max-height: 150px; }
}

@media (max-width: 576px) {
  .collage-img-big { max-height: 250px; }
  .collage-img     { max-height: 120px; }
}

/* === CAMPAIGN IMAGES ======================================= */
.campaign-img-wrapper {
  overflow: hidden;
  border-radius: 12px;
}

.campaign-img {
  width: 100%;
  height: auto;
  object-fit: cover;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.campaign-img:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

@media (max-width: 992px) {
  .campaign-img-wrapper { width: 100%; }
}

@media (max-width: 576px) {
  .campaign-img { max-height: 250px; }
}

/* === ACCENT LINE ============================================ */
.accent-line {
  width: 60px;
  height: 4px;
  background-color: var(--bb-secondary);
  margin-bottom: 20px;
  border-radius: 2px;
}

/* ============================================================
   BEFORE / AFTER IMAGE COMPARISON SLIDER
   Used by macros/ui.html → before_after_slider()
   ============================================================ */
.bb-slider {
  position: relative;
  overflow: hidden;
  border-radius: var(--bb-radius);
  user-select: none;
  --split: 50%;
}

.bb-slider img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bb-slider-before {
  display: block;
  width: 100%;
}

.bb-slider-after {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  clip-path: inset(0 0 0 var(--split));
}

.bb-slider-handle {
  position: absolute;
  top: 0;
  left: var(--split);
  transform: translateX(-50%);
  width: 3px;
  height: 100%;
  background: white;
  pointer-events: none;
  z-index: 10;
}

.bb-slider-handle::before,
.bb-slider-handle::after {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 36px;
  height: 36px;
  background: white;
  border-radius: 50%;
  top: 50%;
  margin-top: -18px;
  box-shadow: var(--bb-shadow);
}

.bb-slider-input {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: ew-resize;
  margin: 0;
  z-index: 20;
}

.bb-slider-label {
  position: absolute;
  top: 12px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: white;
  background: rgba(0, 0, 0, 0.45);
  padding: 2px 8px;
  border-radius: 4px;
  z-index: 5;
}

.bb-slider-label.before { left: 12px; }
.bb-slider-label.after  { right: 12px; }

/* ============================================================
   STATUS BADGE UTILITIES
   ============================================================ */
.badge-status-waitlist       { background-color: var(--status-waitlist);       color: white; }
.badge-status-planning       { background-color: var(--status-planning);       color: white; }
.badge-status-fundraising    { background-color: var(--status-fundraising);    color: white; }
.badge-status-book-drive     { background-color: var(--status-book-drive);     color: white; }
.badge-status-infrastructure { background-color: var(--status-infrastructure); color: white; }
.badge-status-active         { background-color: var(--status-active);         color: white; }
.badge-status-completed      { background-color: var(--status-completed);      color: white; }

/* ============================================================
   ANIMATED STAT COUNTER CARDS
   ============================================================ */
.stat-counter-card {
  background: var(--bb-surface-warm);
  border: 1px solid var(--bb-border);
  border-radius: var(--bb-radius);
  padding: 1.5rem;
  text-align: center;
  box-shadow: var(--bb-shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-counter-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--bb-shadow-lg);
}

.stat-counter-card .counter-value {
  font-family: var(--bb-font-display);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--bb-secondary);
  line-height: 1;
}

.stat-counter-card .counter-icon {
  font-size: 2rem;
  color: var(--bb-primary);
  margin-bottom: 0.5rem;
}

.stat-counter-card .counter-label {
  font-size: 0.95rem;
  color: var(--bb-text-muted);
  margin-top: 0.25rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ============================================================
   LAYOUT FIXES (replaces base.html <style> block)
   ============================================================ */
main,
#dashboard-content {
  flex-grow: 1;
  padding-top: 0 !important;
  margin-top: 0 !important;
}

.navbar + .container,
.navbar + main {
  margin-top: 0 !important;
}

/* ============================================================
   ADMIN SIDEBAR
   ============================================================ */
.sidebar-logo {
  max-height: 100px;
}

.sidebar-mobile-logo {
  height: 80px;
}

/* ============================================================
   FOOTER UTILITIES
   ============================================================ */
.footer-brand-title {
  font-family: var(--bb-font-display);
}

.footer-tagline {
  color: rgba(255, 255, 255, 0.75);
}

.footer-quick-links {
  font-size: 0.95rem;
}

.footer-newsletter-blurb {
  color: rgba(255, 255, 255, 0.75);
}

.footer-newsletter-input {
  max-width: 200px;
}

.footer-mission {
  max-width: 900px;
  color: rgba(255, 255, 255, 0.5);
}

.footer-divider {
  border-color: rgba(255, 255, 255, 0.15);
}

.footer-login-link {
  font-size: 0.65rem;
  opacity: 0.4;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.5);
}

.footer-login-link:hover {
  opacity: 0.7;
  color: rgba(255, 255, 255, 0.7);
}

.footer-copyright {
  color: rgba(255, 255, 255, 0.5);
}

.footer-credit {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.3);
  margin-top: 0.3rem;
}

/* Sitemap page */
.sitemap-section-heading {
  font-family: var(--bb-font-display);
  font-weight: 700;
  color: var(--bb-secondary);
  font-size: 1rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid var(--bb-primary);
}

.sitemap-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sitemap-links li {
  margin-bottom: 0.45rem;
}

.sitemap-links a {
  color: var(--bb-text);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.sitemap-links a:hover {
  color: var(--bb-secondary);
}

.footer-credit a {
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
}

.footer-credit a:hover {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: underline;
}

/* ============================================================
   AUTH PAGE BANNER + CARDS
   Shared by login, password-reset, and similar short auth pages.
   ============================================================ */
.auth-page-banner {
  position: relative;
  min-height: 55vh;
  background: url("/static/images/imgnew/index_hero_page.jpeg") center 30% / cover no-repeat;
  overflow: hidden;
  display: flex;
  align-items: center;
  /* Pull behind fixed navbar */
  margin-top: calc(-1 * var(--bb-navbar-height));
  padding-top: var(--bb-navbar-height);
}

.auth-page-banner .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.70) 20%,
    rgba(0, 0, 0, 0.35) 60%,
    rgba(0, 0, 0, 0.15) 100%
  );
  z-index: 1;
}

.auth-card-header {
  background: var(--bb-secondary);
  color: #fff;
}

/* Primary branded button matching the navbar colour */
.btn-bb-primary {
  background-color: var(--bb-primary);
  border-color: var(--bb-primary);
  color: #fff;
}

.btn-bb-primary:hover,
.btn-bb-primary:focus {
  background-color: var(--bb-secondary);
  border-color: var(--bb-secondary);
  color: #fff;
}

/* ============================================================
   NARROW CARD (admin forms)
   ============================================================ */
.card-narrow {
  max-width: 540px;
}

/* ============================================================
   GET INVOLVED — CAROUSEL HERO
   Pulls behind fixed navbar; content at bottom of hero.
   ============================================================ */
.hero-carousel {
  min-height: 90vh;
  overflow: hidden;
  margin-top: calc(-1 * var(--bb-navbar-height));
}

.hero-carousel-img {
  object-fit: cover;
  min-height: 90vh;
}

.hero-gradient {
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.70) 20%,
    rgba(0, 0, 0, 0.20) 60%,
    rgba(0, 0, 0, 0.0) 100%
  );
  z-index: 1;
}

.hero-blockquote {
  max-width: 700px;
  margin: 0 auto;
  padding-bottom: 3rem;
}

/* ============================================================
   CARD IMAGE — FIXED HEIGHT WRAPPER
   ============================================================ */
.card-img-fixed {
  height: 220px;
  overflow: hidden;
}

.card-img-fixed img {
  object-fit: cover;
  height: 100%;
}

/* ============================================================
   FC-002 — HOMEPAGE REDESIGN
   Sections: Hero slideshow, Stats bar, HGM, Launch, News,
             Phase 2, Charts, Partners, Testimonials, CTA
   ============================================================ */

/* === HERO SLIDESHOW ======================================== */
/*
  Three background images cycle automatically using a CSS
  animation. Text is pinned to the BOTTOM so the slideshow
  images are fully visible. Margin-top pulls behind fixed navbar.
*/
.hero-homepage {
  position: relative;
  min-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-end;   /* pin content to bottom */
  margin-top: calc(-1 * var(--bb-navbar-height));
  /* Fallback for when video is blocked/slow on mobile */
  background: url('/static/images/v2/kathonzweni/bb_launch_day.jpeg') center/cover no-repeat;
}

.hero-video-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}

.hero-homepage .hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.75) 20%,
    rgba(0, 0, 0, 0.3)  60%,
    rgba(0, 0, 0, 0.1)  100%
  );
  z-index: 1;
}

.hero-homepage .hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: white;
  padding: 0 1rem 4rem;   /* bottom padding gives breathing room from edge */
  width: 100%;
}

/* Hero badge — gold pill used inside every hero section */
.hero .hero-badge,
.hero-homepage .hero-badge {
  display: inline-block;
  background: var(--bb-accent);
  color: var(--bb-text);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 6px 18px;
  border-radius: 50px;
  margin-bottom: 1.25rem;
  letter-spacing: 0.5px;
}

.hero-homepage h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.15;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}

.hero-homepage .hero-sub {
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  color: rgba(255, 255, 255, 0.88);
  max-width: 680px;
  margin: 1rem auto 2rem;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.btn-hero-outline {
  border: 2px solid rgba(255, 255, 255, 0.8);
  color: white;
  background: transparent;
  border-radius: 50px;
  padding: 10px 22px;
  font-weight: 600;
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn-hero-outline:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: white;
  color: white;
  transform: translateY(-2px);
}

/* === STATS BAR ============================================= */
.stats-bar {
  background: var(--bb-section-white);
  border-top: 4px solid var(--bb-accent);
  border-bottom: 1px solid var(--bb-border-light);
  padding: 2.5rem 0;
}

/* === HGM COMPLETION SECTION ================================ */
/* Cream — warm, intimate feeling for the completed project */
.hgm-section {
  background: var(--bb-bg);
  padding: 5rem 0;
}

.hgm-checklist {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0;
}

.hgm-checklist li {
  padding: 0.45rem 0;
  font-size: 1.05rem;
  color: var(--bb-text);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hgm-checklist li::before {
  content: '✅';
  font-size: 1rem;
  flex-shrink: 0;
}

/* === LAUNCH EVENT MEDIA ==================================== */
.launch-section {
  background: var(--bb-section-dark);
  color: white;
  padding: 5rem 0;
}

.launch-section h2,
.launch-section h3 {
  color: white;
}

/* CSS columns masonry photo grid */
.photo-masonry {
  column-count: 3;
  column-gap: 0.75rem;
}

.photo-masonry img {
  width: 100%;
  margin-bottom: 0.75rem;
  border-radius: var(--bb-radius);
  display: block;
  break-inside: avoid;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.photo-masonry img:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

@media (max-width: 768px) {
  .photo-masonry { column-count: 2; }
}

@media (max-width: 480px) {
  .photo-masonry { column-count: 1; }
}

/* Speech cards */
.speech-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--bb-radius);
  padding: 1.5rem;
  transition: background 0.3s ease;
}

.speech-card:hover {
  background: rgba(255, 255, 255, 0.12);
}

.speech-card img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--bb-accent);
  margin-bottom: 1rem;
}

.speech-card-name {
  font-family: var(--bb-font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: white;
}

.speech-card-role {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 0.75rem;
}

.speech-transcript {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.65;
  max-height: 200px;
  overflow-y: auto;
}

.btn-speech {
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: white;
  background: transparent;
  border-radius: 50px;
  padding: 6px 16px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.25s ease;
}

.btn-speech:hover {
  background: rgba(255, 255, 255, 0.15);
  color: white;
}

/* Speech placeholder avatar — replaces inline style on founder icons */
.speech-avatar-placeholder {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--bb-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  color: white;
  font-size: 1.5rem;
  border: 3px solid var(--bb-accent);
}

/* "Coming soon" label inside speech placeholder card */
.speech-card-pending {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
  text-align: center;
  margin-top: 0.5rem;
}

/* Prominent YouTube CTA button inside speech card */
.btn-speech-yt {
  background: #FF0000;
  color: white;
  border: none;
  border-radius: 50px;
  padding: 10px 20px;
  font-weight: 700;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  transition: background 0.25s ease, transform 0.25s ease;
  line-height: 1.2;
}

.btn-speech-yt:hover {
  background: #CC0000;
  color: white;
  transform: translateY(-2px);
}

/* === NEWSPAPER FEATURE ===================================== */
/* Pure white — visually distinct from the cream HGM section above */
.news-section {
  background: var(--bb-surface-white);
  padding: 5rem 0;
}

.news-image-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: var(--bb-radius-lg);
  box-shadow: var(--bb-shadow-lg);
  cursor: zoom-in;
}

.news-image-wrapper img {
  width: 100%;
  transition: transform 0.4s ease;
}

.news-image-wrapper:hover img {
  transform: scale(1.02);
}

.news-quote {
  font-size: 1.3rem;
  font-style: italic;
  color: var(--bb-secondary);
  border-left: 4px solid var(--bb-accent);
  padding-left: 1.25rem;
  margin: 1.5rem 0;
  line-height: 1.6;
}

.news-meta {
  font-size: 0.95rem;
  color: var(--bb-text-muted);
  font-weight: 600;
}

/* === PHASE 2 SCHOOLS ======================================= */
.phase2-section {
  background: var(--bb-surface);
  padding: 5rem 0;
}

/* Roadmap table */
.roadmap-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 0.5rem;
  font-size: 0.95rem;
}

.roadmap-table th {
  font-family: var(--bb-font-display);
  font-weight: 700;
  color: var(--bb-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.8rem;
  padding: 0.5rem 1rem;
  border-bottom: 2px solid var(--bb-border);
}

.roadmap-table td {
  padding: 0.75rem 1rem;
  background: var(--bb-surface-warm);
  vertical-align: middle;
  border-top: 1px solid var(--bb-border-light);
  border-bottom: 1px solid var(--bb-border-light);
}

.roadmap-table td:first-child {
  border-left: 1px solid var(--bb-border-light);
  border-radius: var(--bb-radius) 0 0 var(--bb-radius);
  font-weight: 600;
}

.roadmap-table td:last-child {
  border-right: 1px solid var(--bb-border-light);
  border-radius: 0 var(--bb-radius) var(--bb-radius) 0;
}

/* === CHARTS SECTION ======================================== */
.charts-section {
  background: var(--bb-bg);
  padding: 5rem 0;
}

.chart-card {
  background: var(--bb-surface-warm);
  border: 1px solid var(--bb-border);
  border-radius: var(--bb-radius);
  padding: 1.5rem;
  box-shadow: var(--bb-shadow);
}

.chart-card canvas {
  height: 250px !important;
  max-height: 280px;
}

/* === PARTNERS GRID ========================================= */
/* Pure white — distinct from the cream charts section above it */
.partners-section {
  background: var(--bb-surface-white);
  padding: 5rem 0;
}

.partner-logo-card {
  background: var(--bb-surface-warm);
  border: 1px solid var(--bb-border);
  border-radius: var(--bb-radius);
  padding: 1.25rem 1rem;
  text-align: center;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.partner-logo-card:hover {
  box-shadow: var(--bb-shadow-lg);
  transform: translateY(-3px);
}

.partner-logo-card img {
  max-height: 60px;
  max-width: 140px;
  object-fit: contain;
}

.partner-logo-card .partner-name {
  font-family: var(--bb-font-display);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--bb-text);
}

.partner-logo-card .partner-country {
  font-size: 0.8rem;
  color: var(--bb-text-muted);
}

.partner-logo-card .partner-type-tag {
  font-size: 0.75rem;
  background: var(--bb-primary);
  color: white;
  padding: 2px 10px;
  border-radius: 50px;
  text-transform: capitalize;
}

.partner-placeholder-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--bb-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bb-text-muted);
  font-size: 1.5rem;
}

/* === TESTIMONIALS ========================================== */
/* Light card surface — distinct from the white partners section above */
.testimonials-section {
  background: var(--bb-surface);
  padding: 5rem 0;
}

.testimonial-card {
  background: var(--bb-surface-warm);
  border: 1px solid var(--bb-border);
  border-radius: var(--bb-radius-lg);
  padding: 2rem;
  text-align: center;
  box-shadow: var(--bb-shadow);
}

.testimonial-quote {
  font-size: 1.1rem;
  font-style: italic;
  color: var(--bb-text);
  line-height: 1.75;
  margin-bottom: 1.5rem;
  position: relative;
}

.testimonial-quote::before {
  content: '\201C';
  font-size: 3rem;
  color: var(--bb-primary);
  line-height: 0;
  vertical-align: -0.5em;
  margin-right: 4px;
  font-family: Georgia, serif;
}

.testimonial-photo {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--bb-primary);
  margin: 0 auto 0.75rem;
}

.testimonial-name {
  font-family: var(--bb-font-display);
  font-weight: 700;
  color: var(--bb-text);
  font-size: 1rem;
}

.testimonial-role {
  font-size: 0.85rem;
  color: var(--bb-text-muted);
}

/* === JOIN THE MOVEMENT CTA ================================= */
.join-cta-section {
  background: var(--bb-section-dark);
  color: white;
  padding: 5rem 2rem;
  text-align: center;
}

.join-cta-section h2 {
  color: white;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin-bottom: 0.5rem;
}

.join-cta-section .join-sub {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.join-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.btn-join {
  background: transparent;
  border: 2px solid var(--bb-accent);
  color: var(--bb-accent);
  border-radius: 50px;
  padding: 12px 26px;
  font-weight: 700;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  line-height: 1.2;
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn-join:hover {
  background: var(--bb-accent);
  color: var(--bb-text);
  transform: translateY(-2px);
}

.btn-join-primary {
  background: var(--bb-accent);
  color: var(--bb-text);
  border-color: var(--bb-accent);
  animation: pulse 2s infinite;
}

.btn-join-primary:hover {
  background: var(--bb-accent-hover);
  border-color: var(--bb-accent-hover);
  color: var(--bb-text);
}

/* === SECTION TITLE SHARED ================================== */
.section-title {
  font-family: var(--bb-font-display);
  font-weight: 800;
  color: var(--bb-text);
  margin-bottom: 0.5rem;
}

.section-subtitle {
  color: var(--bb-text-muted);
  font-size: 1.05rem;
  margin-bottom: 2.5rem;
}

.section-title-white {
  color: white;
}

.section-subtitle-white {
  color: rgba(255, 255, 255, 0.7);
}

/* === VIDEO WRAPPER ========================================= */
.video-responsive {
  border-radius: var(--bb-radius-lg);
  overflow: hidden;
  box-shadow: var(--bb-shadow-lg);
}

/* === NEWS FEATURE MODAL ==================================== */
.news-modal-img {
  width: 100%;
  max-height: 85vh;
  object-fit: contain;
}

/* === INDEX PAGE — DEC-002 COMPLIANCE CLASSES =============== */
/*
  Replaces every style="" attribute removed from index.html
  per the no-inline-CSS rule (DEC-002 / CLAUDE.md §6).
*/

/* Placeholder icon color (newspaper, school, handshake, quote-left icons) */
.icon-placeholder-color {
  color: var(--bb-border);
}

/* HGM section subheading / achievement heading (secondary color) */
.section-subhead-secondary {
  color: var(--bb-secondary);
}

/* Roadmap section heading inside phase2 section */
.roadmap-section-heading {
  font-size: 1.25rem;
  color: var(--bb-text);
}

/* Progress cell in roadmap table — enforces min column width */
.roadmap-td-progress {
  min-width: 120px;
}

/* Chart card label row — compact uppercase label */
.chart-card-title {
  color: var(--bb-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.8rem;
}

/* Testimonial avatar placeholder div (circular, primary background) */
.testimonial-avatar-placeholder {
  background: var(--bb-primary);
}

/* Icon inside testimonial avatar placeholder */
.testimonial-avatar-icon {
  color: white;
  font-size: 1.5rem;
}

/* === FC-003 LAUNCH PAGE ==================================== */

/* Section 2: Newspaper feature */
.launch-news-section {
  background: var(--bb-surface-white);
  padding: 5rem 0;
}

.launch-press-badge {
  display: inline-block;
  background: var(--bb-accent);
  color: var(--bb-text);
  font-family: var(--bb-font-display);
  font-weight: 800;
  font-size: 1rem;
  padding: 0.5rem 1.5rem;
  border-radius: 50px;
  letter-spacing: 0.5px;
}

.launch-news-img-wrapper {
  cursor: zoom-in;
  border-radius: var(--bb-radius-lg);
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.18);
  transition: transform 0.3s ease;
}

.launch-news-img-wrapper:hover {
  transform: scale(1.01);
}

.launch-news-placeholder {
  background: var(--bb-bg);
  border: 2px dashed var(--bb-border);
  border-radius: var(--bb-radius-lg);
  min-height: 340px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  color: var(--bb-text-muted);
}

.launch-news-placeholder-icon {
  font-size: 4rem;
  color: var(--bb-border);
}

.launch-news-quote {
  font-size: 1.4rem;
  font-style: italic;
  color: var(--bb-secondary);
  border-left: 5px solid var(--bb-accent);
  padding-left: 1.25rem;
  margin: 1.5rem 0;
  line-height: 1.6;
}

.launch-news-description {
  color: var(--bb-text-muted);
  font-size: 0.975rem;
  line-height: 1.7;
}

/* Section 3: Speeches */
.launch-speeches-section {
  background: var(--bb-section-dark);
  color: white;
  padding: 5rem 0;
}

/* Section 4: Gallery */
.launch-gallery-section {
  background: var(--bb-bg);
  padding: 5rem 0;
}

.launch-gallery-img {
  cursor: zoom-in;
  width: 100%;
  margin-bottom: 0.75rem;
  border-radius: var(--bb-radius);
  display: block;
  break-inside: avoid;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.launch-gallery-img:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.launch-gallery-video-wrap {
  position: relative;
  border-radius: var(--bb-radius);
  overflow: hidden;
  margin-bottom: 0.75rem;
  break-inside: avoid;
  cursor: pointer;
  background: var(--bb-section-dark);
  min-height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.launch-gallery-play-overlay {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s ease;
}

.launch-gallery-video-wrap:hover .launch-gallery-play-overlay {
  transform: scale(1.1);
}

.launch-gallery-play-icon {
  font-size: 1.75rem;
  color: white;
}

.launch-gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.55);
  color: white;
  font-size: 0.78rem;
  padding: 0.4rem 0.75rem;
  margin: 0;
}

.launch-modal-caption {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.88rem;
  font-style: italic;
}

/* Section 5: Who Was There */
.launch-attendees-section {
  background: var(--bb-surface);
  padding: 5rem 0;
}

.launch-attendees-prose {
  background: var(--bb-surface-warm);
  border: 1px solid var(--bb-border);
  border-radius: var(--bb-radius-lg);
  padding: 2rem;
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--bb-text);
}

.launch-attendees-prose p {
  margin-bottom: 1rem;
}

.launch-attendees-prose p:last-child {
  margin-bottom: 0;
}

.launch-attendees-placeholder {
  border: 2px dashed var(--bb-border);
}

/* Who Was There — attendee group cards */
.launch-who-card {
  text-align: center;
  padding: 1rem 0.5rem;
}

.launch-who-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: var(--bb-surface-white);
  border: 3px dashed var(--bb-border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.75rem;
  font-size: 2rem;
  color: var(--bb-secondary);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.launch-who-card:hover .launch-who-avatar {
  border-color: var(--bb-accent);
  transform: translateY(-3px);
}

.launch-who-name {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--bb-text);
  margin-bottom: 0.15rem;
}

.launch-who-role {
  font-size: 0.78rem;
  color: var(--bb-text-light);
  margin: 0;
}

/* Section 6: Launch day stats */
.launch-stats-section {
  background: var(--bb-section-dark);
  color: white;
  padding: 5rem 0;
}

.launch-stat-card {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: white;
}

.launch-stat-card .counter-value {
  color: var(--bb-accent);
}

.launch-stat-card .counter-label {
  color: rgba(255, 255, 255, 0.65);
}

.launch-stat-card .counter-icon {
  color: rgba(255, 255, 255, 0.5);
}

/* Section 7: Share */
.launch-share-section {
  background: var(--bb-surface-white);
  padding: 5rem 2rem;
}

.launch-share-quote {
  background: var(--bb-bg);
  border: 1px solid var(--bb-border);
  border-left: 6px solid var(--bb-accent);
  border-radius: var(--bb-radius-lg);
  padding: 2rem 2.5rem;
  margin-bottom: 2rem;
  text-align: left;
}

.launch-share-quote-text {
  font-size: 1.25rem;
  font-style: italic;
  color: var(--bb-text);
  line-height: 1.7;
  margin-bottom: 0.5rem;
}

.launch-share-quote-attr {
  font-size: 0.9rem;
  color: var(--bb-text-muted);
  font-weight: 600;
  margin: 0;
}

.launch-share-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.launch-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
  line-height: 1.2;
}

.launch-share-whatsapp {
  background: #25D366;
  color: white;
}

.launch-share-whatsapp:hover {
  background: #1DA851;
  color: white;
  transform: translateY(-2px);
}

.launch-share-twitter {
  background: #000000;
  color: white;
}

.launch-share-twitter:hover {
  background: #333333;
  color: white;
  transform: translateY(-2px);
}

.launch-share-linkedin {
  background: #0A66C2;
  color: white;
}

.launch-share-linkedin:hover {
  background: #0853A0;
  color: white;
  transform: translateY(-2px);
}

.launch-share-copy {
  background: var(--bb-primary);
  color: white;
}

.launch-share-copy:hover {
  background: var(--bb-primary-dark);
  color: white;
  transform: translateY(-2px);
}

/* === TERMS & PRIVACY PAGE ================================== */
.terms-toc {
  position: sticky;
  top: calc(var(--bb-navbar-height) + 1.5rem);
  background: var(--bb-surface-warm);
  border: 1px solid var(--bb-border);
  border-radius: var(--bb-radius);
  padding: 1.25rem 1.5rem;
  font-size: 0.875rem;
}

.terms-toc-heading {
  font-family: var(--bb-font-display);
  font-weight: 700;
  color: var(--bb-text);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.78rem;
  margin-bottom: 0.75rem;
}

.terms-toc-list,
.terms-toc-list ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.terms-toc-list > li {
  margin-bottom: 0.5rem;
}

.terms-toc-list ul {
  padding-left: 1rem;
  margin-top: 0.25rem;
}

.terms-toc-list ul li {
  margin-bottom: 0.2rem;
}

.terms-toc-list a {
  color: var(--bb-text-muted);
  text-decoration: none;
  font-size: 0.83rem;
  transition: color 0.2s ease;
}

.terms-toc-list a:hover {
  color: var(--bb-secondary);
}

.terms-section {
  margin-top: 2.5rem;
}

.terms-main-heading {
  font-family: var(--bb-font-display);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--bb-text);
  margin-bottom: 1rem;
}

.terms-intro {
  color: var(--bb-text-muted);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.terms-article {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--bb-border-light);
}

.terms-article-heading {
  font-family: var(--bb-font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--bb-text);
  margin-bottom: 0.75rem;
}

.terms-sub-heading {
  font-size: 1rem;
  font-weight: 700;
  color: var(--bb-secondary);
  margin: 1rem 0 0.5rem;
}

.terms-article p,
.terms-article li {
  color: var(--bb-text);
  line-height: 1.75;
  font-size: 0.95rem;
}

.terms-article ul {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.terms-article li {
  margin-bottom: 0.4rem;
}

.terms-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  margin: 1rem 0;
}

.terms-table th {
  background: var(--bb-surface);
  font-family: var(--bb-font-display);
  font-weight: 700;
  color: var(--bb-text);
  padding: 0.6rem 1rem;
  text-align: left;
  border: 1px solid var(--bb-border);
}

.terms-table td {
  padding: 0.6rem 1rem;
  border: 1px solid var(--bb-border-light);
  color: var(--bb-text);
  vertical-align: top;
}

.terms-table tr:nth-child(even) td {
  background: var(--bb-surface-warm);
}

.terms-divider {
  border-color: var(--bb-border);
  margin: 3rem 0;
}

.terms-contact-card {
  background: var(--bb-surface-warm);
  border: 1px solid var(--bb-border);
  border-radius: var(--bb-radius);
  padding: 1.5rem;
  font-size: 0.95rem;
  color: var(--bb-text);
  margin-top: 1rem;
}

.terms-contact-card a {
  color: var(--bb-secondary);
}

/* === RESPONSIVE FC-002 ===================================== */
@media (max-width: 768px) {
  .hero-homepage { min-height: 90vh; min-height: 90svh; }
  .hgm-section,
  .launch-section,
  .news-section,
  .phase2-section,
  .charts-section,
  .partners-section,
  .testimonials-section,
  .join-cta-section { padding: 3rem 0; }
  .stats-bar { padding: 1.75rem 0; }
  .chart-card canvas { max-height: 220px; }
}


/* ============================================================
   FC-004 — Schools Public Pages
   All classes used in public/schools/*.html templates
   ============================================================ */

/* ── Schools hero — filter pills (used inside .hero .hero-schools) ── */
.schools-hero-filters {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.schools-filter-btn {
  background: rgba(255,255,255,0.15);
  color: white;
  border: 1.5px solid rgba(255,255,255,0.4);
  border-radius: 25px;
  padding: 0.4rem 1.2rem;
  font-size: 0.9rem;
  transition: background 0.2s;
}

.schools-filter-btn:hover,
.schools-filter-btn.active {
  background: rgba(255,255,255,0.35);
  color: white;
}

/* ── Section headers ─────────────────────────────────────── */
.schools-section-header { border-left: 4px solid var(--bb-primary); padding-left: 1rem; }
.schools-section-title  { font-family: var(--bb-font-display); font-size: 1.75rem; color: var(--bb-secondary); margin-bottom: 0.25rem; }
.schools-section-subtitle { color: var(--bb-text-muted); margin: 0; }

/* ── Empty state ─────────────────────────────────────────── */
.schools-empty-state    { padding: 4rem 0; }
.schools-empty-icon     { font-size: 4rem; color: var(--bb-border); display: block; margin-bottom: 1rem; }
.schools-empty-title    { font-family: var(--bb-font-display); color: var(--bb-text-muted); }
.schools-empty-text     { color: var(--bb-text-muted); }

/* ── Schools CTA banner ──────────────────────────────────── */
.schools-cta-banner {
  background: var(--bb-secondary);
  color: white;
  padding: 4rem 0;
  text-align: center;
}

.schools-cta-title {
  font-family: var(--bb-font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  color: white;
  margin-bottom: 1rem;
}

.schools-cta-text {
  color: rgba(255,255,255,0.88);
  max-width: 580px;
  margin: 0 auto 2rem;
  line-height: 1.7;
}

.schools-cta-btn {
  background: var(--bb-accent);
  color: var(--bb-text);
  font-weight: 700;
  border-radius: 30px;
  padding: 0.75rem 2rem;
  font-size: 1rem;
  border: none;
  transition: opacity 0.2s;
}

.schools-cta-btn:hover { opacity: 0.9; color: var(--bb-text); }

.schools-cta-btn-outline {
  background: transparent;
  color: white;
  border: 2px solid white;
  font-weight: 600;
  border-radius: 30px;
  padding: 0.75rem 2rem;
  font-size: 1rem;
  transition: background 0.2s;
}

.schools-cta-btn-outline:hover { background: rgba(255,255,255,0.1); color: white; }

/* ── School detail — header ──────────────────────────────── */
.school-detail-header {
  background: var(--bb-surface-warm);
  border-bottom: 1px solid var(--bb-border);
  padding: 6rem 0 2.5rem;
}

.school-breadcrumb     { margin-bottom: 1.5rem; }
.school-breadcrumb a   { color: var(--bb-primary); text-decoration: none; }

.school-detail-title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.school-detail-name {
  font-family: var(--bb-font-display);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  color: var(--bb-secondary);
  margin-bottom: 0.5rem;
}

.school-detail-meta {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 0.5rem;
}

.school-detail-badge {
  font-size: 0.85rem;
  background: var(--bb-bg);
  border: 1px solid var(--bb-border);
  border-radius: 20px;
  padding: 0.2rem 0.75rem;
  color: var(--bb-text-muted);
}

.school-detail-description {
  color: var(--bb-text);
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 800px;
}

/* ── School detail — section title ──────────────────────── */
.school-section-title {
  font-family: var(--bb-font-display);
  font-size: 1.5rem;
  color: var(--bb-secondary);
  border-left: 4px solid var(--bb-primary);
  padding-left: 0.75rem;
  margin-bottom: 1.5rem;
}

/* ── Transformation pairs (multiple before/after) ────────── */
.transformation-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(480px, 1fr));
  gap: 2.5rem;
}

.transformation-pair-card {
  /* Subtle card lift */
}

/* Side-by-side layout for mixed-media pairs */
.transformation-side-by-side {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  align-items: start;
}

.transformation-side {
  position: relative;
}

/* Before / After pill labels */
.transformation-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 6px;
}

.transformation-label-before {
  background: rgba(0,0,0,0.12);
  color: var(--bb-text-muted, #888);
}

.transformation-label-after {
  background: rgba(75, 181, 67, 0.15);
  color: #2d7a28;
}

/* WIP badge on before-only items */
.transformation-before-only {
  position: relative;
}

.transformation-wip-badge {
  display: inline-block;
  background: var(--bb-yellow, #F4D03F);
  color: #3B2918;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 8px;
}

/* Captions */
.transformation-caption {
  margin-top: 0.6rem;
  font-size: 0.875rem;
  color: var(--bb-text-muted, #666);
  text-align: center;
}

.before-caption-text { opacity: 0.75; }
.after-caption-text  { font-weight: 600; color: var(--bb-text, #333); }

@media (max-width: 575px) {
  .transformation-grid { grid-template-columns: 1fr; gap: 2rem; }
  .transformation-side-by-side { grid-template-columns: 1fr; gap: 8px; }
}

/* ── Timeline ────────────────────────────────────────────── */
.school-timeline { position: relative; padding-left: 2rem; }

.school-timeline::before {
  content: '';
  position: absolute;
  left: 0.625rem;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--bb-border);
}

.school-timeline-item {
  position: relative;
  margin-bottom: 2rem;
}

.school-timeline-dot {
  position: absolute;
  left: -2rem;
  top: 0.25rem;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  border: 2.5px solid var(--bb-border);
  background: var(--bb-bg);
  transition: background 0.2s, border-color 0.2s;
}

.school-timeline-item.is-complete .school-timeline-dot {
  background: var(--bb-primary);
  border-color: var(--bb-primary);
}

.school-timeline-body {
  background: var(--bb-surface-warm);
  border: 1px solid var(--bb-border);
  border-radius: 8px;
  padding: 1rem 1.25rem;
}

.school-timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.35rem;
}

.school-timeline-title { font-family: var(--bb-font-display); color: var(--bb-text); }
.school-timeline-date  { font-size: 0.85rem; color: var(--bb-text-muted); }
.school-timeline-desc  { color: var(--bb-text-muted); margin-bottom: 0.5rem; }

.school-timeline-complete-badge {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  color: white;
  background: var(--bb-primary);
  border-radius: 12px;
  padding: 0.15rem 0.65rem;
}

/* ── Impact stat cards ───────────────────────────────────── */
.school-stat-card {
  background: var(--bb-surface-warm);
  border: 1px solid var(--bb-border);
  border-radius: 12px;
  padding: 1.5rem 1rem;
}

.school-stat-icon {
  font-size: 1.75rem;
  color: var(--bb-primary);
  margin-bottom: 0.5rem;
}

.school-stat-value {
  font-family: var(--bb-font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--bb-secondary);
  line-height: 1;
}

.school-stat-label {
  font-size: 0.85rem;
  color: var(--bb-text-muted);
  margin-top: 0.25rem;
}

/* ── Completion report box ───────────────────────────────── */
.school-completion-report {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  background: var(--bb-surface-warm);
  border: 1px solid var(--bb-border);
  border-left: 4px solid var(--bb-accent);
  border-radius: 10px;
  padding: 1.5rem;
}

.school-completion-icon {
  font-size: 2.5rem;
  color: var(--bb-accent);
  flex-shrink: 0;
}

.school-completion-title { font-family: var(--bb-font-display); color: var(--bb-secondary); margin-bottom: 0.35rem; }
.school-completion-text  { color: var(--bb-text-muted); margin-bottom: 0.75rem; }

.school-completion-btn {
  background: var(--bb-accent);
  color: var(--bb-text);
  font-weight: 700;
  border-radius: 25px;
  padding: 0.5rem 1.5rem;
  border: none;
  text-decoration: none;
}

.school-completion-btn:hover { opacity: 0.9; color: var(--bb-text); }

/* ── Media Gallery (school pages) ────────────────────────── */
.school-media-section {
  background: #181818;
  padding: 80px 0 90px;
}

.school-media-title {
  color: #ffffff;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin: 0;
}

.school-media-subtitle {
  color: rgba(255,255,255,0.5);
  font-size: 0.95rem;
  margin-top: 6px;
  margin-bottom: 0;
}

.school-media-stats {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: center;
}

.media-stat-pill {
  display: inline-flex;
  align-items: center;
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.7);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 30px;
  letter-spacing: 0.3px;
}

.media-stat-pill-video {
  background: rgba(244, 208, 63, 0.12);
  color: var(--bb-yellow, #F4D03F);
}

/* ── Grid ─────────────────────────────────────────────────── */
.school-media-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 290px;
  gap: 10px;
}

.media-item-featured {
  grid-column: span 2;
}

/* ── Individual item ──────────────────────────────────────── */
.media-item {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  cursor: pointer;
  background: #2a2a2a;
  display: block;
  outline: none;
}

.media-item:focus-visible {
  box-shadow: 0 0 0 3px var(--bb-yellow, #F4D03F);
}

.media-item-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
}

.media-item-thumb-placeholder {
  background: linear-gradient(135deg, #2a2a2a 0%, #333 100%);
}

.media-item:hover .media-item-thumb { transform: scale(1.06); }

/* ── Overlay ──────────────────────────────────────────────── */
.media-item-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 45%, rgba(0,0,0,0.68) 100%);
  transition: background 0.35s ease;
  pointer-events: none;
}

.media-item:hover .media-item-overlay {
  background: linear-gradient(transparent 20%, rgba(0,0,0,0.80) 100%);
}

/* ── Play button ──────────────────────────────────────────── */
.media-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background: rgba(255,255,255,0.92);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
  pointer-events: none;
  box-shadow: 0 4px 20px rgba(0,0,0,0.45);
}

.media-play-btn i {
  color: #1a1a1a;
  font-size: 1.1rem;
  margin-left: 4px;
}

.media-item:hover .media-play-btn {
  transform: translate(-50%, -50%) scale(1.12);
  background: var(--bb-yellow, #F4D03F);
  box-shadow: 0 6px 28px rgba(244, 208, 63, 0.5);
}

/* ── Type badge ───────────────────────────────────────────── */
.media-type-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  pointer-events: none;
}

/* ── Caption ──────────────────────────────────────────────── */
.media-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.9rem 1rem 0.75rem;
  color: rgba(255,255,255,0.92);
  font-size: 0.84rem;
  line-height: 1.4;
  pointer-events: none;
}

/* ── Lightbox modal ───────────────────────────────────────── */
.school-lightbox-content {
  background: #111;
  border: none;
  border-radius: 12px;
  overflow: hidden;
}

.school-lightbox-header {
  background: #111;
  border-bottom: 1px solid #2a2a2a;
  padding: 0.85rem 1.25rem;
}

.school-lightbox-caption {
  color: rgba(255,255,255,0.75);
  margin: 0;
  font-size: 0.9rem;
}

.school-lightbox-img {
  max-height: 82vh;
  object-fit: contain;
  display: block;
}

.school-lightbox-video {
  width: 100%;
  max-height: 82vh;
  display: block;
  background: #000;
}

.school-lightbox-iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: none;
  display: block;
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 991px) {
  .school-media-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 240px;
  }
  .media-item-featured { grid-column: span 2; }
  .school-media-title  { font-size: 1.6rem; }
}

@media (max-width: 575px) {
  .school-media-section  { padding: 56px 0 64px; }
  .school-media-grid     { grid-template-columns: 1fr 1fr; grid-auto-rows: 180px; gap: 6px; }
  .media-item-featured   { grid-column: span 2; grid-row: span 1; }
  .school-media-title    { font-size: 1.4rem; }
  .media-play-btn        { width: 48px; height: 48px; }
}

/* ── Detail CTA buttons row ──────────────────────────────── */
.school-detail-cta-btns {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── School join benefits ────────────────────────────────── */
.school-join-benefits-title {
  font-family: var(--bb-font-display);
  font-size: 1.6rem;
  color: var(--bb-secondary);
  margin-bottom: 1.5rem;
}

.school-join-benefit {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.school-join-benefit-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--bb-primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.school-join-benefit-heading { font-family: var(--bb-font-display); font-size: 1rem; color: var(--bb-secondary); margin-bottom: 0.25rem; }
.school-join-benefit-text    { color: var(--bb-text-muted); font-size: 0.95rem; margin: 0; line-height: 1.6; }

.school-join-timeline-note {
  background: var(--bb-surface-warm);
  border: 1px solid var(--bb-border);
  border-left: 4px solid var(--bb-primary);
  border-radius: 6px;
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  color: var(--bb-text-muted);
  margin-top: 1.5rem;
}

/* ── School join form card ───────────────────────────────── */
.school-join-form-card {
  background: var(--bb-surface-warm);
  border: 1px solid var(--bb-border);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

.school-join-form-title {
  font-family: var(--bb-font-display);
  font-size: 1.4rem;
  color: var(--bb-secondary);
  margin-bottom: 0.25rem;
}

.school-join-form-subtitle { color: var(--bb-text-muted); font-size: 0.9rem; margin-bottom: 1.5rem; }
.school-join-contact-heading { font-family: var(--bb-font-display); color: var(--bb-secondary); font-size: 1.1rem; }

.school-join-submit-btn {
  background: var(--bb-accent);
  color: var(--bb-text);
  font-weight: 700;
  border-radius: 30px;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  border: none;
  transition: opacity 0.2s;
}

.school-join-submit-btn:hover { opacity: 0.9; }

/* ── Responsive adjustments ──────────────────────────────── */
@media (max-width: 768px) {
  .school-detail-title-row { flex-direction: column; }
  .school-completion-report { flex-direction: column; gap: 0.75rem; }
  .school-timeline { padding-left: 1.5rem; }
}

/* ============================================================
   FC-005 — Get Involved Pages (internships, partnerships, infrastructure)
   Prefix: .gi-*
   ============================================================ */

/* ── Hero photo variants — use base .hero class in templates ──────── */
/* TODO: REPLACE WITH REAL CONTENT — swap with best available photos */
.hero-internships {
  background: url("/static/images/imgnew/children_reading.jpeg") center center/cover no-repeat;
}
.hero-partnerships {
  background: url("/static/images/imgnew/library interior.jpeg") center center/cover no-repeat;
}
.hero-infrastructure {
  background: url("/static/images/imgnew/school compund.jpeg") center center/cover no-repeat;
}
.hero-schools {
  background: url("/static/images/imgnew/surina_and_keisha_with_children.jpeg") center 30%/cover no-repeat;
}
.hero-schools-join {
  background: url("/static/images/imgnew/ourstory.jpeg") center 40%/cover no-repeat;
}
.hero-book-drive {
  /* background set via embedded video element */
}
.hero-get-involved {
  background: url("/static/images/imgnew/children standing.jpeg") center 40%/cover no-repeat;
}

/* ── Sections ──────────────────────────────────────────────────────── */
.gi-section        { padding: 4.5rem 0; }
.gi-section-alt    { background: var(--bb-surface-warm); }

.gi-section-eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--bb-primary);
  background: rgba(157,181,160,0.12);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  margin-bottom: 0.75rem;
}

.gi-section-title {
  font-family: var(--bb-font-display);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  color: var(--bb-secondary);
  margin-bottom: 0.75rem;
}

.gi-section-lead {
  color: var(--bb-text-muted);
  font-size: 1.05rem;
  max-width: 640px;
  margin: 0 auto 1.5rem;
  line-height: 1.7;
}

/* ── Intern page: icon list ─────────────────────────────────────────── */
.gi-icon-list       { list-style: none; padding: 0; margin: 1.5rem 0; }
.gi-icon-list-item  { display: flex; gap: 1rem; margin-bottom: 1.25rem; }
.gi-icon-list-icon  {
  width: 40px; height: 40px; flex-shrink: 0;
  background: rgba(157,181,160,0.2);
  color: var(--bb-primary);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
}
.gi-icon-list-text { color: var(--bb-text-muted); font-size: 0.9rem; margin: 0.15rem 0 0; }

/* ── Intern page: types card ────────────────────────────────────────── */
.gi-types-card {
  background: white;
  border-radius: 16px;
  border: 1px solid var(--bb-border);
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}
.gi-types-title { font-family: var(--bb-font-display); color: var(--bb-secondary); font-size: 1.3rem; margin-bottom: 1.25rem; }

.gi-type-block      { display: flex; gap: 1rem; margin-bottom: 1.5rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--bb-border); }
.gi-type-block:last-of-type { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.gi-type-icon       { font-size: 1.5rem; width: 44px; flex-shrink: 0; }
.gi-type-local .gi-type-icon  { color: var(--bb-primary); }
.gi-type-international .gi-type-icon { color: var(--bb-secondary); }
.gi-type-heading    { font-family: var(--bb-font-display); font-size: 1rem; color: var(--bb-text); margin-bottom: 0.35rem; }
.gi-type-tag        { display: inline-block; font-size: 0.7rem; font-weight: 600; background: var(--bb-accent); color: var(--bb-text); padding: 0.1rem 0.55rem; border-radius: 20px; margin-left: 0.4rem; vertical-align: middle; }
.gi-type-desc       { color: var(--bb-text-muted); font-size: 0.9rem; margin: 0; line-height: 1.6; }

.gi-eligibility-box  { background: var(--bb-surface-warm); border-radius: 10px; padding: 1rem 1.25rem; margin-top: 1rem; }
.gi-eligibility-title { font-family: var(--bb-font-display); font-size: 0.95rem; color: var(--bb-secondary); margin-bottom: 0.5rem; }
.gi-eligibility-list  { list-style: none; padding: 0; margin: 0; }
.gi-eligibility-list li { font-size: 0.9rem; color: var(--bb-text); padding: 0.25rem 0; padding-left: 1.25rem; position: relative; }
.gi-eligibility-list li::before { content: '✓'; color: var(--bb-primary); position: absolute; left: 0; font-weight: 700; }

/* ── Intern cards ────────────────────────────────────────────────────── */
.gi-intern-card      { background: white; border-radius: 12px; border: 1px solid var(--bb-border); overflow: hidden; box-shadow: 0 2px 12px rgba(0,0,0,0.05); }
.gi-intern-photo     { width: 100%; height: 200px; object-fit: cover; }
.gi-intern-photo-placeholder { width: 100%; height: 200px; background: var(--bb-surface-warm); display: flex; align-items: center; justify-content: center; font-size: 3rem; color: var(--bb-text-muted); }
.gi-intern-card-body { padding: 1.25rem; }
.gi-intern-name      { font-family: var(--bb-font-display); color: var(--bb-secondary); margin-bottom: 0.25rem; }
.gi-intern-meta      { font-size: 0.85rem; color: var(--bb-text-muted); margin-bottom: 0.25rem; }
.gi-intern-role      { font-size: 0.9rem; color: var(--bb-text); margin: 0; }

/* ── Partnership page: partner type cards ──────────────────────────── */
.gi-partner-type-card {
  background: white;
  border: 1px solid var(--bb-border);
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  height: 100%;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}
.gi-partner-type-icon    { font-size: 2rem; color: var(--bb-primary); margin-bottom: 0.75rem; }
.gi-partner-type-heading { font-family: var(--bb-font-display); font-size: 1rem; color: var(--bb-secondary); margin-bottom: 0.5rem; }
.gi-partner-type-desc    { font-size: 0.88rem; color: var(--bb-text-muted); margin: 0; line-height: 1.6; }

/* ── Partnership: "what partnership means" bar ───────────────────── */
.gi-partnership-means { background: white; border-radius: 16px; border: 1px solid var(--bb-border); padding: 2rem; box-shadow: 0 4px 20px rgba(0,0,0,0.05); }
.gi-pm-item  { display: flex; align-items: center; gap: 0.75rem; font-weight: 600; color: var(--bb-text); font-size: 0.95rem; padding: 0.5rem 0; }
.gi-pm-icon  { font-size: 1.4rem; color: var(--bb-primary); width: 28px; }
.gi-callout  { display: flex; gap: 1rem; background: var(--bb-surface-warm); border-left: 4px solid var(--bb-accent); border-radius: 8px; padding: 1rem 1.25rem; }
.gi-callout-icon { font-size: 1.25rem; color: var(--bb-accent); flex-shrink: 0; margin-top: 0.1rem; }
.gi-callout-text { margin: 0; font-size: 0.95rem; color: var(--bb-text); line-height: 1.6; }

/* ── Partner tabs ────────────────────────────────────────────────────── */
.gi-partner-tabs      { border-bottom: 2px solid var(--bb-border); }
.gi-partner-tab       { border: none !important; border-bottom: 2px solid transparent !important; color: var(--bb-text-muted); font-weight: 600; padding: 0.6rem 1.25rem; margin-bottom: -2px; background: transparent; }
.gi-partner-tab.active { color: var(--bb-primary) !important; border-bottom-color: var(--bb-primary) !important; }
.gi-tab-count         { background: var(--bb-accent); color: var(--bb-text); font-size: 0.7rem; font-weight: 700; padding: 0.1rem 0.45rem; border-radius: 10px; margin-left: 0.4rem; }

/* ── Partner cards ───────────────────────────────────────────────────── */
.gi-partner-card {
  background: white;
  border: 1px solid var(--bb-border);
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
  transition: box-shadow 0.2s;
}
.gi-partner-card:hover { box-shadow: 0 6px 20px rgba(0,0,0,0.08); }
.gi-partner-card-featured { border-color: var(--bb-accent); box-shadow: 0 4px 20px rgba(244,208,63,0.2); }
.gi-partner-card-previous  { opacity: 0.8; }
.gi-partner-card-prospective { border-style: dashed; }
.gi-partner-logo     { max-height: 70px; max-width: 160px; object-fit: contain; margin-bottom: 1rem; }
.gi-partner-logo-placeholder { font-size: 2.5rem; color: var(--bb-text-muted); margin-bottom: 1rem; }
.gi-partner-card-body { }
.gi-partner-name     { font-family: var(--bb-font-display); color: var(--bb-secondary); font-size: 1.05rem; margin-bottom: 0.25rem; }
.gi-partner-country  { font-size: 0.85rem; color: var(--bb-text-muted); margin-bottom: 0.5rem; }
.gi-partner-desc     { font-size: 0.88rem; color: var(--bb-text); margin-bottom: 0.75rem; line-height: 1.6; }
.gi-partner-link     { font-size: 0.85rem; color: var(--bb-primary); font-weight: 600; text-decoration: none; }
.gi-partner-link:hover { text-decoration: underline; }
.gi-no-partners      { color: var(--bb-text-muted); padding: 2rem; }

/* ── Infrastructure: checklist cards ────────────────────────────────── */
.gi-infra-category {
  background: white;
  border: 1px solid var(--bb-border);
  border-radius: 12px;
  padding: 1.5rem;
  height: 100%;
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}
.gi-infra-cat-header  { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1rem; }
.gi-infra-cat-icon    { font-size: 1.4rem; color: var(--bb-primary); width: 32px; }
.gi-infra-cat-title   { font-family: var(--bb-font-display); font-size: 1rem; color: var(--bb-secondary); margin: 0; }
.gi-infra-items       { list-style: none; padding: 0; margin: 0; }
.gi-infra-items li    { font-size: 0.9rem; color: var(--bb-text); padding: 0.3rem 0; padding-left: 1.4rem; position: relative; border-bottom: 1px solid rgba(0,0,0,0.04); }
.gi-infra-items li:last-child { border-bottom: none; }
.gi-infra-items li::before { content: '›'; color: var(--bb-primary); position: absolute; left: 0; font-weight: 700; }
.gi-optional-label    { color: var(--bb-text-muted); font-style: italic; font-size: 0.82rem; }

.gi-pricing-note {
  display: flex;
  gap: 1rem;
  background: #fff8e1;
  border: 1px solid #ffe082;
  border-left: 4px solid var(--bb-accent);
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
}
.gi-pricing-note-icon { font-size: 1.4rem; color: #f59e0b; flex-shrink: 0; margin-top: 0.1rem; }
.gi-pricing-note-text { margin: 0; font-size: 0.95rem; color: var(--bb-text); line-height: 1.7; }

/* ── Shared: form card ───────────────────────────────────────────────── */
.gi-form-card {
  background: white;
  border: 1px solid var(--bb-border);
  border-radius: 16px;
  padding: 2.5rem;
  box-shadow: 0 6px 30px rgba(0,0,0,0.07);
}
.gi-form-label  { font-weight: 600; color: var(--bb-text); font-size: 1rem; margin-bottom: 0.3rem; }
.gi-form-hint   { font-size: 0.85rem; color: var(--bb-text-muted); margin-top: 0.3rem; }
.gi-field-error { font-size: 0.85rem; color: #dc3545; margin-top: 0.25rem; }

.gi-checkbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.4rem;
  margin-top: 0.5rem;
}
.gi-form-check  { padding: 0.3rem 0; }
.gi-form-check-funds { padding: 0.5rem 0.75rem; background: var(--bb-surface-warm); border-radius: 8px; }
.gi-funds-label { font-size: 0.95rem; font-weight: 600; color: var(--bb-text); }

.gi-submit-btn {
  background: var(--bb-accent);
  color: var(--bb-text);
  font-weight: 700;
  font-size: 1rem;
  padding: 0.75rem 2.5rem;
  border-radius: 30px;
  border: none;
  transition: opacity 0.2s;
  min-width: 200px;
  letter-spacing: 0.3px;
}
.gi-submit-btn:hover { opacity: 0.88; color: var(--bb-text); }

/* ── Responsive ──────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .gi-form-card   { padding: 1.5rem; }
  .gi-types-card  { padding: 1.25rem; }
  .gi-type-block  { flex-direction: column; gap: 0.5rem; }
  .gi-partnership-means { padding: 1.25rem; }
}


/* ── FC-008: Art Gallery (school detail page) ─────────────── */
.art-gallery-card {
  display: flex;
  gap: 1rem;
  background: var(--bb-surface-warm);
  border: 1px solid var(--bb-border);
  border-radius: 12px;
  overflow: hidden;
  padding: 1rem;
  align-items: flex-start;
}

.art-gallery-photo-link {
  flex-shrink: 0;
}

.art-gallery-img {
  width: 130px;
  height: 130px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
  transition: transform 0.2s;
}

.art-gallery-img:hover {
  transform: scale(1.04);
}

.art-gallery-info {
  flex: 1;
}

.art-gallery-title {
  font-family: var(--bb-font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--bb-text);
  margin-bottom: 0.2rem;
}

.art-gallery-creator {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--bb-secondary);
  margin-bottom: 0.15rem;
}

.art-gallery-school {
  font-size: 0.8rem;
}

.art-modal-img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 0;
}

/* ── FC-008: Donate page — stepper (donor dashboard stub) ─── */
.donation-stepper {
  display: flex;
  align-items: center;
  gap: 0;
  overflow-x: auto;
  padding: 0.5rem 0;
}

.donation-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  min-width: 80px;
  position: relative;
}

.donation-step-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--bb-border);
  background: #fff;
  z-index: 1;
  transition: all 0.3s;
}

.donation-step.completed .donation-step-dot {
  background: var(--bb-primary);
  border-color: var(--bb-primary);
}

.donation-step-label {
  font-size: 0.7rem;
  text-align: center;
  color: var(--bb-text);
  margin-top: 0.35rem;
}

.donation-step-line {
  flex: 1;
  height: 2px;
  background: var(--bb-border);
  margin-top: -9px;
  transition: background 0.3s;
}

.donation-step-line.completed {
  background: var(--bb-primary);
}

/* =========================================================
   FC-019 — School CBE Pathways Section
   ========================================================= */

.school-cbe-section {
  background: var(--bb-bg);
  border-top: 3px solid var(--bb-accent);
  padding: 3rem 0;
}

.cbe-intro {
  font-size: 1.1rem;
  color: var(--bb-text);
  max-width: 720px;
}

/* ── CBE card layout (new) ────────────────────────────────── */

.cbe-intro-centered {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.9);
  max-width: 760px;
  margin: 0 auto 2rem;
  text-align: center;
  line-height: 1.7;
}

.cbe-feature-img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: 14px;
  margin-bottom: 2.5rem;
  box-shadow: 0 6px 24px rgba(0,0,0,0.25);
}

.cbe-card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

/* 5th card spans full width on its row */
.cbe-card-last {
  grid-column: 1 / -1;
}

.cbe-card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 12px;
  padding: 1.5rem;
  transition: background 0.2s, transform 0.2s;
}

.cbe-card:hover {
  background: rgba(255,255,255,0.14);
  transform: translateY(-3px);
}

.cbe-card-emoji {
  font-size: 2rem;
  display: block;
  margin-bottom: 0.6rem;
}

.cbe-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--bb-accent);
  margin-bottom: 0.5rem;
}

.cbe-card-desc {
  font-size: 0.92rem;
  color: rgba(255,255,255,0.82);
  line-height: 1.65;
  margin-bottom: 0;
}

@media (max-width: 576px) {
  .cbe-card-grid {
    grid-template-columns: 1fr;
  }
  .cbe-card-last {
    grid-column: auto;
  }
  .cbe-feature-img {
    max-height: 240px;
  }
}

/* ── legacy (kept for compatibility) ───────────────────────── */

.cbe-career-wheel {
  text-align: center;
  margin-bottom: 1.5rem;
}

.career-wheel-img {
  width: 100%;
  max-width: 480px;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.cbe-pathways-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.pathway-card {
  padding: 1.25rem;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  border-left: 4px solid var(--bb-primary);
}

.pathway-card.pathway-stem {
  border-left-color: #2980b9;
}

.pathway-card.pathway-social {
  border-left-color: #27ae60;
}

.pathway-card.pathway-arts {
  border-left-color: #8e44ad;
}

.pathway-card h3,
.pathway-card h5 {
  font-weight: 700;
  margin-bottom: 0.5rem;
  font-size: 1.05rem;
}

.cbe-urban-rural-callout {
  background: var(--bb-primary);
  color: #fff;
  border-radius: 12px;
  padding: 1.5rem 2rem;
  margin-top: 2rem;
}

.pathway-strip {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--bb-text);
}

.pathway-pill {
  display: inline-block;
  padding: 0.2rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

.pathway-pill.pathway-stem {
  background: #d6eaf8;
  color: #1a5276;
}

.pathway-pill.pathway-social {
  background: #d5f5e3;
  color: #1e8449;
}

.pathway-pill.pathway-arts {
  background: #e8daef;
  color: #6c3483;
}

/* =========================================================
   FC-020 — About Us Page
   ========================================================= */

/* About Us — section background alternation
   Pattern: white → sage → cream → white → sage → cream → dark
   1. Mission/Vision   → white (about-section-white)
   2. Founders         → sage  (#e8f0eb)
   3. Behind Scenes    → cream (--bb-bg)
   4. Inspiration      → white (about-section-white)
   5. Barriers         → sage  (#e8f0eb)
   6. Urban-Rural      → cream (--bb-bg)
   7. Video            → dark  (--bb-text)
*/
.about-section-white {
  background: #fff;
}

.founders-section {
  padding: 4rem 0;
  background: #e8f0eb;
}

.founders-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.founder-card {
  background: var(--bb-bg);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 4px 16px rgba(0,0,0,0.07);
  text-align: center;
}

.founder-photo {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--bb-accent);
  margin-bottom: 1rem;
}

.founder-name {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--bb-secondary);
  margin-bottom: 0.25rem;
}

.founder-role {
  font-size: 0.9rem;
  color: var(--bb-text);
  margin-bottom: 0.75rem;
}

.founder-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: center;
  margin-bottom: 1rem;
}

.founder-tag {
  background: var(--bb-primary);
  color: #fff;
  font-size: 0.75rem;
  padding: 0.2rem 0.6rem;
  border-radius: 12px;
}

.founder-bio {
  font-size: 0.95rem;
  color: var(--bb-text);
  text-align: left;
  line-height: 1.7;
}

.founder-yt-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #ff0000;
  color: #fff;
  border-radius: 8px;
  padding: 0.4rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  margin-top: 1rem;
  transition: opacity 0.2s;
}

.founder-yt-btn:hover {
  opacity: 0.85;
  color: #fff;
}

.behind-scenes-section {
  background: var(--bb-bg);
  padding: 4rem 0;
}

/* Behind-scenes card — lifted on sage founders background */
.behind-scenes-card {
  background: #fff;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  height: 100%;
}

.behind-scenes-card {
  background: #fff;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  height: 100%;
}

.parents-credits {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 2rem;
  justify-content: center;
}

.parent-credit {
  text-align: center;
  min-width: 160px;
}

.parent-credit img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 0.5rem;
}

.urban-rural-section {
  padding: 4rem 0;
  background: var(--bb-bg);
}

.urban-rural-split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.urban-rural-stat {
  background: var(--bb-bg);
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

.urs-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--bb-secondary);
  display: block;
}

.urs-label {
  font-size: 0.9rem;
  color: var(--bb-text);
  margin-top: 0.25rem;
}

.barriers-section {
  background: #e8f0eb;
  padding: 4rem 0;
}

.barriers-stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2rem;
}

.barrier-item {
  display: flex;
  gap: 1.25rem;
  background: #fff;
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  align-items: flex-start;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
  border-left: 5px solid var(--bb-primary);
}

.barrier-item.barrier-physical   { border-left-color: #e74c3c; }
.barrier-item.barrier-working    { border-left-color: #e67e22; }
.barrier-item.barrier-resources  { border-left-color: #f1c40f; }
.barrier-item.barrier-isolation  { border-left-color: #3498db; }
.barrier-item.barrier-depth      { border-left-color: #9b59b6; }

.barrier-label {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--bb-secondary);
  margin-bottom: 0.25rem;
}

.barrier-desc {
  font-size: 0.95rem;
  color: var(--bb-text);
  margin-bottom: 0.4rem;
}

.barrier-bb-note {
  font-size: 0.85rem;
  color: var(--bb-primary);
  font-weight: 600;
}

.bb-tackles {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #999;
  font-weight: 600;
  margin-bottom: 0.2rem;
}

/* =========================================================
   FC-021 — CBE Narrative (cross-cutting)
   ========================================================= */

.cbe-homepage-callout {
  margin: 2rem 0;
}

.cbe-callout-inner {
  background: linear-gradient(135deg, var(--bb-primary) 0%, #7a9d80 100%);
  color: #fff;
  border-radius: 16px;
  padding: 2rem 2.5rem;
  text-align: center;
}

.cbe-callout-badge {
  display: inline-block;
  background: var(--bb-accent);
  color: var(--bb-text);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.3rem 1rem;
  border-radius: 20px;
  margin-bottom: 1rem;
}

\.schools-cbe-note {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 1px 4px rgba(0,0,0,0.4);
  text-align: center;
  max-width: 680px;
  margin: 0.75rem auto 2rem;
  font-style: italic;
}

.infra-cbe-context {
  background: #eaf4ee;
  border-left: 4px solid var(--bb-primary);
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 2rem;
  color: var(--bb-text);
}

/* =========================================================
   FC-022 — Book Drive Pages
   ========================================================= */

.drive-steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.drive-step {
  text-align: center;
  padding: 1.5rem 1rem;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
}

.drive-step-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bb-accent);
  color: var(--bb-text);
  font-weight: 700;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.75rem;
}

.drive-step-icon {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
  display: block;
}

.drive-step-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--bb-secondary);
  margin-bottom: 0.4rem;
}

.collect-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1.5rem;
}

.collect-yes,
.collect-no {
  padding: 1rem 1.25rem;
  border-radius: 10px;
  font-size: 0.9rem;
}

.collect-yes {
  background: #d5f5e3;
  border-left: 4px solid #27ae60;
}

.collect-no {
  background: #fdecea;
  border-left: 4px solid #e74c3c;
}

.collect-yes li,
.collect-no li {
  margin-bottom: 0.35rem;
}

.dropoff-card {
  background: var(--bb-bg);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  border-left: 4px solid var(--bb-accent);
}

.drive-wall-card {
  background: #fff;
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.07);
  transition: box-shadow 0.2s;
  height: 100%;
}

.drive-wall-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.drive-card-complete {
  border-top: 4px solid var(--bb-primary);
}

.drive-card-active {
  border-top: 4px solid var(--bb-accent);
}

.drive-organiser-type {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #888;
  font-weight: 600;
}

.drive-quote {
  font-style: italic;
  color: var(--bb-secondary);
  border-left: 3px solid var(--bb-accent);
  padding-left: 0.75rem;
  margin: 0.75rem 0;
  font-size: 0.95rem;
}

.drive-impact-badge {
  display: inline-block;
  background: var(--bb-primary);
  color: #fff;
  font-size: 0.8rem;
  padding: 0.2rem 0.7rem;
  border-radius: 20px;
  font-weight: 600;
}

.toolkit-resource-card {
  background: var(--bb-bg);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
  height: 100%;
}

.toolkit-copy-block {
  position: relative;
  background: #fff;
  border: 1px solid var(--bb-border);
  border-radius: 8px;
  padding: 1rem;
  font-size: 0.88rem;
  white-space: pre-wrap;
  font-family: var(--bb-font-body);
  color: var(--bb-text);
}

.toolkit-copy-btn {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: var(--bb-accent);
  color: var(--bb-text);
  border: none;
  border-radius: 6px;
  padding: 0.2rem 0.6rem;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s;
}

.toolkit-copy-btn:hover {
  opacity: 0.8;
}

@media (max-width: 767px) {
  .collect-grid {
    grid-template-columns: 1fr;
  }

  .founders-grid {
    grid-template-columns: 1fr;
  }

  .drive-steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cbe-pathways-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   About Us — Mission/Vision cards, Urban-Rural redesign,
   Parents redesign, Video section
   ========================================================= */

.about-mv-hero-img {
  max-height: 480px;
  object-fit: cover;
  object-position: center 30%;
}

.barriers-onion-img {
  max-height: 520px;
  width: auto;
  max-width: 100%;
}

.about-mv-card {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: #fff;
  border-radius: 12px;
  padding: 1.25rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  border-left: 4px solid var(--bb-accent);
}

.about-mv-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bb-accent);
  color: var(--bb-text);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.about-mv-heading {
  font-size: 1rem;
  font-weight: 700;
  color: var(--bb-secondary);
  margin-bottom: 0.4rem;
}

/* Parents credit cards */
.parent-credit-card {
  background: #fff;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  height: 100%;
}

.parent-credit-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--bb-bg);
  border: 2px solid var(--bb-accent);
  color: var(--bb-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.parent-credit-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--bb-secondary);
  margin-bottom: 0.2rem;
}

.parent-credit-role {
  font-size: 0.85rem;
  color: #888;
  margin-bottom: 0.75rem;
}

.parent-credit-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.parent-credit-list li {
  font-size: 0.9rem;
  color: var(--bb-text);
  margin-bottom: 0.4rem;
}

.parent-credit-list .fas {
  color: var(--bb-primary);
  font-size: 0.8rem;
}

/* Urban-Rural redesigned stats — background defined in FC-020 block above */

.urs-stat-stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.urs-stat-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: #fff;
  border-radius: 12px;
  padding: 1rem 1.25rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

.urs-stat-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bb-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.urs-value {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--bb-secondary);
  line-height: 1;
  display: block;
}

.urs-label {
  font-size: 0.82rem;
  color: var(--bb-text);
  margin-top: 0.15rem;
  display: block;
}

/* About Us video section */
.about-video-section {
  background: var(--bb-text);
  padding: 4rem 0;
}

.about-video-embed {
  max-width: 760px;
  margin: 0 auto;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}

/* =========================================================
   Book Drive — improved pages
   ========================================================= */

.section-bg-cream {
  background: var(--bb-bg);
}

.collect-yes-heading { color: #1e8449; }
.collect-no-heading  { color: #c0392b; }

/* Toolkit cards */
.toolkit-card {
  background: #fff;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.07);
  border-top: 4px solid var(--bb-primary);
}

.toolkit-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bb-bg);
  color: var(--bb-primary);
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.toolkit-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--bb-secondary);
  margin-bottom: 0.5rem;
}

.toolkit-primary-badge {
  background: var(--bb-primary);
  font-size: 0.7rem;
}

.toolkit-dropoff-item {
  font-size: 0.9rem;
}

/* Register page */
.register-why-panel {
  background: var(--bb-bg);
  border-radius: 16px;
  padding: 2rem;
  border-left: 4px solid var(--bb-accent);
  height: 100%;
}

.register-why-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--bb-secondary);
  margin-bottom: 1.5rem;
}

.register-why-item {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  margin-bottom: 1.25rem;
}

.register-why-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--bb-primary);
  color: #fff;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.register-dropoff-preview {
  background: #fff;
  border-radius: 10px;
  padding: 1rem;
  border: 1px solid var(--bb-border);
  font-size: 0.9rem;
}

.register-form-panel {
  background: #fff;
  border-radius: 16px;
  padding: 2.5rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
}

.register-form-section {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--bb-border);
}

.register-form-section:last-of-type {
  border-bottom: none;
  padding-bottom: 0;
}

.register-section-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--bb-secondary);
}

.register-section-number {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bb-secondary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  flex-shrink: 0;
}

/* Drive Wall v2 */
.drive-wall-filter-tabs {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.drive-wall-tab {
  display: inline-block;
  padding: 0.35rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  border: 2px solid var(--bb-border);
  color: var(--bb-text);
  text-decoration: none;
  transition: all 0.2s;
}

.drive-wall-tab:hover {
  border-color: var(--bb-primary);
  color: var(--bb-primary);
}

.drive-wall-tab.active {
  background: var(--bb-primary);
  border-color: var(--bb-primary);
  color: #fff;
}

.drive-wall-card-v2 {
  background: #fff;
  border-radius: 14px;
  padding: 1.5rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.07);
  border-bottom: 4px solid var(--bb-border);
  height: 100%;
  transition: box-shadow 0.2s, transform 0.2s;
}

.drive-wall-card-v2:hover {
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
  transform: translateY(-2px);
}

.drive-wall-card-v2.drive-card-complete {
  border-bottom-color: var(--bb-primary);
}

.drive-wall-card-v2.drive-card-active {
  border-bottom-color: var(--bb-accent);
}

.drive-wall-status {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.drive-badge-active {
  background: var(--bb-accent);
  color: var(--bb-text);
}

.drive-impact-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.drive-wall-empty {
  text-align: center;
  padding: 4rem 2rem;
}

.drive-wall-empty-icon {
  font-size: 3.5rem;
  color: #ccc;
  margin-bottom: 1rem;
}

@media (max-width: 767px) {
  .register-form-panel {
    padding: 1.5rem;
  }

  .parent-credit-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .parent-credit-list li {
    text-align: left;
  }
}

/* ============================================================
   SCHOOL CARD — Phase 2 expansion grid
   Replaces generic Bootstrap card with polished B&B card.
   ============================================================ */

.school-card {
  background: var(--bb-surface-warm);
  border: 1px solid var(--bb-border);
  border-radius: var(--bb-radius);
  box-shadow: var(--bb-shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.school-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.10);
}

.school-card-accent {
  height: 4px;
  background: linear-gradient(90deg, var(--bb-primary) 0%, var(--bb-secondary) 100%);
}

.school-card-body {
  padding: 1.4rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  flex: 1;
}

.school-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.school-card-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--bb-bg);
  border: 1px solid var(--bb-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bb-primary);
  font-size: 1.1rem;
}

.school-card-name {
  font-family: var(--bb-font-display);
  font-weight: 700;
  color: var(--bb-text);
  font-size: 1.05rem;
  margin: 0;
  line-height: 1.3;
}

.school-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.school-card-pill {
  font-size: 0.78rem;
  color: var(--bb-text-muted);
  background: var(--bb-bg);
  border: 1px solid var(--bb-border);
  border-radius: 20px;
  padding: 0.2rem 0.7rem;
  display: inline-flex;
  align-items: center;
}

.school-card-cta {
  margin-top: auto;
  padding-top: 0.25rem;
}

/* ============================================================
   CBE CALLOUT — three-column scannable grid
   ============================================================ */

.cbe-callout-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 1.25rem;
  text-align: left;
}

.cbe-callout-item {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 1rem;
}

.cbe-callout-item strong {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
  color: var(--bb-accent);
}

.cbe-callout-item p {
  margin: 0;
  font-size: 0.83rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.55;
}

.cbe-callout-icon {
  width: 34px;
  height: 34px;
  min-width: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: white;
}

/* === Upload widget (file + URL) on public forms ====================== */
.upload-preview {
  max-height: 120px;
  max-width: 100%;
  object-fit: contain;
  border-radius: 6px;
  border: 1px solid rgba(0,0,0,0.12);
  display: block;
}

.upload-or-divider {
  font-size: 0.8rem;
  text-align: center;
  color: #888;
  margin: 0.4rem 0;
}


/* ============================================================
   SCHOOL HERO VIDEO SECTION
   Two-column layout: text left + YouTube video right
   ============================================================ */

.school-hero-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
  margin-top: 1.75rem;
}

.school-hero-text-col {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.school-hero-intro {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--bb-text);
}

.school-hero-intro p { margin-bottom: 0.75rem; }

.school-hero-quote {
  background: var(--bb-bg);
  border-left: 4px solid var(--bb-accent);
  border-radius: 0 8px 8px 0;
  padding: 1rem 1.25rem;
  margin: 0;
}

.school-hero-quote p {
  font-style: italic;
  color: var(--bb-text);
  font-size: 1rem;
  line-height: 1.65;
  margin-bottom: 0.4rem;
}

.school-hero-quote footer {
  font-size: 0.88rem;
  color: var(--bb-text-muted);
  font-style: normal;
}

.school-hero-video-col { }

.school-hero-video {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

@media (max-width: 768px) {
  .school-hero-columns {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .school-hero-video-col { order: -1; } /* video first on mobile */
}


/* ============================================================
   SCHOOL CARD — THUMBNAIL variant
   ============================================================ */

.school-card-thumb {
  position: relative;
  height: 180px;
  overflow: hidden;
  border-radius: 10px 10px 0 0;
}

.school-card-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.school-card:hover .school-card-thumb-img { transform: scale(1.04); }

.school-card-thumb-badge {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
}


/* ============================================================
   SCHOOL EXTERNAL CREDIBILITY LINKS
   ============================================================ */

.school-ext-links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.school-ext-link-card {
  display: block;
  background: var(--bb-surface-warm);
  border: 1px solid var(--bb-border);
  border-left: 4px solid var(--bb-accent);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  text-decoration: none;
  color: var(--bb-text);
  transition: box-shadow 0.2s, transform 0.2s;
}

.school-ext-link-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  transform: translateY(-2px);
  color: var(--bb-text);
}

.school-ext-link-type {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--bb-text-muted);
  margin-bottom: 0.35rem;
}

.school-ext-link-title {
  font-family: var(--bb-font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--bb-secondary);
  line-height: 1.4;
  margin-bottom: 0.35rem;
}

.school-ext-link-desc {
  font-size: 0.85rem;
  color: var(--bb-text-muted);
  line-height: 1.5;
  margin-bottom: 0.4rem;
}

.school-ext-link-url {
  font-size: 0.78rem;
  color: var(--bb-primary);
  word-break: break-all;
}


/* ============================================================
   CAREER WHEEL SVG DIAGRAM
   ============================================================ */

.cbe-wheel-diagram {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0 auto;
  max-width: 420px;
}

.career-wheel-svg {
  width: 100%;
  max-width: 480px;
  min-width: 300px;
  height: auto;
  border-radius: 50%;
  box-shadow: 0 6px 28px rgba(0,0,0,0.12);
}

.career-wheel-img {
  width: 100%;
  max-width: 480px;
  height: auto;
  min-height: 320px;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 6px 28px rgba(0,0,0,0.12);
}


/* ============================================================
   PREVIOUS COMPLETED PROJECTS (homepage section 3b)
   ============================================================ */

.prev-projects-section {
  background: var(--bb-surface-warm);
  padding: 3rem 0;
  border-top: 1px solid var(--bb-border);
}

.prev-projects-heading {
  font-family: var(--bb-font-display);
  color: var(--bb-secondary);
  font-size: clamp(1.3rem, 3vw, 1.75rem);
}

.prev-project-card {
  background: white;
  border: 1px solid var(--bb-border);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.prev-project-thumb {
  width: 100%;
  height: 150px;
  object-fit: cover;
}

.prev-project-info {
  padding: 1rem 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.prev-project-name {
  font-family: var(--bb-font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--bb-secondary);
  margin-bottom: 0.25rem;
}

.prev-project-location,
.prev-project-stats { margin: 0; }


/* ============================================================
   COMPREHENSIVE MOBILE RESPONSIVENESS FIXES
   ============================================================ */

/* Base font size scaling — prevents text overflow on small screens */
@media (max-width: 576px) {
  html, body { font-size: 1rem; }          /* down from 1.2rem */

  h1 { font-size: clamp(1.5rem, 7vw, 2.2rem); }
  h2 { font-size: clamp(1.3rem, 6vw, 1.8rem); }
  h3 { font-size: clamp(1.1rem, 5vw, 1.4rem); }

  /* Hero — prevent content being swallowed behind the navbar */
  .hero-homepage {
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding-top: var(--bb-navbar-height);   /* safe zone: content can never reach navbar */
    padding-bottom: 2.5rem;
  }

  .hero-homepage h1 { font-size: clamp(1.6rem, 8vw, 2.4rem); }
  .hero-homepage .hero-sub { font-size: 0.95rem; }

  .hero-cta-group {
    flex-direction: column;
    align-items: stretch;
    gap: 0.6rem;
  }

  .hero-cta-group a {
    text-align: center;
    width: 100%;
  }

  /* Sections — reduce padding */
  .hgm-section,
  .launch-section,
  .news-section,
  .phase2-section,
  .charts-section,
  .partners-section,
  .testimonials-section,
  .join-cta-section { padding: 2rem 0; }

  /* Stats bar */
  .stats-bar { padding: 1.25rem 0; }
  .stat-number { font-size: 1.5rem; }

  /* School detail header — text not swallowed */
  .school-detail-header { padding: 5rem 0 1.75rem; }
  .school-detail-name   { font-size: 1.5rem; }

  /* CBE pathways grid — single column on mobile */
  .cbe-pathways-grid { grid-template-columns: 1fr; }

  /* Roadmap table — scrollable */
  .roadmap-table { font-size: 0.82rem; }

  /* Partner logo cards — 2 per row */
  .partner-logo-card { padding: 0.75rem; }

  /* Join CTA buttons */
  .join-cta-group {
    flex-direction: column;
    align-items: stretch;
  }
  .btn-join { text-align: center; width: 100%; }

  /* School card */
  .school-card-thumb { height: 140px; }

  /* Section titles */
  .section-title { font-size: clamp(1.25rem, 6vw, 1.75rem); }

  /* Prev projects section */
  .prev-projects-section { padding: 2rem 0; }
}

@media (max-width: 768px) {
  html, body { font-size: 1.05rem; }       /* slight reduction between 576–768px */

  .school-detail-header { padding: 5.5rem 0 2rem; }

  .hgm-section .row.g-5 { gap: 2rem; }

  /* Charts — full width on mobile */
  .chart-card canvas { max-height: 200px; }

  /* External links grid */
  .school-ext-links-grid { grid-template-columns: 1fr; }

  /* Career wheel SVG */
  .career-wheel-svg { max-width: 280px; }
}



/* ============================================================
   SCHOOL DETAIL — ALTERNATING SECTION BACKGROUNDS
   Gives each content block a subtle, distinctive feel while
   staying within the B&B color palette.
   ============================================================ */

/* Base section padding — consistent across all school sections */
.school-section {
  padding: 4rem 0;
}

/* Warm cream — used for slider, stats, documents, gallery */
.school-section-warm {
  background: var(--bb-surface-warm, #FDF5E6);
  border-top: 1px solid var(--bb-border, rgba(0,0,0,0.07));
  border-bottom: 1px solid var(--bb-border, rgba(0,0,0,0.07));
}

/* Pure white — used for timeline, news links, art gallery */
.school-section-white {
  background: #fff;
}

/* Dark green — CBE section; matches brand primary, high contrast */
.school-section-dark-green {
  background: var(--bb-primary-dark, #5A7A64);
  color: #fff;
}

/* Section title variant for dark backgrounds */
.school-section-title-light {
  color: #fff !important;
  border-left-color: var(--bb-accent) !important;
}

/* Keep standard font size within sections — no shrinkage */
.school-section p,
.school-section li,
.school-section .school-stat-label,
.school-section .school-ext-link-desc {
  font-size: 1rem;
}


/* ============================================================
   CBE TWO-COLUMN LAYOUT
   Text + pathway cards on left, career wheel on right
   ============================================================ */

.cbe-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.cbe-left-col { }

.cbe-right-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: sticky;
  top: 100px;
}

.cbe-intro-light p {
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.05rem;
  line-height: 1.75;
  margin-bottom: 1.25rem;
}

.cbe-intro-light strong { color: #fff; }

.cbe-note-light {
  background: rgba(255,255,255,0.1);
  border-left: 3px solid var(--bb-accent);
  border-radius: 0 6px 6px 0;
  padding: 0.85rem 1rem;
  color: rgba(255,255,255,0.88);
  font-size: 1rem;
  line-height: 1.65;
}

.cbe-note-light p { margin: 0; color: inherit; }

/* ── CBE connection items (B&B ↔ CBE competency mapping) ── */
.cbe-connections {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.cbe-connection-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.cbe-connection-emoji {
  font-size: 1.75rem;
  line-height: 1.2;
  flex-shrink: 0;
}

.cbe-connection-title {
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
}

.cbe-connection-desc {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.92rem;
  line-height: 1.65;
  margin: 0;
}

/* ── Placeholder library photo in CBE section right column ── */
.cbe-placeholder-img {
  width: 100%;
  max-height: 320px;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

/* Pathway cards — white on dark section background */
.school-section-dark-green .pathway-card {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
}

.school-section-dark-green .pathway-card h3 {
  color: #fff;
}

.school-section-dark-green .pathway-card p,
.school-section-dark-green .pathway-card li {
  color: rgba(255,255,255,0.85);
}

/* Career wheel on dark background */
.cbe-right-col .career-wheel-svg,
.cbe-right-col .career-wheel-img {
  box-shadow: 0 8px 40px rgba(0,0,0,0.3);
}

.cbe-upload-note p { font-size: 0.82rem; }

@media (max-width: 900px) {
  .cbe-two-col {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .cbe-right-col {
    position: static;
    order: -1;  /* show wheel above text on narrow screens */
  }
  .career-wheel-svg { max-width: 260px; }
}


/* ============================================================
   EXTERNAL LINK CARDS — with image support
   ============================================================ */

/* Override previous card layout to accommodate image */
.school-ext-link-card {
  display: flex;
  flex-direction: column;
  background: var(--bb-surface-warm);
  border: 1px solid var(--bb-border);
  border-top: 4px solid var(--bb-accent);
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
  color: var(--bb-text);
  transition: box-shadow 0.2s, transform 0.2s;
}

.school-ext-link-card:hover {
  box-shadow: 0 6px 24px rgba(0,0,0,0.12);
  transform: translateY(-3px);
  color: var(--bb-text);
}

.school-ext-link-img-wrap {
  height: 160px;
  overflow: hidden;
}

.school-ext-link-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.school-ext-link-card:hover .school-ext-link-img { transform: scale(1.04); }

.school-ext-link-img-placeholder {
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--bb-primary) 0%, var(--bb-primary-dark, #5A7A64) 100%);
  color: rgba(255,255,255,0.8);
}

.school-ext-link-body {
  padding: 1rem 1.25rem 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.school-ext-link-type {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--bb-text-muted);
}

.school-ext-link-title {
  font-family: var(--bb-font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--bb-secondary);
  line-height: 1.4;
}

.school-ext-link-desc {
  font-size: 0.9rem;
  color: var(--bb-text-muted);
  line-height: 1.5;
  flex: 1;
}

.school-ext-link-url {
  font-size: 0.78rem;
  color: var(--bb-primary);
  word-break: break-all;
  margin-top: 0.25rem;
}



/* ── Field Notes / Activity Posts ─────────────────────────────────────────── */

/* Hero */
.field-notes-hero {
  background: linear-gradient(135deg, var(--bb-primary) 0%, #5A7A64 100%);
  color: #fff;
  padding: 5rem 0 3.5rem;
  text-align: center;
}
.field-notes-hero-eyebrow {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  opacity: 0.85;
  display: block;
  margin-bottom: 0.75rem;
}
.field-notes-hero-title {
  font-family: var(--bb-font-display);
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 800;
  margin-bottom: 1rem;
}
.field-notes-hero-sub {
  font-size: 1.05rem;
  opacity: 0.9;
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.7;
}

/* Feed section */
.field-notes-feed-section {
  padding: 4rem 0 5rem;
  background: var(--bb-bg);
}

/* Timeline outer container */
.field-notes-timeline {
  position: relative;
  max-width: 860px;
  margin: 0 auto;
  padding-left: 2rem;
}
.field-notes-timeline::before {
  content: '';
  position: absolute;
  left: 0.875rem;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, var(--bb-primary) 0%, var(--bb-accent) 100%);
  border-radius: 2px;
}

/* Single entry */
.field-notes-entry {
  position: relative;
  margin-bottom: 3.5rem;
}
.fn-spine-dot {
  position: absolute;
  left: -1.625rem;
  top: 1.5rem;
  width: 14px;
  height: 14px;
  background: var(--bb-accent);
  border: 3px solid var(--bb-primary);
  border-radius: 50%;
  z-index: 1;
}

/* Card */
.fn-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.07);
  overflow: hidden;
}

/* Media layouts */
.fn-media-solo img,
.fn-media-solo .fn-video-wrapper {
  width: 100%;
  display: block;
}
.fn-photo-img {
  width: 100%;
  max-height: 440px;
  object-fit: cover;
  display: block;
}
.fn-video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  background: #000;
}
.fn-video-wrapper iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: none;
}
.fn-media-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}
.fn-media-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.fn-media-video {
  display: flex;
  flex-direction: column;
}

/* Text area */
.fn-text {
  padding: 1.5rem 1.75rem 1.75rem;
}
.fn-meta {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}
.fn-date,
.fn-author {
  font-size: 0.82rem;
  color: var(--bb-text-muted);
  font-weight: 600;
}
.fn-title {
  font-family: var(--bb-font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--bb-secondary);
  margin-bottom: 0.6rem;
}
.fn-caption {
  font-size: 0.97rem;
  color: var(--bb-text);
  line-height: 1.75;
}
.fn-caption p { margin-bottom: 0.5rem; }
.fn-caption p:last-child { margin-bottom: 0; }

/* Empty state */
.field-notes-empty {
  text-align: center;
  padding: 5rem 1rem;
  color: var(--bb-text-muted);
}
.field-notes-empty h3 {
  font-family: var(--bb-font-display);
  font-size: 1.5rem;
  color: var(--bb-secondary);
  margin-bottom: 0.5rem;
}

/* Responsive */
@media (max-width: 576px) {
  .field-notes-timeline { padding-left: 1.5rem; }
  .field-notes-timeline::before { left: 0.625rem; }
  .fn-spine-dot { left: -1.25rem; top: 1.25rem; width: 12px; height: 12px; }
  .fn-media-row { grid-template-columns: 1fr; }
  .fn-text { padding: 1.25rem; }
  .fn-title { font-size: 1.15rem; }
}

/* ── Flash Toast (fixed position, always above hero) ──────────────────────── */
#flash-toast-container {
  position: fixed;
  top: calc(var(--bb-navbar-height, 72px) + 0.75rem);
  right: 1rem;
  z-index: 1060;
  max-width: 420px;
  width: calc(100vw - 2rem);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  pointer-events: none;
}
.flash-toast {
  pointer-events: auto;
  border-radius: 10px;
  font-size: 0.92rem;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12) !important;
}

/* ── Field Notes pagination ────────────────────────────────────────────────── */
.field-notes-pagination {
  padding: 2rem 0 0;
  max-width: 860px;
  margin: 0 auto;
}
.field-notes-pagination .page-link {
  border-radius: 8px !important;
  color: var(--bb-primary);
  border-color: var(--bb-primary);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.4rem 0.75rem;
}
.field-notes-pagination .page-item.active .page-link {
  background: var(--bb-primary);
  border-color: var(--bb-primary);
  color: #fff;
}

/* ═══════════════════════════════════════════════════════════════════════════
   PUBLIC PEOPLE PAGES — /people/interns
   ═══════════════════════════════════════════════════════════════════════════ */

/* Hero */
.hero-people-interns {
  background: url("/static/images/imgnew/children standing.jpeg") center 30%/cover no-repeat;
}

/* Intern card grid */
.intern-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
  height: 100%;
}
.intern-card-link:hover { text-decoration: none; color: inherit; }

.intern-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.intern-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 24px rgba(0,0,0,0.13);
}

.intern-card-avatar {
  height: 160px;
  background: var(--bb-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.intern-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.intern-avatar-placeholder {
  color: rgba(255,255,255,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.intern-card-body {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.intern-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--bb-secondary);
  margin-bottom: 0.35rem;
}
.intern-location,
.intern-institution,
.intern-school {
  font-size: 0.82rem;
  color: #666;
  margin-bottom: 0.2rem;
}
.intern-card-badges {
  margin-top: 0.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}
.intern-card-cta {
  margin-top: auto;
  padding-top: 0.75rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--bb-primary);
}

/* Profile header */
.intern-profile-header {
  background: var(--bb-surface-warm, #FDF5E6);
  padding: 2.5rem 0;
  border-bottom: 1px solid rgba(0,0,0,0.07);
}
.intern-profile-top {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  flex-wrap: wrap;
}
.intern-profile-photo-wrap {
  flex-shrink: 0;
}
.intern-profile-photo {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--bb-primary);
}
.intern-profile-photo-placeholder {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: var(--bb-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.7);
}
.intern-profile-info { flex: 1; min-width: 220px; }
.intern-profile-name {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--bb-secondary);
  margin-bottom: 0.5rem;
}
.intern-profile-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.6rem;
}
.intern-meta-badge {
  background: rgba(157, 181, 160, 0.18);
  border: 1px solid var(--bb-primary);
  color: var(--bb-text);
  border-radius: 20px;
  padding: 0.2rem 0.7rem;
  font-size: 0.82rem;
}
.intern-service-period {
  font-size: 0.88rem;
  margin-bottom: 0.6rem;
}
.intern-social-links {
  display: flex;
  gap: 0.6rem;
  margin-top: 0.5rem;
}
.intern-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--bb-primary);
  color: #fff;
  font-size: 0.9rem;
  text-decoration: none;
  transition: background 0.15s ease;
}
.intern-social-link:hover { background: var(--bb-secondary); color: #fff; }

/* Bio text */
.intern-bio-text { line-height: 1.75; color: var(--bb-text); }
.intern-recommendation-text {
  line-height: 1.75;
  color: var(--bb-text);
  font-style: italic;
}

/* Impact stats */
.intern-stat-row {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 0.6rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.intern-stat-row:last-child { border-bottom: none; margin-bottom: 0; }
.intern-stat-number {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--bb-secondary);
  line-height: 1;
}
.intern-stat-label {
  font-size: 0.85rem;
  color: #666;
}

/* ═══════════════════════════════════════════════════════════════════════════
   PUBLIC PEOPLE PAGES — /people/donors  &  /people/partners
   ═══════════════════════════════════════════════════════════════════════════ */

/* Hero backgrounds */
.hero-people-donors {
  background: url("/static/images/imgnew/children_reading.jpeg") center 40%/cover no-repeat;
}
.hero-people-partners {
  background: url("/static/images/imgnew/ourstory.jpeg") center 40%/cover no-repeat;
}

/* ── Donor cards ── */
.donor-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.donor-card-avatar {
  height: 90px;
  background: var(--bb-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}
.donor-initial {
  font-size: 2.5rem;
  font-weight: 800;
  color: rgba(255,255,255,0.85);
  font-family: var(--bb-font-display);
}
.donor-card-body {
  padding: 1.25rem;
  flex: 1;
}
.donor-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--bb-secondary);
  margin-bottom: 0.25rem;
}
.donor-location {
  font-size: 0.82rem;
  color: #666;
  margin-bottom: 0.5rem;
}
.donor-stats {
  display: flex;
  gap: 1rem;
  margin-bottom: 0.6rem;
}
.donor-stat {
  text-align: center;
}
.donor-stat-num {
  display: block;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--bb-secondary);
  line-height: 1;
}
.donor-stat-lbl {
  font-size: 0.75rem;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.donor-bio {
  font-size: 0.85rem;
  color: #555;
  margin-bottom: 0;
  line-height: 1.5;
}

/* ── Partner cards ── */
.partner-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.partner-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}
.partner-card-previous {
  opacity: 0.75;
}
.partner-card-previous:hover { opacity: 1; }

.partner-card-logo {
  height: 120px;
  background: #f8f9fa;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.partner-logo-img {
  max-height: 90px;
  max-width: 100%;
  object-fit: contain;
}
.partner-logo-placeholder {
  color: #ccc;
}
.partner-card-body {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.partner-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--bb-secondary);
  margin-bottom: 0.4rem;
}
.partner-desc {
  font-size: 0.85rem;
  color: #555;
  line-height: 1.5;
  margin-bottom: 0.5rem;
}
.partner-contribution {
  font-size: 0.83rem;
  color: #555;
  font-style: italic;
  margin-bottom: 0.5rem;
}
.partner-schools {
  margin-bottom: 0.5rem;
}
.partner-website-link {
  display: inline-block;
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--bb-primary);
  text-decoration: none;
  margin-top: auto;
  padding-top: 0.5rem;
}

/* ============================================================
   GLOBAL MOBILE RESPONSIVE FIXES
   Targets classes whose base definitions lack breakpoints.
   Breakpoints: 768px (phones), 576px (small phones / 320px min)
   ============================================================ */

/* === General .section padding ============================== */
@media (max-width: 768px) {
  .section               { padding: 3rem 1rem; }
  .section img.img-fluid { max-height: 280px; }
}

@media (max-width: 576px) {
  .section               { padding: 2rem 0.5rem; }
  .section img.img-fluid { max-height: 200px; }
}

/* === Quote section blockquote overflow fix ================= */
@media (max-width: 768px) {
  .quote-section                     { padding: 3rem 1.5rem; }
  .quote-section blockquote          { padding-left: 1.5rem; }
  .quote-section blockquote::before  { left: 0; top: -6px; }
}

@media (max-width: 576px) {
  .quote-section                     { padding: 2rem 1rem; }
  .quote-section blockquote          { padding-left: 0; }
  /* Hide the large decorative quote mark — it clips on 320px screens */
  .quote-section blockquote::before  { display: none; }
}

/* === Auth page banner — less height on tiny screens ======== */
@media (max-width: 576px) {
  .auth-page-banner    { min-height: 35vh; }
}

/* === Carousel hero — use svh on phones ==================== */
@media (max-width: 768px) {
  .hero-carousel       { min-height: 90svh; }
  .hero-carousel-img   { min-height: 90svh; }
  .hero-blockquote     { padding-bottom: 2rem; }
}

/* === Footer newsletter form — stack vertically ============= */
@media (max-width: 576px) {
  .footer-newsletter-inner       { gap: 1.5rem; }
  .footer-newsletter-form-wrap   { flex: 1 1 100%; min-width: 0; }
  .footer-newsletter-form        {
    flex-direction: column;
    border-radius: var(--bb-radius);
    overflow: visible;
    border: none;
    gap: 0.5rem;
  }
  .footer-newsletter-email       {
    border-radius: var(--bb-radius);
    padding: 10px 14px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: 100%;
  }
  .footer-newsletter-submit      {
    border-radius: var(--bb-radius);
    justify-content: center;
    width: 100%;
  }
}

/* === Footer impact band — reduce gap on very small screens = */
@media (max-width: 400px) {
  .footer-impact-row  { gap: 1rem; }
  .footer-impact-sep  { display: none; }
}

/* === Navbar — prevent brand text overflow at 320px ========= */
@media (max-width: 360px) {
  .brand-text          { font-size: 1rem !important; }
  .brand-logo          { height: 36px !important; }
}

/* === Founder images — smaller on phones ==================== */
@media (max-width: 576px) {
  .founder-img         { width: 140px; height: 140px; }
}

/* === Form card — remove horizontal overflow risk =========== */
@media (max-width: 576px) {
  .form-card           { padding: 1.25rem 1rem; }
  .card-narrow         { max-width: 100%; }
}

/* === Art gallery card — stack on narrow screens ============ */
@media (max-width: 480px) {
  .art-gallery-card    { flex-direction: column; }
  .art-gallery-img     { width: 100%; height: 180px; border-radius: 8px 8px 0 0; }
}

/* === Sidebar mobile logo — limit size on tiny phones ======= */
@media (max-width: 360px) {
  .sidebar-mobile-logo { height: 56px; }
}

/* === Tables — ensure all tables scroll horizontally ======== */
table:not(.roadmap-table) {
  max-width: 100%;
}
@media (max-width: 768px) {
  .table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
}
.partner-website-link:hover { color: var(--bb-secondary); text-decoration: underline; }
