﻿/* ==========================================================================
   THE BOOKWORM AFRICA â€” Bespoke WordPress Theme Stylesheet
   Cultural Palette: Carbon Ink #16120E, Kente Ochre #C47D1C, 
   Laterite Terracotta #852E1B, Adire Indigo #1A2B3C, Antique Vellum #F8F4EB
   Typography: Playfair Display (Headlines/Italics), Plus Jakarta Sans (Body)
   ========================================================================== */

:root {
  --bw-ink: #16120E;
  --bw-ink-soft: #4A3E38;
  --bw-ochre: #C47D1C;
  --bw-ochre-light: #EBB868;
  --bw-terracotta: #852E1B;
  --bw-terracotta-dark: #5A1B0E;
  --bw-indigo: #1A2B3C;
  --bw-indigo-dark: #101B26;
  --bw-vellum: #F8F4EB;
  --bw-sand: #EDE5D4;
  --bw-paper: #FFFFFF;
  --bw-border: rgba(22, 18, 14, 0.12);
  --bw-border-subtle: rgba(22, 18, 14, 0.06);

  /* Legacy brand token bridges */
  --bw-maroon: #852E1B;
  --bw-maroon-dark: #5A1B0E;
  --bw-gold: #C47D1C;
  --bw-gold-deep: #A06412;
  --bw-cream: #F8F4EB;

  --bw-font-heading: 'Playfair Display', Georgia, serif;
  --bw-font-body: 'Plus Jakarta Sans', 'Mulish', -apple-system, BlinkMacSystemFont, sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
}

body {
  background-color: var(--bw-vellum);
  color: var(--bw-ink);
  font-family: var(--bw-font-body);
  font-size: 1.0625rem;
  line-height: 1.68;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--bw-font-heading);
  color: var(--bw-ink);
  font-weight: 700;
  line-height: 1.22;
  margin-top: 0;
}

p {
  margin-top: 0;
  margin-bottom: 1.25rem;
}

a {
  color: var(--bw-terracotta);
  text-decoration: none;
  transition: color 0.2s ease, border-color 0.2s ease;
}

a:hover, a:focus {
  color: var(--bw-ochre);
}

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

:focus-visible {
  outline: 2px solid var(--bw-ochre);
  outline-offset: 3px;
}

.bw-container {
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

.bw-container-wide {
  max-width: 1340px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

.bw-section-eyebrow {
  font-family: var(--bw-font-heading);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--bw-ochre);
  margin-bottom: 8px;
  display: block;
  font-weight: 600;
}

.bw-section-eyebrow-light {
  color: var(--bw-ochre-light);
}

.bw-section-title {
  font-size: clamp(2rem, 3.8vw, 2.9rem);
  letter-spacing: -0.015em;
  margin-bottom: 16px;
  color: var(--bw-ink);
}

.bw-section-title-light {
  color: var(--bw-vellum);
}

.bw-section-lead {
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--bw-ink-soft);
  max-width: 680px;
}

.bw-section-lead-light {
  color: rgba(248, 244, 235, 0.85);
}

/* Header */
.bw-header {
  background: var(--bw-paper);
  border-bottom: 2px solid var(--bw-border);
  position: sticky;
  top: 0;
  z-index: 900;
  padding: 14px 24px;
}

.bw-header-inner {
  max-width: 1320px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.bw-site-logo img {
  max-height: 58px;
  width: auto;
  display: block;
}

.bw-nav {
  font-family: var(--bw-font-body);
  font-weight: 600;
  font-size: 0.95rem;
}

.bw-nav ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 24px;
  align-items: center;
}

.bw-nav a {
  color: var(--bw-ink);
  padding: 6px 4px;
  position: relative;
}

.bw-nav a:hover,
.bw-nav .current-menu-item > a {
  color: var(--bw-terracotta);
}

.bw-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--bw-ochre);
  transition: width 0.25s ease;
}

