/* ============================================================
   BNNB V5 — HYBRID: v1f brutalist + teamnb hero/colors
   Colors from teamnb.png:
     Burgundy #0050d0 (on light bg), Teal #001a40 (dark bg)
     Pale green #7fb3e6 (accents on dark bg)
   Font: Space Grotesk + Space Mono (from v1f)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=Space+Mono:wght@400;700&display=swap');

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

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 400;
  color: #001a40;
  background: #f4f1ed;
  line-height: 1.5;
  overflow-x: hidden;
}

a { color: inherit; }
img { display: block; max-width: 100%; }
ul { list-style: none; }

/* ---- NAVBAR (v1f style) ---- */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: #001a40;
  border-bottom: 1px solid rgba(255,255,255,0.10);
  height: 56px;
}

.navbar-container {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 40px;
}

.navbar-logo { flex-shrink: 0; margin-right: 32px; position: relative; z-index: 1001; }
.navbar-logo img { height: 30px; filter: brightness(0) invert(1); /* pure white logo */ }

.nav-links { display: flex; gap: 0; margin-left: auto; }

.nav-links li a {
  position: relative;
  display: block;
  padding: 16px 18px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.82);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: color 0.25s ease, border-color 0.25s ease;
}

/* Thin divider between each nav item */
.nav-links li + li a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 14px;
  background: rgba(255,255,255,0.16);
}

.nav-links li a:hover,
.nav-links li a.is-active {
  color: #ffffff;
  border-bottom-color: #7fb3e6;
}

/* ---- Language switch (EN | FR) ---- */
.navbar-lang {
  display: flex;
  align-items: center;
  margin-left: 22px;
  flex-shrink: 0;
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 999px;
  overflow: hidden;
  position: relative;
  z-index: 1001;
}
.navbar-lang a {
  display: block;
  padding: 5px 11px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1;
  color: rgba(255,255,255,0.72);
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.navbar-lang a + a { border-left: 1px solid rgba(255,255,255,0.18); }
.navbar-lang a:hover { color: #ffffff; }
.navbar-lang a.is-active {
  background: #7fb3e6;
  color: #001a40;
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  margin-left: auto;
  position: relative;
  z-index: 1001; /* stay above the full-screen menu so the X is clickable */
}

.hamburger span {
  display: block;
  width: 28px;
  height: 3px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.2s ease;
  transform-origin: center;
}

/* Hamburger morphs into an X when the menu is open */
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---- HERO (fixed / sticky with content scrolling over) ---- */
.hero {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: url('Images/heroblue.png');
  background-size: cover;
  background-position: center;
  z-index: 0;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0,28,68,0.3) 0%,
    rgba(0,28,68,0.08) 40%,
    rgba(0,28,68,0.4) 100%
  );
  z-index: 1;
}

/* Spacer so content starts after hero viewport */
.hero-spacer {
  height: 100vh;
  height: 100dvh;
}

.hero-center {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 24px;
}

.hero-logo {
  width: 88%;
  max-width: 850px;
  filter: brightness(0) invert(1);
}

/* Everything after hero scrolls over it */
.main-content {
  position: relative;
  z-index: 1;
  background: #f4f1ed;
}

.hero-line {
  width: 100px;
  height: 3px;
  background: #0050d0;
  margin-top: 32px;
}

.hero-tagline {
  font-family: 'Space Mono', monospace;
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.8);
  margin-top: 20px;
  text-shadow: 0 1px 8px rgba(0,0,0,0.4);
}

.hero-scroll {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  z-index: 3;
}

.hero-scroll-line {
  width: 2px;
  height: 40px;
  background: #7fb3e6;
  margin-bottom: 8px;
  animation: pulse-line 2s ease infinite;
}

