/* ==========================================================================
   KGFF — Kenya Grannies (Masters) Football Federation
   Design system: "Matchday Roll Call"
   Pitch green + clay red + savannah gold, jersey-number badges,
   stadium scoreboard ticker. Editorial serif headlines, clean sans body.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,450;0,9..144,600;0,9..144,700;0,9..144,900;1,9..144,500;1,9..144,700&family=Montserrat:ital,wght@0,400;0,500;0,600;0,700;0,800;0,900;1,500;1,700&family=IBM+Plex+Mono:wght@500;600;700&display=swap');

/* ==========================================================================
   ACCESSIBILITY — Skip link, focus styles, screen-reader utility
   ========================================================================== */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--pitch);
  color: var(--white);
  padding: 0.7rem 1.4rem;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  font-weight: 700;
  font-size: 0.9rem;
  z-index: 9999;
  transition: top 0.2s ease;
  text-decoration: none;
}

.skip-link:focus {
  top: 0;
}

/* Visible focus ring for keyboard navigation */
*:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 3px;
}

/* Screen-reader only utility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* High-contrast mode support */
@media (forced-colors: active) {
  .btn, .nav-toggle, .site-header .nav-links a {
    border: 2px solid ButtonText;
  }
  .brand img, .footer-brand img {
    forced-color-adjust: none;
  }
}

:root {
  /* --- Color tokens --- */
  --pitch: #1B5E3F;
  --pitch-dark: #0F3A26;
  --pitch-deep: #0A2A1B;
  --clay: #C1432E;
  --clay-dark: #9C3323;
  --gold: #E8A93D;
  --gold-light: #F4CC80;
  --ink: #201E19;
  --ink-soft: #4A473F;
  --paper: #FAF8F2;
  --paper-dim: #F1ECDD;
  --line: #E4DEC9;
  --white: #FFFFFF;

  /* --- Type --- */
  --f-display: 'Fraunces', serif;
  --f-body: 'Montserrat', -apple-system, sans-serif;
  --f-mono: 'IBM Plex Mono', monospace;

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 28px;
  --shadow-soft: 0 20px 50px -25px rgba(15, 58, 38, .45);
  --shadow-card: 0 12px 30px -18px rgba(32, 30, 25, .35);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  font-family: var(--f-body);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1,
h2,
h3,
h4 {
  font-family: var(--f-display);
  margin: 0;
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -.01em;
}

p {
  margin: 0;
}

button {
  font-family: inherit;
  cursor: pointer;
}

.container {
  width: min(1240px, 92%);
  margin-inline: auto;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-family: var(--f-mono);
  font-size: .72rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--clay);
  font-weight: 600;
}

.eyebrow::before {
  content: '';
  width: 22px;
  height: 2px;
  background: var(--clay);
  display: inline-block;
}

.eyebrow.on-dark {
  color: var(--gold-light);
}

.eyebrow.on-dark::before {
  background: var(--gold-light);
}

/* ==========================================================================
   Jersey badge — the signature device. Circular number tag echoing the
   #15 shirt in our founder photo, used anywhere content is numbered or
   sequenced with real meaning (sections, stats, steps, roster entries).
   ========================================================================== */
.jersey {
  --size: 56px;
  width: var(--size);
  height: var(--size);
  border-radius: 50%;
  border: 2.5px solid var(--pitch);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--f-mono);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--pitch);
  background: var(--white);
  flex-shrink: 0;
  position: relative;
}

.jersey::after {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1px dashed var(--line);
}

.jersey.gold {
  border-color: var(--gold);
  color: var(--clay-dark);
}

.jersey.on-dark {
  background: transparent;
  border-color: var(--gold);
  color: var(--gold-light);
}

.jersey.on-dark::after {
  border-color: rgba(232, 169, 61, .25);
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .9rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  border: 2px solid transparent;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease, border-color .25s ease;
  white-space: nowrap;
}

.btn svg {
  width: 16px;
  height: 16px;
  transition: transform .3s ease;
}

.btn:hover svg {
  transform: translate(3px, -3px);
}

.btn-primary {
  background: var(--clay);
  color: var(--white);
  box-shadow: 0 14px 30px -14px rgba(193, 67, 46, .65);
}

.btn-primary:hover {
  background: var(--clay-dark);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  border-color: rgba(32, 30, 25, .2);
  color: var(--ink);
}

.btn-ghost:hover {
  border-color: var(--ink);
  transform: translateY(-2px);
}

.btn-ghost.on-dark {
  border-color: rgba(255, 255, 255, .35);
  color: var(--white);
}

.btn-ghost.on-dark:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, .08);
}

.btn-gold {
  background: var(--gold);
  color: var(--pitch-deep);
  box-shadow: 0 14px 30px -14px rgba(232, 169, 61, .7);
}

.btn-gold:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
}

.btn-block {
  width: 100%;
  justify-content: center;
}

/* ==========================================================================
   Navigation
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;  /* high enough to always stay above content */
  padding: 18px 0;
  transition: background .35s ease, padding .35s ease, box-shadow .35s ease;
  /* Prevent navbar from being pushed off-screen */
  will-change: transform;
  transform: translateZ(0);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-width: 0;
}

.site-header.scrolled {
  background: rgba(250, 248, 242, .92);
  backdrop-filter: blur(10px);
  padding: 10px 0;
  box-shadow: 0 8px 24px -18px rgba(0, 0, 0, .25);
}

.brand {
  display: flex;
  align-items: center;
  gap: .7rem;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--white);
  transition: color .35s ease;
  flex-shrink: 0;
  min-width: 0;
}

.brand>span {
  display: inline-block;
  font-size: clamp(0.78rem, 1.05vw, 0.98rem);
  line-height: 1.15;
  max-width: 320px;
  vertical-align: middle;
}

.site-header.scrolled .brand {
  color: var(--ink);
}

.brand img {
  height: 42px;
  width: 42px;
  border-radius: 50%;
  background: var(--white);
  padding: 2px;
  flex-shrink: 0;
}

.brand small {
  display: block;
  font-family: var(--f-mono);
  font-weight: 500;
  font-size: .58rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  opacity: .75;
  margin-top: 2px;
}

/* Mobile and Tablet view: Change full text to KGFF via CSS */
@media (max-width: 992px) {
  .brand>span {
    font-size: 0;
  }

  .brand>span::before {
    content: 'KGFF';
    font-size: 1.1rem;
    font-weight: 700;
    display: block;
    line-height: 1;
  }

  .brand small {
    font-size: .58rem;
  }
}

/* --- Header Pill Navigation --- */
.site-header .header-pill {
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  padding: 6px 14px;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  transition: all 0.35s ease;
}

.site-header.scrolled .header-pill {
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(0, 0, 0, 0.1);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.12);
}

.site-header .nav-links {
  display: flex;
  align-items: center;
  gap: 0.2rem;
}

.site-header .nav-links a {
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: rgba(255, 255, 255, 0.95);
  transition: all 0.25s ease;
  text-decoration: none;
  white-space: nowrap;
}

.site-header .nav-links a::after {
  display: none;
}

/* modern active pill badge */
.site-header .nav-links a.active,
.site-header .nav-links a:hover {
  background: #000000;
  color: #FFFFFF !important;
}

.site-header.scrolled .nav-links a {
  color: var(--ink);
}

.site-header.scrolled .nav-links a.active,
.site-header.scrolled .nav-links a:hover {
  background: var(--pitch);
  color: var(--white) !important;
}


.nav-cta {
  display: flex;
  align-items: center;
  gap: .8rem;
  flex-shrink: 0;
  white-space: nowrap;
}

.nav-cta .btn-gold {
  white-space: nowrap !important;
  flex-shrink: 0;
  padding: 0.75rem 1.4rem;
  font-size: 0.92rem;
  font-weight: 700;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, .4);
  background: transparent;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  flex-shrink: 0;
}

.site-header.scrolled .nav-toggle {
  border-color: rgba(32, 30, 25, .3);
}

.nav-toggle span {
  width: 18px;
  height: 2px;
  background: var(--white);
  transition: all .3s ease;
}

.site-header.scrolled .nav-toggle span {
  background: var(--ink);
}

.mobile-nav {
  position: fixed;
  inset: 0;
  background: var(--pitch-deep);
  z-index: 99;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  transform: translateY(-100%);
  transition: transform .45s cubic-bezier(.65, 0, .35, 1);
}

.mobile-nav.open {
  transform: translateY(0);
}

