/* ============================================================
   IDEAPLUS FOUNDATION — Design System
   Lead: #ef5a24 (orange) · #d62828 (red)   Supporting: #116a39 (green)
   ============================================================ */

:root {
  /* Brand accents — orange + red lead (from the logo); green is now supporting */
  --primary:    #ef5a24;   /* orange — lead accent */
  --primary-d:  #d24817;   /* orange hover */
  --secondary:  #d62828;   /* red — brand */
  --green:      #116a39;   /* supporting */
  --green-d:    #0d5430;
  --gold:       #e8c14d;

  /* Dark cinematic surfaces */
  --dark:       #0a0f1e;
  --dark-2:     #111827;
  --dark-3:     #1f2937;
  --dark-4:     #2d3748;

  /* Light surfaces (for the new light sections) */
  --light:      #f6f3ee;   /* warm off-white */
  --light-2:    #ffffff;
  --ink:        #15192a;   /* near-dark text on light */
  --ink-muted:  #565d6e;   /* muted text on light */
  --ink-2:      #0a0f1e;   /* headings on light */

  /* Text on dark — contrast boosted for readability */
  --text-light: rgba(255,255,255,0.92);
  --text-muted: rgba(255,255,255,0.62);

  --fh: 'Montserrat', sans-serif;
  --fd: 'Playfair Display', serif;
  --fb: 'Open Sans', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--fb);
  background: var(--dark);
  color: var(--text-light);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }

/* ── Typography ── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--fh);
  line-height: 1.15;
}

.eyebrow {
  display: inline-block;
  font-family: var(--fh);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid rgba(232,193,77,0.35);
  padding: 6px 18px;
  border-radius: 20px;
  margin-bottom: 20px;
}

.section-divider {
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  margin: 0 auto 48px;
  max-width: 200px;
}

/* ── Navbar ── */
.site-navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: transparent;
  transition: background 0.35s, box-shadow 0.35s, padding 0.35s;
  padding: 20px 0;
}

.site-navbar.scrolled {
  background: rgba(10,15,30,0.97);
  box-shadow: 0 2px 24px rgba(0,0,0,0.5);
  padding: 12px 0;
}

.navbar-brand {
  display: flex;
  align-items: center;
}

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

.nav-link {
  font-family: var(--fh);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--text-light) !important;
  text-transform: uppercase;
  padding: 8px 14px !important;
  transition: color 0.2s;
}

.nav-link:hover, .nav-link.active {
  color: var(--gold) !important;
}

.navbar-toggler {
  border-color: rgba(255,255,255,0.3);
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.btn-nav-cta {
  font-family: var(--fh);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  background: var(--primary);
  color: #fff !important;
  border: none;
  padding: 10px 22px !important;
  border-radius: 4px;
  transition: background 0.2s, transform 0.2s;
}

.btn-nav-cta:hover {
  background: var(--primary-d) !important;
  transform: translateY(-1px);
}

/* ── Buttons ── */
.btn-primary-custom {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--fh);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 14px 32px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-primary-custom:hover {
  background: var(--primary-d);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(239,90,36,0.4);
}

.btn-outline-custom {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--fh);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.4);
  padding: 13px 30px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-outline-custom:hover {
  border-color: #fff;
  background: rgba(255,255,255,0.08);
  color: #fff;
}

.btn-secondary-custom {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--fh);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  background: var(--secondary);
  color: #fff;
  border: none;
  padding: 14px 32px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-secondary-custom:hover {
  background: #c54d18;
  color: #fff;
  transform: translateY(-2px);
}

/* ── Hero ── */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-color: var(--dark);
  background-size: cover;
  background-position: center top;
  background-attachment: scroll;
}

/* Subtle grain / grid overlay on hero image */
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(239,90,36,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(239,90,36,0.05) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 30% 50%, black, transparent);
}

.hero-veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10,15,30,0.82) 0%, rgba(10,15,30,0.45) 60%, rgba(10,15,30,0.25) 100%);
}

