:root{
  --bg:#0b0c10;
  --bg2:#10121a;
  --card:#151826;
  --text:#f5f7ff;
  --muted:#b5bbd1;
  --brand:#ff6a00;
  --brand2:#ff9a3d;
  --border: rgba(255,255,255,.10);
  --shadow: 0 14px 40px rgba(0,0,0,.45);
  --radius: 18px;
  --container: 1160px;
}

/* =========================
   BASE
========================= */
*{ box-sizing:border-box; }
html,body{ margin:0; padding:0; }

body{
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
  background:
    radial-gradient(1100px 600px at 20% -10%, rgba(255,106,0,.22), transparent 55%),
    radial-gradient(900px 550px at 110% 20%, rgba(255,154,61,.10), transparent 50%),
    var(--bg);
  color: var(--text);
  line-height: 1.55;
}
body {
  overflow-x: hidden;
}

a{ color: inherit; text-decoration:none; }

.container{
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
}

/* =========================
   HEADER
========================= */
.header{
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11,12,16,.72);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header__inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 14px 0;
  gap: 16px;
}

.brand{ display:flex; align-items:center; gap: 12px; }
.brand__logo{ width: 38px; height: 38px; object-fit: contain; }
.brand__text{ font-weight: 800; letter-spacing: .3px; }

.nav{ display:flex; align-items:center; gap: 18px; }
.nav a{ opacity:.92; }
.nav a:hover{ opacity:1; }

.nav-toggle{
  display:none;
  width:44px; height:44px;
  border:1px solid var(--border);
  border-radius:12px;
  background: rgba(255,255,255,.04);
}

.nav-toggle span{
  display:block;
  width:20px; height:2px;
  background: var(--text);
  margin:5px auto;
}

/* =========================
   BUTTONS
========================= */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding:12px 16px;
  border-radius:14px;
  border:1px solid var(--border);
  background: rgba(255,255,255,.04);
  font-weight:700;
}

.btn--primary{
  border-color: rgba(255,106,0,.55);
  background: linear-gradient(135deg, rgba(255,106,0,.95), rgba(255,154,61,.92));
  color:#111;
}

.btn--ghost:hover{ background: rgba(255,255,255,.07); }
.btn--primary:hover{ filter: brightness(1.04); }

/* =========================
   HERO
========================= */
.hero{ padding:48px 0 26px; }

.hero__inner{
  display:grid;
  grid-template-columns: 1.15fr .85fr;
  gap:28px;
  align-items:center;
}

h1{
  font-size: clamp(32px, 4vw, 52px);
  line-height:1.05;
  margin:0 0 12px;
}

.lead{
  color: var(--muted);
  font-size:18px;
  max-width:56ch;
}

.hero__cta{
  display:flex;
  gap:12px;
  margin-top:18px;
  flex-wrap:wrap;
}

.trust{
  display:flex;
  gap:16px;
  flex-wrap:wrap;
  margin-top:18px;
}

.trust__item{
  padding:12px 14px;
  border:1px solid var(--border);
  border-radius:14px;
  background: rgba(255,255,255,.06);
}

/* =========================
   SECTION FRAMES (FINAL)
========================= */
.section{
  padding: 34px 0; /* ⬅ reduced vertical gap */
}

.programmes-grid{
  overflow: visible;
}

.section > .container{
  position: relative;
  background:
    linear-gradient(
      180deg,
      rgba(255,255,255,.06),
      rgba(255,255,255,.035)
    );
  border:1px solid var(--border);
  border-radius: calc(var(--radius) + 6px);
  padding:36px 34px;
  box-shadow: 0 16px 36px rgba(0,0,0,.32);
}

/* Alternate tone (subtle, not louder) */
.section--alt > .container{
  background:
    linear-gradient(
      180deg,
      rgba(255,106,0,.10),
      rgba(255,255,255,.035)
    );
  border-color: rgba(255,106,0,.28);
}

/* Remove framing where inappropriate */
.hero > .container,
.footer > .container{
  background:none;
  border:none;
  box-shadow:none;
  padding:0;
}

/* Section headers */
.section__head{
  margin-bottom:16px;
}
.section__head h2{
  margin:0 0 6px;
  font-size:28px;
}
.section__head p{
  margin:0;
  color:var(--muted);
  max-width:70ch;
}

/* =========================
   GRID & CARDS
========================= */
.grid{ display:grid; gap:16px; }
.grid--3{ grid-template-columns: repeat(3,1fr); }
.grid--2{ grid-template-columns: 1fr 1fr; }

.card{
  border:1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255,255,255,.06);
  padding:18px;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}

.card p{ color: var(--muted); }

@media (hover:hover){
  .card:hover{
    transform: translateY(-2px);
    border-color: rgba(255,106,0,.35);
    background: rgba(255,255,255,.08);
  }
}

/* =========================
   TIMETABLE
========================= */
.timetable{
  display:grid;
  gap:14px;
}