.bw-nav a:hover::after,
.bw-nav .current-menu-item > a::after {
  width: 100%;
}

.bw-btn-small .wp-block-button__link {
  background: var(--bw-terracotta) !important;
  color: var(--bw-vellum) !important;
  font-size: 0.88rem !important;
  font-weight: 600 !important;
  padding: 10px 22px !important;
  border-radius: 4px !important;
  border: 1px solid var(--bw-terracotta) !important;
}

.bw-btn-small .wp-block-button__link:hover {
  background: var(--bw-ink) !important;
  border-color: var(--bw-ink) !important;
  color: var(--bw-vellum) !important;
}

/* Hero */
.bw-hero {
  background: var(--bw-vellum);
  border-bottom: 2px solid var(--bw-border);
  padding: 70px 0 60px;
  position: relative;
  overflow: hidden;
}

.bw-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(var(--bw-border-subtle) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: 0.8;
  pointer-events: none;
}

.bw-hero-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.bw-hero-content {
  padding-right: 12px;
}

.bw-hero-affiliation {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  background: var(--bw-sand);
  border: 1px solid var(--bw-border);
  border-radius: 4px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--bw-ink-soft);
  margin-bottom: 20px;
}

.bw-hero-affiliation-badge {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--bw-ochre);
  border-radius: 50%;
}

.bw-hero-title {
  font-size: clamp(2.6rem, 5.2vw, 4.2rem);
  line-height: 1.08;
  font-weight: 800;
  color: var(--bw-ink);
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.bw-hero-title em {
  font-style: italic;
  color: var(--bw-terracotta);
  font-weight: 700;
}

.bw-hero-lead {
  font-size: 1.2rem;
  line-height: 1.7;
  color: var(--bw-ink-soft);
  margin-bottom: 32px;
  max-width: 620px;
}

.bw-hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 36px;
}

.bw-btn-primary {
  background: var(--bw-terracotta);
  color: var(--bw-vellum);
  font-weight: 600;
  padding: 14px 30px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--bw-terracotta);
  transition: all 0.25s ease;
}

.bw-btn-primary:hover {
  background: var(--bw-ink);
  border-color: var(--bw-ink);
  color: var(--bw-vellum);
}

.bw-btn-secondary {
  background: transparent;
  color: var(--bw-ink);
  font-weight: 600;
  padding: 14px 28px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--bw-border);
  transition: all 0.25s ease;
}

.bw-btn-secondary:hover {
  background: var(--bw-sand);
  border-color: var(--bw-ink);
  color: var(--bw-ink);
}

.bw-hero-meta {
  display: flex;
  gap: 28px;
  border-top: 1px solid var(--bw-border);
  padding-top: 24px;
}

.bw-hero-stat-item {
  display: flex;
  flex-direction: column;
}

.bw-hero-stat-num {
  font-family: var(--bw-font-heading);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--bw-ink);
  line-height: 1.1;
}

.bw-hero-stat-label {
  font-size: 0.85rem;
  color: var(--bw-ink-soft);
}

.bw-hero-media {
  position: relative;
}

.bw-hero-frame-main {
  position: relative;
  border: 2px solid var(--bw-ink);
  background: var(--bw-paper);
  box-shadow: 12px 12px 0 var(--bw-ochre);
}

.bw-hero-frame-main img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
}

.bw-hero-broadcast-tag {
  position: absolute;
  bottom: 16px;
  left: 16px;
  right: 16px;
  background: rgba(22, 18, 14, 0.92);
  color: var(--bw-vellum);
  padding: 10px 14px;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 10px;
  border-left: 3px solid var(--bw-ochre);
  backdrop-filter: blur(4px);
}

.bw-broadcast-pulse {
  width: 10px;
  height: 10px;
  background: #E53935;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(229, 57, 53, 0.7);
  animation: bwPulse 2s infinite;
  flex-shrink: 0;
}