.mobile-nav a {
  font-family: var(--f-display);
  font-size: 1.9rem;
  color: var(--paper);
  font-weight: 600;
}

.mobile-nav a:hover {
  color: var(--gold);
}

@media (max-width: 900px) {
  .nav-links {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-cta .btn-ghost {
    display: none;
  }

  /* Shrink the Join button so it fits on small phones */
  .nav-cta .btn-gold {
    padding: .6rem 1rem;
    font-size: .82rem;
  }

  /* Keep header-pill from overflowing */
  .site-header .header-pill {
    display: none;
  }
}

@media (max-width: 400px) {
  .nav-cta .btn-gold {
    font-size: .75rem;
    padding: .5rem .8rem;
  }
}

/* ==========================================================================
   Hero (page-specific backgrounds set inline)
   ========================================================================== */
.page-hero {
  position: relative;
  background-color: var(--pitch-deep);
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  color: var(--paper);
  padding: 175px 0 105px;
  min-height: clamp(380px, 46vh, 520px);
  width: 100%;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.page-hero .container {
  position: relative;
  z-index: 2;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 85% 15%, rgba(232, 169, 61, .25), transparent 45%),
    radial-gradient(circle at 10% 90%, rgba(193, 67, 46, .28), transparent 50%);
  pointer-events: none;
  z-index: 1;
}

.page-hero h1 {
  color: var(--white);
}

.page-hero .lede {
  color: rgba(250, 248, 242, .78);
}

/* ==========================================================================
   Scoreboard stat strip — signature device #2
   ========================================================================== */
.scoreboard {
  background: var(--pitch-dark);
  border-radius: var(--radius-lg);
  padding: 40px clamp(1.2rem, 4vw, 3rem);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  position: relative;
  box-shadow: var(--shadow-soft);
}

.scoreboard::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background-image: repeating-linear-gradient(90deg, transparent, transparent 60px, rgba(255, 255, 255, .03) 60px, rgba(255, 255, 255, .03) 61px);
  pointer-events: none;
}

.score-item {
  text-align: center;
  border-right: 1px solid rgba(255, 255, 255, .12);
  padding: .3rem 1rem;
}

.score-item:last-child {
  border-right: none;
}

.score-num {
  font-family: var(--f-mono);
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  font-weight: 700;
  color: var(--gold-light);
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
}

.score-label {
  margin-top: .4rem;
  font-size: .72rem;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: rgba(250, 248, 242, .65);
  font-weight: 500;
}

@media (max-width: 760px) {
  .scoreboard {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 1.6rem;
  }

  .score-item:nth-child(2) {
    border-right: none;
  }
}

/* Hide scoreboard entirely on small phones */
@media (max-width: 520px) {
  .scoreboard,
  .scoreboard + * { /* hide its wrapping section too if needed */
  }
  section:has(.scoreboard) {
    display: none;
  }
}

/* ==========================================================================
   Marquee ticker — scrolling roll call of counties / clubs
   ========================================================================== */
.ticker-wrap {
  background: var(--ink);
  overflow: hidden;
  padding: 14px 0;
  border-top: 1px solid rgba(255, 255, 255, .08);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker 42s linear infinite;
}

.ticker-track span {
  font-family: var(--f-mono);
  font-size: .82rem;
  letter-spacing: .06em;
  color: var(--paper-dim);
  padding: 0 1.8rem;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: .6rem;
}

.ticker-track span::before {
  content: '●';
  color: var(--gold);
  font-size: .5rem;
}

@keyframes ticker {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

/* ==========================================================================
   Sections & layout helpers
   ========================================================================== */
.section {
  padding: clamp(45px, 6vw, 75px) 0;
}

.section-dark {
  background: var(--pitch-deep);
  color: var(--paper);
}

.section-tint {
  background: var(--paper-dim);
  min-height: 400px;
  box-sizing: border-box;
}

.section-tint .container {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Gallery Slideshow Styling */
.gallery-slideshow-container {
  position: relative;
  width: 100%;
  max-width: 1100px;
  margin: 1.2rem auto 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  background: var(--pitch-dark);
  height: 380px;
}

.gallery-slideshow-track {
  position: relative;
  width: 100%;
  height: 100%;
}

.gallery-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  pointer-events: none;
  cursor: pointer;
}

.gallery-slide.active {
  opacity: 1;
  pointer-events: auto;
}

.gallery-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 6s ease;
}

.gallery-slide:hover img {
  transform: scale(1.05);
}

.gallery-slide-cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 2rem 1.8rem 1.4rem;
  background: linear-gradient(180deg, transparent, rgba(10, 42, 27, 0.95));
  color: var(--white);
  font-family: var(--f-display);
  font-size: 1.25rem;
  font-weight: 600;
}

.gallery-slide-cap .tag {
  display: block;
  font-family: var(--f-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 0.35rem;
}

.gallery-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(10, 42, 27, 0.65);
  backdrop-filter: blur(8px);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.25);
  font-size: 1.6rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.25s ease;
}

.gallery-nav-btn:hover {
  background: var(--gold);
  color: var(--pitch-deep);
  border-color: var(--gold);
  transform: translateY(-50%) scale(1.08);
}

.gallery-prev {
  left: 18px;
}

.gallery-next {
  right: 18px;
}

.gallery-dots {
  position: absolute;
  bottom: 16px;
  right: 24px;
  display: flex;
  gap: 8px;
  z-index: 10;
}

.gallery-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all 0.3s ease;
}

.gallery-dot.active {
  background: var(--gold);
  width: 26px;
  border-radius: 999px;
}

.section-head {
  max-width: 720px;
  margin-bottom: 1.4rem;
}

.section-head h2 {
  font-size: clamp(1.7rem, 3.5vw, 2.5rem);
  margin-top: .3rem;
}

.section-head .lede {
  margin-top: .5rem;
  font-size: 1rem;
  color: var(--ink-soft);
  line-height: 1.6;
}

.section-dark .section-head .lede {
  color: rgba(250, 248, 242, .75);
}

.section-head.center {
  margin-inline: auto;
  text-align: center;
}

.italic-accent {
  font-style: italic;
  font-weight: 500;
  color: var(--clay);
}

.section-dark .italic-accent {
  color: var(--gold-light);
}

/* Grid utilities */
.grid {
  display: grid;
  gap: 1.6rem;
}

.grid-2 {
  grid-template-columns: 1fr 1fr;
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 980px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Cards
   ========================================================================== */
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1.9rem;
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card);
  border-color: transparent;
}

.card .jersey {
  margin-bottom: 1.1rem;
}

.card h3 {
  font-size: 1.22rem;
  margin-bottom: .6rem;
}

.card p {
  color: var(--ink-soft);
  font-size: .95rem;
  line-height: 1.6;
}

.card-dark {
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--radius-md);
  padding: 1.9rem;
  color: var(--paper);
  transition: transform .35s ease, background .35s ease;
}

.card-dark:hover {
  transform: translateY(-6px);
  background: rgba(255, 255, 255, .07);
}

.card-dark p {
  color: rgba(250, 248, 242, .72);
  font-size: .95rem;
  line-height: 1.6;
}

.photo-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4/5;
}

.photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}

.photo-card:hover img {
  transform: scale(1.07);
}

.photo-card .cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.4rem 1.2rem 1.2rem;
  background: linear-gradient(180deg, transparent, rgba(10, 42, 27, .92));
  color: var(--white);
}

.photo-card .cap .tag {
  font-family: var(--f-mono);
  font-size: .68rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: .3rem;
  display: block;
}

