/* ==========================================================================
   Siko Karate - stylesheet
   Theme: built on the SIKO crest - red, black and white
   Mobile-first, no frameworks.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Palette taken directly from the SIKO crest. The emblem uses exactly three
   colours, sampled here:
       red   #E10A04    black #0A0A0A    white #FBFAFA
   Everything else is a tint or shade of those, so the site matches the logo.
   -------------------------------------------------------------------------- */
:root {
  --red: #E10A04;          /* crest red - graphics, large headings, fills */
  --red-bright: #FF2018;   /* hover */
  /* Crest red on white measures 4.0:1, just under the 4.5:1 needed for body
     text. This darker shade of the SAME hue reaches ~7:1 and is used for
     links, buttons and small text so the site stays readable. */
  --red-ink: #A80703;
  --red-deep: #7E0502;     /* deepest shade - gradients, error text */
  --red-brand: #E10A04;    /* kept for older rules */

  --accent: #FBFAFA;       /* crest white - accents on dark surfaces */
  --white-soft: rgba(251, 250, 250, .82);

  --dark: #0A0A0A;         /* crest black */
  --charcoal: #171717;     /* dark panels, one step off pure black */
  --navy: #171717;         /* retired - mapped to charcoal */
  --cream: #FBFAFA;        /* crest white - page background */

  --text: #1A1A1A;
  --muted: #6B6B6B;
  --line: rgba(10, 10, 10, .12);

  --radius: 10px;
  --radius-lg: 16px;
  --shadow: 0 2px 6px rgba(26, 26, 26, .08), 0 12px 28px rgba(26, 26, 26, .07);
  --shadow-lg: 0 18px 50px rgba(26, 26, 26, .18);

  --head: 'Oswald', 'Arial Narrow', Impact, sans-serif;
  --body: 'Noto Sans', 'Segoe UI', system-ui, -apple-system, Arial, sans-serif;

  --wrap: 1160px;
  --header-h: 68px;
}