@keyframes bwPulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(229, 57, 53, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(229, 57, 53, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(229, 57, 53, 0); }
}

/* News Section */
.bw-news-section {
  padding: 80px 0;
  background: var(--bw-sand);
  border-bottom: 1px solid var(--bw-border);
}

.bw-news-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 40px;
  gap: 20px;
}

.bw-news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.bw-news-card {
  background: var(--bw-paper);
  border: 1px solid var(--bw-border);
  border-left: 4px solid var(--bw-terracotta);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.bw-news-card:hover {
  transform: translateY(-4px);
  border-left-color: var(--bw-ochre);
}

.bw-news-date {
  font-size: 0.85rem;
  color: var(--bw-ochre);
  font-weight: 600;
  margin-bottom: 12px;
}

.bw-news-card-title {
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 14px;
  color: var(--bw-ink);
}

.bw-news-card-excerpt {
  font-size: 0.98rem;
  color: var(--bw-ink-soft);
  line-height: 1.6;
  margin-bottom: 0;
}

/* Narrative */
.bw-narrative-section {
  padding: 90px 0;
  background: var(--bw-vellum);
  border-bottom: 1px solid var(--bw-border);
}

.bw-narrative-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.bw-narrative-content h2 {
  font-size: clamp(2.2rem, 3.8vw, 3rem);
  margin-bottom: 24px;
  line-height: 1.16;
}

.bw-narrative-content p {
  font-size: 1.1rem;
  line-height: 1.75;
  color: var(--bw-ink-soft);
}

.bw-editorial-quote {
  margin: 32px 0 0;
  padding: 28px 32px;
  background: var(--bw-sand);
  border-left: 3px solid var(--bw-ochre);
  position: relative;
}

.bw-editorial-quote p {
  font-family: var(--bw-font-heading);
  font-style: italic;
  font-size: 1.25rem;
  line-height: 1.6;
  color: var(--bw-ink);
  margin-bottom: 12px;
}

.bw-editorial-quote cite {
  font-family: var(--bw-font-body);
  font-style: normal;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--bw-terracotta);
}

.bw-narrative-visual {
  position: relative;
}

.bw-narrative-img-frame {
  border: 2px solid var(--bw-ink);
  background: var(--bw-paper);
  box-shadow: -10px 10px 0 var(--bw-sand);
}

.bw-narrative-caption {
  font-size: 0.88rem;
  color: var(--bw-ink-soft);
  padding: 12px 14px;
  border-top: 1px solid var(--bw-border);
  background: var(--bw-paper);
}

/* The Six Skills */
.bw-skills-section {
  padding: 90px 0;
  background: var(--bw-paper);
  border-bottom: 1px solid var(--bw-border);
}

.bw-skills-intro {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 56px;
}

.bw-skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.bw-skill-cell {
  background: var(--bw-vellum);
  border: 1px solid var(--bw-border);
  padding: 34px 28px;
  position: relative;
  transition: all 0.25s ease;
}

.bw-skill-cell:hover {
  background: var(--bw-sand);
  border-color: var(--bw-ochre);
}

.bw-skill-icon-mark {
  width: 42px;
  height: 42px;
  background: var(--bw-terracotta);
  color: var(--bw-vellum);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  margin-bottom: 20px;
}

.bw-skill-cell h3 {
  font-size: 1.35rem;
  margin-bottom: 12px;
  color: var(--bw-ink);
}

.bw-skill-cell p {
  font-size: 0.98rem;
  color: var(--bw-ink-soft);
  line-height: 1.6;
  margin-bottom: 0;
}

/* Pathway */
.bw-pathway-section {
  padding: 100px 0;
  background: var(--bw-indigo);
  color: var(--bw-vellum);
  position: relative;
  overflow: hidden;
}

.bw-pathway-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 60px;
}

.bw-pathway-track {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  position: relative;
}