.timetable__row{
  display:grid;
  grid-template-columns:140px 1fr;
  gap:14px;
  padding:14px 16px;
  border-radius:16px;
  background: rgba(255,255,255,.06);
  border:1px solid var(--border);
}

.timetable__day{
  font-weight:800;
  font-size:16px;
  color: var(--brand);
}

.timetable__items{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}

.tag{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:10px 14px;
  border-radius:999px;
  background: rgba(0,0,0,.35);
  border:1px solid var(--border);
  font-size:14px;
}

.tag strong{
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  color:#111;
  padding:6px 10px;
  border-radius:999px;
  font-size:13px;
  font-weight:800;
}

/* =========================
   FORMS
========================= */
.form label{ display:block; margin-bottom:12px; color:var(--muted); }

.form input,
.form textarea{
  width:100%;
  margin-top:6px;
  padding:12px;
  border-radius:12px;
  border:1px solid var(--border);
  background: rgba(0,0,0,.18);
  color:var(--text);
}

.form input:focus,
.form textarea:focus{
  border-color: rgba(255,106,0,.55);
}

/* =========================
   FOOTER
========================= */
.footer{
  border-top:1px solid var(--border);
  padding:26px 0;
  background: rgba(0,0,0,.25);
}

.footer__inner{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:20px;
  flex-wrap:wrap;
}

.footer__links{
  display:flex;
  gap:14px;
  color:var(--muted);
}

/* =========================
   MOBILE
========================= */
@media (max-width: 920px){
  .hero__inner{ grid-template-columns:1fr; }
  .grid--3{ grid-template-columns:1fr; }
  .grid--2{ grid-template-columns:1fr; }

  .nav-toggle{ display:inline-block; }

  .nav{
    position:fixed;
    inset:72px 12px auto 12px;
    display:none;
    flex-direction:column;
    padding:14px;
    border-radius:16px;
    background: rgba(11,12,16,.96);
    border:1px solid var(--border);
  }

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

  .section{
    padding: 26px 0;
  }

  .section > .container{
    padding:26px 20px;
    border-radius:18px;
  }

  .timetable__row{ grid-template-columns:1fr; }
  .tag{ width:100%; justify-content:space-between; }
}

/* =========================
   HERO VIDEO
========================= */
.hero--video{
  position:relative;
  overflow:hidden;
  padding:72px 0 54px;
}

.hero__video{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  z-index:0;
  filter: brightness(.55) contrast(1.05);
}

.hero__overlay{
  position:absolute;
  inset:0;
  background:
    linear-gradient(
      180deg,
      rgba(11,12,16,.85),
      rgba(11,12,16,.65),
      rgba(11,12,16,.85)
    );
  z-index:1;
}

.hero__inner{ position:relative; z-index:2; }

@media (max-width:768px){
  .hero__video{ display:none; }
}


/* All section containers share the same outer width */
.section > .container,
.hero > .container,
.footer > .container {
  width: min(var(--container), calc(100% - 40px));
}

/* Frame padding stays INTERNAL and does not affect width */
.section > .container {
  box-sizing: border-box;
}

/* Hero alignment fix */
.hero > .container {
  padding-left: 0;
  padding-right: 0;
}

/* Footer alignment fix */
.footer > .container {
  padding-left: 0;
  padding-right: 0;
}

/* ================================
   CTA SECTIONS – COMPACT & STRONG
================================ */

.section--cta,
.section.section--alt:has(.hero__cta) {
  padding: 28px 0; /* was ~52px */
}

.section--cta .container,
.section.section--alt:has(.hero__cta) .container {
  padding: 20px 24px;
  border-radius: 22px;
  background:
    radial-gradient(
      600px 200px at 20% 0%,
      rgba(255,106,0,.25),
      rgba(255,255,255,.05)
    );
  border: 1px solid rgba(255,106,0,.35);
  box-shadow:
    0 0 0 1px rgba(255,106,0,.15),
    0 20px 50px rgba(0,0,0,.5);
}

/* Tighten CTA buttons spacing */
.hero__cta {
  gap: 14px;
}

/* CTA buttons slightly larger */
.hero__cta .btn {
  padding: 14px 22px;
  font-size: 15px;
}

/* ================================
   TIMETABLE – EXTRA COMPACT
================================ */

.timetable {
  gap: 12px;
}

.timetable__row {
  padding: 12px 14px;
}

.timetable__day {
  font-size: 15px;
}

.tag {
  padding: 8px 12px;
  font-size: 13px;
}

.tag strong {
  padding: 5px 8px;
  font-size: 12px;
}

/* ================================
   TIMETABLE – DISCIPLINE HOVER
================================ */

.tag {
  transition: background .15s ease, border-color .15s ease, opacity .15s ease;
}

/* Dim everything when hovering */
.timetable.is-hovering .tag {
  opacity: .35;
}

/* Highlight matching discipline */
.timetable.is-hovering .tag.is-active {
  opacity: 1;
  background: rgba(255,106,0,.25);
  border-color: rgba(255,106,0,.55);
}

/* =========================
   HERO PROOF STRIP
========================= */
.hero-proof{
  display:grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 12px;
  margin-top: 14px;
}

