/* ==========================================================================
   NTI Webinar — Triannual Webinar Series
   Hand-written stylesheet (no frameworks). Brand tokens shared with
   allinnovat.com main site.
   ========================================================================== */

:root {
  --navy: #1b2a5e;
  --navy-deep: #0c1430;
  --blue: #2f6fed;
  --blue-soft: #e3ecfd;
  --green: #57b25e;
  --green-soft: #e9f6ea;
  --mint: #f2f9f3;
  --ink: #1c2333;
  --ink-soft: #4c5568;
  --line: #e4e9f2;
  --bg-alt: #f7f9fc;
  --white: #ffffff;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 4px 14px rgba(27, 42, 94, .08);
  --shadow: 0 10px 30px rgba(27, 42, 94, .12);
  --shadow-lg: 0 18px 50px rgba(27, 42, 94, .18);
  --font-head: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --header-h: 76px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  line-height: 1.2;
  color: var(--navy);
  margin: 0 0 .6em;
  font-weight: 800;
}

p { margin: 0 0 1em; color: var(--ink-soft); }

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

ul, ol { margin: 0 0 1em; padding-left: 1.25em; color: var(--ink-soft); }

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

section { padding: 72px 0; }

.section-head { max-width: 640px; margin: 0 auto 44px; text-align: center; }
.section-head .badge { margin-bottom: 14px; }
.section-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
.section-head p { font-size: 1.05rem; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue);
  font-family: var(--font-head);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.badge.badge-green { background: var(--green-soft); color: var(--green); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-family: var(--font-head);
  font-size: .95rem;
  font-weight: 700;
  line-height: 1;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary {
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 8px 22px rgba(47, 111, 237, .35);
}
.btn-primary:hover { background: #255ed6; color: var(--white); }
.btn-green {
  background: var(--green);
  color: var(--white);
  box-shadow: 0 8px 22px rgba(87, 178, 94, .35);
}
.btn-green:hover { background: #479e4e; color: var(--white); }
.btn-ghost {
  background: transparent;
  color: var(--navy);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, .75);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .25s ease, border-color .25s ease, background .25s ease;
}
.site-header.scrolled {
  background: rgba(255, 255, 255, .92);
  border-bottom-color: var(--line);
  box-shadow: var(--shadow-sm);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand:hover { text-decoration: none; }
.brand img { width: 46px; height: 46px; object-fit: contain; border-radius: 50%; }
.brand-name {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--navy);
  line-height: 1.15;
}
.brand-name small {
  display: block;
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--blue);
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.main-nav a {
  display: inline-block;
  padding: 9px 14px;
  border-radius: 10px;
  font-family: var(--font-head);
  font-size: .9rem;
  font-weight: 600;
  color: var(--ink-soft);
  transition: color .2s, background .2s;
}
.main-nav a:hover { color: var(--blue); background: var(--blue-soft); text-decoration: none; }
.main-nav a.active { color: var(--blue); background: var(--blue-soft); }
.main-nav a.nav-cta {
  background: var(--green);
  color: var(--white);
  margin-left: 6px;
}
.main-nav a.nav-cta:hover { background: #479e4e; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: none;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--navy);
  border-radius: 2px;
  transition: transform .25s ease, opacity .25s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ==========================================================================
   Hero (landing)
   ========================================================================== */
.hero {
  position: relative;
  padding: calc(var(--header-h) + 56px) 0 72px;
  overflow: hidden;
  background:
    radial-gradient(640px 420px at 88% 8%, rgba(47, 111, 237, .14), transparent 65%),
    radial-gradient(520px 380px at 4% 92%, rgba(87, 178, 94, .14), transparent 65%),
    linear-gradient(180deg, var(--mint) 0%, var(--white) 100%);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 48px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  letter-spacing: -.02em;
  margin: 18px 0 14px;
}
.hero .hero-sub {
  font-size: clamp(1.02rem, 1.6vw, 1.2rem);
  color: var(--ink-soft);
  max-width: 30rem;
}
.hero-date {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 18px 0 28px;
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--navy);
}
.hero-date i { color: var(--green); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-art { position: relative; }
.hero-art::before {
  content: "";
  position: absolute;
  inset: 8% -4% -4% 8%;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--blue-soft), var(--green-soft));
  z-index: 0;
}
.hero-art img {
  position: relative;
  z-index: 1;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 6px solid var(--white);
}

/* ---------- Stats strip ---------- */
.stats-strip { background: var(--navy); padding: 40px 0; }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  text-align: center;
}
.stat .stat-num {
  font-family: var(--font-head);
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  font-weight: 800;
  color: var(--white);
}
.stat .stat-num em { font-style: normal; color: var(--green); }
.stat .stat-label {
  font-size: .92rem;
  color: rgba(255, 255, 255, .72);
  margin: 4px 0 0;
}