/* --- reset -------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--cream);
  overflow-x: hidden;
}
img { max-width: 100%; display: block; height: auto; }
a { color: var(--red-ink); text-decoration: none; }
a:hover { color: var(--red); text-decoration: underline; }
button { font: inherit; }
h1, h2, h3, h4 {
  font-family: var(--head);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 .6em;
  letter-spacing: .02em;
}
p { margin: 0 0 1em; }
ul { margin: 0 0 1em; padding-left: 1.2em; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 999;
  background: var(--red); color: var(--cream); padding: .6rem 1rem;
}
.skip-link:focus { left: 0; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }

/* --- layout ------------------------------------------------------------- */
.container { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.section { padding: 56px 0; }
.section-alt { background: #fff; }
.section-dark { background: var(--dark); color: var(--cream); }
.section-dark a { color: var(--white-soft); }

.section-title {
  font-size: clamp(1.6rem, 4.5vw, 2.4rem);
  text-transform: uppercase;
  margin-bottom: .35em;
}
.section-title.light { color: var(--cream); }
.section-head { text-align: center; margin-bottom: 34px; }
.section-head p { color: var(--muted); max-width: 62ch; margin: 0 auto; }
.section-dark .section-head p { color: var(--white-soft); }

/* red + contrast divider under headings */
.section-head .section-title::after,
.divider {
  content: "";
  display: block;
  width: 84px; height: 4px;
  margin: 14px auto 0;
  background: linear-gradient(90deg, var(--red) 0 55%, currentColor 55% 100%);
  border-radius: 2px;
}
.section-title.flush::after { margin-left: 0; }

.eyebrow {
  font-family: var(--head);
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .8rem;
  color: var(--red-ink);
  margin-bottom: .4em;
}

/* seigaiha (wave) texture, pure CSS */
.pattern-waves {
  background-color: var(--cream);
  background-image:
    radial-gradient(circle at 50% 100%, transparent 22px, rgba(225, 10, 4, .07) 23px, rgba(225, 10, 4, .07) 24px, transparent 25px),
    radial-gradient(circle at 0 100%, transparent 22px, rgba(225, 10, 4, .07) 23px, rgba(225, 10, 4, .07) 24px, transparent 25px),
    radial-gradient(circle at 100% 100%, transparent 22px, rgba(225, 10, 4, .07) 23px, rgba(225, 10, 4, .07) 24px, transparent 25px);
  background-size: 50px 25px;
}

/* --- buttons ------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 46px; padding: .7em 1.5em;
  font-family: var(--head); font-size: 1rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .06em;
  border: 2px solid transparent; border-radius: 6px;
  cursor: pointer; text-decoration: none;
  transition: transform .15s ease, background-color .15s ease, color .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary { background: var(--red-ink); color: #fff; }
.btn-primary:hover { background: var(--red-bright); color: #fff; }
.btn-gold { background: var(--accent); color: var(--dark); }
.btn-gold:hover { background: var(--white-soft); color: var(--dark); }
.btn-outline { border-color: var(--accent); color: var(--accent); background: transparent; }
.btn-outline:hover { background: var(--accent); color: var(--dark); }
.btn-ghost { border-color: var(--red-ink); color: var(--red-ink); background: transparent; }
.btn-ghost:hover { background: var(--red-ink); color: #fff; }
.btn-whatsapp { background: #25D366; color: #08301a; }
.btn-whatsapp:hover { background: #34e178; color: #08301a; }
.btn-sm { min-height: 40px; padding: .45em 1em; font-size: .88rem; }
.btn-danger { background: #9b1c1c; color: #fff; }
.btn-block { width: 100%; }

/* --- header / nav ------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10, 10, 10, .97);
  color: var(--cream);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: var(--header-h); gap: 12px;
}
.header-rule { height: 3px; background: linear-gradient(90deg, var(--red), var(--red-brand), var(--accent), var(--red-brand), var(--red)); }

.brand { display: flex; align-items: center; gap: 10px; color: var(--cream); }
.brand:hover { text-decoration: none; color: #fff; }
.brand-logo {
  width: 52px; height: 52px; flex: none;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .45));
}
.footer-logo { width: 64px; height: 64px; flex: none; }
.brand-mark {
  display: grid; place-items: center;
  width: 40px; height: 40px; flex: none;
  background: var(--red); color: var(--cream);
  border: 2px solid var(--accent); border-radius: 50%;
  font-size: 1.2rem; font-weight: 700;
}
.brand-name {
  display: block; font-family: var(--head); font-size: 1.3rem;
  text-transform: uppercase; letter-spacing: .06em; line-height: 1.05;
}
.brand-tag { display: block; font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }

.nav-toggle {
  display: grid; place-content: center; gap: 5px;
  width: 46px; height: 46px;
  background: transparent; border: 1px solid rgba(251, 250, 250, .3); border-radius: 6px;
  cursor: pointer;
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--cream); transition: transform .2s ease, opacity .2s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.primary-nav {
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--dark);
  border-top: 3px solid var(--red);
  max-height: 0; overflow: hidden;
  transition: max-height .28s ease;
}
.primary-nav.is-open { max-height: 80vh; overflow-y: auto; }
.primary-nav ul { list-style: none; margin: 0; padding: 8px 20px 20px; }
.primary-nav a {
  display: block; padding: 13px 4px; min-height: 44px;
  color: var(--cream); font-family: var(--head); text-transform: uppercase;
  letter-spacing: .06em; border-bottom: 1px solid rgba(251, 250, 250, .12);
}
.primary-nav a:hover, .primary-nav a.is-active { color: var(--accent); text-decoration: none; }
.nav-cta { padding-top: 14px; }
.nav-cta a { border-bottom: 0; text-align: center; }

/* --- hero --------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: min(78vh, 620px);
  display: grid; align-items: center;
  background: var(--dark) center/cover no-repeat;
  color: var(--cream);
  text-align: center;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(26, 26, 26, .78), rgba(27, 42, 74, .72));
}
.hero-content { position: relative; padding: 64px 0; }
.hero-crest {
  width: clamp(96px, 22vw, 132px); height: auto;
  margin: 0 auto 18px;
  filter: drop-shadow(0 6px 18px rgba(0, 0, 0, .55));
}
.hero h1 {
  font-size: clamp(2.4rem, 9vw, 4.6rem);
  text-transform: uppercase; letter-spacing: .04em;
  margin-bottom: .2em;
  text-shadow: 0 4px 20px rgba(0, 0, 0, .5);
}
.hero h1 .accent { color: var(--red-bright); }
.hero-sub { font-size: clamp(1rem, 3.4vw, 1.25rem); max-width: 46ch; margin: 0 auto 1.6em; color: rgba(251, 250, 250, .92); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px 26px; justify-content: center; margin-top: 34px; font-size: .82rem; text-transform: uppercase; letter-spacing: .14em; color: var(--white-soft); font-family: var(--head); }

/* page hero (inner pages) */
.page-hero { background: var(--navy); color: var(--cream); padding: 46px 0; text-align: center; border-bottom: 4px solid var(--red); }
.page-hero h1 { font-size: clamp(1.9rem, 6vw, 3rem); text-transform: uppercase; margin-bottom: .15em; }
.page-hero p { color: rgba(251, 250, 250, .8); margin: 0; }

/* --- cards -------------------------------------------------------------- */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr; }

.card {
  background: #fff; border-radius: var(--radius-lg);
  box-shadow: var(--shadow); overflow: hidden;
  border-top: 4px solid var(--red);
  display: flex; flex-direction: column;
}
.card-body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.card h3 { text-transform: uppercase; font-size: 1.2rem; margin-bottom: .35em; }
.card p { color: var(--muted); }
.card .card-link { margin-top: auto; font-family: var(--head); text-transform: uppercase; letter-spacing: .06em; font-size: .9rem; }
.card-icon {
  width: 52px; height: 52px; margin-bottom: 14px;
  display: grid; place-items: center; border-radius: 50%;
  background: rgba(225, 10, 4, .09); color: var(--red-ink); font-size: 1.4rem;
}

/* --- latest event ------------------------------------------------------- */
.latest-event { display: grid; gap: 24px; align-items: center; }
.event-badge {
  display: inline-block; padding: .25em .8em; border-radius: 999px;
  font-family: var(--head); font-size: .75rem; text-transform: uppercase; letter-spacing: .12em;
}
.badge-upcoming { background: var(--red); color: #fff; }
.badge-completed { background: rgba(225, 10, 4, .10); color: var(--red-ink); }

/* generic carousel */
.carousel { position: relative; }
.carousel-track { position: relative; overflow: hidden; border-radius: var(--radius-lg); }
.carousel-slide { display: none; }
.carousel-slide.is-active { display: block; animation: fadeIn .45s ease; }
@keyframes fadeIn { from { opacity: 0 } to { opacity: 1 } }
.carousel-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(26, 26, 26, .6); color: var(--cream);
  border: 0; cursor: pointer; font-size: 1.3rem; line-height: 1;
  display: grid; place-items: center; z-index: 2;
}
.carousel-nav:hover { background: var(--red); }
.carousel-prev { left: 8px; }
.carousel-next { right: 8px; }
.carousel-dots { display: flex; gap: 8px; justify-content: center; margin-top: 16px; }
.carousel-dots button {
  width: 10px; height: 10px; padding: 0; border-radius: 50%;
  border: 0; background: rgba(26, 26, 26, .22); cursor: pointer;
}
.carousel-dots button.is-active { background: var(--red); width: 26px; border-radius: 5px; }
.section-dark .carousel-dots button { background: rgba(251, 250, 250, .3); }
.section-dark .carousel-dots button.is-active { background: var(--accent); }

.event-photo { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }

/* homepage auto-rotating event banner */
.event-banner .carousel-track { background: #fff; box-shadow: var(--shadow); }
.event-banner-slide { display: grid; }
.event-banner-media { position: relative; background: var(--dark); }
.event-banner-media .event-photo { aspect-ratio: 4 / 3; height: 100%; object-position: center 35%; }
.event-banner-placeholder {
  display: grid; place-content: center; gap: 6px; text-align: center;
  aspect-ratio: 16 / 10; height: 100%;
  background: linear-gradient(135deg, var(--navy), var(--dark));
  color: rgba(251, 250, 250, .75);
}
.event-banner-placeholder .kanji { font-family: var(--head); font-size: 3.4rem; color: var(--accent); line-height: 1; }
.event-banner-placeholder p { margin: 0; font-size: .85rem; text-transform: uppercase; letter-spacing: .14em; }
.event-banner-body { padding: 24px; display: flex; flex-direction: column; justify-content: center; }
.event-banner-body h3 { font-size: clamp(1.2rem, 3.4vw, 1.6rem); text-transform: uppercase; margin-bottom: .4em; }
.event-banner-body p { color: var(--muted); }
.event-banner .carousel-dots { margin-top: 18px; }

/* --- our winners --------------------------------------------------------- */
/* Same reasoning as the gallery: these are mixed-orientation photos, so they
   flow in columns at their natural shape rather than being cropped to tiles. */
.winners-grid { columns: 2; column-gap: 12px; }
.winners-grid img {
  width: 100%; height: auto; display: block;
  margin: 0 0 12px; break-inside: avoid; -webkit-column-break-inside: avoid;
  border-radius: var(--radius); cursor: pointer;
  border: 2px solid rgba(251, 250, 250, .35);
  transition: transform .2s ease;
}
.winners-grid img:hover { transform: scale(1.02); }

/* --- training video carousel -------------------------------------------- */
.video-carousel .carousel-track { background: transparent; }
.video-slide {
  display: grid; gap: 0;
  background: #fff; border-radius: var(--radius-lg);
  box-shadow: var(--shadow); overflow: hidden;
  border-top: 4px solid var(--red);
}
.video-slide .yt-facade { border-radius: 0; }
.video-slide-body { padding: 22px; display: flex; flex-direction: column; justify-content: center; }
.video-slide-body h3 { text-transform: uppercase; font-size: 1.15rem; margin-bottom: .4em; }
.video-slide-body p { color: var(--muted); margin: 0; }
.video-carousel .carousel-nav { background: rgba(26, 26, 26, .72); }

/* admin video rows */
.video-row { display: grid; gap: 14px; align-items: start; }
.video-row-thumb { width: 160px; height: 90px; object-fit: cover; border-radius: 8px; background: rgba(26, 26, 26, .08); }
.video-row-body h3 { margin: 0; font-size: 1.05rem; }
.video-pos {
  font-family: var(--head); background: var(--dark); color: var(--cream);
  border-radius: 4px; padding: .1em .5em; font-size: .8rem;
}
.row-actions button[disabled] { opacity: .4; cursor: not-allowed; }

/* --- testimonials ------------------------------------------------------- */
.testimonial {
  background: rgba(251, 250, 250, .06);
  border: 1px solid rgba(251, 250, 250, .28);
  border-radius: var(--radius-lg);
  padding: 30px 26px; text-align: center;
  min-height: 250px; display: flex; flex-direction: column; justify-content: center;
}
.testimonial-text { font-size: 1.05rem; font-style: italic; }
.testimonial-name { font-family: var(--head); text-transform: uppercase; letter-spacing: .08em; color: var(--accent); margin: 0; }
.testimonial-date { font-size: .8rem; color: rgba(251, 250, 250, .6); }
.stars { color: var(--accent); letter-spacing: .12em; font-size: 1.15rem; margin-bottom: .5em; }
.stars .off { color: rgba(251, 250, 250, .25); }
.reviews-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 30px; }

/* --- events ------------------------------------------------------------- */
.event-card { display: grid; gap: 0; }
.event-card .card-body h3 { font-size: 1.35rem; }
.event-meta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: .7em; font-size: .9rem; color: var(--muted); }
.event-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 16px; }
.event-thumbs img { aspect-ratio: 1; object-fit: cover; border-radius: 6px; cursor: pointer; }
.more-count {
  display: grid; place-items: center; aspect-ratio: 1; border-radius: 6px;
  background: rgba(26, 26, 26, .08); font-family: var(--head); cursor: pointer;
}

