/* AML & Financial Crime Prevention — Global Styles */
/* Course Architect × Barclays Bank PLC */

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Barclays Brand */
  --primary: #00395D;
  --primary-light: #005A8C;
  --cyan: #00AEEF;
  --cyan-light: #33BFFF;
  --cyan-dark: #0090C8;
  --white: #FFFFFF;
  --bg: #F5F5F5;
  --bg-dark: #00395D;
  --bg-darker: #002640;
  --text: #333333;
  --text-light: #64748B;
  --text-on-dark: #E2E8F0;
  --success: #16A34A;
  --success-light: #DCFCE7;
  --warning: #F59E0B;
  --warning-light: #FEF3C7;
  --error: #DC2626;
  --error-light: #FEE2E2;
  --border: #E2E8F0;
  --card-bg: #FFFFFF;

  /* Shadows */
  --shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.1), 0 2px 4px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 15px rgba(0,0,0,0.1), 0 4px 6px rgba(0,0,0,0.05);
  --shadow-xl: 0 20px 25px rgba(0,0,0,0.1), 0 8px 10px rgba(0,0,0,0.04);

  /* Spacing & Layout */
  --radius: 8px;
  --radius-sm: 4px;
  --radius-lg: 12px;
  --max-width: 720px;
  --max-width-wide: 1200px;
  --nav-height: 64px;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--cyan-dark); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--primary); }

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4 { font-weight: 700; line-height: 1.3; color: var(--primary); }
h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); margin-bottom: 1rem; }
h2 { font-size: clamp(1.375rem, 3vw, 1.75rem); margin-bottom: 0.75rem; }
h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }
h4 { font-size: 1.1rem; margin-bottom: 0.5rem; }
p { margin-bottom: 1rem; }

.text-light { color: var(--text-light); }
.text-cyan { color: var(--cyan); }
.text-primary { color: var(--primary); }

code, .code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: #EBF8FF;
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  color: var(--primary);
}

/* ===== NAV ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: white;
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
}

.nav__brand img {
  height: 28px;
  width: auto;
}

.nav__brand i { color: var(--cyan); }

.nav__links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
}

.nav__links a {
  color: var(--text-on-dark);
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav__links a:hover { color: var(--cyan); }

.nav__toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  padding: 0.5rem;
}

/* ===== BREADCRUMB ===== */
.breadcrumb {
  margin-top: calc(var(--nav-height) + 1rem);
  padding: 0 1.5rem;
  max-width: var(--max-width-wide);
  margin-left: auto;
  margin-right: auto;
  font-size: 0.875rem;
  color: var(--text-light);
}

.breadcrumb a { color: var(--cyan-dark); }
.breadcrumb a:hover { color: var(--primary); }

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  margin-top: var(--nav-height);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,57,93,0.92) 0%, rgba(0,57,93,0.75) 50%, rgba(0,174,239,0.6) 100%);
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  padding: 3rem 1.5rem;
  color: white;
}

.hero__content h1 {
  color: white;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  margin-bottom: 1rem;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.hero__content p {
  color: rgba(255,255,255,0.9);
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  max-width: 600px;
  margin: 0 auto 2rem;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(0,174,239,0.2);
  border: 1px solid rgba(0,174,239,0.4);
  border-radius: 100px;
  padding: 0.5rem 1.25rem;
  font-size: 0.875rem;
  color: var(--cyan-light);
  margin-bottom: 1.5rem;
}

/* ===== SECTIONS ===== */
.section {
  max-width: var(--max-width-wide);
  margin: 0 auto;
  padding: 4rem 1.5rem;
}

.section--narrow {
  max-width: var(--max-width);
}

.section--dark {
  background: var(--bg-dark);
  max-width: none;
  color: var(--text-on-dark);
}

.section--dark h2,
.section--dark h3 { color: white; }

.section__header {
  text-align: center;
  margin-bottom: 3rem;
}

.section__header p {
  color: var(--text-light);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0.5rem auto 0;
}

/* ===== CARDS ===== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--card-bg);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.card__image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.card__body {
  padding: 1.5rem;
}

.card__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--cyan);
  color: white;
  font-weight: 700;
  font-size: 0.875rem;
  margin-bottom: 0.75rem;
}

.card__title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.card__desc {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.card__meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--text-light);
}

.card__meta i { width: 16px; height: 16px; }

.card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--cyan-dark);
  font-weight: 600;
  font-size: 0.9rem;
  margin-top: 1rem;
}

.card__link:hover { color: var(--primary); }

/* Lesson card (horizontal on desktop) */
.lesson-card {
  display: grid;
  grid-template-columns: 280px 1fr;
  background: var(--card-bg);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}

.lesson-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.lesson-card__image {
  width: 100%;
  height: 100%;
  min-height: 200px;
  object-fit: cover;
}

.lesson-card__body {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.lesson-card__number {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--cyan);
  margin-bottom: 0.5rem;
}

.lesson-card__title {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.lesson-card__desc {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 1rem;
  line-height: 1.6;
}

.lesson-card__modules {
  list-style: none;
  margin-bottom: 1.25rem;
}

.lesson-card__modules li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text);
  padding: 0.25rem 0;
}