.bw-pathway-track::before {
  content: '';
  position: absolute;
  top: 36px;
  left: 40px;
  right: 40px;
  height: 2px;
  background: rgba(248, 244, 235, 0.2);
  z-index: 1;
}

.bw-pathway-progress-line {
  position: absolute;
  top: 36px;
  left: 40px;
  width: 100%;
  height: 2px;
  background: var(--bw-ochre);
  z-index: 2;
  transition: width 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.bw-pathway-step {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.bw-pathway-num {
  width: 72px;
  height: 72px;
  background: var(--bw-indigo-dark);
  border: 2px solid rgba(248, 244, 235, 0.25);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--bw-font-heading);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--bw-ochre);
  margin-bottom: 18px;
  transition: all 0.3s ease;
}

.bw-pathway-step:hover .bw-pathway-num,
.bw-pathway-step.is-active .bw-pathway-num {
  border-color: var(--bw-ochre);
  background: var(--bw-ochre);
  color: var(--bw-ink);
  transform: scale(1.08);
}

.bw-pathway-label {
  font-family: var(--bw-font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--bw-vellum);
  margin-bottom: 8px;
}

.bw-pathway-desc {
  font-size: 0.88rem;
  color: rgba(248, 244, 235, 0.7);
  line-height: 1.45;
  margin: 0;
  padding: 0 4px;
}

/* Map Section */
.bw-map-section {
  padding: 90px 0;
  background: var(--bw-vellum);
  border-bottom: 1px solid var(--bw-border);
}

.bw-map-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 48px;
}

.bw-map-filters {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.bw-map-filter-btn {
  background: var(--bw-paper);
  border: 1px solid var(--bw-border);
  padding: 10px 22px;
  font-family: var(--bw-font-body);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--bw-ink);
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.bw-map-filter-btn:hover,
.bw-map-filter-btn.is-active {
  background: var(--bw-terracotta);
  border-color: var(--bw-terracotta);
  color: var(--bw-vellum);
}

.bw-map-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
}

.bw-map-svg-wrap {
  background: var(--bw-sand);
  border: 1px solid var(--bw-border);
  padding: 30px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bw-africa-svg {
  width: 100%;
  max-width: 520px;
  height: auto;
}

.bw-country-path {
  fill: #D8CEBA;
  stroke: var(--bw-vellum);
  stroke-width: 1.2;
  transition: fill 0.25s ease, transform 0.2s ease;
  cursor: pointer;
}

.bw-country-path.is-participating {
  fill: var(--bw-terracotta);
}

.bw-country-path.is-participating:hover,
.bw-country-path.is-highlighted {
  fill: var(--bw-ochre);
}

.bw-map-nations-panel {
  background: var(--bw-paper);
  border: 1px solid var(--bw-border);
  padding: 32px;
  border-radius: 4px;
}

.bw-map-nations-count {
  font-family: var(--bw-font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--bw-terracotta);
  line-height: 1;
  margin-bottom: 6px;
}

.bw-map-nations-sub {
  font-size: 1rem;
  color: var(--bw-ink-soft);
  margin-bottom: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--bw-border);
}

.bw-country-chips-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-height: 380px;
  overflow-y: auto;
  padding-right: 6px;
}

.bw-country-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bw-vellum);
  border: 1px solid var(--bw-border);
  padding: 7px 14px;
  border-radius: 3px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--bw-ink);
  transition: all 0.2s ease;
  cursor: pointer;
}

.bw-country-chip:hover,
.bw-country-chip.is-active {
  background: var(--bw-terracotta);
  border-color: var(--bw-terracotta);
  color: var(--bw-vellum);
}

/* Partnerships */
.bw-partners-section {
  padding: 80px 0;
  background: var(--bw-paper);
  border-bottom: 1px solid var(--bw-border);
  text-align: center;
}

.bw-partners-header {
  max-width: 700px;
  margin: 0 auto 40px;
}

.bw-partners-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-bottom: 40px;
}