@keyframes pulse-line {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.hero-scroll-label {
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #7fb3e6;
  text-shadow: 0 1px 6px rgba(0,0,0,0.3);
}

/* ---- SECTION TITLE (v1f style) ---- */
.section-title {
  font-size: 8vw;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 0.9;
  letter-spacing: -0.02em;
  margin-bottom: 52px;
}

/* ---- NEWS (v1f style: numbered columns) ---- */
.news-section {
  background: #f4f1ed;
  border-top: 3px solid #001a40;
  border-bottom: 3px solid #001a40;
  padding: 110px 110px;
}

.news-section .section-title {
  color: #001a40;
  padding-left: 40px;
}

.news-posts-container {
  display: flex;
  border-top: 3px solid #001a40;
}

.news-post {
  flex: 1;
  padding: 48px 40px;
  border-right: 3px solid #001a40;
}

.news-post:last-child { border-right: none; }

.news-number {
  font-family: 'Space Mono', monospace;
  font-size: 48px;
  font-weight: 700;
  color: #0050d0;
  line-height: 1;
  margin-bottom: 16px;
}

.news-title {
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: 12px;
  color: #001a40;
}

.news-content { font-size: 15px; line-height: 1.6; color: #001a40; }
.news-content a { color: #0050d0; text-decoration: underline; }
.news-content a:hover { background: #0050d0; color: #fff; }

/* ---- PHOTOS (v1f style: horizontal strip) ---- */
.photos-section {
  overflow: hidden;
  border-bottom: 3px solid #001a40;
  height: 380px;
  position: relative;
}

.photo-strip {
  display: flex;
  height: 380px;
  animation: photo-scroll 40s linear infinite;
  width: max-content;
}

.photo-strip:hover { animation-play-state: paused; }

@keyframes photo-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.photo-strip-item { flex-shrink: 0; height: 380px; width: auto; }

.photo-strip-item img {
  height: 380px;
  width: auto;
  object-fit: cover;
  filter: grayscale(100%);
  transition: filter 0.4s;
}

.photo-strip-item img:hover { filter: grayscale(0%); }

/* ---- EVENTS (v1f style: table rows) ---- */
.events-section {
  background: #0042b0;
  color: #fff;
  padding: 110px 150px;
  border-bottom: 3px solid #001a40;
}

.events-section .section-title { color: #fff; }

.events-table {
  width: 100%;
  border-top: 1px solid rgba(255,255,255,0.2);
}

.event-row {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  padding: 20px 0;
  border-bottom: 1px solid rgba(255,255,255,0.15);
  position: relative;
}

.event-row:hover { background: rgba(255,255,255,0.03); }

.event-date {
  font-family: 'Space Mono', monospace;
  font-size: 14px;
  color: #a8cdf5;
  width: 180px;
  flex-shrink: 0;
  text-transform: uppercase;
}

.event-name {
  flex: 1;
  font-weight: 700;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

/* Location + venue shown as a meta line under the event title */
.event-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  margin-top: 8px;
  font-size: 13.5px;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
}

.event-loc-line { display: flex; align-items: flex-start; gap: 6px; line-height: 1.35; }
.event-loc-icon { width: 13px; height: 13px; flex-shrink: 0; margin-top: 2px; opacity: 0.85; }
.event-city { color: rgba(255,255,255,0.8); }
.event-venue { color: rgba(255,255,255,0.5); }

.event-links { display: flex; gap: 10px; flex-shrink: 0; align-items: center; }

.event-links a {
  display: inline-block;
  padding: 8px 20px;
  background: #fff;
  color: #0050d0;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: 2px solid #fff;
  transition: background 0.2s, color 0.2s;
}

.event-links a:hover { background: transparent; color: #fff; border-color: #fff; }

.event-muted { color: rgba(255,255,255,0.3); font-size: 14px; font-style: italic; }

.event-admin-icons { display: flex; gap: 8px; margin-left: 12px; }
.event-admin-icon { color: rgba(255,255,255,0.4); text-decoration: none; font-size: 14px; }
.event-admin-icon:hover { color: #a8cdf5; }

.event-deadline-label { font-size: 13px; color: rgba(255,255,255,0.4); margin-top: 2px; }

.past-events-link {
  color: #a8cdf5;
  text-decoration: underline;
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: inline-block;
  margin-top: 32px;
}

.past-events-link:hover { background: #0050d0; color: #fff; }

/* ---- MEMBERSHIP (v1f style: split 60/40) ---- */
.membership-section {
  background: #f4f1ed;
  display: flex;
  border-top: 3px solid #001a40;
  border-bottom: 3px solid #001a40;
}

.membership-image-col {
  width: 50%;
  flex-shrink: 0;
  overflow: hidden;
  aspect-ratio: 1 / 1;
}

.membership-image-col img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.membership-text-col {
  width: 50%;

  padding: 60px 150px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.membership-text-col .section-title { color: #001a40; }

.membership-text-col p,
.membership-text-col li {
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 8px;
}

.membership-text-col ul { margin: 16px 0 24px 0; }

.membership-text-col li::before {
  content: "//";
  color: #0050d0;
  font-weight: 700;
  margin-right: 8px;
}

.membership-text-col a.membership-link { color: #0050d0; text-decoration: underline; }
.membership-text-col a.membership-link:hover { background: #0050d0; color: #fff; }

.membership-note { font-size: 13px; color: rgba(0,22,54,0.5); }

.membership-btn {
  display: inline-block;
  padding: 16px 32px;
  background: #0050d0;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-decoration: none;
  border: 3px solid #0050d0;
  margin-top: 24px;
}

.membership-btn:hover {
  background: #001a40;
  color: #fff;
  border-color: #001a40;
}

.membership-hint { font-size: 13px; color: rgba(0,22,54,0.5); margin-top: 12px; }

/* ---- RANKINGS (v1f style: arrow links) ---- */
.rankings-section {
  background: #001a40;
  color: #fff;
  padding: 110px 150px;
  border-bottom: 3px solid #0050d0;
}

.rankings-section .section-title { color: #fff; }

.rankings-list { margin-top: 8px; }
.rankings-list li { border-bottom: 1px solid rgba(255,255,255,0.1); }

.rankings-list li a {
  display: flex;
  align-items: center;
  padding: 20px 16px;
  font-size: 18px;
  font-weight: 600;
  text-decoration: none;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.rankings-list li a::before {
  content: "\2192";
  color: #7fb3e6;
  font-size: 28px;
  font-weight: 700;
  margin-right: 20px;
  flex-shrink: 0;
}

.rankings-list li a:hover { background: #0050d0; color: #fff; }
.rankings-list li a:hover::before { color: #fff; }

.rankings-intro { font-size: 15px; color: rgba(255,255,255,0.5); margin-bottom: 16px; }

/* ---- ABOUT (text left, image right — mirror of membership) ---- */
.about-section {
  background: #f4f1ed;
  display: flex;
  border-top: 3px solid #001a40;
  border-bottom: 3px solid #001a40;
}

.about-text-col {
  width: 50%;
  padding: 80px 150px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.about-text-col .section-title { color: #001a40; }

.about-text-col h3 {
  font-size: 20px;
  font-weight: 700;
  text-transform: uppercase;
  margin: 32px 0 12px;
  color: #001a40;
}

.about-text-col p { font-size: 15px; line-height: 1.7; margin-bottom: 16px; color: #001a40; }
.about-text-col a { color: #0050d0; text-decoration: underline; }
.about-text-col a:hover { background: #0050d0; color: #fff; }

/* "Show more" toggle — hidden on desktop (full text always shown) */
.about-toggle { display: none; }

.about-image-col {
  width: 50%;
  flex-shrink: 0;
  overflow: hidden;
  aspect-ratio: 1 / 1;
}

.about-image-col img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---- SCROLLING BANNER ---- */
.scrolling-banner {
  --vollant-w: 2345px;   /* shuttlecock strip width  */
  --vollant-h: 100px;    /* shuttlecock strip height (keep ratio with width) */
  --vollant-gap: 210px;  /* gap between repeats */
  width: 100%;
  height: 160px;
  position: relative;
  padding-top: 60px;
}
.scroll-window {
  width: 100%;
  height: 100%;
  overflow: hidden;
  position: relative;
}
.scroll-content {
  display: flex;
  width: calc((var(--vollant-w) + var(--vollant-gap)) * 2);
  gap: var(--vollant-gap);
  animation: scroll-left 30s linear infinite;
}
.scroll-content .vollant {
  display: block;
  height: var(--vollant-h);
  width: var(--vollant-w);
  flex-shrink: 0;
  user-select: none;
  pointer-events: none;
  /* Fill the shuttlecock shapes with the exact events blue via a mask */
  background-color: #0042b0;
  -webkit-mask: url('Images/vert/vollants_vert.png') center / 100% 100% no-repeat;
  mask: url('Images/vert/vollants_vert.png') center / 100% 100% no-repeat;
}
/* -50% always equals one (strip + gap), so the loop stays seamless at any size */
@keyframes scroll-left {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ---- CALENDAR ---- */
.calendar-section {
  background: #f4f1ed;
  padding: 110px 150px;
  text-align: center;
}

.calendar-section .section-title { color: #001a40; }

.calendar-wrapper {
  display: flex;
  justify-content: center;
}

.calendar-box {
  border: 3px solid #0050d0;
  overflow: hidden;
  width: 100%;
  max-width: 1200px;
}

.calendar-box iframe { width: 100%; height: 620px; border: none; display: block; }

/* ---- CONTACT (parallax bg image) ---- */
.contact-section {
  position: relative;
  width: 100%;
  min-height: 650px;
  background-image: url('Images/footerblue.png');
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 150px;
  border-top: 3px solid #001a40;
}

.contact-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,22,54,0.7);
  z-index: 0;
}

.contact-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 560px;
}

.contact-section .section-title {
  color: #fff;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.contact-form { position: relative; }
.contact-field { margin-bottom: 20px; }

.contact-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 6px;
  color: rgba(255,255,255,0.8);
}

.contact-input,
.contact-textarea {
  width: 100%;
  padding: 14px 16px;
  background: rgba(255,255,255,0.1);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 0;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 15px;
  outline: none;
  transition: border-color 0.25s, background 0.25s;
  -webkit-appearance: none;
}

.contact-input::placeholder,
.contact-textarea::placeholder {
  color: rgba(255,255,255,0.35);
}

.contact-input:focus,
.contact-textarea:focus {
  border-color: #7fb3e6;
  background: rgba(255,255,255,0.15);
}

.contact-textarea { resize: vertical; min-height: 120px; }

.contact-submit {
  display: inline-block;
  padding: 16px 40px;
  background: #0050d0;
  color: #fff;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border: 3px solid #0050d0;
  cursor: pointer;
  -webkit-appearance: none;
  border-radius: 0;
}

.contact-submit:hover { background: #fff; color: #0050d0; }
.contact-status { margin-top: 12px; font-size: 14px; font-weight: 600; color: #fff; }

/* ---- FOOTER ---- */
.site-footer {
  position: relative;
  z-index: 1; /* sit above the position:fixed hero (z-index:0) so the footer isn't covered */
  background: #001a40;
  padding: 20px 150px;
  border-top: 3px solid #0050d0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.footer-brand img {
  height: 28px;
  filter: brightness(0) invert(1); /* pure white logo */
}

.footer-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0;
  justify-content: center;
}

.footer-nav a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0 10px;
  transition: color 0.2s;
}

.footer-nav a:hover { color: #7fb3e6; }

.footer-sep {
  color: rgba(255,255,255,0.2);
  font-size: 12px;
  user-select: none;
}

.footer-end {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.footer-end a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: color 0.2s;
}

.footer-end a:hover { color: #7fb3e6; }

.footer-copy {
  color: rgba(255,255,255,0.3);
  font-size: 11px;
  font-family: 'Space Mono', monospace;
}

/* ---- SCROLL REVEAL (v1f style: slide from left) ---- */
[data-anim] {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.6s cubic-bezier(0.7, 0, 0.3, 1),
              transform 0.6s cubic-bezier(0.7, 0, 0.3, 1);
}

[data-anim].in { opacity: 1; transform: translateX(0); }

[data-anim][data-delay="1"] { transition-delay: 0.08s; }
[data-anim][data-delay="2"] { transition-delay: 0.16s; }
[data-anim][data-delay="3"] { transition-delay: 0.24s; }
[data-anim][data-delay="4"] { transition-delay: 0.32s; }
[data-anim][data-delay="5"] { transition-delay: 0.40s; }
[data-anim][data-delay="6"] { transition-delay: 0.48s; }
[data-anim][data-delay="7"] { transition-delay: 0.56s; }
[data-anim][data-delay="8"] { transition-delay: 0.64s; }

/* ---- MOBILE ---- */
@media (max-width: 768px) {
  .hamburger { display: flex; order: 3; margin-left: 0; }

  /* Keep the language switch in the top bar, right side, before the hamburger */
  .navbar-lang { order: 2; margin-left: auto; margin-right: 14px; }

  .nav-links {
    display: none;
    position: fixed;
    inset: 0;                 /* full-screen overlay */
    height: 100vh;
    height: 100dvh;
    background: #001a40;
    flex-direction: column;
    justify-content: center;  /* center links vertically */
    align-items: center;
    gap: 0;
    border-bottom: none;
    z-index: 999;             /* below navbar (1000) so logo + X stay on top */
  }

  .nav-links.open { display: flex; }

  /* Stacked menu uses horizontal dividers, hide the vertical ones */
  .nav-links li + li a::before { display: none; }

  .nav-links li { width: 240px; text-align: center; }

  .nav-links li a {
    display: block;
    padding: 15px 0;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 0.06em;
    border-bottom: 1px solid rgba(255,255,255,0.12); /* separator between links */
  }

  .nav-links li:last-child a { border-bottom: none; }

  /* Fluid size so even the longest title (TOURNAMENTS) fits without overflow */
  .section-title { font-size: clamp(2rem, 11.5vw, 5rem); overflow-wrap: break-word; }

  .hero {
    position: relative;
    height: 100vh;
    height: 100dvh;
    background-image: url('Images/heromobileblue.png'); /* mobile-specific hero image */
  }

  .hero-spacer { height: 0; }

  .hero-logo { width: 70%; max-width: 320px; }

  /* News: full-width stacked cards with clear dividers on mobile (no wide side margin) */
  .news-section { padding: 64px 0; }
  .news-posts-container { flex-direction: column; border-top-width: 3px; }
  .news-post { padding: 32px 24px; border-right: none; border-bottom: 3px solid #001a40; }
  .news-post:last-child { border-bottom: none; }
  .news-section .section-title { padding-left: 24px; }

  .photos-section { height: 260px; }
  .photo-strip, .photo-strip-item, .photo-strip-item img { height: 260px; }

  .image-divider { height: 220px; }

  /* Smaller looping shuttlecocks on mobile (kept proportional) */
  .scrolling-banner {
    --vollant-w: 1290px;
    --vollant-h: 55px;
    --vollant-gap: 130px;
    height: 95px;
    padding-top: 40px;
  }

  .events-section { padding: 40px 16px; }
  .event-row { flex-wrap: wrap; gap: 4px; }
  .event-date { width: 100%; font-size: 12px; margin-bottom: 2px; }
  .event-name { width: 100%; font-size: 15px; }
  .event-location { width: 100%; font-size: 12px; }
  .event-links { width: 100%; margin-top: 6px; }

  .membership-section { flex-direction: column; height: auto; }
  .membership-image-col { width: 100%; height: 300px; }
  .membership-text-col { width: 100%; padding: 40px 24px; }

  .about-section { flex-direction: column; height: auto; }
  .about-text-col { width: 100%; padding: 40px 24px; }
  .about-image-col { width: 100%; height: 300px; order: -1; } /* image above text on mobile */

  /* Collapse the extra About text on mobile behind a Show more button */
  .about-more { display: none; }
  .about-more.open { display: block; }
  .about-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    padding: 0;
    background: none;
    border: none;
    color: #0050d0;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    cursor: pointer;
  }
  .about-toggle::after {
    content: "+";
    font-size: 18px;
    line-height: 1;
  }
  .about-toggle.open::after { content: "\2212"; } /* minus sign */

  .rankings-section { padding: 40px 16px; }
  .rankings-list li a { font-size: 14px; padding: 16px 12px; }

  .contact-section {
    background-attachment: scroll;
    min-height: auto;
    padding: 50px 16px;
  }

  .calendar-section { padding: 40px 16px; }
  .calendar-box iframe { height: 480px; }

  .site-footer { padding: 16px; }
  .footer-inner { flex-direction: column; gap: 12px; text-align: center; }
  .footer-nav { justify-content: center; }
  .footer-end { flex-direction: column; gap: 8px; }
}

@media (max-width: 480px) {
  .hero-logo { width: 75%; max-width: 260px; }
}

/* ====================================================================
   SUBPAGES — brutalist, matching the v5 home formula
   (Space Grotesk/Mono · cream/navy/blue · 3px borders · sharp corners)
   ==================================================================== */

/* ---- Shared inner-page hero (navy band) ---- */
.subpage-hero {
  background: #001a40;
  color: #fff;
  padding: calc(56px + 84px) 150px 70px;
  border-bottom: 3px solid #0050d0;
}
.subpage-eyebrow {
  font-family: 'Space Mono', monospace;
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #7fb3e6;
  margin: 0 0 20px;
}
.subpage-hero h1 {
  font-size: clamp(2.5rem, 7vw, 5.5rem);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: #fff;
  margin: 0;
  overflow-wrap: break-word;
}
.subpage-hero .subpage-sub {
  font-family: 'Space Mono', monospace;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255,255,255,0.6);
  margin: 22px 0 0;
  max-width: 620px;
}

/* ---- Shared inner-page body (cream) ---- */
.subpage-body {
  background: #f4f1ed;
  padding: 90px 150px;
}
.subpage-inner { width: 100%; }
.subpage-back {
  display: inline-block;
  font-family: 'Space Mono', monospace;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #0050d0;
  text-decoration: none;
  margin-bottom: 44px;
}
.subpage-back:hover { background: #0050d0; color: #fff; }

/* ====================================================================
   PAST TOURNAMENTS — brutalist table
   ==================================================================== */
#pastEventsTable { width: 100% !important; border-collapse: collapse; }
#pastEventsTable thead th {
  background: transparent;
  color: #001a40;
  padding: 16px 14px;
  text-align: left;
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-bottom: 3px solid #001a40;
  white-space: nowrap;
}
#pastEventsTable tbody td {
  padding: 18px 14px;
  border-bottom: 1px solid rgba(0,22,54,0.15);
  vertical-align: top;
  color: #001a40;
  font-size: 15px;
}
#pastEventsTable tbody tr:hover { background: rgba(0,80,208,0.05); }
#pastEventsTable tbody td:first-child {
  font-family: 'Space Mono', monospace;
  font-size: 13px;
  text-transform: uppercase;
  color: #0050d0;
  white-space: nowrap;
}
#pastEventsTable tbody td:nth-child(2) {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.event-link {
  display: inline-block;
  padding: 7px 16px;
  background: #0050d0;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-decoration: none;
  border: 2px solid #0050d0;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}
.event-link:hover { background: transparent; color: #0050d0; }
.event-link + .event-link { margin-left: 8px; }

/* DataTables chrome → brutalist */
.dataTables_wrapper { font-family: 'Space Grotesk', sans-serif; color: #001a40; }
.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter { margin-bottom: 26px; font-size: 13px; }
.dataTables_wrapper .dataTables_filter { text-align: right; }
.dataTables_filter label,
.dataTables_length label {
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(0,22,54,0.7);
}
.dataTables_filter input,
.dataTables_length select {
  border: 2px solid #001a40;
  border-radius: 0;
  padding: 8px 12px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px;
  background: #fff;
  color: #001a40;
  margin: 0 6px;
}
.dataTables_filter input:focus,
.dataTables_length select:focus { outline: none; border-color: #0050d0; }
.dataTables_wrapper .dataTables_info {
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(0,22,54,0.55);
  margin-top: 22px;
}
.dataTables_wrapper .dataTables_paginate { margin-top: 22px; }
.dataTables_wrapper .dataTables_paginate .paginate_button {
  padding: 7px 13px !important;
  border: 1px solid rgba(0,22,54,0.2) !important;
  border-radius: 0 !important;
  margin-left: -1px;
  color: #001a40 !important;
  font-size: 13px;
}
.dataTables_wrapper .dataTables_paginate .paginate_button.current,
.dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
  background: #0050d0 !important;
  border-color: #0050d0 !important;
  color: #fff !important;
}
.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
  background: #001a40 !important;
  border-color: #001a40 !important;
  color: #fff !important;
}

/* ====================================================================
   UNSUBSCRIBE — brutalist card
   ==================================================================== */
.unsub-wrap { max-width: 660px; margin: 0 auto; }
.unsub-card { background: #fff; border: 3px solid #001a40; padding: 48px 44px; }
.unsub-msg {
  font-family: 'Space Mono', monospace;
  font-size: 14px;
  line-height: 1.6;
  padding: 18px 20px;
  margin-bottom: 30px;
  border-left: 5px solid #0050d0;
  background: #f4f1ed;
  color: #001a40;
}
.unsub-msg.is-info    { border-color: #0050d0; }
.unsub-msg.is-success { border-color: #0b9449; background: #eef6f0; color: #0b5c2e; }
.unsub-msg.is-error   { border-color: #c0392b; background: #fbecec; color: #7a201a; }
.unsub-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.btn-v5 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-decoration: none;
  cursor: pointer;
  border: 3px solid #0050d0;
  background: #fff;
  color: #0050d0;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.btn-v5:hover { background: #0050d0; color: #fff; }
.btn-v5--primary { background: #0050d0; color: #fff; }
.btn-v5--primary:hover { background: #001a40; border-color: #001a40; }

/* ====================================================================
   COACHING — brutalist rebuild (matches v5 sections)
   ==================================================================== */
.coaching-page { background: #f4f1ed; }
.coaching-container { padding: 0 150px; }

/* Hero */
.coaching-hero {
  position: relative;
  background-image: url('Images/footerblue.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #fff;
  padding: calc(56px + 96px) 150px 84px;
  border-bottom: 3px solid #0050d0;
}
.coaching-hero::before {
  content: "";
  position: absolute; inset: 0;
  background: rgba(0,22,54,0.72);
}
.coaching-hero-inner { position: relative; z-index: 1; }
.coaching-hero h1 {
  font-size: clamp(2.4rem, 5.5vw, 4.6rem);
  margin: 0 0 24px;
  line-height: 0.92;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.02em;
}
.coaching-hero-intro {
  font-size: 17px;
  line-height: 1.6;
  margin: 0 0 16px;
  max-width: 780px;
  color: rgba(255,255,255,0.85);
}
.coaching-hero-credit {
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #7fb3e6;
  margin: 0;
}

/* Quick-start picker (navy band) */
.coaching-quickstart {
  background: #001a40;
  padding: 64px 0;   /* inner .coaching-container supplies the 150px side margin */
  border-bottom: 3px solid #001a40;
}
.coaching-quickstart h2 {
  font-family: 'Space Mono', monospace;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #7fb3e6;
  text-align: left;
  margin: 0 0 26px;
}
.coaching-quickstart-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 3px solid rgba(255,255,255,0.18);
}
.coaching-quickstart-card {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 30px 32px;
  text-decoration: none;
  color: #fff;
  font-weight: 700;
  font-size: 17px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.3;
  border-right: 3px solid rgba(255,255,255,0.18);
  transition: background 0.2s;
}
.coaching-quickstart-card:last-child { border-right: none; }
.coaching-quickstart-card:hover { background: #0050d0; }
.coaching-quickstart-arrow {
  font-family: 'Space Mono', monospace;
  font-size: 24px;
  color: #7fb3e6;
  flex-shrink: 0;
}
.coaching-quickstart-card:hover .coaching-quickstart-arrow { color: #fff; }

/* Sticky sub-nav */
.coaching-subnav {
  position: sticky;
  top: 56px;
  z-index: 50;
  background: #f4f1ed;
  border-bottom: 3px solid #001a40;
}
.coaching-subnav ul {
  display: flex;
  gap: 0;
  list-style: none;
  padding: 0;
  margin: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.coaching-subnav ul::-webkit-scrollbar { display: none; }
.coaching-subnav li { flex-shrink: 0; }
.coaching-subnav a {
  display: block;
  padding: 18px 20px 15px;
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(0,22,54,0.6);
  text-decoration: none;
  border-bottom: 3px solid transparent;
}
.coaching-subnav a:hover { color: #001a40; }
.coaching-subnav a[aria-current="true"] { color: #0050d0; border-bottom-color: #0050d0; }

/* Section containers */
.coaching-section { padding: 90px 0; border-bottom: 3px solid #001a40; }
.coaching-section h2 {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  margin: 0 0 16px;
  color: #001a40;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 0.95;
  letter-spacing: -0.02em;
}
.coaching-section-intro {
  font-size: 16px;
  line-height: 1.7;
  color: rgba(0,22,54,0.7);
  max-width: 760px;
  margin: 0 0 44px;
}
.coaching-callout { padding: 60px 0; border-bottom: 3px solid #001a40; }

/* Pathway stepper */
.coaching-stepper {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  list-style: none;
  padding: 0;
  margin: 0 0 26px;
  border: 3px solid #001a40;
}
.coaching-stepper.coaching-stepper--3col { max-width: none; }
.coaching-stepper-item {
  position: relative;
  background: #fff;
  padding: 32px 26px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-right: 3px solid #001a40;
}
.coaching-stepper-item:last-child { border-right: none; }
.coaching-stepper-item.is-featured { background: #0050d0; color: #fff; }
.coaching-stepper-item.is-muted { background: #fff; color: rgba(0,22,54,0.55); }
.coaching-stepper-item::after { display: none; } /* drop old connector arrows */
.coaching-stepper-num {
  font-family: 'Space Mono', monospace;
  font-size: 13px;
  letter-spacing: 0.12em;
  opacity: 0.7;
  width: auto; height: auto; background: none; border-radius: 0;
  display: block;
}
.coaching-stepper-body h3 {
  font-size: 18px;
  margin: 0;
  color: inherit;
  text-transform: uppercase;
  font-weight: 700;
}
.coaching-stepper-age {
  margin: 0;
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #0050d0;
}
.coaching-stepper-item.is-featured .coaching-stepper-age { color: #a8cdf5; }
.coaching-stepper-item.is-muted .coaching-stepper-age { color: rgba(0,22,54,0.55); }
.coaching-stepper-ltad { margin: 0; font-size: 13px; line-height: 1.45; opacity: 0.85; }
.coaching-stepper-note {
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #0050d0;
  text-align: left;
  margin: 0;
}

/* Paired tier cards */
.coaching-tiers { padding: 70px 0; border-bottom: 3px solid #001a40; }
.coaching-tier-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.coaching-tier-card {
  scroll-margin-top: 120px;
  background: #fff;
  border: 3px solid #001a40;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.coaching-tier-photo { height: 240px; overflow: hidden; border-bottom: 3px solid #001a40; background: #001a40; }
.coaching-tier-photo img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  filter: grayscale(100%); transition: filter 0.4s;
}
.coaching-tier-card:hover .coaching-tier-photo img { filter: grayscale(0%); }
.coaching-tier-body { padding: 34px 32px; }
.coaching-tier-body h2 {
  font-size: 1.8rem;
  margin: 0 0 24px;
  color: #0050d0;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}
.coaching-tier-details { margin: 0; display: grid; grid-template-columns: 1fr; gap: 0; }
.coaching-tier-details dt {
  font-family: 'Space Mono', monospace;
  font-weight: 700;
  color: #001a40;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 20px;
}
.coaching-tier-details dt:first-child { margin-top: 0; }
.coaching-tier-details dd { margin: 6px 0 0; color: rgba(0,22,54,0.75); line-height: 1.55; font-size: 15px; }
.coaching-tier-details dd a { color: #0050d0; text-decoration: underline; }

/* Trained vs Certified callout (navy) */
.coaching-tvc { background: #001a40; color: #fff; }
.coaching-tvc h3 { font-size: 1.5rem; margin: 0 0 12px; color: #fff; text-transform: uppercase; }
.coaching-tvc p { margin: 0; color: rgba(255,255,255,0.82); line-height: 1.6; max-width: 880px; }
.coaching-tvc a { color: #7fb3e6; text-decoration: underline; }
.coaching-tvc strong { color: #7fb3e6; }

/* Age callout */
.coaching-age { background: #f4f1ed; }
.coaching-age-inner { display: flex; align-items: baseline; gap: 18px; flex-wrap: wrap; }
.coaching-age h3 {
  margin: 0;
  font-family: 'Space Mono', monospace;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #0050d0;
  white-space: nowrap;
}
.coaching-age p { margin: 0; color: rgba(0,22,54,0.75); line-height: 1.5; }

/* Become a Coach */
.coaching-become { scroll-margin-top: 120px; }
.coaching-become-steps {
  list-style: none;
  padding: 0;
  margin: 0 0 44px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 3px solid #001a40;
}
.coaching-become-steps li {
  background: #fff;
  padding: 36px 28px;
  text-align: left;
  border-right: 3px solid #001a40;
}
.coaching-become-steps li:last-child { border-right: none; }
.coaching-become-num {
  font-family: 'Space Mono', monospace;
  font-size: 14px;
  letter-spacing: 0.1em;
  color: #0050d0;
  width: auto; height: auto; background: none; border-radius: 0;
  display: block;
  margin: 0 0 14px;
}
.coaching-become-steps h3 { margin: 0 0 10px; font-size: 17px; color: #001a40; text-transform: uppercase; }
.coaching-become-steps p { margin: 0; color: rgba(0,22,54,0.7); line-height: 1.55; font-size: 14px; }
.coaching-become-cta { text-align: left; }
.coaching-cta-btn {
  display: inline-block;
  padding: 16px 36px;
  background: #0050d0;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border: 3px solid #0050d0;
  transition: background 0.2s, border-color 0.2s;
}
.coaching-cta-btn:hover { background: #001a40; border-color: #001a40; }

/* FAQ accordion */
.coaching-faq { scroll-margin-top: 120px; border-bottom: none; }
.coaching-faq-list { max-width: 920px; margin: 0; border-top: 3px solid #001a40; }
.coaching-faq-item { border-bottom: 1px solid rgba(0,22,54,0.2); }
.coaching-faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 24px 50px 24px 0;
  font-weight: 700;
  color: #001a40;
  position: relative;
  font-size: 17px;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 1.35;
}
.coaching-faq-item summary::-webkit-details-marker { display: none; }
.coaching-faq-item summary::after {
  content: "+";
  position: absolute;
  right: 8px;
  top: 22px;
  font-family: 'Space Mono', monospace;
  font-size: 24px;
  color: #0050d0;
}
.coaching-faq-item[open] summary::after { content: "\2212"; }
.coaching-faq-item summary:hover { color: #0050d0; }
.coaching-faq-answer { padding: 0 0 24px; color: rgba(0,22,54,0.75); line-height: 1.65; font-size: 15px; max-width: 820px; }
.coaching-faq-answer a { color: #0050d0; text-decoration: underline; }

/* ====================================================================
   SUBPAGE RESPONSIVE
   ==================================================================== */
@media (max-width: 1024px) {
  /* Keep the same 150px side margins as the home page; only restructure the
     two-up tier cards into a single column when they get tight. */
  .coaching-tier-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  /* Match the home page's mobile side margin (16px on full-width sections). */
  .subpage-hero { padding: calc(56px + 44px) 16px 44px; }
  .subpage-body { padding: 48px 16px; }
  .subpage-back { margin-bottom: 32px; }

  .coaching-hero { padding: calc(56px + 52px) 16px 52px; }
  .coaching-quickstart { padding: 44px 0; }
  .coaching-container { padding: 0 16px; }
  .coaching-section { padding: 60px 0; }
  .coaching-callout { padding: 44px 0; }

  .coaching-quickstart-cards { grid-template-columns: 1fr; }
  .coaching-quickstart-card { border-right: none; border-bottom: 3px solid rgba(255,255,255,0.18); }
  .coaching-quickstart-card:last-child { border-bottom: none; }

  .coaching-stepper { grid-template-columns: 1fr; }
  .coaching-stepper-item { border-right: none; border-bottom: 3px solid #001a40; }
  .coaching-stepper-item:last-child { border-bottom: none; }

  .coaching-become-steps { grid-template-columns: 1fr; }
  .coaching-become-steps li { border-right: none; border-bottom: 3px solid #001a40; }
  .coaching-become-steps li:last-child { border-bottom: none; }

  /* Past-events table: let it scroll horizontally rather than crush */
  .subpage-inner .dataTables_wrapper { overflow-x: auto; }
  #pastEventsTable { min-width: 640px; }
  .dataTables_wrapper .dataTables_filter { text-align: left; }
}