.lesson-card__modules li i { color: var(--cyan); width: 16px; height: 16px; }

.lesson-card__footer {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.lesson-card__footer .tag {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.75rem;
  color: var(--text-light);
  background: var(--bg);
  padding: 0.25rem 0.75rem;
  border-radius: 100px;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}

.btn--primary {
  background: var(--cyan);
  color: white;
}
.btn--primary:hover {
  background: var(--cyan-dark);
  color: white;
}

.btn--outline {
  background: transparent;
  border: 2px solid var(--cyan);
  color: var(--cyan);
}
.btn--outline:hover {
  background: var(--cyan);
  color: white;
}

.btn--dark {
  background: var(--primary);
  color: white;
}
.btn--dark:hover {
  background: var(--primary-light);
  color: white;
}

.btn--sm {
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
}

.btn--lg {
  padding: 1rem 2rem;
  font-size: 1rem;
}

/* ===== LESSON HEADER ===== */
.lesson-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--bg-darker) 100%);
  color: white;
  padding: 3rem 1.5rem 2.5rem;
  margin-top: var(--nav-height);
}

.lesson-header__inner {
  max-width: var(--max-width-wide);
  margin: 0 auto;
}

.lesson-header span {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--cyan);
  margin-bottom: 0.5rem;
}

.lesson-header h1 {
  color: white;
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  margin-bottom: 0.5rem;
}

.lesson-header p {
  color: rgba(255,255,255,0.8);
  font-size: 1rem;
  max-width: 600px;
}

/* ===== CALLOUTS ===== */
.callout {
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius);
  margin: 1.5rem 0;
  border-left: 4px solid;
}

.callout--info {
  background: #EBF8FF;
  border-color: var(--cyan);
}

.callout--warning {
  background: var(--warning-light);
  border-color: var(--warning);
}

.callout--success {
  background: var(--success-light);
  border-color: var(--success);
}

.callout--error {
  background: var(--error-light);
  border-color: var(--error);
}

.callout__title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

/* ===== PROGRESS BAR ===== */
.progress-bar {
  background: var(--border);
  border-radius: 100px;
  height: 8px;
  overflow: hidden;
}

.progress-bar__fill {
  height: 100%;
  background: linear-gradient(90deg, var(--cyan), var(--cyan-dark));
  border-radius: 100px;
  transition: width 0.4s ease;
}

/* ===== STAT CARDS ===== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.stat-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  box-shadow: var(--shadow);
  border-top: 3px solid var(--cyan);
}

.stat-card__value {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  color: var(--cyan);
  line-height: 1.1;
  margin-bottom: 0.5rem;
}

.stat-card__label {
  font-size: 0.85rem;
  color: var(--text-light);
  font-weight: 500;
}

/* ===== INTERACTIVE ELEMENTS ===== */

/* --- Flashcards --- */
.flashcard-deck {
  perspective: 1000px;
  max-width: 500px;
  margin: 2rem auto;
}

.flashcard {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 2;
  cursor: pointer;
  transform-style: preserve-3d;
  transition: transform 0.6s;
}

.flashcard.flipped { transform: rotateY(180deg); }