/* ==========================================================================
   Reveal-on-scroll
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s cubic-bezier(.2, .7, .2, 1), transform .8s cubic-bezier(.2, .7, .2, 1);
}

.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

.reveal-l {
  opacity: 0;
  transform: translateX(-32px);
  transition: opacity .8s ease, transform .8s cubic-bezier(.2, .7, .2, 1);
}

.reveal-l.in {
  opacity: 1;
  transform: translateX(0);
}

.reveal-r {
  opacity: 0;
  transform: translateX(32px);
  transition: opacity .8s ease, transform .8s cubic-bezier(.2, .7, .2, 1);
}

.reveal-r.in {
  opacity: 1;
  transform: translateX(0);
}

.stagger.in>* {
  transition-delay: calc(var(--i, 0) * 90ms);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--ink);
  color: var(--paper-dim);
  padding: 40px 0 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: .7rem;
  font-family: var(--f-display);
  font-size: 1.1rem;
  color: var(--white);
  font-weight: 700;
  margin-bottom: 1rem;
}

.footer-brand img {
  height: 40px;
  width: 40px;
  border-radius: 50%;
  background: var(--white);
  padding: 2px;
}

.site-footer p {
  font-size: .9rem;
  line-height: 1.7;
  color: rgba(250, 248, 242, .6);
}

.footer-col h4 {
  font-family: var(--f-mono);
  font-size: .74rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 1.1rem;
}

.footer-col li {
  margin-bottom: .65rem;
}

.footer-col a {
  font-size: .9rem;
  color: rgba(250, 248, 242, .72);
  transition: color .25s ease;
}

.footer-col a:hover {
  color: var(--gold-light);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.6rem;
  font-size: .8rem;
  color: rgba(250, 248, 242, .5);
  flex-wrap: wrap;
  gap: 1rem;
}

.socials {
  display: flex;
  gap: .7rem;
}

.socials a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .18);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .25s ease, border-color .25s ease, transform .25s ease;
}

.socials a:hover {
  background: var(--clay);
  border-color: var(--clay);
  transform: translateY(-3px);
}

.socials svg {
  width: 16px;
  height: 16px;
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Back to top
   ========================================================================== */
.to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 60;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--clay);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  box-shadow: 0 12px 26px -12px rgba(193, 67, 46, .7);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity .3s ease, transform .3s ease, background .3s ease;
}

.to-top.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.to-top:hover {
  background: var(--clay-dark);
}

.to-top svg {
  width: 18px;
  height: 18px;
}

/* ==========================================================================
   Misc components used across pages
   ========================================================================== */
.divider-dots {
  display: flex;
  gap: 8px;
  align-items: center;
  margin: 2.4rem 0;
}

.divider-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--line);
}

.divider-dots span:nth-child(2) {
  background: var(--gold);
}

.pill {
  display: inline-block;
  padding: .4rem .9rem;
  border-radius: 999px;
  font-family: var(--f-mono);
  font-size: .72rem;
  letter-spacing: .05em;
  background: rgba(27, 94, 63, .08);
  color: var(--pitch);
  font-weight: 600;
  border: 1px solid rgba(27, 94, 63, .18);
}

.quote-block {
  position: relative;
  font-family: var(--f-display);
  font-style: italic;
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  line-height: 1.5;
  color: var(--ink);
}

.quote-block::before {
  content: '“';
  font-size: 4rem;
  color: var(--gold);
  font-family: var(--f-display);
  line-height: 0;
  display: block;
  margin-bottom: .6rem;
}

/* Accordion (Programs page) */
.accordion-item {
  border-bottom: 1px solid var(--line);
}

.accordion-item:first-child {
  border-top: 1px solid var(--line);
}

.accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 1.2rem;
  background: none;
  border: none;
  padding: 1.5rem 0;
  text-align: left;
  font-family: var(--f-display);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--ink);
}

.accordion-trigger .plus {
  margin-left: auto;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1.5px solid var(--pitch);
  position: relative;
  flex-shrink: 0;
  transition: transform .35s ease, background .3s ease;
}

.accordion-trigger .plus::before,
.accordion-trigger .plus::after {
  content: '';
  position: absolute;
  background: var(--pitch);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.accordion-trigger .plus::before {
  width: 12px;
  height: 2px;
}

.accordion-trigger .plus::after {
  width: 2px;
  height: 12px;
  transition: opacity .3s ease;
}

.accordion-item.open .accordion-trigger .plus {
  background: var(--pitch);
  transform: rotate(180deg);
}

.accordion-item.open .accordion-trigger .plus::before,
.accordion-item.open .accordion-trigger .plus::after {
  background: var(--white);
}

.accordion-item.open .accordion-trigger .plus::after {
  opacity: 0;
}

.accordion-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height .5s cubic-bezier(.2, .7, .2, 1);
}

.accordion-panel-inner {
  padding-bottom: 1.7rem;
  width: 100%;
  max-width: 100%;
}

.accordion-panel-inner p {
  color: var(--ink-soft);
  line-height: 1.7;
  margin-bottom: .8rem;
}

.accordion-panel-inner ul {
  display: grid;
  gap: .55rem;
}

.accordion-panel-inner li {
  color: var(--ink-soft);
  font-size: .95rem;
  padding-left: 1.3rem;
  position: relative;
}

.accordion-panel-inner li::before {
  content: '›';
  position: absolute;
  left: 0;
  color: var(--clay);
  font-weight: 700;
}

/* Roster / leadership cards */
.roster-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1.6rem;
  text-align: center;
  transition: transform .35s ease, box-shadow .35s ease;
}

.roster-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card);
}

.roster-avatar {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  margin: 0 auto 1rem;
  background: linear-gradient(150deg, var(--pitch), var(--pitch-dark));
  color: var(--gold-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--f-mono);
  font-weight: 700;
  font-size: 1.15rem;
  border: 3px solid var(--paper-dim);
}

.roster-card h4 {
  font-family: var(--f-display);
  font-size: 1.05rem;
  margin-bottom: .3rem;
}

.roster-card span {
  font-family: var(--f-mono);
  font-size: .7rem;
  letter-spacing: .04em;
  color: var(--clay);
  text-transform: uppercase;
}

/* Form */
.form-grid {
  display: grid;
  gap: 1.1rem;
}

.field label {
  display: block;
  font-size: .82rem;
  font-weight: 600;
  margin-bottom: .5rem;
  color: var(--ink);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: .95rem 1.1rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--line);
  font-family: var(--f-body);
  font-size: .95rem;
  background: var(--white);
  color: var(--ink);
  transition: border-color .25s ease, box-shadow .25s ease;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--pitch);
  box-shadow: 0 0 0 4px rgba(27, 94, 63, .12);
}

.field textarea {
  resize: vertical;
  min-height: 130px;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
}

@media (max-width: 640px) {
  .field-row {
    grid-template-columns: 1fr;
  }
}

.form-note {
  font-size: .8rem;
  color: var(--ink-soft);
  margin-top: .6rem;
}

.form-success {
  display: none;
  align-items: center;
  gap: .7rem;
  background: rgba(27, 94, 63, .08);
  border: 1px solid rgba(27, 94, 63, .25);
  color: var(--pitch);
  padding: 1rem 1.2rem;
  border-radius: var(--radius-sm);
  font-size: .9rem;
  font-weight: 600;
  margin-top: 1rem;
}

.form-success.show {
  display: flex;
}

/* ==========================================================================
   Home hero (split layout with bleeding portrait)
   ========================================================================== */
.home-hero {
  position: relative;
  background-color: var(--pitch-deep);
  background-image: linear-gradient(rgba(10, 42, 27, 0.38), rgba(10, 42, 27, 0.52)), url('../img/home.jpg');
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  color: var(--paper);
  height: 100vh;
  min-height: 100vh;
  max-height: 100vh;
  padding: 100px 0 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-sizing: border-box;
}

.home-hero .container {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.home-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 80% 10%, rgba(232, 169, 61, .2), transparent 40%),
    radial-gradient(circle at 5% 85%, rgba(193, 67, 46, .25), transparent 45%);
  pointer-events: none;
  z-index: 1;
}

/* Homepage background slideshow */
.hero-bg-slideshow {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}

.hero-bg-slide {
  position: absolute;
  inset: 0;
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1.8s ease-in-out, transform 7s ease-out;
  transform: scale(1);
}

.hero-bg-slide.active {
  opacity: 1;
  transform: scale(1.04);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  gap: 1.5rem;
  position: relative;
  height: 100%;
  max-height: calc(100vh - 50px);
}

.hero-copy {
  padding-bottom: 0;
  position: relative;
  z-index: 2;
  transform: translateY(-5px);
}

.hero-copy h1 {
  font-size: clamp(2.4rem, 4.8vw, 4rem);
  color: var(--white);
  margin-top: .3rem;
  line-height: 1.05;
}

.hero-copy .lede {
  margin-top: 0.7rem;
  font-size: 0.98rem;
  color: rgba(250, 248, 242, .78);
  max-width: 480px;
  line-height: 1.5;
}

.hero-actions {
  display: flex;
  gap: 0.9rem;
  margin-top: 1.1rem;
  flex-wrap: wrap;
}

.hero-visual {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  gap: 30px;
  padding-left: 0;
  z-index: 3;
}

.hero-badge {
  position: relative;
  top: auto;
  left: auto;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  color: var(--paper);
  border-radius: var(--radius-md);
  padding: 0.95rem 1.3rem;
  display: flex;
  align-items: center;
  gap: 1.1rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
  z-index: 3;
  width: 100%;
  max-width: 330px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  transition: transform 0.35s ease, box-shadow 0.35s ease, background 0.35s ease;
}