/* youtube facade */
.yt-facade {
  position: relative; display: block; width: 100%;
  aspect-ratio: 16 / 9; border: 0; padding: 0; cursor: pointer;
  background: var(--dark) center/cover no-repeat; border-radius: var(--radius);
  overflow: hidden;
}
.yt-facade img { width: 100%; height: 100%; object-fit: cover; }
.yt-facade::after {
  content: ""; position: absolute; inset: 0;
  background: rgba(26, 26, 26, .3);
}
.yt-play {
  position: absolute; inset: 0; margin: auto;
  width: 68px; height: 48px; border-radius: 12px;
  background: rgba(225, 10, 4, .92); z-index: 2;
  display: grid; place-items: center;
}
.yt-play::before { content: ""; border-style: solid; border-width: 10px 0 10px 17px; border-color: transparent transparent transparent #fff; }
.yt-facade:hover .yt-play { background: var(--red-bright); }
.yt-frame { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: var(--radius); }

/* --- gallery ------------------------------------------------------------ */
/* sticky album jump bar */
.album-nav {
  position: sticky; top: var(--header-h); z-index: 40;
  background: var(--dark); border-bottom: 3px solid var(--accent);
}
.album-nav-inner { display: flex; gap: 6px; overflow-x: auto; padding-top: 10px; padding-bottom: 10px; scrollbar-width: thin; }
.album-nav a {
  flex: none; display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 14px; border-radius: 999px;
  background: rgba(251, 250, 250, .08); color: var(--cream);
  font-family: var(--head); text-transform: uppercase; letter-spacing: .05em;
  font-size: .82rem; white-space: nowrap;
}
.album-nav a:hover { background: var(--red); color: #fff; text-decoration: none; }
.album-nav a span {
  background: var(--accent); color: var(--dark);
  border-radius: 999px; padding: 0 .5em; font-size: .75rem;
}

.gallery-group { margin-bottom: 44px; scroll-margin-top: calc(var(--header-h) + 70px); }
.gallery-group h3 { text-transform: uppercase; font-size: 1.25rem; margin-bottom: .1em; }
.gallery-group .group-date { color: var(--muted); font-size: .9rem; margin-bottom: 1em; }
/*
 * Masonry columns rather than a fixed grid: the photos are a mix of portrait,
 * landscape and wide group shots, and cropping them all to squares was cutting
 * more than half off the widest ones. Columns let every photo keep its own
 * shape, so nothing is lost.
 */
.gallery-grid { columns: 2; column-gap: 10px; }
.gallery-grid img {
  width: 100%; height: auto; display: block;
  margin: 0 0 10px; break-inside: avoid; -webkit-column-break-inside: avoid;
  border-radius: var(--radius); cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease;
  background: rgba(26, 26, 26, .06);
}
.gallery-grid img:hover { transform: scale(1.02); box-shadow: var(--shadow); }

/* Uniform tiles - the admin can pick this per album when the photos are all
   a similar shape and neat squares look better than mixed heights. */
.gallery-grid.is-uniform { columns: auto; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.gallery-grid.is-uniform img {
  margin: 0; aspect-ratio: 1; object-fit: cover;
  object-position: center 35%;   /* favour faces, which sit high in the frame */
}

/* lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 500;
  background: rgba(10, 10, 10, .94);
  display: none; align-items: center; justify-content: center;
  padding: 20px;
}
.lightbox.is-open { display: flex; }
.lightbox img { max-width: 100%; max-height: 84vh; border-radius: 6px; }
.lightbox-close, .lightbox-prev, .lightbox-next {
  position: absolute; background: rgba(251, 250, 250, .12); color: var(--cream);
  border: 0; cursor: pointer; border-radius: 50%;
  width: 48px; height: 48px; font-size: 1.5rem; display: grid; place-items: center;
}
.lightbox-close { top: 16px; right: 16px; }
.lightbox-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 12px; top: 50%; transform: translateY(-50%); }
.lightbox-caption { position: absolute; bottom: 18px; left: 0; right: 0; text-align: center; color: rgba(251, 250, 250, .8); font-size: .9rem; }

/* --- tables (schedule / fees) ------------------------------------------ */
.table-wrap { overflow-x: auto; border-radius: var(--radius-lg); box-shadow: var(--shadow); background: #fff; }
table.data { width: 100%; border-collapse: collapse; min-width: 560px; }
table.data th, table.data td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--line); }
table.data thead th {
  background: var(--dark); color: var(--cream);
  font-family: var(--head); text-transform: uppercase; letter-spacing: .08em; font-size: .85rem;
}
table.data tbody tr:nth-child(even) { background: rgba(225, 10, 4, .04); }
table.data td.price { font-family: var(--head); font-size: 1.05rem; color: var(--red-ink); white-space: nowrap; }

.fee-note { font-size: .9rem; color: var(--muted); }
.belt-dot {
  display: inline-block; width: 14px; height: 14px; margin-right: 8px;
  border-radius: 50%; vertical-align: -2px;
  border: 1px solid rgba(26, 26, 26, .35);
}

/* --- forms -------------------------------------------------------------- */
.form-card { background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 26px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; margin-bottom: 6px; font-size: .92rem; }
.field .req { color: var(--red); }
input[type="text"], input[type="email"], input[type="tel"], input[type="date"],
input[type="password"], input[type="url"], input[type="number"], select, textarea {
  width: 100%; min-height: 46px; padding: 11px 13px;
  font: inherit; color: var(--text); background: #fff;
  border: 1px solid rgba(26, 26, 26, .22); border-radius: 6px;
}
textarea { min-height: 130px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--red); outline: 2px solid rgba(225, 10, 4, .35); outline-offset: 1px; }
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }
.form-msg { padding: 13px 16px; border-radius: 6px; margin-bottom: 16px; display: none; }
.form-msg.is-visible { display: block; }
.form-msg.ok { background: #e6f4ea; color: #17632f; border: 1px solid #9cd3ae; }
.form-msg.err { background: #fdecec; color: var(--red-deep); border: 1px solid #eaa; }

.alert { padding: 13px 16px; border-radius: 6px; margin-bottom: 18px; }
.alert-success { background: #e6f4ea; color: #17632f; border: 1px solid #9cd3ae; }
.alert-error { background: #fdecec; color: var(--red-deep); border: 1px solid #eaa; }
.alert-info { background: #eef2fa; color: var(--navy); border: 1px solid #c3cee6; }

/* star picker */
.star-picker { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; }
.star-picker input { position: absolute; opacity: 0; width: 0; height: 0; }
.star-picker label { font-size: 1.9rem; color: rgba(26, 26, 26, .2); cursor: pointer; margin: 0; line-height: 1; }
.star-picker input:checked ~ label,
.star-picker label:hover, .star-picker label:hover ~ label { color: var(--red); }
.star-picker input:focus-visible + label { outline: 2px solid var(--red); }

/* radio choice with explanatory text (admin) */
.choice {
  display: grid; grid-template-columns: 22px 1fr; gap: 10px;
  align-items: start; padding: 11px 0; font-weight: 400; cursor: pointer;
}
.choice input { margin-top: 4px; min-height: 0; width: auto; }
.choice span { font-size: .92rem; }
.choice strong { font-family: var(--head); text-transform: uppercase; letter-spacing: .04em; }

/* --- contact strip / footer -------------------------------------------- */
.contact-strip { background: var(--navy); color: var(--cream); padding: 50px 0; }
.contact-strip a { color: var(--white-soft); }
.contact-strip-inner { display: grid; gap: 26px; }
.contact-list { list-style: none; padding: 0; margin: 0 0 18px; }
.contact-list li { display: flex; gap: 10px; align-items: center; margin-bottom: 8px; }
.address { color: rgba(251, 250, 250, .85); }
.contact-strip-map iframe, .map-frame iframe {
  width: 100%; height: 280px; border: 0; border-radius: var(--radius-lg);
  filter: saturate(.9);
}
.map-placeholder {
  display: grid; place-items: center; text-align: center; padding: 20px;
  height: 220px; border: 2px dashed rgba(251, 250, 250, .35); border-radius: var(--radius-lg);
  color: rgba(251, 250, 250, .7); font-size: .9rem;
}

.site-footer { background: var(--dark); color: rgba(251, 250, 250, .82); padding-top: 40px; }
.site-footer a { color: rgba(251, 250, 250, .82); }
.site-footer a:hover { color: var(--accent); }
.footer-inner { display: grid; gap: 24px; padding-bottom: 30px; }
.footer-brand { display: flex; gap: 12px; align-items: center; }
.footer-brand strong { font-family: var(--head); text-transform: uppercase; letter-spacing: .06em; font-size: 1.1rem; color: var(--cream); }
.footer-brand p { margin: 0; font-size: .85rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 10px 20px; }
.footer-social { display: flex; flex-direction: column; gap: 10px; }
.footer-social-label {
  font-family: var(--head); text-transform: uppercase;
  letter-spacing: .14em; font-size: .78rem; color: var(--white-soft);
}
.social-list { list-style: none; margin: 0; padding: 0; display: flex; gap: 12px; }
.social-link {
  display: grid; place-items: center;
  width: 44px; height: 44px;            /* touch-friendly */
  border-radius: 50%;
  background: #fff;                      /* white disc so brand colours read */
  border: 1px solid rgba(251, 250, 250, .25);
  transition: background-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.social-link svg { display: block; }

/* Each platform shows its own brand colour by default. */
.social-youtube  svg path { fill: #FF0000; }
.social-facebook svg path { fill: #1877F2; }
.social-instagram svg path { fill: url(#igGradient); }

/* On hover the disc fills with the brand colour and the mark turns white. */
.social-link:hover, .social-link:focus-visible {
  transform: translateY(-2px); text-decoration: none;
  box-shadow: 0 6px 16px rgba(0, 0, 0, .45);
}
.social-youtube:hover, .social-youtube:focus-visible   { background: #FF0000; border-color: #FF0000; }
.social-facebook:hover, .social-facebook:focus-visible { background: #1877F2; border-color: #1877F2; }
.social-instagram:hover, .social-instagram:focus-visible {
  background: linear-gradient(45deg, #FFD521, #F50000 25%, #B900B4 60%, #4C68D7);
  border-color: transparent;
}
.social-link:hover svg path, .social-link:focus-visible svg path { fill: #fff; }

/* visible to screen readers only */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.belt-bar { display: flex; height: 6px; }
.belt-bar span { flex: 1; }
.footer-bottom {
  display: flex; flex-wrap: wrap; gap: 6px 18px; justify-content: space-between;
  padding-top: 18px; padding-bottom: 18px; font-size: .84rem;
}
.footer-bottom p { margin: 0; }

/* --- misc content blocks ------------------------------------------------ */
.prose { max-width: 72ch; }
.prose h2 { text-transform: uppercase; margin-top: 1.6em; }
.split { display: grid; gap: 28px; align-items: start; }
.instructor-photo { border-radius: var(--radius-lg); box-shadow: var(--shadow); border: 4px solid #fff; }
.instructor-card { border-top-color: var(--dark); }
.instructor-card-photo { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center top; }
.instructor-card .fact-list { margin-bottom: 0; }
.instructor-card .fact-list li { padding: 8px 0; font-size: .9rem; }
.instructor-card .fact-list strong { min-width: 110px; }
.instructor-card .eyebrow { color: var(--red-ink); }
.fact-list { list-style: none; padding: 0; }
.fact-list li { padding: 10px 0; border-bottom: 1px solid var(--line); display: flex; gap: 12px; }
.fact-list strong { min-width: 130px; font-family: var(--head); text-transform: uppercase; font-weight: 600; letter-spacing: .04em; }
.logo-strip { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: center; }
.logo-strip .logo-chip {
  padding: 12px 18px; background: #fff; border-radius: var(--radius);
  box-shadow: var(--shadow); font-family: var(--head); text-transform: uppercase;
  letter-spacing: .06em; font-size: .9rem;
}
.empty-state { text-align: center; padding: 40px 20px; color: var(--muted); }

/* 4:3 rather than 16:10, and biased upwards, so group photos keep heads in
   frame instead of losing the top and bottom of the shot. */
.card-media { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: center 35%; }

/* programs with a photo panel */
/* .program-block sets padding later in the file, so this needs the extra
   class to win and let the photo sit flush against the card edge. */
.program-block.program-block-media { padding: 0; overflow: hidden; display: grid; }
/*
 * The text column is long, so stretching the photo to match its height made a
 * 320px-wide, 600px-tall slot: a landscape photo lost up to three quarters of
 * itself. The photo now keeps a 4:3 frame and sits at the top of the column.
 */
.program-media { align-self: start; }
.program-media img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; object-position: center 35%; }
.program-content { padding: 26px; }

/* schedule: centres grouped by coach */
.coach-block { margin-bottom: 40px; }
.coach-head { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 18px; }
.coach-head h3 {
  margin: 0; text-transform: uppercase; font-size: 1.3rem;
  padding-bottom: 6px; border-bottom: 3px solid var(--red);
}
.centre-card { border-top-color: var(--dark); }
.centre-card.centre-school { border-top-color: var(--navy); }
.centre-card h3 { font-size: 1.05rem; }
.centre-address { font-size: .9rem; color: var(--muted); }
.centre-facts { list-style: none; padding: 0; margin: 0 0 16px; }
.centre-facts li { display: grid; grid-template-columns: 70px 1fr; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: .9rem; }
.centre-facts strong { font-family: var(--head); text-transform: uppercase; letter-spacing: .05em; font-weight: 600; }
.centre-fee { font-family: var(--head); color: var(--red-ink); font-size: 1.05rem; }

.program-block { background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 26px; margin-bottom: 24px; border-left: 6px solid var(--red); }
.program-block:nth-child(even) { border-left-color: var(--dark); }
.program-block h2 { text-transform: uppercase; font-size: 1.5rem; margin-bottom: .2em; }
.program-block .ages { font-family: var(--head); letter-spacing: .08em; text-transform: uppercase; color: var(--red-ink); font-size: .85rem; }
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.tag { background: rgba(225, 10, 4, .09); color: var(--red-ink); border-radius: 999px; padding: .25em .85em; font-size: .8rem; }

/* --- admin -------------------------------------------------------------- */
.admin-body { background: #F2F2F2; }
.admin-header { background: var(--dark); color: var(--cream); padding: 12px 0; }
.admin-header .container { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.admin-header a { color: rgba(251, 250, 250, .85); }
.admin-nav { display: flex; flex-wrap: wrap; gap: 6px 16px; font-family: var(--head); text-transform: uppercase; letter-spacing: .06em; font-size: .9rem; }
.admin-nav a.is-active { color: var(--accent); }
.admin-main { padding: 30px 0 60px; }
.admin-title { text-transform: uppercase; }
.panel { background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 22px; margin-bottom: 22px; }
.panel h2 { text-transform: uppercase; font-size: 1.2rem; }
.stat-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.stat {
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 18px; border-top: 4px solid var(--red);
}
.stat .num { font-family: var(--head); font-size: 2rem; color: var(--red-ink); line-height: 1; }
.stat .label { text-transform: uppercase; letter-spacing: .1em; font-size: .78rem; color: var(--muted); }
.meter { height: 12px; border-radius: 6px; background: rgba(26, 26, 26, .1); overflow: hidden; margin-top: 10px; }
.meter span { display: block; height: 100%; background: linear-gradient(90deg, var(--red), var(--dark)); }
.admin-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.admin-list { list-style: none; padding: 0; margin: 0; }
.admin-list li { padding: 14px 0; border-bottom: 1px solid var(--line); display: grid; gap: 10px; }
.admin-list li:last-child { border-bottom: 0; }
.admin-item-head { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; }
.admin-item-head h3 { margin: 0; font-size: 1.05rem; }
.row-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.photo-manage { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 12px; }
.photo-manage figure { margin: 0; position: relative; }
.photo-manage img { aspect-ratio: 1; object-fit: cover; border-radius: 8px; width: 100%; }
.photo-manage button {
  position: absolute; top: 6px; right: 6px;
  width: 30px; height: 30px; border-radius: 50%; border: 0;
  background: rgba(225, 10, 4, .9); color: #fff; cursor: pointer; line-height: 1;
}
.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: var(--dark); }
.login-card { width: 100%; max-width: 420px; background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 30px; border-top: 6px solid var(--red); }
.login-card h1 { text-transform: uppercase; text-align: center; font-size: 1.5rem; }
.login-card .sub { text-align: center; color: var(--muted); font-size: .9rem; margin-bottom: 22px; }
.muted { color: var(--muted); }
.text-center { text-align: center; }
.mt-2 { margin-top: 18px; }

/* --- responsive --------------------------------------------------------- */
@media (min-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { columns: 3; }
  .gallery-grid.is-uniform { grid-template-columns: repeat(3, 1fr); }
  .contact-strip-inner, .split, .latest-event { grid-template-columns: 1fr 1fr; }
  .event-banner-slide { grid-template-columns: 1.15fr 1fr; align-items: stretch; }
  .video-slide { grid-template-columns: 1.3fr 1fr; align-items: stretch; }
  .program-block-media { grid-template-columns: 380px 1fr; align-items: start; }
  .winners-grid { columns: 3; }
  .video-row { grid-template-columns: 160px 1fr; }
  .footer-inner { grid-template-columns: 1.4fr 1fr 1fr; align-items: start; }
}
@media (min-width: 900px) {
  .section { padding: 76px 0; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
  .gallery-grid { columns: 4; }
  .gallery-grid.is-uniform { grid-template-columns: repeat(4, 1fr); }

  .nav-toggle { display: none; }
  .primary-nav {
    position: static; max-height: none; overflow: visible;
    background: transparent; border-top: 0;
  }
  .primary-nav ul { display: flex; align-items: center; gap: 4px; padding: 0; }
  .primary-nav a { border-bottom: 0; padding: 8px 11px; font-size: .95rem; }
  .primary-nav a.is-active { border-bottom: 2px solid var(--accent); }
  .nav-cta { padding-top: 0; margin-left: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

@media print {
  .site-header, .site-footer, .contact-strip, .hero-actions { display: none; }
  body { background: #fff; }
}

/* --- contrast guards ----------------------------------------------------
   .section-dark a and .contact-strip a colour every link in those sections.
   Buttons must keep their own colours, so they are restated here.          */
.section-dark .btn-gold, .contact-strip .btn-gold { color: var(--dark); }
.section-dark .btn-primary, .contact-strip .btn-primary { color: #fff; }
.section-dark .btn-whatsapp, .contact-strip .btn-whatsapp { color: #08301a; }
.section-dark .btn-outline { color: var(--accent); }
.section-dark .btn-outline:hover { color: var(--dark); }

/* The crest red is too dark against black for small text, so eyebrow labels
   on dark surfaces use white instead. */
.hero .eyebrow, .section-dark .eyebrow, .page-hero .eyebrow { color: var(--accent); }
/* ==========================================================================
   V2 THEME - federation layout
   Adds the masthead, top bar, wide nav, leadership strip, news grid and
   related blocks. Loaded after the base rules so these win where they
   overlap. Palette is unchanged: crest red, black and white.
   ========================================================================== */

/* --- utility bar --------------------------------------------------------- */
.topbar { background: var(--dark); color: var(--white-soft); font-size: .82rem; }
.topbar-inner { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; justify-content: space-between; padding-top: 8px; padding-bottom: 8px; }
.topbar a { color: var(--white-soft); }
.topbar a:hover { color: #fff; }
.topbar .sep { opacity: .35; }
.topbar-contact { display: flex; flex-wrap: wrap; gap: 8px; }
.topbar-email { display: none; }
.topbar-social { display: flex; gap: 14px; text-transform: uppercase; letter-spacing: .1em; font-size: .72rem; }

/* --- masthead ------------------------------------------------------------ */
.masthead { background: #fff; border-bottom: 1px solid var(--line); }
.masthead-inner { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; padding-top: 16px; padding-bottom: 16px; }
.masthead-brand { display: flex; align-items: center; gap: 14px; color: var(--text); }
.masthead-brand:hover { text-decoration: none; }
.masthead-brand img { width: 68px; height: 68px; flex: none; }
.masthead-name { display: block; font-family: var(--head); text-transform: uppercase; letter-spacing: .04em; font-size: clamp(1rem, 3.4vw, 1.5rem); line-height: 1.1; color: var(--dark); }
.masthead-sub { display: block; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--red-ink); margin-top: 4px; }
.masthead-cta { display: none; gap: 8px; }

/* --- primary nav --------------------------------------------------------- */
.mainnav { background: var(--red-ink); position: sticky; top: 0; z-index: 100; }
.mainnav-inner { position: relative; }
.mainnav ul { list-style: none; margin: 0; padding: 0; display: none; }
.mainnav ul.is-open { display: block; padding-bottom: 10px; }
.mainnav a { display: block; padding: 12px 4px; color: #fff; font-family: var(--head); text-transform: uppercase; letter-spacing: .06em; font-size: .95rem; border-bottom: 1px solid rgba(255,255,255,.15); }
.mainnav a:hover, .mainnav a.is-active { color: #fff; text-decoration: none; background: rgba(0,0,0,.18); }
.mainnav .nav-toggle { border-color: rgba(255,255,255,.4); margin: 8px 0; }
.mainnav .nav-toggle span { background: #fff; }

/* --- lead banner --------------------------------------------------------- */
.lead-banner { background: var(--cream); border-bottom: 4px solid var(--red); }
.lead-grid { display: grid; gap: 26px; padding-top: 36px; padding-bottom: 36px; align-items: center; }
.kicker { font-family: var(--head); text-transform: uppercase; letter-spacing: .18em; font-size: .78rem; color: var(--red-ink); margin-bottom: .5em; }
.lead-copy h1 { font-size: clamp(1.8rem, 6vw, 3rem); text-transform: uppercase; line-height: 1.08; }
.lead-text { color: var(--muted); max-width: 60ch; }
.lead-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.lead-media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow); }

/* --- stat bar ------------------------------------------------------------ */
.statbar { background: var(--dark); color: var(--cream); }
.statbar-inner { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; padding-top: 24px; padding-bottom: 24px; text-align: center; }
.statbar-num { display: block; font-family: var(--head); font-size: 2rem; color: #fff; line-height: 1; }
.statbar-label { display: block; font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--white-soft); margin-top: 6px; }

/* --- leadership strip ---------------------------------------------------- */
.leader-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.leader { margin: 0; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; border-bottom: 3px solid var(--red); }
.leader img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center top; }
.leader figcaption { padding: 14px; text-align: center; }
.leader strong { display: block; font-family: var(--head); text-transform: uppercase; letter-spacing: .04em; font-size: .98rem; }
.leader-role { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--red-ink); margin-top: 3px; }
.leader-rank { display: block; font-size: .8rem; color: var(--muted); margin-top: 4px; }

/* --- about block --------------------------------------------------------- */
.section-paper { background: #fff; }
.about-block { display: grid; gap: 24px; }
.about-block-body p { color: var(--muted); }
.about-block-side { background: var(--dark); color: var(--cream); border-radius: var(--radius-lg); padding: 24px; align-self: start; }
.about-block-side h3 { color: #fff; text-transform: uppercase; letter-spacing: .08em; font-size: 1.05rem; }
.kun-list { margin: 0 0 14px; padding-left: 1.1em; }
.kun-list li { padding: 5px 0; color: var(--white-soft); }
.kun-note { font-size: .82rem; color: rgba(251,250,250,.6); margin: 0; }

/* --- news grid ----------------------------------------------------------- */
.section-head-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: baseline; justify-content: space-between; margin-bottom: 22px; border-bottom: 2px solid var(--line); padding-bottom: 10px; }
.section-head-row .section-title { margin-bottom: 0; }
.section-head-row .section-title::after { display: none; }
.more-link { font-family: var(--head); text-transform: uppercase; letter-spacing: .06em; font-size: .85rem; }
.news-grid { display: grid; gap: 20px; }
.news-item { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; }
.news-media { position: relative; }
.news-media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.news-placeholder { display: grid; place-items: center; aspect-ratio: 16 / 10; background: linear-gradient(135deg, var(--charcoal), var(--dark)); color: var(--red); font-family: var(--head); font-size: 2.6rem; }
.news-date { position: absolute; left: 0; bottom: 0; background: var(--red-ink); color: #fff; font-family: var(--head); font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; padding: 5px 12px; }
.news-body { padding: 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.news-body h3 { margin: 0; font-size: 1.1rem; text-transform: uppercase; }
.news-body p { color: var(--muted); margin: 0; flex: 1; }

/* --- quick links --------------------------------------------------------- */
.quick-grid { display: grid; gap: 16px; }
.quick-card { display: block; position: relative; background: var(--cream); border: 1px solid var(--line); border-left: 5px solid var(--red); border-radius: var(--radius); padding: 20px 46px 20px 20px; color: var(--text); transition: transform .15s ease, box-shadow .15s ease; }
.quick-card:hover { text-decoration: none; transform: translateY(-2px); box-shadow: var(--shadow); }
.quick-card h3 { text-transform: uppercase; font-size: 1.05rem; margin-bottom: .3em; }
.quick-card p { color: var(--muted); margin: 0; font-size: .92rem; }
.quick-arrow { position: absolute; right: 18px; top: 50%; transform: translateY(-50%); color: var(--red); font-size: 1.4rem; }

/* --- photo strip --------------------------------------------------------- */
.photo-strip { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.photo-strip img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 6px; cursor: pointer; }

/* --- quotes -------------------------------------------------------------- */
.quote-card { background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--red); border-radius: var(--radius); padding: 26px; margin: 0; text-align: center; }
.quote-card p { font-style: italic; font-size: 1.02rem; }
.quote-card cite { font-style: normal; font-family: var(--head); text-transform: uppercase; letter-spacing: .08em; font-size: .85rem; color: var(--red-ink); }
.quote-card .stars { color: var(--red); }

/* --- CTA band ------------------------------------------------------------ */
.cta-band { background: var(--red-ink); color: #fff; padding: 34px 0; }
.cta-inner { display: grid; gap: 16px; align-items: center; }
.cta-band h2 { text-transform: uppercase; margin-bottom: .2em; font-size: clamp(1.3rem, 4vw, 1.8rem); }
.cta-band p { margin: 0; color: rgba(255,255,255,.85); }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.cta-band .btn-primary { background: #fff; color: var(--red-ink); }
.cta-band .btn-primary:hover { background: var(--cream); color: var(--red-ink); }
.cta-band .btn-outline { border-color: #fff; color: #fff; }
.cta-band .btn-outline:hover { background: #fff; color: var(--red-ink); }

/* --- instructor profiles ------------------------------------------------- */
.profile { display: grid; gap: 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 22px; }
.profile-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center top; }
.profile-body { padding: 22px; }
.profile-body h2 { text-transform: uppercase; font-size: 1.4rem; margin-bottom: .15em; }
.profile-rank { font-family: var(--head); color: var(--red-ink); text-transform: uppercase; letter-spacing: .06em; font-size: .9rem; }
.profile-table { width: 100%; border-collapse: collapse; margin-top: 14px; }
.profile-table th { text-align: left; font-family: var(--head); text-transform: uppercase; letter-spacing: .05em; font-weight: 600; font-size: .82rem; padding: 8px 12px 8px 0; width: 40%; vertical-align: top; color: var(--dark); }
.profile-table td { padding: 8px 0; border-bottom: 1px solid var(--line); font-size: .92rem; }
.profile-table tr:first-child td, .profile-table tr:first-child th { border-top: 1px solid var(--line); }
.note-panel { background: var(--cream); border-left: 5px solid var(--red); border-radius: var(--radius); padding: 18px 20px; }
.note-panel h3 { text-transform: uppercase; font-size: 1rem; margin-bottom: .3em; }
.note-panel p { margin: 0; color: var(--muted); }

/* --- page hero (inner pages) --------------------------------------------- */
.page-hero { background: var(--dark); color: var(--cream); border-bottom: 4px solid var(--red); padding: 40px 0; text-align: left; }
.page-hero .kicker { color: var(--red); }
.page-hero h1 { font-size: clamp(1.7rem, 5vw, 2.6rem); }
.page-hero p { color: var(--white-soft); margin: 0; }
.page-hero .hero-crest { display: none; }

/* --- footer -------------------------------------------------------------- */
.footer-grid { display: grid; gap: 26px; padding-top: 40px; padding-bottom: 30px; }
.footer-col h3 { color: #fff; text-transform: uppercase; font-size: .95rem; letter-spacing: .1em; margin-bottom: .8em; padding-bottom: .5em; border-bottom: 2px solid var(--red); }
.footer-col p { color: var(--white-soft); font-size: .9rem; }
.footer-about strong { display: block; font-family: var(--head); text-transform: uppercase; color: #fff; margin: 10px 0 6px; letter-spacing: .04em; }
.footer-links, .footer-contact { list-style: none; margin: 0; padding: 0; }
.footer-links li, .footer-contact li { padding: 5px 0; font-size: .9rem; color: var(--white-soft); }
.footer-contact li { border-bottom: 1px solid rgba(255,255,255,.08); }
.site-footer .social-list { margin-top: 14px; }

@media (min-width: 720px) {
  .topbar-email { display: inline; }
  .statbar-inner { grid-template-columns: repeat(4, 1fr); }
  .leader-grid { grid-template-columns: repeat(4, 1fr); }
  .news-grid { grid-template-columns: repeat(3, 1fr); }
  .quick-grid { grid-template-columns: repeat(2, 1fr); }
  .photo-strip { grid-template-columns: repeat(4, 1fr); }
  .lead-grid { grid-template-columns: 1.1fr 1fr; }
  .about-block { grid-template-columns: 1.6fr 1fr; }
  .cta-inner { grid-template-columns: 1fr auto; }
  .profile { grid-template-columns: 280px 1fr; }
  .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1.2fr; }
}

@media (min-width: 900px) {
  .masthead-cta { display: flex; }
  .mainnav .nav-toggle { display: none; }
  .mainnav ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 0; }
  .mainnav a { border-bottom: 0; padding: 14px 14px; font-size: .88rem; }
  .mainnav a.is-active { background: rgba(0,0,0,.25); }
  .quick-grid { grid-template-columns: repeat(4, 1fr); }
}
/* --- homepage slideshow --------------------------------------------------- */
.hero-slider .carousel-track { border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden; }
.hero-slide { position: relative; margin: 0; }
.hero-slide img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: center 35%; display: block; }
.hero-slide figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 40px 18px 16px;
  background: linear-gradient(to top, rgba(10,10,10,.88), rgba(10,10,10,.55) 55%, transparent);
  color: #fff; text-align: left;
}
.hero-slide figcaption strong {
  display: block; font-family: var(--head); text-transform: uppercase;
  letter-spacing: .05em; font-size: 1.05rem; line-height: 1.2;
}
.hero-slide figcaption span { display: block; font-size: .85rem; color: rgba(255,255,255,.82); margin-top: 3px; }
.hero-slide figcaption a {
  display: inline-block; margin-top: 8px; color: #fff;
  font-family: var(--head); text-transform: uppercase; letter-spacing: .06em; font-size: .8rem;
  border-bottom: 2px solid var(--red);
}
.hero-slide figcaption a:hover { text-decoration: none; border-color: #fff; }
.hero-slider .carousel-dots { margin-top: 12px; }
.hero-slider .carousel-dots button { background: rgba(10,10,10,.22); }
.hero-slider .carousel-dots button.is-active { background: var(--red); }
.hero-slider .carousel-nav { background: rgba(10,10,10,.55); }
.hero-slider .carousel-nav:hover { background: var(--red-ink); }
/* Portrait slides: show the whole photo rather than cropping heads off.
   The blurred copy behind fills the empty sides so it still looks deliberate. */
.hero-slide.is-portrait { background: var(--dark); }
.hero-slide.is-portrait img { object-fit: contain; position: relative; z-index: 1; }
.hero-slide.is-portrait::before {
  content: ""; position: absolute; inset: 0;
  background-image: var(--slide-bg); background-size: cover; background-position: center;
  filter: blur(20px) brightness(.45); transform: scale(1.12);
}

/* --- social icons in the utility bar ------------------------------------- */
.topbar-social { align-items: center; }
/* White disc so each logo shows in its own colour against the black bar. */
.topbar-social a {
  display: inline-grid; place-items: center;
  width: 28px; height: 28px; border-radius: 50%;
  background: #fff; transition: transform .15s ease, box-shadow .15s ease;
}
.topbar-social a:hover { transform: translateY(-1px); box-shadow: 0 3px 8px rgba(0,0,0,.5); }
.topbar-social svg { display: block; }
.tb-youtube  svg path { fill: #FF0000; }
.tb-facebook svg path { fill: #1877F2; }
.tb-instagram svg path { fill: url(#igGradientTop); }
/* --- affiliations notice -------------------------------------------------- */
.affiliations { background: var(--cream); border-top: 4px solid var(--red); padding: 26px 0; text-align: center; }
.affil-reg { font-family: var(--head); text-transform: uppercase; letter-spacing: .08em; font-size: .88rem; color: var(--dark); margin-bottom: 18px; }
.affil-group { margin-bottom: 14px; }
.affil-label { display: block; font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--red-ink); margin-bottom: 6px; }
.affil-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 10px; justify-content: center; }
.affil-list li { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 5px 14px; font-size: .8rem; color: var(--muted); }
.affil-list abbr { font-family: var(--head); color: var(--dark); text-decoration: none; letter-spacing: .04em; }

/* --- instructor cards ----------------------------------------------------- */
.instructor-cards { display: grid; gap: 18px; }
.icard { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; border-top: 4px solid var(--red); }
.icard img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center top; }
.icard-body { padding: 16px; }
.icard-body h3 { font-size: 1.02rem; text-transform: uppercase; margin-bottom: .2em; }
.icard-rank { font-family: var(--head); color: var(--red-ink); text-transform: uppercase; letter-spacing: .05em; font-size: .8rem; margin-bottom: .8em; }
.icard-facts { margin: 0; font-size: .84rem; }
.icard-facts dt { font-family: var(--head); text-transform: uppercase; letter-spacing: .05em; font-size: .72rem; color: var(--dark); margin-top: 8px; }
.icard-facts dd { margin: 0; color: var(--muted); }

/* --- training centre directory -------------------------------------------- */
.centre-list { display: grid; gap: 16px; }
.centre-entry { display: grid; gap: 14px; background: #fff; border: 1px solid var(--line); border-left: 5px solid var(--red); border-radius: var(--radius); padding: 18px; }
.centre-entry-logo { display: grid; place-items: center; }
.centre-entry-logo img { max-width: 110px; max-height: 90px; object-fit: contain; }
.centre-entry h3 { font-size: 1.02rem; text-transform: uppercase; margin-bottom: .25em; }
.centre-entry address { font-style: normal; color: var(--muted); font-size: .92rem; }
.centre-index { font-family: var(--head); color: var(--red); font-size: 1.1rem; margin-right: 6px; }
.school-photo { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); margin-top: 16px; }

@media (min-width: 720px) {
  .instructor-cards { grid-template-columns: repeat(2, 1fr); }
  .centre-entry { grid-template-columns: 130px 1fr; align-items: center; }
}
@media (min-width: 1000px) {
  .instructor-cards { grid-template-columns: repeat(4, 1fr); }
}
/* --- credentials ribbon (every page, above the fold) ---------------------- */
.credbar {
  display: block; background: var(--dark); color: var(--cream);
  border-top: 1px solid rgba(255,255,255,.08);
  border-bottom: 3px solid var(--red);
  padding: 9px 0; text-decoration: none;
}
.credbar:hover { text-decoration: none; background: #111; }
.credbar-inner { display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: center; justify-content: center; text-align: center; }
.credbar-item { display: inline-flex; align-items: center; gap: 7px; font-size: .78rem; color: var(--white-soft); }
.credbar-mark { color: var(--red); font-size: 1rem; }
.credbar-reg { font-family: var(--head); text-transform: uppercase; letter-spacing: .06em; }
.credbar-label { font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(251,250,250,.55); }
.credbar b {
  font-family: var(--head); font-weight: 600; letter-spacing: .06em;
  color: #fff; background: var(--red-ink); border-radius: 3px; padding: 2px 7px; font-size: .74rem;
}
.credbar i { color: rgba(255,255,255,.3); font-style: normal; }
.credbar-ioc b { background: transparent; border: 1px solid var(--red); color: #fff; }

/* --- affiliations on the About page --------------------------------------- */
.reg-banner {
  display: flex; align-items: center; gap: 16px; justify-content: center;
  background: var(--dark); color: var(--cream);
  border-radius: var(--radius-lg); padding: 20px 24px; margin-bottom: 26px; text-align: left;
}
.reg-banner .reg-mark { font-size: 2rem; color: var(--red); line-height: 1; }
.reg-banner strong { display: block; font-family: var(--head); text-transform: uppercase; letter-spacing: .05em; color: #fff; }
.reg-banner span { font-size: .88rem; color: var(--white-soft); }

.affil-chain { max-width: 860px; margin: 0 auto; }
.affil-step { text-align: center; }
.affil-step-label {
  display: block; font-family: var(--head); text-transform: uppercase;
  letter-spacing: .14em; font-size: .74rem; color: var(--red-ink); margin-bottom: 10px;
}
/* Flex, not a fixed grid: the three rows hold 4, 1 and 2 badges, and a grid
   left-aligned the shorter rows instead of centring them. */
.affil-badges { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.affil-badge { flex: 1 1 150px; max-width: 220px; }
.affil-badge {
  background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--red);
  border-radius: var(--radius); padding: 14px 12px;
}
.affil-badge strong { display: block; font-family: var(--head); font-size: 1.25rem; letter-spacing: .04em; color: var(--dark); }
.affil-badge span { display: block; font-size: .76rem; color: var(--muted); margin-top: 3px; line-height: 1.35; }
.affil-badge-major { border-top-color: var(--dark); background: var(--cream); }
.affil-badge-major strong { color: var(--red-ink); font-size: 1.5rem; }
.affil-arrow { text-align: center; color: var(--red); font-size: 1.5rem; line-height: 1; margin: 14px 0; }

/* --- instructor strip on the About page ----------------------------------- */
.teach-strip { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.teach-strip img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center top; border-radius: var(--radius); border-bottom: 3px solid var(--red); }

@media (min-width: 720px) {
  .affil-badge { flex: 0 1 200px; }
  .affil-badge-major { flex-basis: 300px; max-width: 320px; }
  .teach-strip { grid-template-columns: repeat(5, 1fr); }
}
/* Phones: condense the ribbon so it does not eat the top of the screen. */
.cred-short { display: none; }
@media (max-width: 719px) {
  .credbar { padding: 7px 0; }
  .credbar-inner { gap: 4px 12px; }
  .cred-full { display: none; }
  .cred-short { display: inline; }
  .credbar-label { display: none; }
  .credbar-item { font-size: .72rem; }
  .credbar b { font-size: .68rem; padding: 1px 5px; }
}
/* --- masthead + full-width slideshow (after removing the lead copy) -------- */
.masthead-abbr { color: var(--red-ink); }
.masthead-name { line-height: 1.15; }

/* With the headline block gone the slideshow spans the full width. */
.lead-grid { grid-template-columns: 1fr !important; padding-top: 22px; padding-bottom: 22px; }
.hero-slide img { aspect-ratio: 16 / 7; }
@media (max-width: 719px) {
  .hero-slide img { aspect-ratio: 4 / 3; }
}
/* Coach attribution on each batch card (replaces the per-coach heading rows). */
.centre-coach {
  font-family: var(--head); text-transform: uppercase; letter-spacing: .05em;
  font-size: .78rem; color: var(--red-ink); margin-bottom: .5em;
}
.centre-card .card-body { display: flex; flex-direction: column; }
.centre-card .centre-facts { margin-top: auto; }
/* --- legal pages (privacy policy) ---------------------------------------- */
.legal { max-width: 820px; margin: 0 auto; }
.legal-intro { font-size: 1.05rem; color: var(--text); }
.legal h2 {
  text-transform: uppercase; font-size: 1.15rem; margin-top: 1.8em;
  padding-bottom: .35em; border-bottom: 2px solid var(--line);
}
.legal p, .legal li { color: var(--muted); }
.legal strong { color: var(--text); }
.legal ul { padding-left: 1.2em; }
.legal li { padding: 4px 0; }
.legal-contact { list-style: none; padding: 0; }
.legal-contact li {
  display: grid; grid-template-columns: 90px 1fr; gap: 10px;
  padding: 9px 0; border-bottom: 1px solid var(--line);
}
.legal-contact strong {
  font-family: var(--head); text-transform: uppercase;
  letter-spacing: .05em; font-size: .82rem;
}