/* ==========================================================================
   Video grid (click-to-load facades)
   ========================================================================== */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 26px;
}
.video-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease;
}
.video-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.video-facade {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  background: var(--navy-deep) center / cover no-repeat;
  cursor: pointer;
  border: 0;
  padding: 0;
  width: 100%;
}
.video-facade::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(12, 20, 48, 0) 30%, rgba(12, 20, 48, .55) 100%);
}
.video-play {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--blue);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  box-shadow: 0 10px 26px rgba(47, 111, 237, .5);
  transition: transform .25s ease, background .25s ease;
}
.video-facade:hover .video-play { transform: translate(-50%, -50%) scale(1.1); background: var(--green); }
.video-body { padding: 18px 20px 20px; }
.video-body h3 { font-size: 1.02rem; margin: 0 0 6px; }
.video-body p { margin: 0; font-size: .88rem; }
.video-embed { aspect-ratio: 16 / 9; }
.video-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* ==========================================================================
   Archive cards / topic cards
   ========================================================================== */
.archive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 26px;
}
.archive-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px 28px;
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.archive-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
  border-color: var(--blue-soft);
  text-decoration: none;
}
.archive-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  background: var(--blue-soft);
  color: var(--blue);
  margin-bottom: 18px;
}
.archive-card:nth-child(2) .archive-icon { background: var(--green-soft); color: var(--green); }
.archive-card:nth-child(3) .archive-icon { background: var(--blue-soft); color: var(--navy); }
.archive-card h3 { font-size: 1.15rem; margin-bottom: 6px; }
.archive-card .archive-date {
  font-family: var(--font-head);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 10px;
}
.archive-card p { font-size: .92rem; flex: 1; }
.archive-link {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .9rem;
  color: var(--blue);
}
.archive-card:hover .archive-link { color: var(--green); }

/* ---------- Topic chips ---------- */
.topics-section { background: var(--bg-alt); }
.chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  max-width: 820px;
  margin: 0 auto;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid var(--line);
  font-family: var(--font-head);
  font-size: .9rem;
  font-weight: 600;
  color: var(--ink-soft);
  box-shadow: var(--shadow-sm);
}
.chip i { color: var(--blue); font-size: .8rem; }
.chip:nth-child(even) i { color: var(--green); }