.bw-partner-tile {
  width: 180px;
  height: 120px;
  background: var(--bw-vellum);
  border: 1px solid var(--bw-border);
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: all 0.25s ease;
}

.bw-partner-tile:hover {
  background: var(--bw-paper);
  border-color: var(--bw-ochre);
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(22, 18, 14, 0.06);
}

.bw-partner-tile img {
  max-height: 76px;
  max-width: 140px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(15%);
  transition: filter 0.25s ease;
}

.bw-partner-tile:hover img {
  filter: grayscale(0%);
}

.bw-partners-footer {
  max-width: 680px;
  margin: 0 auto;
}

.bw-partners-footer p {
  font-size: 0.98rem;
  color: var(--bw-ink-soft);
  margin-bottom: 16px;
}

.bw-btn-seasons {
  font-weight: 600;
  color: var(--bw-terracotta);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--bw-terracotta);
  padding-bottom: 2px;
}

.bw-btn-seasons:hover {
  color: var(--bw-ochre);
  border-color: var(--bw-ochre);
}

/* Closing CTA */
.bw-closing-cta {
  padding: 100px 0;
  background: var(--bw-terracotta);
  color: var(--bw-vellum);
  text-align: center;
  position: relative;
}

.bw-closing-cta-inner {
  max-width: 760px;
  margin: 0 auto;
}

.bw-closing-cta h2 {
  font-size: clamp(2.4rem, 4.2vw, 3.4rem);
  color: var(--bw-vellum);
  margin-bottom: 20px;
}

.bw-closing-cta p {
  font-size: 1.2rem;
  color: rgba(248, 244, 235, 0.9);
  line-height: 1.7;
  margin-bottom: 36px;
}

.bw-btn-cta-gold {
  background: var(--bw-ochre);
  color: var(--bw-ink);
  font-weight: 700;
  font-size: 1.1rem;
  padding: 16px 36px;
  border-radius: 4px;
  display: inline-block;
  transition: all 0.25s ease;
}

.bw-btn-cta-gold:hover {
  background: var(--bw-vellum);
  color: var(--bw-terracotta);
  transform: translateY(-2px);
}

/* About Page */
.bw-about-banner {
  padding: 80px 0 70px;
  background: var(--bw-indigo);
  color: var(--bw-vellum);
  position: relative;
}

.bw-about-banner-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
}

.bw-about-banner h1 {
  font-size: clamp(2.6rem, 4.8vw, 3.8rem);
  color: var(--bw-vellum);
  line-height: 1.12;
  margin-bottom: 18px;
}

.bw-about-banner p {
  font-size: 1.2rem;
  color: rgba(248, 244, 235, 0.85);
  line-height: 1.7;
}

.bw-mission-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 36px;
}

.bw-mission-item {
  background: var(--bw-sand);
  border: 1px solid var(--bw-border);
  border-left: 3px solid var(--bw-terracotta);
  padding: 22px 20px;
  font-size: 1.02rem;
  line-height: 1.6;
}

.bw-research-card {
  background: var(--bw-sand);
  border: 2px solid var(--bw-indigo);
  padding: 40px;
  margin: 50px 0;
  border-radius: 4px;
}

.bw-research-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
}

.bw-research-logo {
  max-height: 48px;
  width: auto;
}

.bw-research-card h3 {
  font-size: 1.6rem;
  color: var(--bw-indigo);
  margin-bottom: 12px;
}

/* Team Grid */
.bw-team-section {
  padding: 80px 0;
  background: var(--bw-vellum);
}

.bw-team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 32px;
}

.bw-team-card {
  background: var(--bw-paper);
  border: 1px solid var(--bw-border);
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.bw-team-card:hover {
  transform: translateY(-4px);
  border-color: var(--bw-ochre);
}

.bw-team-photo-frame {
  width: 100%;
  aspect-ratio: 1/1;
  overflow: hidden;
  background: var(--bw-sand);
}

.bw-team-photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.35s ease;
}