.flashcard__face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  text-align: center;
}

.flashcard__front {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: white;
}

.flashcard__front h3 {
  color: white;
  font-size: 1.5rem;
}

.flashcard__back {
  background: var(--card-bg);
  border: 2px solid var(--cyan);
  transform: rotateY(180deg);
}

.flashcard__back p {
  color: var(--text);
  font-size: 1rem;
  line-height: 1.6;
}

.flashcard-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

.flashcard-counter {
  font-size: 0.875rem;
  color: var(--text-light);
  font-weight: 600;
}

/* --- Quiz / MCQ --- */
.quiz-question {
  margin-bottom: 2rem;
}

.quiz-question__text {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 1rem;
}

.quiz-option {
  display: block;
  width: 100%;
  padding: 1rem 1.25rem;
  margin-bottom: 0.75rem;
  background: var(--card-bg);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  text-align: left;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}

.quiz-option:hover { border-color: var(--cyan); background: #EBF8FF; }
.quiz-option.correct { border-color: var(--success); background: var(--success-light); }
.quiz-option.incorrect { border-color: var(--error); background: var(--error-light); }
.quiz-option.disabled { pointer-events: none; opacity: 0.7; }

.quiz-feedback {
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  margin-top: 0.75rem;
  font-size: 0.9rem;
  display: none;
}

.quiz-feedback.show { display: block; }
.quiz-feedback.correct { background: var(--success-light); color: #166534; }
.quiz-feedback.incorrect { background: var(--error-light); color: #991B1B; }

/* --- Decision Tree --- */
.dt-container {
  max-width: 600px;
  margin: 2rem auto;
}

.dt-step {
  display: none;
  animation: fadeSlide 0.3s ease;
}

.dt-step.active { display: block; }

.dt-scenario {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border-left: 4px solid var(--cyan);
}

.dt-scenario p {
  color: var(--text);
  font-size: 1rem;
  line-height: 1.6;
}

.dt-options {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.dt-option {
  display: block;
  width: 100%;
  padding: 1rem 1.25rem;
  background: var(--card-bg);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  text-align: left;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}

.dt-option:hover { border-color: var(--cyan); }

.dt-feedback {
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  margin-top: 1rem;
  font-size: 0.9rem;
}

.dt-feedback.correct { background: var(--success-light); border-left: 4px solid var(--success); }
.dt-feedback.incorrect { background: var(--error-light); border-left: 4px solid var(--error); }

/* --- Fill in the Blank --- */
.fib-blank {
  display: inline-block;
  min-width: 150px;
  padding: 0.25rem 0.5rem;
  border: none;
  border-bottom: 2px solid var(--cyan);
  background: transparent;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  text-align: center;
  transition: border-color 0.2s;
}

.fib-blank:focus {
  outline: none;
  border-bottom-color: var(--primary);
}

.fib-blank.correct { border-bottom-color: var(--success); background: var(--success-light); }
.fib-blank.incorrect { border-bottom-color: var(--error); background: var(--error-light); }

/* --- Matching --- */
.match-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  max-width: 600px;
  margin: 2rem auto;
}

.match-item {
  padding: 1rem;
  background: var(--card-bg);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  text-align: center;
  font-size: 0.9rem;
  transition: all 0.2s;
}

.match-item:hover { border-color: var(--cyan); }
.match-item.selected { border-color: var(--cyan); background: #EBF8FF; }
.match-item.matched { border-color: var(--success); background: var(--success-light); pointer-events: none; }
.match-item.wrong { border-color: var(--error); background: var(--error-light); }

/* --- True/False --- */
.tf-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1rem;
  box-shadow: var(--shadow);
}

.tf-statement {
  font-size: 1rem;
  margin-bottom: 1rem;
  line-height: 1.6;
}

.tf-buttons {
  display: flex;
  gap: 0.75rem;
}

.tf-btn {
  flex: 1;
  padding: 0.75rem;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  background: var(--card-bg);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.tf-btn:hover { border-color: var(--cyan); }
.tf-btn.correct { border-color: var(--success); background: var(--success-light); }
.tf-btn.incorrect { border-color: var(--error); background: var(--error-light); }

/* ===== LESSON NAV (prev/next) ===== */
.lesson-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: var(--max-width);
  margin: 3rem auto;
  padding: 0 1.5rem;
}

.lesson-nav a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--primary);
  background: var(--card-bg);
  box-shadow: var(--shadow);
  transition: all 0.2s;
}

.lesson-nav a:hover {
  box-shadow: var(--shadow-md);
  color: var(--cyan-dark);
}

.lesson-nav a.gated {
  opacity: 0.4;
  pointer-events: none;
}

.lesson-nav a.gated.unlocked {
  opacity: 1;
  pointer-events: auto;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--bg-darker);
  color: var(--text-on-dark);
  text-align: center;
  padding: 2.5rem 1.5rem;
  font-size: 0.85rem;
}