/* ---------- CTA banner ---------- */
.cta-banner { padding: 0 0 80px; }
.cta-box {
  position: relative;
  overflow: hidden;
  background: linear-gradient(120deg, var(--navy) 0%, var(--navy-deep) 100%);
  border-radius: var(--radius-lg);
  padding: 56px 32px;
  text-align: center;
  box-shadow: var(--shadow-lg);
}
.cta-box::before {
  content: "";
  position: absolute;
  width: 380px; height: 380px;
  border-radius: 50%;
  background: rgba(47, 111, 237, .25);
  top: -190px; right: -120px;
}
.cta-box::after {
  content: "";
  position: absolute;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: rgba(87, 178, 94, .2);
  bottom: -170px; left: -110px;
}
.cta-box > * { position: relative; z-index: 1; }
.cta-box h2 { color: var(--white); font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
.cta-box p { color: rgba(255, 255, 255, .78); max-width: 34rem; margin: 0 auto 28px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* ==========================================================================
   Inner page hero
   ========================================================================== */
.page-hero {
  padding: calc(var(--header-h) + 64px) 0 64px;
  text-align: center;
  background:
    radial-gradient(560px 320px at 85% 0%, rgba(47, 111, 237, .14), transparent 65%),
    radial-gradient(460px 300px at 8% 100%, rgba(87, 178, 94, .14), transparent 65%),
    linear-gradient(180deg, var(--mint), var(--white));
}
.page-hero h1 { font-size: clamp(1.9rem, 4.4vw, 3rem); letter-spacing: -.02em; margin: 16px 0 12px; }
.page-hero .hero-lead { font-size: clamp(1rem, 1.6vw, 1.15rem); max-width: 46rem; margin: 0 auto 18px; }
.page-hero .hero-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}
.meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid var(--line);
  font-family: var(--font-head);
  font-size: .86rem;
  font-weight: 700;
  color: var(--navy);
  box-shadow: var(--shadow-sm);
}
.meta-pill i { color: var(--green); }
.meta-pill.blue i { color: var(--blue); }

/* ---------- Prose (report pages) ---------- */
.prose { max-width: 820px; margin: 0 auto; }
.prose h2 { font-size: 1.5rem; margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--line); }
.prose h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.prose h3 { font-size: 1.1rem; margin: 26px 0 8px; color: var(--blue); }
.prose li { margin-bottom: 8px; }
.prose .speaker-credit { font-size: .9rem; color: var(--ink-soft); margin: -4px 0 16px; }

/* ---------- Report figures ---------- */
.figure {
  margin: 28px 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  background: var(--white);
}
.figure img { width: 100%; }
.figure figcaption {
  padding: 12px 18px;
  font-size: .85rem;
  color: var(--ink-soft);
  border-top: 1px solid var(--line);
  background: var(--bg-alt);
}
.charts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 22px;
  margin-top: 24px;
}
.chart-card {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  background: var(--white);
  transition: transform .25s ease, box-shadow .25s ease;
}
.chart-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.chart-card img { width: 100%; }

/* ---------- Speakers grid ---------- */
.speakers-section { background: var(--bg-alt); }
.speakers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 26px;
}
.speaker-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease;
}
.speaker-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.speaker-photo { aspect-ratio: 1 / 1; overflow: hidden; background: var(--blue-soft); }
.speaker-photo img { width: 100%; height: 100%; object-fit: cover; }
.speaker-body { padding: 18px 20px 20px; }
.speaker-topic {
  display: inline-block;
  font-family: var(--font-head);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--green);
  background: var(--green-soft);
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 10px;
}
.speaker-body h3 { font-size: 1.02rem; margin: 0; }

/* ---------- Topic feature cards (April 2022) ---------- */
.topics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}
.topic-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px 26px;
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.topic-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--blue-soft); }
.topic-icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  background: var(--blue-soft);
  color: var(--blue);
  margin-bottom: 16px;
}
.topic-card:nth-child(3n+2) .topic-icon { background: var(--green-soft); color: var(--green); }
.topic-card:nth-child(3n) .topic-icon { background: var(--navy); color: var(--white); }
.topic-card h3 { font-size: 1.08rem; margin-bottom: 6px; }
.topic-card p { margin: 0; font-size: .9rem; }
.topic-day {
  display: block;
  margin-top: 14px;
  font-family: var(--font-head);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* ---------- Registration / form section ---------- */
.register-section { background: var(--bg-alt); }
.register-grid {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 40px;
  align-items: start;
}
.register-info h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
.register-info ul { list-style: none; padding: 0; margin: 22px 0 30px; }
.register-info li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 14px;
  color: var(--ink-soft);
}
.register-info li i { color: var(--green); margin-top: 4px; }
.form-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: var(--white);
}
.form-frame iframe {
  display: block;
  width: 100%;
  height: 1150px;
  border: 0;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: rgba(255, 255, 255, .78);
  padding: 64px 0 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 44px;
}
.site-footer h2 { color: var(--white); font-size: 1.35rem; margin-bottom: 14px; }
.site-footer h4 {
  color: var(--white);
  font-size: .95rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin: 0 0 16px;
}
.site-footer p { color: rgba(255, 255, 255, .72); font-size: .92rem; }
.site-footer a { color: rgba(255, 255, 255, .82); }
.site-footer a:hover { color: var(--white); }
.footer-contact { list-style: none; padding: 0; margin: 0; }
.footer-contact li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 14px;
  font-size: .92rem;
}
.footer-contact i { color: var(--green); margin-top: 4px; width: 16px; text-align: center; }
.footer-social { display: flex; gap: 12px; }
.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .1);
  color: var(--white);
  font-size: 1.1rem;
  transition: background .2s, transform .2s;
}
.footer-social a:hover { background: var(--blue); transform: translateY(-3px); text-decoration: none; }
.footer-social a.wa:hover { background: var(--green); }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .12);
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  font-size: .85rem;
  color: rgba(255, 255, 255, .55);
}
.footer-bottom a { color: rgba(255, 255, 255, .75); font-weight: 600; }