.hero-badge:hover {
  transform: translateX(-8px);
  background: rgba(255, 255, 255, 0.22);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.45);
  border-color: rgba(255, 255, 255, 0.45);
}

.hero-badge .jersey {
  --size: 44px;
  font-size: 0.95rem;
  flex-shrink: 0;
  border-color: var(--gold);
  color: var(--gold-light);
  background: rgba(10, 42, 27, 0.6);
}

.hero-badge strong {
  display: block;
  font-family: var(--f-mono);
  font-size: 0.94rem;
  color: var(--white);
  line-height: 1.2;
}

.hero-badge span {
  display: block;
  font-size: 0.76rem;
  color: rgba(250, 248, 242, 0.85);
  margin-top: 2px;
}

@media (max-width: 900px) {
  .home-hero {
    height: auto;
    min-height: 100vh;
    max-height: none;
    padding: 90px 0 30px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    max-height: none;
  }

  .hero-copy {
    padding-bottom: 10px;
    text-align: left;
    transform: none;
  }

  .hero-visual {
    height: auto;
    max-height: none;
    margin-top: 1.5rem;
    padding-left: 0;
    align-items: stretch;
    transform: none;
  }

  .hero-badge {
    max-width: 100%;
  }
}


.scroll-cue {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  color: rgba(250, 248, 242, .55);
  font-family: var(--f-mono);
  font-size: .65rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  z-index: 3;
}

.scroll-cue .line {
  width: 1px;
  height: 34px;
  background: linear-gradient(rgba(250, 248, 242, .6), transparent);
  animation: scrollcue 1.8s ease-in-out infinite;
}

@keyframes scrollcue {
  0% {
    transform: scaleY(0);
    transform-origin: top;
  }

  50% {
    transform: scaleY(1);
    transform-origin: top;
  }

  51% {
    transform-origin: bottom;
  }

  100% {
    transform: scaleY(0);
    transform-origin: bottom;
  }
}

/* ==========================================================================
   Teaser split (image + text)
   ========================================================================== */
.split {
  display: grid;
  grid-template-columns: .92fr 1.08fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: stretch;
}

.split.reverse {
  grid-template-columns: 1.08fr .92fr;
}

.split.reverse .split-media {
  order: 2;
}

.split-media {
  position: relative;
}

/* Stack of images in split-media with 20px gap */
.split-media.media-stack {
  display: flex;
  flex-direction: column;
  gap: 20px;
  justify-content: center;
}

.split-media.media-stack img {
  width: 100%;
  max-height: 280px;
  object-fit: cover;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.split-media.media-stack img:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

.split-media .frame-tag {
  position: absolute;
  bottom: -22px;
  right: -22px;
  background: var(--gold);
  color: var(--pitch-deep);
  padding: 1.1rem 1.3rem;
  border-radius: var(--radius-md);
  font-family: var(--f-mono);
  font-size: .78rem;
  font-weight: 700;
  box-shadow: var(--shadow-card);
  max-width: 180px;
  line-height: 1.4;
}

/* President Message Quote Box */
.president-card {
  background: var(--paper-dim);
  border-left: 4px solid var(--gold);
  padding: 2.2rem 2.2rem 2.2rem 2.2rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}

.president-photo {
  float: right;
  width: 160px;
  height: 200px;
  object-fit: cover;
  object-position: top center;
  border-radius: var(--radius-md);
  box-shadow: 0 8px 32px rgba(0,0,0,0.22), 0 2px 8px rgba(0,0,0,0.12);
  margin: 0 0 1.2rem 2rem;
  border: 3px solid var(--gold);
  flex-shrink: 0;
}

.president-photo-placeholder {
  float: right;
  width: 160px;
  height: 200px;
  border-radius: var(--radius-md);
  background: linear-gradient(145deg, var(--pitch-deep), var(--clay));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: 0 8px 32px rgba(0,0,0,0.22), 0 2px 8px rgba(0,0,0,0.12);
  margin: 0 0 1.2rem 2rem;
  border: 3px solid var(--gold);
  flex-shrink: 0;
  color: rgba(255,255,255,0.5);
  font-size: 0.78rem;
  font-family: var(--f-mono);
  text-align: center;
}

.president-photo-placeholder svg {
  width: 48px;
  height: 48px;
  opacity: 0.4;
}

.president-profile {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin-top: 1.6rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
  clear: both;
}

.president-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--pitch-dark);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 1.4rem;
  box-shadow: var(--shadow-card);
  flex-shrink: 0;
}

/* Board card photo placeholder */
.board-card-photo {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--pitch-deep), var(--clay));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  box-shadow: 0 4px 14px rgba(0,0,0,0.18);
  color: rgba(255,255,255,0.45);
  border: 2px solid rgba(255,255,255,0.15);
  overflow: hidden;
  flex-shrink: 0;
}

.board-card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.board-card-photo svg {
  width: 36px;
  height: 36px;
  opacity: 0.5;
}

.board-card.highlight .board-card-photo {
  border-color: rgba(232,169,61,0.5);
  background: linear-gradient(135deg, rgba(255,255,255,0.15), rgba(255,255,255,0.05));
}

.board-card {
  text-align: center;
}

/* Executive Board Hierarchical Structure */
.board-tier {
  margin-bottom: 2.5rem;
}

.board-tier-title {
  font-family: var(--f-mono);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--clay);
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.board-tier-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line);
}

.board-grid {
  display: grid;
  gap: 1.5rem;
}

.board-grid.tier-1 {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.board-grid.tier-2 {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.board-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1.6rem;
  box-shadow: var(--shadow-card);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.board-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-soft);
  border-color: var(--pitch);
}

.board-card.highlight {
  background: linear-gradient(135deg, var(--pitch-deep) 0%, var(--pitch-dark) 100%);
  color: var(--paper);
  border-color: var(--pitch-dark);
}

.board-card.highlight h3 {
  color: var(--white);
}

.board-card.highlight p {
  color: rgba(250, 248, 242, 0.8);
}

.board-card-role {
  font-family: var(--f-mono);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--clay);
  margin-bottom: 0.5rem;
}

.board-card.highlight .board-card-role {
  color: var(--gold);
}

.board-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.3rem;
}

.board-card p {
  font-size: 0.86rem;
  color: var(--ink-soft);
  line-height: 1.4;
}

@media (max-width: 860px) {

  .split,
  .split.reverse {
    grid-template-columns: 1fr;
  }

  .split.reverse .split-media {
    order: 0;
  }
}

/* ==========================================================================
   Gallery + lightbox
   ========================================================================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.gallery-grid .photo-card:nth-child(4n+1) {
  grid-row: span 2;
}

@media (max-width: 900px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-grid .photo-card:nth-child(4n+1) {
    grid-row: span 1;
  }
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 8, .92);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
  padding: 3rem 1.5rem;
  flex-direction: column;
  gap: 1rem;
}

.lightbox.open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox img {
  max-width: min(880px, 92vw);
  max-height: 78vh;
  border-radius: var(--radius-md);
  object-fit: contain;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .6);
}

.lightbox-cap {
  color: var(--paper-dim);
  font-family: var(--f-mono);
  font-size: .8rem;
  letter-spacing: .04em;
}

/* ==========================================================================
   News / blog cards
   ========================================================================== */
.news-feature {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 2.5rem;
  align-items: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.4rem;
}

.news-feature img {
  border-radius: var(--radius-md);
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 5/4;
}

.news-feature-copy {
  padding: 1rem 1.4rem 1rem 0.6rem;
}

.news-feature-copy .pill {
  margin-bottom: 1rem;
}

.news-feature-copy h3 {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  margin-bottom: 1rem;
}

.news-feature-copy p {
  color: var(--ink-soft);
  line-height: 1.7;
  margin-bottom: 1.4rem;
}

.meta-row {
  display: flex;
  gap: 1.2rem;
  align-items: center;
  font-family: var(--f-mono);
  font-size: .75rem;
  color: var(--ink-soft);
  margin-bottom: 1rem;
}

@media (max-width: 860px) {
  .news-feature {
    grid-template-columns: 1fr;
  }

  .news-feature-copy {
    padding: .5rem .3rem 1rem;
  }
}

.news-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform .35s ease, box-shadow .35s ease;
}

.news-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card);
}

.news-card img {
  width: 100%;
  aspect-ratio: 16/11;
  object-fit: cover;
}