.hero-body {
  position: relative;
  z-index: 2;
  padding: 140px 0 80px;
}

.hero-headline {
  font-family: var(--fh);
  font-size: clamp(3rem, 8vw, 6.5rem);
  font-weight: 900;
  line-height: 1.0;
  letter-spacing: -1px;
  margin-bottom: 28px;
  color: #fff;
}

.hero-headline .accent {
  color: var(--gold);
}

.hero-headline .accent-green {
  color: #4ade80;
}

.hero-sub {
  font-family: var(--fb);
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-light);
  max-width: 580px;
  margin-bottom: 40px;
  line-height: 1.75;
}

.hero-btns {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: var(--text-muted);
  animation: bounce 2s infinite;
  font-size: 1.2rem;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

/* ── Page Hero (inner pages) ── */
.page-hero {
  position: relative;
  padding: 160px 0 80px;
  background-color: var(--dark);
  background-size: cover;
  background-position: center top;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10,15,30,0.90) 0%, rgba(10,15,30,0.68) 60%, rgba(10,15,30,0.45) 100%);
  pointer-events: none;
}

.page-hero > .container {
  position: relative;
  z-index: 2;
}

.page-hero-title {
  font-family: var(--fh);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 900;
  letter-spacing: -1px;
  line-height: 1.05;
}

.page-hero-sub {
  font-family: var(--fd);
  font-style: italic;
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  color: var(--text-light);
  max-width: 600px;
  margin-top: 16px;
  line-height: 1.65;
}

/* ── Stats / Counters ── */
.stats-section {
  background: var(--dark-2);
  padding: 72px 0;
  border-top: 1px solid rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.stat-card {
  text-align: center;
  padding: 32px 24px;
  border-right: 1px solid rgba(255,255,255,0.08);
}

.stat-card:last-child { border-right: none; }

.stat-number {
  font-family: var(--fh);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 900;
  color: var(--primary);
  line-height: 1;
  display: block;
}

.stat-label {
  font-family: var(--fh);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 8px;
  display: block;
}

/* ── Trust Bar ── */
.trust-bar {
  background: rgba(255,255,255,0.03);
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding: 28px 0;
}

.trust-label {
  font-family: var(--fh);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
}

.partner-pill {
  display: inline-flex;
  align-items: center;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 24px;
  padding: 8px 20px;
  font-family: var(--fh);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  transition: all 0.2s;
}

a.partner-pill:hover {
  background: rgba(239,90,36,0.15);
  border-color: rgba(239,90,36,0.4);
  color: #4ade80;
}

/* ── Programme Cards ── */
.programmes-section {
  padding: 100px 0;
  background: var(--dark);
}

.programme-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 12px;
  padding: 36px 32px;
  height: 100%;
  transition: all 0.3s;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.programme-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--primary);
  transform: scaleX(0);
  transition: transform 0.3s;
  transform-origin: left;
}

.programme-card:hover {
  background: rgba(239,90,36,0.08);
  border-color: rgba(239,90,36,0.3);
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.4);
}

.programme-card:hover::before {
  transform: scaleX(1);
}

.programme-icon {
  width: 52px;
  height: 52px;
  background: rgba(239,90,36,0.18);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--primary);
  margin-bottom: 20px;
  transition: background 0.3s;
}

.programme-card:hover .programme-icon {
  background: rgba(239,90,36,0.3);
}

.programme-card h3 {
  font-family: var(--fh);
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 10px;
  color: #fff;
}

.programme-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 20px;
}

.card-link {
  font-family: var(--fh);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.2s;
}

.card-link:hover { gap: 10px; color: #4ade80; }

/* ── Research / Publication Cards ── */
.research-section {
  padding: 100px 0;
  background: var(--dark-2);
}

.pub-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 10px;
  padding: 28px;
  height: 100%;
  transition: all 0.25s;
}

.pub-card:hover {
  border-color: rgba(239,90,36,0.3);
  background: rgba(239,90,36,0.06);
  transform: translateY(-3px);
}