.hero-proof__item{
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255,255,255,.06);
  text-align: center;
}

.hero-proof__item strong{
  display:block;
  font-weight: 900;
  letter-spacing: .2px;
}

.hero-proof__item span{
  display:block;
  margin-top: 2px;
  font-size: 13px;
  color: var(--muted);
}

@media (max-width: 920px){
  .hero-proof{
    grid-template-columns: repeat(2, minmax(0,1fr));
  }
}

/* Beginner-friendly hint
.tag[data-discipline*="tiny"],
.tag[data-discipline*="family"],
.tag[data-discipline*="junior"]::after {
  content: "Beginner friendly";
  margin-left: 8px;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(255,255,255,.12);
  color: var(--muted);
}
 */
/* ================================
   PRICING – MOBILE CONTRAST BOOST
================================ */

@media (max-width: 920px){

  /* Increase separation between pricing cards */
  .card--price{
    background: rgba(255,255,255,.09);
    border-color: rgba(255,255,255,.22);
    box-shadow:
      0 10px 26px rgba(0,0,0,.45),
      inset 0 0 0 1px rgba(255,255,255,.08);
  }

  /* Stronger emphasis for featured / popular plan */
  .card--price.card--featured{
    background:
      linear-gradient(
        180deg,
        rgba(255,106,0,.28),
        rgba(255,255,255,.06)
      );
    border-color: rgba(255,106,0,.55);
    box-shadow:
      0 0 0 2px rgba(255,106,0,.35),
      0 16px 36px rgba(0,0,0,.55);
  }

  /* Price stands out more */
  .card--price .price{
    font-size: 36px;
    font-weight: 900;
    letter-spacing: -.5px;
  }

  /* Reduce visual noise in lists */
  .card--price .list{
    color: #d7dbea;
  }

  /* Make CTA button impossible to miss */
  .card--price .btn{
    width: 100%;
    padding: 16px;
    font-size: 16px;
    margin-top: 14px;
  }

  /* Space cards vertically for clarity */
  .grid--3{
    gap: 22px;
  }
}


/* =========================
   PROGRAMMES (FIXED)
   Replace ALL other programme/programmes-grid rules with this block.
========================= */

/* The grid */
.programmes-grid{
  display: grid;
  gap: 16px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;

  /* IMPORTANT: minmax(0,1fr) prevents overflow */
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* Allow grid children to actually shrink (prevents pushing outside container) */
.programmes-grid > *{
  min-width: 0;
}

/* Responsive breakpoints */
@media (max-width: 1100px){
  .programmes-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px){
  .programmes-grid{
    grid-template-columns: 1fr;
  }
}

/* Card layout */
.programme-card{
  display: flex;
  flex-direction: column;
  height: 100%;
  min-width: 0; /* critical */
}

/* Media */
.programme-media{
  width: 100%;
  border-radius: 14px;
  overflow: hidden;
  background: rgba(255,255,255,.06);
  margin-bottom: 14px;

  /* Keep a consistent crop */
  aspect-ratio: 16 / 9;
}

.programme-media img{
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

/* Per-class value micro-copy */
.price-hint{
  font-size: 14px;
  font-weight: 800;
  margin: 6px 0 8px;
  color: var(--brand);
}

/* Extras */
.programme-extras{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 14px;
  min-width: 0; /* critical */
}

.extra{
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  border: 1px solid var(--border);
  color: var(--muted);

  /* IMPORTANT: allow wrapping so chips never force card width */
  white-space: normal;
  max-width: 100%;
}

/* Keep CTA pinned to bottom */
.programme-card .link{
  margin-top: auto;
}
/* =========================
   MEDIA CARD – IMAGE CONTAINMENT
========================= */

.media-card,
.programme-media {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 16px;
  background: rgba(0,0,0,.25);
}

/* Maintain clean aspect ratio */
.media-card img,
.programme-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover; /* ⬅ KEY LINE */
}

/* Default heights */
.programme-media {
  height: 180px;
}

.media-card {
  height: 100%;
  min-height: 260px;
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .programme-media {
    height: 160px;
  }

  .media-card {
    min-height: 220px;
  }
}

/* Optional emphasis styling */
.card--emphasis {
  border-color: rgba(255,106,0,.4);
  background: linear-gradient(
    180deg,
    rgba(255,106,0,.12),
    rgba(255,255,255,.04)
  );
}

/* =========================
   PROGRAMMES GRID (FINAL SAFE)
========================= */

.programmes-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

/* Tablet */
@media (max-width: 1100px) {
  .programmes-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile */
@media (max-width: 640px) {
  .programmes-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================
   PHILOSOPHY GRID
========================= */

.philosophy-grid{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap:16px;
}

/* Tablet */
@media (max-width:1100px){
  .philosophy-grid{
    grid-template-columns: repeat(2,1fr);
  }
}

/* Mobile */
@media (max-width:640px){
  .philosophy-grid{
    grid-template-columns:1fr;
  }
}

.programme-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: inherit;
}