.footer a { color: var(--cyan); }
.footer a:hover { color: var(--cyan-light); }

.footer__brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.footer__brand img { height: 24px; }

/* ===== PRESENTATION SLIDES ===== */
.slides-container {
  position: fixed;
  inset: 0;
  background: var(--bg-darker);
  overflow: hidden;
}

.slide {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 4rem;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.slide.active {
  display: flex;
  opacity: 1;
}

.slide--title {
  background: linear-gradient(135deg, var(--primary) 0%, var(--bg-darker) 100%);
  text-align: center;
}

.slide--split {
  display: flex;
}

.slide--split .slide__image {
  width: 45%;
  height: 100%;
  object-fit: cover;
}

.slide--split .slide__content {
  width: 55%;
  padding: 4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.slide--dark {
  background: linear-gradient(135deg, var(--bg-darker) 0%, var(--primary) 100%);
  color: white;
}

.slide h1 {
  color: white;
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: 1.5rem;
}

.slide h2 {
  color: white;
  font-size: clamp(1.5rem, 3.5vw, 2.5rem);
  margin-bottom: 1.5rem;
}

.slide p { color: rgba(255,255,255,0.8); font-size: 1.25rem; }

.slide__bullets {
  list-style: none;
}

.slide__bullets li {
  color: rgba(255,255,255,0.9);
  font-size: clamp(1rem, 2.5vw, 1.375rem);
  padding: 0.5rem 0;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  opacity: 0;
  transform: translateX(-20px);
  transition: all 0.4s ease;
}

.slide__bullets li.visible {
  opacity: 1;
  transform: translateX(0);
}

.slide__bullets li i {
  color: var(--cyan);
  flex-shrink: 0;
  margin-top: 0.25rem;
}

.slide__stat {
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 800;
  color: var(--cyan);
  line-height: 1;
}

.slide-counter {
  position: fixed;
  bottom: 1.5rem;
  left: 1.5rem;
  color: rgba(255,255,255,0.5);
  font-size: 0.8rem;
  z-index: 100;
}

.slide-nav {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  display: flex;
  gap: 0.5rem;
  z-index: 100;
}

.slide-nav button {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: var(--radius-sm);
  background: rgba(0,0,0,0.3);
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.slide-nav button:hover { background: rgba(0,174,239,0.4); }

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeSlide {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}

.fade-in { animation: fadeIn 0.4s ease; }
.fade-slide { animation: fadeSlide 0.4s ease; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .nav__links { display: none; }
  .nav__links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--primary);
    padding: 1rem 1.5rem;
    gap: 0.75rem;
    box-shadow: var(--shadow-lg);
  }
  .nav__toggle { display: flex; }

  .hero { min-height: 60vh; }
  .hero__content h1 { font-size: clamp(1.5rem, 6vw, 2.5rem); }

  .card-grid { grid-template-columns: 1fr; }

  .lesson-card {
    grid-template-columns: 1fr;
  }
  .lesson-card__image { height: 200px; }

  .section { padding: 2.5rem 1rem; }

  .match-container { grid-template-columns: 1fr; }

  .slide { padding: 2rem; }
  .slide--split { flex-direction: column; }
  .slide--split .slide__image { width: 100%; height: 40%; }
  .slide--split .slide__content { width: 100%; padding: 2rem; }

  .stats-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .lesson-nav { flex-direction: column; gap: 1rem; }
}