.pub-tag {
  display: inline-block;
  font-family: var(--fh);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--secondary);
  border: 1px solid rgba(224,90,31,0.3);
  padding: 3px 12px;
  border-radius: 12px;
  margin-bottom: 14px;
}

.pub-card h4 {
  font-family: var(--fh);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.4;
  color: #fff;
}

.pub-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 18px;
}

.pub-meta {
  font-family: var(--fh);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--text-muted);
  text-transform: uppercase;
}

/* ── Section headings ── */
.section-title {
  font-family: var(--fh);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
}

.section-sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 580px;
  margin-bottom: 48px;
  line-height: 1.7;
}

/* ── Quote / CTA band ── */
.quote-section {
  position: relative;
  padding: 120px 0;
  background-color: var(--dark-2);
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.quote-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(10,15,30,0.85);
}

.quote-section > .container {
  position: relative;
  z-index: 1;
}

.quote-mark {
  font-family: var(--fd);
  font-size: 6rem;
  line-height: 0.6;
  color: var(--primary);
  opacity: 0.5;
  display: block;
  margin-bottom: 16px;
}

.quote-text {
  font-family: var(--fd);
  font-style: italic;
  font-size: clamp(1.3rem, 3vw, 2rem);
  line-height: 1.55;
  color: var(--text-light);
  max-width: 800px;
  margin: 0 auto 24px;
}

.quote-attr {
  font-family: var(--fh);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ── CTA Section ── */
.cta-section {
  padding: 100px 0;
  background-color: var(--primary);
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-color: rgba(10,15,30,0.86);
  background-image:
    linear-gradient(120deg, rgba(10,15,30,0.92) 0%, rgba(20,15,28,0.74) 48%, rgba(176,38,24,0.62) 100%),
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: cover, 40px 40px, 40px 40px;
}

.cta-section > .container {
  position: relative;
  z-index: 1;
}

.cta-section .section-title { color: #fff; }
.cta-section .section-sub { color: rgba(255,255,255,0.75); }

/* ── Board / Team ── */
.team-section {
  padding: 100px 0;
  background: var(--dark);
}

.board-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s;
}

.board-card:hover {
  border-color: rgba(239,90,36,0.3);
  transform: translateY(-4px);
  box-shadow: 0 20px 48px rgba(0,0,0,0.4);
}

.board-photo {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.board-info {
  padding: 24px;
}

.board-name {
  font-family: var(--fh);
  font-size: 1rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 4px;
}

.board-role {
  font-family: var(--fh);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}

.board-bio {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ── Accordion (Programmes) ── */
.programme-accordion .accordion-item {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px !important;
  margin-bottom: 12px;
  overflow: hidden;
}

.programme-accordion .accordion-button {
  background: transparent;
  color: #fff;
  font-family: var(--fh);
  font-size: 1.05rem;
  font-weight: 700;
  padding: 24px 28px;
  border: none;
  box-shadow: none !important;
}

.programme-accordion .accordion-button:not(.collapsed) {
  background: rgba(239,90,36,0.12);
  color: #4ade80;
}

.programme-accordion .accordion-button::after {
  filter: invert(1);
}

.programme-accordion .accordion-body {
  background: rgba(239,90,36,0.06);
  border-top: 1px solid rgba(255,255,255,0.06);
  color: var(--text-light);
  padding: 24px 28px;
}

.programme-accordion .programme-icon-sm {
  width: 36px;
  height: 36px;
  background: rgba(239,90,36,0.2);
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  margin-right: 16px;
  flex-shrink: 0;
}

/* ── Contact Form ── */
.contact-section {
  padding: 100px 0;
  background: var(--dark);
}

.form-group-custom {
  margin-bottom: 20px;
}

.form-group-custom label {
  font-family: var(--fh);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  display: block;
  margin-bottom: 8px;
}

.form-control-custom {
  width: 100%;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  color: #fff;
  padding: 13px 16px;
  font-family: var(--fb);
  font-size: 0.95rem;
  transition: border-color 0.2s, background 0.2s;
  outline: none;
}

.form-control-custom:focus {
  border-color: var(--primary);
  background: rgba(255,255,255,0.08);
}

.form-control-custom::placeholder {
  color: rgba(255,255,255,0.25);
}

select.form-control-custom option {
  background: var(--dark-2);
  color: #fff;
}

.contact-info-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 12px;
  padding: 32px;
}

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

.contact-info-item:last-child { margin-bottom: 0; }

.contact-icon {
  width: 44px;
  height: 44px;
  background: rgba(239,90,36,0.18);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1rem;
  flex-shrink: 0;
}

.contact-label {
  font-family: var(--fh);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.contact-value {
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.5;
}

.contact-value a {
  color: #4ade80;
  transition: color 0.2s;
}

.contact-value a:hover { color: var(--gold); }

/* ── Social Buttons ── */
.social-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  transition: all 0.2s;
}

.social-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  transform: translateY(-2px);
}

/* ── Support Page ── */
.support-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: 40px 32px;
  text-align: center;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: all 0.3s;
}