.news-card-body {
  padding: 1.4rem 1.5rem 1.6rem;
}

.news-card .pill {
  margin-bottom: .9rem;
}

.news-card h3 {
  font-size: 1.12rem;
  margin-bottom: .6rem;
  line-height: 1.35;
}

.news-card p {
  color: var(--ink-soft);
  font-size: .9rem;
  line-height: 1.6;
}

.news-card .meta-row {
  margin-bottom: 0;
  margin-top: 1rem;
}

/* ==========================================================================
   Timeline (events / meetings)
   ========================================================================== */
.timeline {
  position: relative;
  padding-left: 2.6rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 12px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: var(--line);
}

.timeline-item {
  position: relative;
  padding-bottom: 2.3rem;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -2.6rem;
  top: 4px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--paper);
  border: 2.5px solid var(--clay);
}

.timeline-item::after {
  content: '';
  position: absolute;
  left: -2.6rem + 9px;
  left: calc(-2.6rem + 9px);
  top: 13px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--clay);
}

.timeline-item h4 {
  font-family: var(--f-display);
  font-size: 1.15rem;
  margin-bottom: .4rem;
}

.timeline-item p {
  color: var(--ink-soft);
  font-size: .92rem;
  line-height: 1.6;
}

/* ==========================================================================
   Region / office table (Contact + About governance)
   ========================================================================== */
.region-list {
  display: grid;
  gap: 1rem;
}

.region-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr 2.6fr;
  gap: 1.4rem;
  align-items: center;
  padding: 1.3rem 1.5rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.region-row .r-name {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 1.05rem;
}

.region-row .r-office {
  font-family: var(--f-mono);
  font-size: .78rem;
  color: var(--clay);
  text-transform: uppercase;
  letter-spacing: .04em;
}

.region-row .r-counties {
  font-size: .85rem;
  color: var(--ink-soft);
  line-height: 1.6;
}

@media (max-width: 760px) {
  .region-row {
    grid-template-columns: 1fr;
    gap: .5rem;
  }
}

/* ==========================================================================
   Value / benefit list rows (Membership page)
   ========================================================================== */
.benefit-row {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 1.3rem;
  padding: 1.8rem 0;
  border-bottom: 1px solid var(--line);
}

.benefit-row:first-child {
  padding-top: 0;
}

.benefit-row h3 {
  font-size: 1.15rem;
  margin-bottom: .5rem;
}

.benefit-row p {
  color: var(--ink-soft);
  font-size: .93rem;
  line-height: 1.65;
}

/* Utility */
.text-center {
  text-align: center;
}

.mt-lg {
  margin-top: 1.2rem;
}

.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}



/* ==========================================================================
   Template 1 & 2 Inspired Design Additions
   ========================================================================== */

/* Floating Hero Stat Pill Bar (Template 1 inspired) */
.hero-pill-stats {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: var(--radius-lg);
  padding: 1.2rem 2rem;
  display: flex;
  align-items: center;
  gap: 2.2rem;
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.15);
  margin-top: 2.5rem;
  width: max-content;
  max-width: 100%;
}

.hero-stat-item {
  display: flex;
  flex-direction: column;
}

.hero-stat-num {
  font-family: var(--f-mono);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--pitch-dark);
}

.hero-stat-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  font-weight: 600;
}

.hero-stat-divider {
  width: 1px;
  height: 32px;
  background: var(--line);
}

@media (max-width: 640px) {
  .hero-pill-stats {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    width: 100%;
  }

  .hero-stat-divider {
    display: none;
  }
}

/* Floating Video Thumbnail Widget (Template 1 inspired) */
.hero-video-widget {
  position: absolute;
  top: 10%;
  right: -2%;
  width: 220px;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.35);
  border: 3px solid rgba(255, 255, 255, 0.8);
  z-index: 5;
  cursor: pointer;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.hero-video-widget:hover {
  transform: scale(1.05) translateY(-4px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45);
}

.hero-video-widget img {
  width: 100%;
  height: 130px;
  object-fit: cover;
  display: block;
}

.video-play-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
}

.play-btn-circle {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: var(--pitch);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, background 0.3s ease;
}

.hero-video-widget:hover .play-btn-circle {
  transform: scale(1.15);
  background: var(--gold);
}

/* Dot Grid Background Pattern — DISABLED (removed per design update) */
.dot-pattern::after {
  content: none; /* Pattern removed */
}

.section-dark.dot-pattern::after,
.home-hero.dot-pattern::after,
.page-hero.dot-pattern::after {
  content: none;
}

/* Player / Legend Roster Cards (Template 2 inspired) */
.player-spotlight-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  position: relative;
}

.player-spotlight-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-card);
}

.player-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3.8;
  overflow: hidden;
  background: var(--paper-dim);
}

.player-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.player-spotlight-card:hover .player-img-wrap img {
  transform: scale(1.06);
}

.player-badge-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--pitch-dark);
  color: var(--gold-light);
  font-family: var(--f-mono);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.player-card-content {
  padding: 1.4rem;
}

.player-card-content h3 {
  font-size: 1.25rem;
  margin-bottom: 0.2rem;
}

.player-card-content .role {
  font-family: var(--f-mono);
  font-size: 0.76rem;
  color: var(--clay);
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 0.8rem;
  display: block;
}

.player-metrics-row {
  display: flex;
  gap: 0.8rem;
  border-top: 1px solid var(--line);
  padding-top: 0.8rem;
  margin-top: 0.8rem;
}

.player-metric-box {
  flex: 1;
  text-align: center;
  background: var(--paper);
  padding: 6px 4px;
  border-radius: var(--radius-sm);
}

.player-metric-val {
  font-family: var(--f-mono);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--pitch);
}

.player-metric-lbl {
  font-size: 0.64rem;
  color: var(--ink-soft);
  text-transform: uppercase;
}

/* Emerald Hero Callout Banner (Template 2 "SIGN WITH EGA" inspired) */
.emerald-callout {
  background: linear-gradient(135deg, #0F3A26 0%, #1B5E3F 100%);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 4vw, 3.5rem);
  position: relative;
  overflow: hidden;
}

.emerald-callout::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(232, 169, 61, 0.12);
  pointer-events: none;
}

/* Modal Popup Player for Video Highlights */
.video-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(8px);
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
  padding: 1.5rem;
}

.video-modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.video-modal-box {
  background: #000;
  border-radius: var(--radius-md);
  overflow: hidden;
  width: min(840px, 95vw);
  position: relative;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}

.video-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: background 0.25s ease;
}

.video-modal-close:hover {
  background: var(--clay);
}

.video-responsive-wrap {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
}

.video-responsive-wrap iframe,
.video-responsive-wrap video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.video-modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 1.2rem;
  background: #111;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.8rem;
}

/* ==========================================================================
   CLICK-TO-PLAY YOUTUBE EMBED (inline in dark callout section)
   ========================================================================== */
.yt-embed-wrap {
  position: relative;
  border-radius: var(--radius-md);
  aspect-ratio: 16/10;
  overflow: hidden;
  cursor: pointer;
  background: #000;
}

.yt-embed-wrap img.yt-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease, opacity 0.3s ease;
}

.yt-embed-wrap:hover img.yt-thumb {
  transform: scale(1.03);
  opacity: 0.85;
}

.yt-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 72px;
  height: 72px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 50%;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s ease, transform 0.25s ease;
  pointer-events: none;
  box-shadow: 0 8px 30px rgba(0,0,0,0.4);
}

.yt-embed-wrap:hover .yt-play-btn {
  background: var(--clay);
  transform: translate(-50%, -50%) scale(1.12);
}

.yt-play-btn svg {
  width: 28px;
  height: 28px;
  fill: var(--pitch-deep);
  margin-left: 4px;
  transition: fill 0.25s ease;
}

.yt-embed-wrap:hover .yt-play-btn svg {
  fill: var(--white);
}

.yt-embed-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  display: none;
}

.yt-embed-wrap.playing img.yt-thumb,
.yt-embed-wrap.playing .yt-play-btn {
  display: none;
}

.yt-embed-wrap.playing iframe {
  display: block;
}

/* ==========================================================================
   GALLERY SLIDER MODAL (5-photo or 15-photo scrollable popup)
   ========================================================================== */
.gallery-slider-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(10px);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
  padding: 1rem;
}

.gallery-slider-modal.open {
  opacity: 1;
  pointer-events: auto;
}