.bw-team-card:hover .bw-team-photo-frame img {
  transform: scale(1.03);
}

.bw-team-info {
  padding: 22px 20px;
}

.bw-team-role {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--bw-ochre);
  margin-bottom: 6px;
}

.bw-team-name {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--bw-ink);
}

.bw-team-bio {
  font-size: 0.94rem;
  color: var(--bw-ink-soft);
  line-height: 1.55;
  margin-bottom: 0;
}

/* Gallery Section */
.bw-gallery-section {
  padding: 80px 0;
  background: var(--bw-vellum);
}

.bw-gallery-tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.bw-gallery-tab {
  background: var(--bw-paper);
  border: 1px solid var(--bw-border);
  padding: 10px 22px;
  font-family: var(--bw-font-body);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--bw-ink);
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.bw-gallery-tab:hover,
.bw-gallery-tab.is-active {
  background: var(--bw-terracotta);
  border-color: var(--bw-terracotta);
  color: var(--bw-vellum);
}

.bw-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 60px;
}

.bw-gallery-item {
  background: var(--bw-paper);
  border: 1px solid var(--bw-border);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.bw-gallery-img-wrap {
  aspect-ratio: 4/3;
  overflow: hidden;
}

.bw-gallery-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.bw-gallery-item:hover .bw-gallery-img-wrap img {
  transform: scale(1.05);
}

.bw-gallery-info {
  padding: 16px 18px;
}

.bw-gallery-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--bw-ink);
}

.bw-gallery-desc {
  font-size: 0.88rem;
  color: var(--bw-ink-soft);
  margin-bottom: 0;
}

.bw-broadcast-spotlight {
  background: var(--bw-indigo);
  color: var(--bw-vellum);
  padding: 50px 40px;
  border-radius: 4px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
  margin-top: 50px;
}

.bw-broadcast-spotlight h3 {
  font-size: 2rem;
  color: var(--bw-vellum);
  margin-bottom: 14px;
}

.bw-broadcast-spotlight p {
  font-size: 1.05rem;
  color: rgba(248, 244, 235, 0.85);
  line-height: 1.65;
}

.bw-youtube-card {
  background: var(--bw-indigo-dark);
  border: 1px solid rgba(248, 244, 235, 0.2);
  padding: 24px;
  text-align: center;
  border-radius: 4px;
}

.bw-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(22, 18, 14, 0.92);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.bw-lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.bw-lightbox-content {
  max-width: 900px;
  width: 100%;
  background: var(--bw-paper);
  border: 1px solid var(--bw-border);
  position: relative;
}

.bw-lightbox-img {
  width: 100%;
  max-height: 70vh;
  object-fit: contain;
  background: #000;
}

.bw-lightbox-caption {
  padding: 20px;
  font-size: 1rem;
  color: var(--bw-ink);
}

.bw-lightbox-close {
  position: absolute;
  top: -44px;
  right: 0;
  background: transparent;
  border: none;
  color: var(--bw-vellum);
  font-size: 2rem;
  cursor: pointer;
}

/* Registration */
.bw-reg-section {
  padding: 80px 0;
  background: var(--bw-vellum);
}