/* Pin every support-card CTA to the bottom so all four align on one baseline */
.support-card .btn-primary-custom,
.support-card .btn-outline-custom {
  margin-top: auto;
}

.support-card:hover {
  border-color: rgba(239,90,36,0.35);
  background: rgba(239,90,36,0.07);
  transform: translateY(-4px);
}

.support-card-icon {
  width: 64px;
  height: 64px;
  background: rgba(239,90,36,0.18);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: var(--primary);
  margin: 0 auto 20px;
}

.support-card h3 {
  font-family: var(--fh);
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 10px;
}

.support-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 24px;
}

/* ── Events ── */
.event-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 10px;
  padding: 28px;
  transition: all 0.25s;
}

.event-card:hover {
  border-color: rgba(239,90,36,0.3);
  background: rgba(239,90,36,0.06);
}

.event-date-badge {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  font-family: var(--fh);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 12px;
  margin-bottom: 14px;
}

.event-card h4 {
  font-family: var(--fh);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.event-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.event-meta {
  font-family: var(--fh);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ── Mission cards ── */
.how-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-left: 3px solid var(--primary);
  border-radius: 0 10px 10px 0;
  padding: 24px 28px;
  margin-bottom: 16px;
  transition: all 0.2s;
}

.how-card:hover {
  background: rgba(239,90,36,0.06);
  border-left-color: var(--gold);
}

.how-number {
  font-family: var(--fh);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--gold);
  margin-bottom: 4px;
  display: block;
}

.how-card h4 {
  font-family: var(--fh);
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}

.how-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

/* ── Newsletter ── */
.newsletter-section {
  padding: 80px 0;
  background: var(--dark-3);
  border-top: 1px solid rgba(255,255,255,0.06);
}

.newsletter-input-wrap {
  display: flex;
  max-width: 480px;
  margin: 0 auto;
  gap: 0;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.12);
}

.newsletter-input-wrap input {
  flex: 1;
  background: rgba(255,255,255,0.05);
  border: none;
  color: #fff;
  padding: 14px 20px;
  font-family: var(--fb);
  font-size: 0.95rem;
  outline: none;
}

.newsletter-input-wrap input::placeholder {
  color: rgba(255,255,255,0.3);
}

.newsletter-input-wrap button {
  background: var(--primary);
  border: none;
  color: #fff;
  padding: 14px 24px;
  font-family: var(--fh);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s;
}

.newsletter-input-wrap button:hover {
  background: var(--primary-d);
}

/* ── Footer ── */
.site-footer {
  background: var(--dark);
  border-top: 1px solid rgba(255,255,255,0.07);
  padding-top: 72px;
}

.footer-logo img {
  height: 44px;
  margin-bottom: 16px;
}

.footer-tagline {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 280px;
  margin-bottom: 24px;
}

.footer-heading {
  font-family: var(--fh);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}

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

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--text-light);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 24px 0;
  margin-top: 56px;
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-copy a {
  color: var(--text-muted);
  transition: color 0.2s;
}