.gallery-slider-box {
  width: min(900px, 96vw);
  max-height: 92vh;
  background: #111;
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: 0 40px 100px rgba(0,0,0,0.8);
}

.gallery-slider-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.4rem;
  background: rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.gallery-slider-title {
  font-family: var(--f-mono);
  font-size: 0.8rem;
  color: var(--gold-light);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.gallery-slider-counter {
  font-family: var(--f-mono);
  font-size: 0.75rem;
  color: rgba(255,255,255,0.5);
}

.gallery-slider-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  border: none;
  color: white;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease;
  flex-shrink: 0;
}

.gallery-slider-close:hover { background: var(--clay); }

.gallery-slider-stage {
  position: relative;
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
  overflow: hidden;
}

.gallery-slider-stage img {
  max-width: 100%;
  max-height: 65vh;
  object-fit: contain;
  display: block;
  transition: opacity 0.3s ease;
}

.gallery-slider-stage img.fade-out {
  opacity: 0;
}

.slider-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  border: 1.5px solid rgba(255,255,255,0.2);
  color: white;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
  z-index: 10;
}

.slider-nav-btn:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--pitch-deep);
}

.slider-prev { left: 1rem; }
.slider-next { right: 1rem; }

.gallery-slider-cap {
  padding: 0.9rem 1.4rem;
  background: rgba(255,255,255,0.04);
  border-top: 1px solid rgba(255,255,255,0.06);
  font-size: 0.85rem;
  color: rgba(255,255,255,0.65);
  font-style: italic;
  min-height: 44px;
}

.gallery-slider-dots {
  display: flex;
  justify-content: center;
  gap: 7px;
  padding: 0.8rem;
  background: rgba(255,255,255,0.03);
  overflow-x: auto;
}

.gallery-slider-dots::-webkit-scrollbar { height: 3px; }
.gallery-slider-dots::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.2); border-radius: 2px; }

.slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.25);
  cursor: pointer;
  border: none;
  flex-shrink: 0;
  transition: background 0.2s ease, transform 0.2s ease;
  padding: 0;
}

.slider-dot.active {
  background: var(--gold);
  transform: scale(1.35);
}

/* ==========================================================================
   WHATSAPP FLOATING BUTTON
   ========================================================================== */
.wa-float {
  position: fixed;
  bottom: 2rem;
  left: 2rem;   /* moved to bottom-left */
  right: auto;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #25D366, #128C7E);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  box-shadow: 0 6px 24px rgba(37,211,102,0.5), 0 2px 8px rgba(0,0,0,0.2);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  text-decoration: none;
}

.wa-float:hover {
  transform: scale(1.12) translateY(-2px);
  box-shadow: 0 12px 36px rgba(37,211,102,0.55), 0 4px 12px rgba(0,0,0,0.25);
}

.wa-float svg {
  width: 32px;
  height: 32px;
  fill: white;
}

.wa-float::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid rgba(37,211,102,0.35);
  animation: wa-pulse 2.2s ease-in-out infinite;
}

@keyframes wa-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.2); opacity: 0; }
}

/* Tooltip — flip to right side since button is now on the left */
.wa-float .wa-tooltip {
  position: absolute;
  left: 70px;
  right: auto;
  background: #111;
  color: white;
  font-size: 0.78rem;
  font-family: var(--f-body);
  font-weight: 600;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}

.wa-float:hover .wa-tooltip { opacity: 1; }

/* ==========================================================================
   NEWS CARDS ENHANCED (author, date, read more, view photos)
   ========================================================================== */
.news-card-meta {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-top: 0.7rem;
  flex-wrap: wrap;
}

.news-card-author {
  font-family: var(--f-mono);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--pitch);
  letter-spacing: 0.08em;
}

.news-card-date {
  font-size: 0.72rem;
  color: var(--ink-soft);
}

.news-card-actions {
  display: flex;
  gap: 0.6rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.78rem;
  border-radius: 999px;
  font-weight: 600;
  border: 1.5px solid transparent;
  cursor: pointer;
  font-family: var(--f-body);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.btn-sm:hover { transform: translateY(-1px); }

.btn-sm-outline {
  background: transparent;
  border-color: var(--pitch);
  color: var(--pitch);
}
.btn-sm-outline:hover { background: var(--pitch); color: var(--white); }

.btn-sm-gold {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--pitch-deep);
}
.btn-sm-gold:hover { background: var(--gold-light); }

.btn-sm-clay {
  background: transparent;
  border-color: var(--clay);
  color: var(--clay);
}
.btn-sm-clay:hover { background: var(--clay); color: var(--white); }

.news-card-expand {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.news-card-expand.open {
  max-height: 400px;
}

.news-card-expand-inner {
  padding-top: 0.8rem;
  font-size: 0.88rem;
  color: var(--ink-soft);
  line-height: 1.75;
  border-top: 1px solid var(--line);
  margin-top: 0.6rem;
}

/* ==========================================================================
   PRESIDENT SPLIT LAYOUT
   ========================================================================== */
.president-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 4vw, 3rem);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--line);
}

.president-split-message {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

.president-split-photo {
  position: relative;
}

.president-split-photo img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  object-position: top;
  border-radius: var(--radius-md);
  display: block;
}

.president-split-photo::before {
  content: '';
  position: absolute;
  inset: 10px -10px -10px 10px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--pitch), var(--pitch-dark));
  z-index: -1;
}

@media (max-width: 768px) {
  .president-split {
    grid-template-columns: 1fr;
    gap: 1.8rem;
  }
  .president-split-photo {
    order: -1;
  }
  .president-split-photo img {
    aspect-ratio: 16/9;
    object-position: top center;
    max-height: 340px;
    width: 100%;
    object-fit: cover;
  }
  .president-split-photo::before {
    display: none;
  }
}

/* ==========================================================================
   BOARD CARD PHOTO — Small circular frame, centered photo fit
   ========================================================================== */
.board-card-photo {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--paper-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.2rem;
  border: 3.5px solid var(--gold);
  box-shadow: 0 8px 20px rgba(15, 58, 38, 0.18);
  flex-shrink: 0;
  transition: border-color 0.35s ease, transform 0.35s ease, box-shadow 0.35s ease;
}

.board-card:hover .board-card-photo {
  border-color: var(--clay);
  transform: scale(1.06);
  box-shadow: 0 12px 28px rgba(193, 67, 46, 0.25);
}

.board-card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 0.4s ease;
}

.board-card:hover .board-card-photo img {
  transform: scale(1.08);
}

/* ==========================================================================
   PROGRAMS PILLAR — 4-PHOTO GRID (2x2) & Accordion Alignment
   ========================================================================== */
.accordion-panel-inner .split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  width: 100%;
}

.pillar-photo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  border-radius: var(--radius-md);
  overflow: hidden;
  width: 100%;
}

.pillar-photo-grid img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
  border-radius: var(--radius-sm);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.pillar-photo-grid img:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.16);
}

.pillar-photo-grid .pg-item {
  overflow: hidden;
}

/* Programs accordion — stack on mobile */
@media (max-width: 700px) {
  .accordion-panel-inner .split {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .pillar-photo-grid {
    grid-template-columns: 1fr 1fr;
    /* Keep 2-col photo grid but ensure images don't get squeezed */
  }

  .pillar-photo-grid img {
    aspect-ratio: 3/2;
  }
}

/* ==========================================================================
   GOOGLE MAPS SECTION
   ========================================================================== */
.map-section {
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--line);
  position: relative;
}

.map-section iframe {
  width: 100%;
  height: 420px;
  border: none;
  display: block;
}

.map-section-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(10,42,27,0.85) 0%, transparent 100%);
  padding: 1.5rem;
  color: white;
  pointer-events: none;
}

.map-section-overlay strong {
  display: block;
  font-size: 1rem;
  margin-bottom: 0.2rem;
}

.map-section-overlay span {
  font-size: 0.85rem;
  opacity: 0.8;
}

/* ==========================================================================
   HOMEPAGE NEWS PREVIEW SECTION
   ========================================================================== */
.home-news-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--line);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.home-news-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 60px -20px rgba(15,58,38,0.45);
}

.home-news-card img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.home-news-card:hover img { transform: scale(1.04); }

.home-news-card-img { overflow: hidden; }