/* ---------- Back to top ---------- */
.to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 90;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 0;
  background: var(--blue);
  color: var(--white);
  font-size: 1rem;
  cursor: pointer;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s, background .2s;
}
.to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--green); }

/* ==========================================================================
   Reveal animations
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-art { max-width: 460px; margin: 0 auto; }
  .register-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 820px) {
  .nav-toggle { display: flex; }
  .main-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, .97);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease;
  }
  .main-nav.open { max-height: calc(100vh - var(--header-h)); overflow-y: auto; }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 4px; padding: 16px 20px 24px; }
  .main-nav a { display: block; padding: 12px 16px; }
  .main-nav a.nav-cta { margin: 8px 0 0; text-align: center; }
  section { padding: 56px 0; }
}

@media (max-width: 640px) {
  .stats-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .hero-ctas .btn, .cta-actions .btn { width: 100%; }
  .form-frame iframe { height: 1400px; }
  .brand-name small { display: none; }
}

/* ==========================================================================
   Additions for the PHP-driven build: status badges, breadcrumb, gallery,
   lightbox.
   ========================================================================== */

/* ---------- Event status badge ---------- */
.ev-badge {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 999px;
  font-family: var(--font-head);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.ev-badge.report { background: var(--blue-soft); color: var(--blue); }
.ev-badge.upcoming { background: var(--green-soft); color: var(--green); }
.ev-badge.archive { background: var(--bg-alt); color: var(--ink-soft); border: 1px solid var(--line); }
.archive-card .ev-badge { align-self: flex-start; margin-bottom: 10px; }

/* ---------- Breadcrumb ---------- */
.breadcrumb-wrap {
  padding-top: calc(var(--header-h) + 24px);
  background: linear-gradient(180deg, var(--mint), var(--white));
}
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-size: .88rem;
  font-weight: 600;
  color: var(--ink-soft);
  padding: 8px 0;
}
.breadcrumb a { color: var(--blue); }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb .sep { font-size: .7rem; color: var(--line); }
.breadcrumb [aria-current="page"] { color: var(--navy); }

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 22px;
}
.gallery-item {
  margin: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease;
}
.gallery-item:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.gallery-link { display: block; }
.gallery-link img { width: 100%; }
.gallery-item figcaption {
  padding: 12px 18px;
  font-size: .88rem;
  color: var(--ink-soft);
  border-top: 1px solid var(--line);
  background: var(--bg-alt);
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(12, 20, 48, .88);
  cursor: zoom-out;
}
.lightbox img {
  max-width: 100%;
  max-height: 90vh;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  background: var(--white);
}
.lightbox-caption {
  position: absolute;
  left: 0; right: 0; bottom: 18px;
  text-align: center;
  color: rgba(255, 255, 255, .85);
  font-size: .9rem;
}
.lightbox-close {
  position: absolute;
  top: 18px; right: 18px;
  width: 44px; height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .15);
  color: var(--white);
  font-size: 1.1rem;
  cursor: pointer;
}
.lightbox-close:hover { background: var(--blue); }