.footer-copy a:hover { color: var(--text-light); }

/* ── Alerts ── */
.alert-success-custom {
  background: rgba(239,90,36,0.2);
  border: 1px solid rgba(239,90,36,0.4);
  border-radius: 8px;
  color: #4ade80;
  padding: 14px 20px;
  font-size: 0.9rem;
  margin-bottom: 20px;
}

/* ── 404 ── */
.not-found {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 24px;
}

.not-found h1 {
  font-size: clamp(6rem, 20vw, 12rem);
  font-weight: 900;
  color: rgba(239,90,36,0.2);
  line-height: 1;
}

/* ── Utilities ── */
.text-green { color: #4ade80; }
.text-gold { color: var(--gold); }
.text-muted-custom { color: var(--text-muted); }
.bg-dark-2 { background: var(--dark-2); }
.bg-dark-3 { background: var(--dark-3); }
.section-pad { padding: 100px 0; }

.divider-line {
  border: none;
  border-top: 1px solid rgba(255,255,255,0.07);
  margin: 0;
}

/* ── Mobile ── */
@media (max-width: 992px) {
  .navbar-collapse {
    background: rgba(10,15,30,0.98);
    padding: 16px;
    border-radius: 8px;
    margin-top: 8px;
  }
}

@media (max-width: 768px) {
  .hero-headline { font-size: clamp(2.5rem, 12vw, 4rem); }
  .hero-btns { flex-direction: column; align-items: flex-start; }
  .stat-card { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .stat-card:last-child { border-bottom: none; }
  .section-pad { padding: 72px 0; }
  .newsletter-input-wrap { flex-direction: column; border-radius: 8px; }
  .newsletter-input-wrap input { border-radius: 6px 6px 0 0; }
  .newsletter-input-wrap button { border-radius: 0 0 6px 6px; }
}

@media (max-width: 480px) {
  .hero-body { padding: 120px 0 60px; }
  .page-hero { padding: 130px 0 60px; }
  .board-photo { aspect-ratio: 4/3; }
}

/* ── Programme Click-to-Reveal Panels ── */
.prog-reveal {
  position: relative;
  min-height: 88vh;
  overflow: hidden;
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
}

.prog-reveal-bg {
  position: absolute;
  inset: 0;
  background-color: var(--dark);
  background-size: cover;
  background-position: center;
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.prog-reveal:not(.revealed):hover .prog-reveal-bg {
  transform: scale(1.04);
}

/* Cinematic dark edge vignette */
.prog-reveal-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 120% 100% at 50% 100%, transparent 40%, rgba(10,15,30,0.55) 100%);
}

/* Default visible state — title + hint at bottom */
.prog-reveal-header {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 56px 64px 60px;
  background: linear-gradient(to top,
    rgba(10,15,30,0.96) 0%,
    rgba(10,15,30,0.82) 30%,
    rgba(10,15,30,0.45) 60%,
    transparent 100%
  );
  transition: opacity 0.4s ease, transform 0.4s ease;
  z-index: 2;
}

.prog-reveal.revealed .prog-reveal-header {
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
}

.prog-reveal-header .eyebrow {
  margin-bottom: 12px;
}

.prog-reveal-header .section-title {
  font-size: clamp(2rem, 4vw, 3.4rem);
  margin-bottom: 0;
}

.prog-reveal-hint {
  margin-top: 18px;
  font-family: var(--fh);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  animation: hint-pulse 2.8s ease-in-out infinite;
}

.prog-reveal-hint i {
  font-size: 0.65rem;
}

@keyframes hint-pulse {
  0%, 100% { opacity: 0.45; transform: translateY(0); }
  50% { opacity: 0.85; transform: translateY(-2px); }
}

/* Revealed state — full content overlay */
.prog-reveal-body {
  position: absolute;
  inset: 0;
  background: rgba(10,15,30,0.95);
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.45s ease, transform 0.45s ease;
  pointer-events: none;
  z-index: 3;
  overflow-y: auto;
  display: flex;
  align-items: flex-start;
}

.prog-reveal.revealed .prog-reveal-body {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.prog-reveal-body-inner {
  padding: 80px 64px 72px;
  max-width: 920px;
  width: 100%;
}

.prog-reveal-tagline {
  font-family: var(--fd);
  font-style: italic;
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  color: var(--text-light);
  line-height: 1.65;
  margin-bottom: 28px;
  max-width: 680px;
}

.prog-reveal-desc {
  font-size: 1rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.78;
  margin-bottom: 36px;
  max-width: 660px;
}

.prog-reveal-how-label {
  font-family: var(--fh);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.prog-reveal-how-item {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
  align-items: flex-start;
}

.prog-reveal-how-dot {
  width: 24px;
  height: 24px;
  background: rgba(239,90,36,0.25);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.prog-reveal-how-dot i {
  color: var(--primary);
  font-size: 0.6rem;
}

.prog-reveal-how-item p {
  color: rgba(255,255,255,0.65);
  line-height: 1.65;
  margin: 0;
  font-size: 0.93rem;
}

.prog-reveal-actions {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.07);
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}

.prog-reveal-close {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--fh);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  transition: color 0.2s;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}

.prog-reveal-close:hover {
  color: rgba(255,255,255,0.75);
}

/* Mobile */
@media (max-width: 768px) {
  .prog-reveal { min-height: 100vh; }
  .prog-reveal-header { padding: 36px 24px 44px; }
  .prog-reveal-body-inner { padding: 52px 24px 48px; }
}

/* ── iOS parallax fix ── */
@supports (-webkit-touch-callout: none) {
  .hero-bg { background-attachment: scroll; }
}

/* ============================================================
   LIGHT SECTIONS — balanced light/dark rhythm
   Add `section-light` (warm) or `section-light-2` (white) to a
   <section> to flip it to a light surface. Descendant components
   are remapped below so they stay legible on light backgrounds.
   ============================================================ */
.section-light   { background: var(--light);   color: var(--ink); }
.section-light-2 { background: var(--light-2); color: var(--ink); }

/* Headings */
.section-light .section-title, .section-light-2 .section-title,
.section-light h1, .section-light h2, .section-light h3, .section-light h4, .section-light h5,
.section-light-2 h1, .section-light-2 h2, .section-light-2 h3, .section-light-2 h4, .section-light-2 h5 {
  color: var(--ink-2);
}

/* Body / supporting text */
.section-light .section-sub, .section-light-2 .section-sub,
.section-light p, .section-light li, .section-light span,
.section-light-2 p, .section-light-2 li, .section-light-2 span {
  color: var(--ink-muted);
}
.section-light .text-muted-custom, .section-light-2 .text-muted-custom { color: var(--ink-muted) !important; }

/* Eyebrow → red on light (orange is too low-contrast on cream) */
.section-light .eyebrow, .section-light-2 .eyebrow {
  color: var(--secondary);
  border-color: rgba(214,40,40,0.30);
}

/* Cards → white with soft shadow + hairline border */
.section-light .how-card, .section-light .pub-card, .section-light .support-card,
.section-light .event-card, .section-light .programme-card, .section-light .contact-info-card,
.section-light-2 .how-card, .section-light-2 .pub-card, .section-light-2 .support-card,
.section-light-2 .event-card, .section-light-2 .programme-card, .section-light-2 .contact-info-card {
  background: #fff;
  border: 1px solid rgba(20,25,42,0.10);
  box-shadow: 0 12px 32px rgba(20,25,42,0.07);
}
.section-light .how-card h3, .section-light .how-card h4,
.section-light .pub-card h4, .section-light .support-card h3,
.section-light .programme-card h3, .section-light .event-card h4,
.section-light .contact-info-card .contact-value,
.section-light-2 .pub-card h4, .section-light-2 .support-card h3,
.section-light-2 .programme-card h3, .section-light-2 .event-card h4 { color: var(--ink-2); }
.section-light .how-card p, .section-light .pub-card p, .section-light .support-card p,
.section-light .programme-card p, .section-light .event-card p,
.section-light-2 .how-card p, .section-light-2 .pub-card p, .section-light-2 .support-card p,
.section-light-2 .programme-card p, .section-light-2 .event-card p { color: var(--ink-muted); }

/* Card hover stays warm */
.section-light .programme-card:hover, .section-light .support-card:hover,
.section-light-2 .programme-card:hover, .section-light-2 .support-card:hover {
  border-color: rgba(239,90,36,0.45);
  background: #fff;
}

/* Icons / tags / numbers → orange on a soft orange wash */
.section-light .programme-icon, .section-light .support-card-icon, .section-light .contact-icon,
.section-light-2 .programme-icon, .section-light-2 .support-card-icon, .section-light-2 .contact-icon {
  background: rgba(239,90,36,0.12);
  color: var(--primary);
}
.section-light .how-number, .section-light-2 .how-number { color: var(--primary); }
.section-light .pub-tag, .section-light-2 .pub-tag {
  background: rgba(239,90,36,0.12);
  color: var(--primary-d);
}
.section-light .pub-meta, .section-light-2 .pub-meta { color: var(--ink-muted); }
.section-light .card-link, .section-light-2 .card-link { color: var(--primary); }
.section-light .card-link:hover, .section-light-2 .card-link:hover { color: var(--primary-d); }
.section-light .contact-label, .section-light-2 .contact-label { color: var(--ink-muted); }

/* Outline buttons need a dark outline on light */
.section-light .btn-outline-custom, .section-light-2 .btn-outline-custom {
  color: var(--ink); border-color: rgba(20,25,42,0.28);
}
.section-light .btn-outline-custom:hover, .section-light-2 .btn-outline-custom:hover {
  color: var(--ink); border-color: var(--ink); background: rgba(20,25,42,0.05);
}

/* Trust bar on light */
.section-light .trust-label, .section-light-2 .trust-label { color: var(--ink-muted); }
.section-light .partner-pill, .section-light-2 .partner-pill {
  background: rgba(20,25,42,0.04);
  border-color: rgba(20,25,42,0.12);
  color: var(--ink);
}

/* Hairline dividers that were white-on-dark */
.section-light hr, .section-light-2 hr,
.section-light [style*="border-top"], .section-light-2 [style*="border-top"] {
  border-color: rgba(20,25,42,0.12) !important;
}

/* Override inline light-on-dark colours that would vanish on a light surface.
   Stylesheet !important beats non-important inline styles; scoping to the
   light sections leaves the dark heroes/CTAs untouched. */
.section-light [style*="color:var(--text-muted)"], .section-light-2 [style*="color:var(--text-muted)"],
.section-light [style*="color:rgba(255,255,255"], .section-light-2 [style*="color:rgba(255,255,255"] {
  color: var(--ink-muted) !important;
}
.section-light [style*="color:#fff"], .section-light-2 [style*="color:#fff"] { color: var(--ink-2) !important; }
.section-light [style*="color:#4ade80"], .section-light-2 [style*="color:#4ade80"] { color: var(--primary) !important; }

/* Form fields on light (e.g. contact) */
.section-light label, .section-light-2 label,
.section-light .form-group-custom label, .section-light-2 .form-group-custom label { color: var(--ink); }
.section-light .form-control-custom, .section-light-2 .form-control-custom {
  background: #fff;
  border: 1px solid rgba(20,25,42,0.18);
  color: var(--ink);
}
.section-light .form-control-custom::placeholder { color: #98a0ad; }

/* Social buttons on light surfaces */
.section-light .social-btn, .section-light-2 .social-btn {
  background: rgba(20,25,42,0.05);
  border-color: rgba(20,25,42,0.14);
  color: var(--ink-muted);
}
.section-light .social-btn:hover, .section-light-2 .social-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.section-light .form-control-custom:focus, .section-light-2 .form-control-custom:focus {
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(239,90,36,0.12);
}