.home-news-card-body {
  padding: 1.4rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.home-news-card-body h3 {
  font-size: 1.05rem;
  line-height: 1.35;
  color: var(--pitch-deep);
}

.home-news-card-body p {
  font-size: 0.87rem;
  color: var(--ink-soft);
  line-height: 1.65;
}

.home-news-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.home-news-card-footer span {
  font-size: 0.75rem;
  color: var(--ink-soft);
  font-family: var(--f-mono);
}

.home-news-card-footer a {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--pitch);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

.home-news-card-footer a:hover { color: var(--clay); }

/* ==========================================================================
   GLOBAL MOBILE FIXES — Text centring, news page, accessibility
   ========================================================================== */

/* ---- News feature card: stack on mobile ---- */
@media (max-width: 700px) {
  .news-feature {
    grid-template-columns: 1fr;
    gap: 1.2rem;
    padding: 1rem;
  }

  .news-feature img {
    aspect-ratio: 16/9;
    max-height: 260px;
  }

  .news-feature-copy {
    padding: .5rem 0 .5rem;
  }

  /* Meta row wrap nicely on small screens */
  .meta-row {
    flex-wrap: wrap;
    gap: .6rem;
  }
}

/* ---- Global: Centre text and align items in mobile view ---- */
@media (max-width: 640px) {
  /* Section headers */
  .section-head {
    text-align: center;
  }

  .section-head .eyebrow {
    justify-content: center;
  }

  /* eyebrow bars centred */
  .eyebrow {
    justify-content: center;
  }

  /* Hero copy centred */
  .hero-copy {
    text-align: center;
  }

  .hero-copy .lede {
    max-width: 100%;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-pill-stats {
    align-items: center;
  }

  /* Page-hero centred */
  .page-hero .container {
    text-align: center;
  }

  .page-hero .lede {
    margin-inline: auto;
  }

  /* flex-between stacks and centres on mobile */
  .flex-between {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .flex-between .section-head {
    text-align: center;
  }

  /* Split sections (who we are, emerald callout, etc.) */
  .split,
  .split.reverse {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .split.reverse .split-media {
    order: 0;
  }

  /* Frame tag on split media */
  .split-media .frame-tag {
    position: static;
    margin-top: 0.8rem;
    text-align: center;
    display: inline-block;
  }

  /* Cards */
  .card,
  .card-dark {
    text-align: center;
  }

  .card .jersey {
    margin-inline: auto;
  }

  /* Emerald callout CTA */
  .emerald-callout .split {
    text-align: center;
  }

  .emerald-callout .split > div:last-child {
    justify-content: center;
  }

  /* Board cards */
  .board-grid.tier-1,
  .board-grid.tier-2 {
    grid-template-columns: 1fr;
  }

  /* Region rows */
  .region-row {
    text-align: center;
  }

  /* Accordion trigger */
  .accordion-trigger {
    font-size: 1.05rem;
  }

  /* Stats boxes in programs accordion */
  .accordion-panel-inner [style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }

  /* News cards actions */
  .news-card-actions {
    justify-content: center;
  }

  /* Gallery grid: 2 columns on mobile */
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-grid .photo-card:nth-child(4n+1) {
    grid-row: span 1;
  }
}

/* ---- Accessibility: minimum tap-target sizes ---- */
.btn, .btn-sm, .nav-toggle, .to-top, .wa-float,
.accordion-trigger, .gallery-slider-close, .slider-nav-btn,
.video-modal-close {
  min-height: 44px;
  min-width: 44px;
}

/* Exception for small buttons — keep width but ensure height */
.btn-sm {
  min-height: 40px;
  min-width: unset;
}

/* Accessible link underlines in news/body text */
.news-card a,
.news-feature-copy a:not(.btn) {
  text-underline-offset: 3px;
}

/* Reduce motion: already handled at top, but add for any missed cases */
@media (prefers-reduced-motion: reduce) {
  .hero-bg-slide,
  .scroll-cue .line,
  .ticker-track,
  .wa-float::before {
    animation: none !important;
    transition: none !important;
  }
}

/* ==========================================================================
   ROUND-2 MOBILE FIXES
   ========================================================================== */

/* ---- 1. Who We Are — constrain the split-media image on mobile ---- */
@media (max-width: 860px) {
  /* The split-media image (KICK 2.jpeg) stacks below text on tablet */
  .split-media img {
    max-height: 320px;
    width: 100%;
    object-fit: cover;
    border-radius: var(--radius-md);
  }
}

@media (max-width: 640px) {
  /* Smaller, cropped image on phones */
  .split-media img {
    max-height: 230px;
  }

  /* Ensure frame-tag doesn't overlap on mobile */
  .split-media {
    margin-bottom: 2rem;  /* extra bottom space for the absolute frame-tag */
  }
}

/* ---- 2. "Sign Up Today" (emerald callout) — centre buttons on mobile ---- */
@media (max-width: 640px) {
  .emerald-callout .split > div:last-child,
  .emerald-callout [style*="display:flex"],
  .emerald-callout [style*="display: flex"] {
    justify-content: center !important;
    flex-wrap: wrap !important;
  }

  .emerald-callout h2,
  .emerald-callout p {
    text-align: center;
  }
}

/* ---- 3. Footer — centre-align all columns on mobile ---- */
@media (max-width: 560px) {
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-brand {
    justify-content: center;
  }

  .socials {
    justify-content: center;
  }

  .footer-col ul {
    padding: 0;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .site-footer p {
    text-align: center;
  }
}

/* ---- 4. Background images — ensure cover and no spill on all page heroes ---- */
.page-hero,
.home-hero,
.section-dark,
.section-tint {
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

/* Make sure hero sections don't overflow horizontally */
.page-hero,
.home-hero {
  overflow-x: hidden;
}

/* ---- 5. About Us — Mission & Vision boxes — stack vertically on mobile ---- */
@media (max-width: 640px) {
  /* The inline-style grid for vision/mission boxes */
  div[style*="grid-template-columns: 1fr 1fr"] {
    display: flex !important;
    flex-direction: column !important;
    gap: 1rem !important;
  }
}

/* ---- 6. President photo in Leadership Message — fit on mobile ---- */
@media (max-width: 640px) {
  .president-split {
    padding: 1.4rem;
    gap: 1.4rem;
  }

  .president-split-photo img {
    aspect-ratio: 3/2;
    max-height: 260px;
    object-position: top center;
  }
}

/* ---- 7. Membership page — benefit-row jersey centred + submit button wrap ---- */
@media (max-width: 640px) {
  .benefit-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.8rem;
    padding: 1.4rem 0;
  }

  .benefit-row .jersey {
    margin: 0 auto;
  }

  /* Submit application button — prevent text spilloff */
  .btn.btn-primary.btn-block {
    white-space: normal;
    word-break: break-word;
    line-height: 1.4;
    padding: 0.9rem 1rem;
    text-align: center;
  }
}

/* ---- 8. Contact page — contact info icons centred on mobile ---- */
@media (max-width: 640px) {
  .contact-info-row {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    gap: 0.6rem !important;
  }

  .contact-info-row > div {
    text-align: center;
  }

  /* Jersey icon centred in the row */
  .contact-info-row .jersey {
    margin: 0 auto;
  }

  /* WhatsApp CTA button on contact page — full width and centred */
  a.btn[href*="wa.me"] {
    width: 100% !important;
    justify-content: center !important;
  }
}

/* ---- 9. Ensure "back to top" button doesn't overlap the WhatsApp button (now on left) ---- */
/* .to-top stays bottom-right, wa-float is bottom-left — no conflict */
.to-top {
  right: 1.5rem;
  bottom: 1.5rem;
}

/* ---- 10. Page hero — prevent content overflow and ensure text wraps ---- */
@media (max-width: 640px) {
  .page-hero {
    padding: 130px 0 70px;
  }

  .page-hero h1 {
    word-break: break-word;
    hyphens: auto;
  }

  .page-hero .lede {
    font-size: 0.92rem;
  }
}

/* ---- 11. Header always on top — ensure it is never clipped by sections ---- */
.site-header {
  /* isolation creates a new stacking context cleanly */
  isolation: isolate;
}

/* Sections with position:relative and z-index must stay below the header */
.home-hero,
.page-hero,
.section,
.section-dark,
.section-tint {
  position: relative;
  z-index: 0;
}

/* The hero slideshow bg is z-index 0, content is z-index 2, header is z-index 1000 */

/* ==========================================================================
   NEWS PAGE — FEATURED ARTICLE SLIDER & EXPANDED VERTICAL REARRANGEMENT
   ========================================================================== */

.news-feature-layout {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 2.5rem;
  align-items: start;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.4rem, 3vw, 2.5rem);
  box-shadow: var(--shadow-card);
  transition: all 0.35s ease;
}

.news-feature-media {
  position: relative;
  width: 100%;
}

/* 1. Inline Photo Slider (No Modal Popup) */
.news-inline-slider {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 16/11;
  background: var(--pitch-dark);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.news-inline-slider .nis-track {
  position: relative;
  width: 100%;
  height: 100%;
}

.news-inline-slider .nis-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.45s ease;
  pointer-events: none;
}

.news-inline-slider .nis-slide.active {
  opacity: 1;
  pointer-events: auto;
}

.news-inline-slider .nis-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.news-inline-slider .nis-cap {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(10, 42, 27, 0.88) 0%, rgba(10, 42, 27, 0.4) 60%, transparent 100%);
  color: #fff;
  font-size: 0.78rem;
  padding: 2rem 1rem 2.4rem;
  font-family: var(--f-body);
  line-height: 1.35;
  pointer-events: none;
}

.news-inline-slider .nis-controls {
  position: absolute;
  bottom: 8px;
  right: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  z-index: 10;
}

.news-inline-slider .nis-prev,
.news-inline-slider .nis-next {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
  transition: background 0.2s, transform 0.2s;
  padding: 0;
}

.news-inline-slider .nis-prev:hover,
.news-inline-slider .nis-next:hover {
  background: var(--gold);
  color: var(--pitch-dark);
  transform: scale(1.08);
}

.news-inline-slider .nis-dots {
  display: flex;
  gap: 5px;
  margin: 0 4px;
}

.news-inline-slider .nis-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.news-inline-slider .nis-dot.active {
  background: var(--gold);
  transform: scale(1.3);
}

/* 2. Vertical Photo Strip (Desktop when expanded) */
.news-vertical-photos {
  display: none;
  flex-direction: column;
  gap: 0.9rem;
  width: 100%;
}

.news-vertical-photos .nvp-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  aspect-ratio: 16/10;
}

.news-vertical-photos .nvp-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.news-vertical-photos .nvp-item:hover img {
  transform: scale(1.04);
}

.news-vertical-photos .nvp-item span {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(10, 42, 27, 0.85) 0%, transparent 100%);
  color: #fff;
  font-size: 0.72rem;
  padding: 1.2rem 0.75rem 0.45rem;
  font-family: var(--f-body);
  pointer-events: none;
}

/* When expanded on Desktop: Hide slider, show vertical photo column */
@media (min-width: 769px) {
  .news-feature-layout.expanded .news-inline-slider {
    display: none;
  }

  .news-feature-layout.expanded .news-vertical-photos {
    display: flex;
  }

  .news-inline-photo {
    display: none !important;
  }
}

/* Article Copy & Clean Typography (No emoji icons) */
.news-feature-article {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.news-article-title {
  font-size: clamp(1.4rem, 2.4vw, 1.95rem);
  line-height: 1.25;
  color: var(--pitch-deep);
  margin-top: 0.2rem;
}

.news-article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.9rem;
  font-family: var(--f-mono);
  font-size: 0.8rem;
  color: var(--ink-soft);
  margin-top: 0.2rem;
}

.news-article-meta span:not(:last-child)::after {
  content: '•';
  margin-left: 0.9rem;
  color: var(--gold-dark);
}

.news-article-author {
  font-size: 0.8rem;
  color: var(--ink-soft);
  font-family: var(--f-mono);
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.news-lead {
  font-size: 0.98rem;
  line-height: 1.7;
  color: var(--ink);
}

/* Expandable content styling */
.news-card-expand {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.news-card-expand.open {
  max-height: 2500px;
}

.news-card-expand-inner {
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  margin-top: 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  line-height: 1.75;
  color: var(--ink-soft);
  font-size: 0.93rem;
}

.news-card-actions {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-top: 1rem;
  padding-top: 0.8rem;
}

/* Mobile View: Interleaved photos between paragraphs */
@media (max-width: 768px) {
  .news-feature-layout {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 1.2rem;
  }

  .news-vertical-photos {
    display: none !important;
  }

  .news-inline-photo {
    display: block;
    width: 100%;
    aspect-ratio: 16/9;
    max-height: 240px;
    object-fit: cover;
    border-radius: var(--radius-md);
    margin: 0.6rem 0;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  }
}

/* ==========================================================================
   WHO WE ARE — PHOTO SIZING TO FIT CONTAINER
   ========================================================================== */
.who-we-are-media {
  width: 100%;
  height: 100%;
  position: relative;
}

.who-we-are-media img {
  width: 100%;
  height: 100%;
  min-height: 380px;
  object-fit: cover;
  object-position: center;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  display: block;
}

@media (max-width: 860px) {
  .who-we-are-media img {
    min-height: 0;
    height: auto;
    max-height: 320px;
    aspect-ratio: 16/10;
  }
}


/* ==========================================================================
   President Message Split Layout (About Us page)
   ========================================================================== */
.president-split {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 2.2rem;
  align-items: center;
  background: var(--paper-dim);
  border-radius: var(--radius-lg);
  padding: 2rem clamp(1.2rem, 3vw, 2.2rem);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--line);
}

.president-split-message {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.president-split-message .quote-block {
  font-size: 1.02rem !important;
  line-height: 1.55;
  font-style: italic;
  color: var(--ink);
}

.president-split-message .quote-block::before {
  font-size: 2.4rem;
  margin-bottom: 0.1rem;
}

.president-profile {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-top: 0.4rem;
  padding-top: 0.7rem;
  border-top: 1px solid var(--line);
}

.president-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--pitch);
  color: var(--gold-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--f-mono);
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.president-split-photo {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.president-split-photo img {
  width: 100%;
  max-width: 290px;
  max-height: 350px;
  object-fit: cover;
  object-position: top center;
  border-radius: var(--radius-md);
  border: 3px solid var(--gold);
  box-shadow: 0 10px 25px -10px rgba(0, 0, 0, 0.25);
}

@media (max-width: 768px) {
  .president-split {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 1.4rem 1.1rem;
  }

  .president-split-photo {
    order: -1;
  }

  .president-split-photo img {
    max-width: 220px;
    max-height: 260px;
  }

  .president-split-message .quote-block {
    font-size: 0.95rem !important;
  }
}


/* ==========================================================================
   About Us � Mobile-only interleaved history photos (hidden on desktop)
   ========================================================================== */
.about-inline-photo {
  display: none;
}

@media (max-width: 768px) {
  /* Hide the desktop left image stack on mobile */
  .split-media.media-stack {
    display: none !important;
  }

  /* Show photos interleaved between paragraphs on mobile */
  .about-inline-photo {
    display: block;
    width: 100%;
    aspect-ratio: 16/9;
    max-height: 210px;
    object-fit: cover;
    border-radius: var(--radius-md);
    margin: 1rem 0;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.10);
  }

  /* President photo � fill the mobile card, no cutoff */
  .president-split-photo img {
    width: 100%;
    max-width: 100% !important;
    max-height: 320px !important;
    object-fit: cover;
    object-position: top center;
    border-radius: var(--radius-md);
  }
}

/* ==========================================================================
   About Us � History Split Layout (desktop: 4-photo column + text)
   ========================================================================== */
.history-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2.4rem;
  align-items: start;
}

.history-photos {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  position: sticky;
  top: 100px;
}

.history-photo-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4/3;
  box-shadow: 0 4px 14px rgba(0,0,0,0.1);
}

.history-photo-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.4s ease;
}

.history-photo-item:hover img {
  transform: scale(1.04);
}

.history-text {
  min-width: 0;
}

/* Mobile: hide photo column, show inline photos */
@media (max-width: 768px) {
  .history-layout {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .history-photos {
    display: none !important;
  }

  .about-inline-photo {
    display: block !important;
    width: 100%;
    aspect-ratio: 16/9;
    max-height: 200px;
    object-fit: cover;
    border-radius: var(--radius-md);
    margin: 0.9rem 0;
    box-shadow: 0 4px 14px rgba(0,0,0,0.1);
  }
}

/* Desktop: keep inline photos hidden */
@media (min-width: 769px) {
  .about-inline-photo {
    display: none !important;
  }
}

/* ==========================================================================
   About Us � President Photo Mobile Fix (force fill frame)
   ========================================================================== */
@media (max-width: 768px) {
  .president-split-photo {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 1.2rem;
    border: 3.5px solid var(--gold);
    box-shadow: 0 8px 20px rgba(15, 58, 38, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .president-split-photo img {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: cover !important;
    object-position: center top !important;
    border-radius: 50% !important;
    border: none !important;
    display: block;
  }
}