.bw-reg-stages-nav {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.bw-reg-stage-tab {
  background: var(--bw-paper);
  border: 1px solid var(--bw-border);
  padding: 14px 28px;
  font-family: var(--bw-font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--bw-ink);
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.bw-reg-stage-tab:hover,
.bw-reg-stage-tab.is-active {
  background: var(--bw-terracotta);
  border-color: var(--bw-terracotta);
  color: var(--bw-vellum);
}

.bw-reg-levels-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 60px;
}

.bw-reg-card {
  background: var(--bw-paper);
  border: 1px solid var(--bw-border);
  border-top: 4px solid var(--bw-terracotta);
  padding: 32px 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.bw-reg-level-tag {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--bw-ochre);
  margin-bottom: 8px;
}

.bw-reg-card h3 {
  font-size: 1.4rem;
  margin-bottom: 12px;
}

.bw-reg-card p {
  font-size: 0.98rem;
  color: var(--bw-ink-soft);
  line-height: 1.6;
  margin-bottom: 24px;
}

.bw-btn-reg {
  background: var(--bw-terracotta);
  color: var(--bw-vellum);
  padding: 12px 24px;
  border-radius: 4px;
  font-weight: 600;
  text-align: center;
  display: block;
}

.bw-btn-reg:hover {
  background: var(--bw-ink);
  color: var(--bw-vellum);
}

.bw-timeline-section {
  background: var(--bw-sand);
  border: 1px solid var(--bw-border);
  padding: 48px;
  border-radius: 4px;
  margin-top: 50px;
}

.bw-timeline-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 32px;
}

.bw-timeline-item {
  border-left: 2px solid var(--bw-ochre);
  padding-left: 18px;
}

.bw-timeline-step-num {
  font-family: var(--bw-font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--bw-terracotta);
  margin-bottom: 6px;
}

.bw-timeline-item h4 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.bw-timeline-item p {
  font-size: 0.9rem;
  color: var(--bw-ink-soft);
  line-height: 1.5;
  margin: 0;
}

/* Contact */
.bw-contact-section {
  padding: 80px 0;
  background: var(--bw-vellum);
}

.bw-contact-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
}

.bw-contact-details-card {
  background: var(--bw-indigo);
  color: var(--bw-vellum);
  padding: 48px 40px;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.bw-contact-details-card h2 {
  color: var(--bw-vellum);
  font-size: 2.2rem;
  margin-bottom: 12px;
}

.bw-contact-details-card p {
  color: rgba(248, 244, 235, 0.85);
  font-size: 1.05rem;
  margin-bottom: 32px;
}

.bw-contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 40px;
}

.bw-contact-info-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.bw-contact-info-icon {
  width: 28px;
  height: 28px;
  color: var(--bw-ochre);
  flex-shrink: 0;
  margin-top: 2px;
}

.bw-contact-info-text strong {
  display: block;
  font-size: 0.85rem;
  color: var(--bw-ochre);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.bw-contact-info-text a {
  color: var(--bw-vellum);
  font-size: 1.05rem;
}

.bw-contact-info-text a:hover {
  color: var(--bw-ochre-light);
}

.bw-contact-social-row {
  display: flex;
  gap: 14px;
  align-items: center;
  border-top: 1px solid rgba(248, 244, 235, 0.2);
  padding-top: 24px;
}

.bw-contact-social-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(248, 244, 235, 0.1);
  padding: 8px 16px;
  border-radius: 4px;
  color: var(--bw-vellum);
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.bw-contact-social-link:hover {
  background: var(--bw-ochre);
  color: var(--bw-ink);
}

.bw-contact-form-card {
  background: var(--bw-paper);
  border: 1px solid var(--bw-border);
  padding: 44px;
  border-radius: 4px;
}

.bw-contact-form-card h3 {
  font-size: 1.8rem;
  margin-bottom: 24px;
  color: var(--bw-ink);
}

.bw-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}

.bw-form-field.full {
  grid-column: span 2;
}

.bw-form-field label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--bw-ink);
  margin-bottom: 8px;
}

.bw-form-field input,
.bw-form-field select,
.bw-form-field textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--bw-border);
  background: var(--bw-vellum);
  font-family: var(--bw-font-body);
  font-size: 1rem;
  color: var(--bw-ink);
  border-radius: 3px;
  transition: border-color 0.2s ease;
}

.bw-form-field input:focus,
.bw-form-field select:focus,
.bw-form-field textarea:focus {
  outline: none;
  border-color: var(--bw-terracotta);
  background: var(--bw-paper);
}

.bw-form-field textarea {
  min-height: 140px;
  resize: vertical;
}

.bw-btn-submit {
  background: var(--bw-terracotta);
  color: var(--bw-vellum);
  border: none;
  padding: 14px 32px;
  font-size: 1.05rem;
  font-weight: 600;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.25s ease;
  width: 100%;
}

.bw-btn-submit:hover {
  background: var(--bw-ink);
}

.bw-form-notice {
  margin-top: 16px;
  padding: 14px 18px;
  border-radius: 4px;
  font-size: 0.92rem;
  line-height: 1.5;
}

.bw-form-success {
  background: #EAF3EC;
  color: #2E5D3E;
  border: 1px solid #B6D9C1;
}

.bw-form-error {
  background: #FBEAEA;
  color: #8A2A2A;
  border: 1px solid #E6B8B8;
}

/* Footer */
.bw-footer {
  background: var(--bw-ink);
  color: var(--bw-vellum);
  padding: 70px 0 30px;
  border-top: 3px solid var(--bw-ochre);
}

.bw-footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr;
  gap: 48px;
  margin-bottom: 50px;
}

.bw-footer-brand-logo {
  max-height: 60px !important;
  max-width: 160px !important;
  width: auto;
  height: auto;
  margin-bottom: 18px;
}

.bw-footer-tagline {
  font-family: var(--bw-font-heading);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--bw-ochre);
  margin-bottom: 14px;
}

.bw-footer-col h4 {
  color: var(--bw-vellum);
  font-size: 1.15rem;
  margin-bottom: 18px;
  letter-spacing: 0.02em;
}

.bw-footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bw-footer-col a {
  color: rgba(248, 244, 235, 0.8);
  font-size: 0.95rem;
}

.bw-footer-col a:hover {
  color: var(--bw-ochre);
}

.bw-footer-bottom {
  border-top: 1px solid rgba(248, 244, 235, 0.15);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
  color: rgba(248, 244, 235, 0.6);
  flex-wrap: wrap;
  gap: 16px;
}

/* Responsive */
@media (max-width: 1024px) {
  .bw-hero-layout { grid-template-columns: 1fr; gap: 40px; }
  .bw-news-grid { grid-template-columns: 1fr 1fr; }
  .bw-narrative-grid { grid-template-columns: 1fr; gap: 40px; }
  .bw-skills-grid { grid-template-columns: 1fr 1fr; }
  .bw-pathway-track { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .bw-pathway-track::before { display: none; }
  .bw-map-layout { grid-template-columns: 1fr; }
  .bw-gallery-grid { grid-template-columns: 1fr 1fr; }
  .bw-reg-levels-grid { grid-template-columns: 1fr 1fr; }
  .bw-contact-layout { grid-template-columns: 1fr; }
  .bw-footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .bw-header-inner { flex-wrap: wrap; }
  .bw-nav { order: 3; width: 100%; }
  .bw-nav ul { flex-direction: column; align-items: flex-start; gap: 12px; }
  .bw-news-grid { grid-template-columns: 1fr; }
  .bw-skills-grid { grid-template-columns: 1fr; }
  .bw-pathway-track { grid-template-columns: 1fr 1fr; }
  .bw-gallery-grid { grid-template-columns: 1fr; }
  .bw-broadcast-spotlight { grid-template-columns: 1fr; }
  .bw-reg-levels-grid { grid-template-columns: 1fr; }
  .bw-timeline-grid { grid-template-columns: 1fr 1fr; }
  .bw-form-grid { grid-template-columns: 1fr; }
  .bw-form-field.full { grid-column: span 1; }
  .bw-footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .bw-pathway-track { grid-template-columns: 1fr; }
  .bw-timeline-grid { grid-template-columns: 1fr; }
  .bw-partner-tile { width: 140px; height: 100px; padding: 10px; }
  .bw-partner-tile img { max-height: 56px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}