/* ============================================
   ComplianceReady — Southern Cross Safety Training
   Design System & Styles
   ============================================ */

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

/* --- Custom Properties --- */
:root {
  /* Palette */
  --navy: #1a2332;
  --navy-light: #243044;
  --navy-dark: #111827;
  --orange: #e65100;
  --orange-hover: #ff6d00;
  --orange-light: #fff3e0;
  --white: #ffffff;
  --grey-50: #f5f7fa;
  --grey-100: #e8ecf1;
  --grey-200: #d1d5db;
  --grey-300: #9ca3af;
  --grey-600: #666666;
  --grey-900: #333333;
  --success: #2e7d32;
  --success-light: #e8f5e9;
  --amber: #f57c00;
  --amber-light: #fff8e1;
  --danger: #c62828;
  --danger-light: #ffebee;

  /* Typography */
  --font-heading: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'Roboto Mono', 'SF Mono', 'Cascadia Code', monospace;

  /* Spacing (8px grid) */
  --sp-1: 0.25rem;  /* 4px */
  --sp-2: 0.5rem;   /* 8px */
  --sp-3: 0.75rem;  /* 12px */
  --sp-4: 1rem;     /* 16px */
  --sp-5: 1.25rem;  /* 20px */
  --sp-6: 1.5rem;   /* 24px */
  --sp-8: 2rem;     /* 32px */
  --sp-10: 2.5rem;  /* 40px */
  --sp-12: 3rem;    /* 48px */
  --sp-16: 4rem;    /* 64px */
  --sp-20: 5rem;    /* 80px */

  /* Layout */
  --max-width: 1200px;
  --header-height: 72px;

  /* Borders */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.12);

  /* Transitions */
  --transition: 150ms ease;
  --transition-slow: 300ms ease;
}

/* --- Base Typography --- */
html {
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  font-family: var(--font-body);
  color: var(--grey-900);
  line-height: 1.6;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--navy);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; }

p { margin-bottom: var(--sp-4); }
p:last-child { margin-bottom: 0; }

a {
  color: var(--orange);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover { color: var(--orange-hover); }

code, .mono {
  font-family: var(--font-mono);
  font-size: 0.9em;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* --- Layout --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--sp-6);
}

.section {
  padding: var(--sp-16) 0;
}

.section--grey {
  background: var(--grey-50);
}

.section--navy {
  background: var(--navy);
  color: var(--white);
}

.section--navy h2,
.section--navy h3,
.section--navy h4 {
  color: var(--white);
}

.section__header {
  text-align: center;
  margin-bottom: var(--sp-12);
}

.section__header p {
  color: var(--grey-600);
  font-size: 1.1rem;
  max-width: 600px;
  margin: var(--sp-4) auto 0;
}

/* --- Grid --- */
.grid {
  display: grid;
  gap: var(--sp-8);
}

.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--5 { grid-template-columns: repeat(5, 1fr); }

@media (max-width: 1024px) {
  .grid--4, .grid--5 { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  .grid--2, .grid--3, .grid--4, .grid--5 {
    grid-template-columns: 1fr;
  }
}

/* --- Demo Banner --- */
.demo-banner {
  background: var(--orange);
  color: #fff;
  text-align: center;
  padding: 10px 24px;
  font-size: 0.85rem;
  font-weight: 500;
  line-height: 1.4;
}

.demo-banner a {
  color: #fff;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.demo-banner a:hover {
  color: var(--navy);
}

/* --- Header / Navigation --- */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  border-bottom: 1px solid var(--grey-100);
  height: var(--header-height);
  transition: box-shadow var(--transition);
}

.header--scrolled {
  box-shadow: var(--shadow-md);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--sp-6);
}

.header__logo {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  text-decoration: none;
  color: var(--navy);
  flex-shrink: 0;
}

.header__logo-icon {
  width: 40px;
  height: 40px;
  background: var(--orange);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.header__logo-icon svg {
  width: 24px;
  height: 24px;
  fill: var(--white);
}

.header__logo-text {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  line-height: 1.2;
}

.header__logo-text small {
  display: block;
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--grey-600);
  letter-spacing: 0.5px;
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--sp-8);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--sp-6);
  list-style: none;
}

.nav__link {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--grey-900);
  text-decoration: none;
  transition: color var(--transition);
  white-space: nowrap;
}

.nav__link:hover,
.nav__link--active {
  color: var(--orange);
}

/* Hide mobile-only Book Now in desktop nav — needs .nav prefix for specificity over .btn */
.nav .btn--mobile {
  display: none;
}

/* Mobile Menu Toggle */
.nav__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--sp-2);
  color: var(--navy);
}

.nav__toggle svg {
  width: 28px;
  height: 28px;
}

/* Mobile Nav */
@media (max-width: 900px) {
  .nav__links {
    display: none;
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    padding: var(--sp-6);
    gap: 0;
    overflow-y: auto;
    border-top: 1px solid var(--grey-100);
  }

  .nav__links--open {
    display: flex;
  }

  .nav__link {
    display: block;
    padding: var(--sp-4) 0;
    font-size: 1.1rem;
    border-bottom: 1px solid var(--grey-100);
  }

  .nav__toggle {
    display: block;
  }

  .nav .btn {
    display: none;
  }

  .nav__links .btn--mobile {
    display: inline-flex;
    margin-top: var(--sp-4);
  }
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-6);
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
  line-height: 1.4;
}

.btn--primary {
  background: var(--orange);
  color: var(--white);
  border-color: var(--orange);
}

.btn--primary:hover {
  background: var(--orange-hover);
  border-color: var(--orange-hover);
  color: var(--white);
}

.btn--secondary {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}

.btn--secondary:hover {
  background: var(--navy);
  color: var(--white);
}

.btn--white {
  background: var(--white);
  color: var(--navy);
  border-color: var(--white);
}

.btn--white:hover {
  background: var(--grey-50);
  border-color: var(--grey-50);
  color: var(--navy);
}

.btn--ghost {
  background: transparent;
  color: var(--orange);
  border-color: transparent;
  padding-left: 0;
  padding-right: 0;
}

.btn--ghost:hover {
  color: var(--orange-hover);
}

.btn--sm {
  padding: var(--sp-2) var(--sp-4);
  font-size: 0.85rem;
}

.btn--lg {
  padding: var(--sp-4) var(--sp-8);
  font-size: 1.05rem;
}

.btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* --- Cards --- */
.card {
  background: var(--white);
  border: 1px solid var(--grey-100);
  border-radius: var(--radius-lg);
  padding: var(--sp-8);
  transition: all var(--transition);
}

.card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--grey-200);
}

.card--link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.card__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--sp-4);
}

.card__icon--orange {
  background: var(--orange-light);
  color: var(--orange);
}

.card__icon--navy {
  background: var(--navy);
  color: var(--white);
}

.card__icon svg {
  width: 24px;
  height: 24px;
}

.card h3 {
  margin-bottom: var(--sp-2);
}

.card p {
  color: var(--grey-600);
  font-size: 0.95rem;
}

/* --- Hero --- */
.hero {
  background: var(--navy);
  color: var(--white);
  padding: var(--sp-20) 0 var(--sp-16);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 60%;
  height: 200%;
  background: radial-gradient(ellipse, rgba(230, 81, 0, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero__content {
  position: relative;
  max-width: 700px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 100px;
  padding: var(--sp-2) var(--sp-4);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  margin-bottom: var(--sp-6);
  color: rgba(255, 255, 255, 0.9);
}

.hero__badge svg {
  width: 16px;
  height: 16px;
  fill: var(--orange);
}

.hero h1 {
  color: var(--white);
  font-size: 3rem;
  margin-bottom: var(--sp-6);
  letter-spacing: -0.5px;
}

.hero p {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: var(--sp-8);
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  gap: var(--sp-4);
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .hero {
    padding: var(--sp-12) 0;
  }
  .hero h1 {
    font-size: 2rem;
  }
  .hero p {
    font-size: 1.05rem;
  }
}

/* --- Upcoming Courses --- */
.course-preview {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-6);
}

.course-preview__card {
  background: var(--white);
  border: 1px solid var(--grey-100);
  border-radius: var(--radius-lg);
  padding: var(--sp-6);
  display: flex;
  flex-direction: column;
  transition: all var(--transition);
}

.course-preview__card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--grey-200);
}

.course-preview__meta {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  margin-bottom: var(--sp-4);
  font-size: 0.85rem;
  color: var(--grey-600);
}

.course-preview__meta span {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
}

.course-preview__meta svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.course-preview__card h3 {
  font-size: 1.15rem;
  margin-bottom: var(--sp-2);
}

.course-preview__card .mono {
  color: var(--grey-600);
  font-size: 0.8rem;
  margin-bottom: var(--sp-3);
}

.course-preview__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: var(--sp-4);
  border-top: 1px solid var(--grey-100);
}

.course-preview__price {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--navy);
}

/* Availability Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  padding: var(--sp-1) var(--sp-3);
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}

.badge--available {
  background: var(--success-light);
  color: var(--success);
}

.badge--low {
  background: var(--amber-light);
  color: var(--amber);
}

.badge--full {
  background: var(--danger-light);
  color: var(--danger);
}

/* --- Trust Strip --- */
.trust-strip {
  background: var(--grey-50);
  border-top: 1px solid var(--grey-100);
  border-bottom: 1px solid var(--grey-100);
  padding: var(--sp-8) 0;
}

.trust-strip__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-12);
  flex-wrap: wrap;
}

.trust-strip__item {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  color: var(--grey-600);
  font-size: 0.9rem;
  font-weight: 500;
}

.trust-strip__item svg {
  width: 24px;
  height: 24px;
  color: var(--navy);
}

.trust-strip__item strong {
  color: var(--navy);
}

/* --- Course Categories --- */
.category-card {
  background: var(--white);
  border: 1px solid var(--grey-100);
  border-radius: var(--radius-lg);
  padding: var(--sp-6);
  text-align: center;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-3);
  transition: all var(--transition);
}

.category-card:hover {
  border-color: var(--orange);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  color: inherit;
}

.category-card__icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-lg);
  background: var(--orange-light);
  color: var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
}

.category-card__icon svg {
  width: 28px;
  height: 28px;
}

.category-card h3 {
  font-size: 1rem;
  color: var(--navy);
}

.category-card p {
  font-size: 0.85rem;
  color: var(--grey-600);
  margin: 0;
}

@media (max-width: 768px) {
  .course-preview {
    grid-template-columns: 1fr;
  }
}

/* --- Value Props --- */
.value-prop {
  text-align: center;
  padding: var(--sp-6);
}

.value-prop__icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--orange-light);
  color: var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--sp-5);
}

.value-prop__icon svg {
  width: 32px;
  height: 32px;
}

.value-prop h3 {
  margin-bottom: var(--sp-3);
  font-size: 1.15rem;
}

.value-prop p {
  color: var(--grey-600);
  font-size: 0.95rem;
}

/* --- Testimonials --- */
.testimonial-card {
  background: var(--white);
  border: 1px solid var(--grey-100);
  border-radius: var(--radius-lg);
  padding: var(--sp-8);
}

.testimonial-card__stars {
  display: flex;
  gap: 2px;
  margin-bottom: var(--sp-4);
  color: var(--amber);
}

.testimonial-card__stars svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.testimonial-card blockquote {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--grey-900);
  margin-bottom: var(--sp-4);
  font-style: normal;
}

.testimonial-card__author {
  font-size: 0.85rem;
  color: var(--grey-600);
}

.testimonial-card__author strong {
  color: var(--navy);
}

/* --- Employer CTA Banner --- */
.cta-banner {
  background: var(--navy);
  border-radius: var(--radius-xl);
  padding: var(--sp-12) var(--sp-8);
  text-align: center;
  color: var(--white);
}

.cta-banner h2 {
  color: var(--white);
  margin-bottom: var(--sp-4);
}

.cta-banner p {
  color: rgba(255, 255, 255, 0.75);
  max-width: 500px;
  margin: 0 auto var(--sp-8);
  font-size: 1.05rem;
}

/* --- Footer --- */
.footer {
  background: var(--navy-dark);
  color: rgba(255, 255, 255, 0.7);
  padding: var(--sp-16) 0 var(--sp-8);
}

.footer__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-8);
  margin-bottom: var(--sp-12);
}

.footer__brand p {
  font-size: 0.9rem;
  line-height: 1.7;
  margin-top: var(--sp-4);
  color: rgba(255, 255, 255, 0.6);
}

.footer h4 {
  color: var(--white);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: var(--sp-4);
}

.footer__links {
  list-style: none;
}

.footer__links li {
  margin-bottom: var(--sp-2);
}

.footer__links a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  transition: color var(--transition);
}

.footer__links a:hover {
  color: var(--white);
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--sp-8);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--sp-4);
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
}

.footer__bottom a {
  color: rgba(255, 255, 255, 0.4);
}

.footer__bottom a:hover {
  color: rgba(255, 255, 255, 0.8);
}

@media (max-width: 768px) {
  .footer__grid {
    grid-template-columns: 1fr;
    gap: var(--sp-8);
  }

  .footer__bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* --- Skip to Content (Accessibility) --- */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--sp-4);
  background: var(--orange);
  color: var(--white);
  padding: var(--sp-3) var(--sp-6);
  border-radius: var(--radius-md);
  font-weight: 600;
  z-index: 9999;
  transition: top var(--transition);
}

.skip-link:focus {
  top: var(--sp-4);
  color: var(--white);
}

/* --- Utilities --- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.text-center { text-align: center; }
.text-orange { color: var(--orange); }
.text-navy { color: var(--navy); }
.text-muted { color: var(--grey-600); }
.mt-4 { margin-top: var(--sp-4); }
.mt-8 { margin-top: var(--sp-8); }
.mb-4 { margin-bottom: var(--sp-4); }
.mb-8 { margin-bottom: var(--sp-8); }

/* ============================================
   Session 2 — Course System Styles
   ============================================ */

/* --- Page Hero (Inner Pages) --- */
.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: var(--white);
  padding: var(--sp-12) 0;
}

.page-hero h1 {
  color: var(--white);
  margin-bottom: var(--sp-3);
}

.page-hero p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.1rem;
  max-width: 600px;
}

/* --- Filter Bar --- */
.filters {
  background: var(--white);
  border: 1px solid var(--grey-100);
  border-radius: var(--radius-lg);
  padding: var(--sp-6);
  display: flex;
  align-items: flex-end;
  gap: var(--sp-4);
  flex-wrap: wrap;
  margin-bottom: var(--sp-8);
  box-shadow: var(--shadow-sm);
}

.filter-group {
  flex: 1;
  min-width: 160px;
}

.filter-group label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--grey-600);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: var(--sp-2);
}

.filter-group select {
  width: 100%;
  padding: var(--sp-3) var(--sp-4);
  padding-right: var(--sp-10);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--grey-900);
  background: var(--white);
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
}

.filter-group select:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(230, 81, 0, 0.1);
}

.filters__count {
  font-size: 0.9rem;
  color: var(--grey-600);
  padding: var(--sp-3) 0;
  white-space: nowrap;
}

/* --- Catalogue Grid --- */
.catalogue-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: var(--sp-6);
}

.catalogue-card {
  background: var(--white);
  border: 1px solid var(--grey-100);
  border-radius: var(--radius-lg);
  padding: var(--sp-6);
  display: flex;
  flex-direction: column;
  transition: all var(--transition);
}

.catalogue-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--grey-200);
}

.catalogue-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--sp-3);
}

.catalogue-card__code {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--grey-600);
}

.catalogue-card h3 {
  font-size: 1.15rem;
  margin-bottom: var(--sp-4);
}

.catalogue-card h3 a {
  color: var(--navy);
  text-decoration: none;
}

.catalogue-card h3 a:hover {
  color: var(--orange);
}

.catalogue-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4);
  font-size: 0.85rem;
  color: var(--grey-600);
  margin-bottom: var(--sp-4);
}

.catalogue-card__meta span {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
}

.catalogue-card__meta svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.catalogue-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: var(--sp-4);
  border-top: 1px solid var(--grey-100);
}

.catalogue-card__price {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--navy);
}

.catalogue-empty {
  text-align: center;
  padding: var(--sp-16) var(--sp-8);
  color: var(--grey-600);
}

.catalogue-empty h3 {
  color: var(--grey-600);
  margin-bottom: var(--sp-3);
}

/* --- Course Detail Page --- */
.course-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: var(--white);
  padding: var(--sp-12) 0;
}

.course-hero .mono {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  margin-bottom: var(--sp-2);
}

.course-hero h1 {
  color: var(--white);
  font-size: 2.25rem;
  margin-bottom: var(--sp-3);
}

.course-hero p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.05rem;
  max-width: 700px;
}

.course-quick-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--sp-4);
  margin-top: var(--sp-8);
}

.course-quick-fact {
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: var(--sp-4);
}

.course-quick-fact__label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: var(--sp-1);
}

.course-quick-fact__value {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  color: var(--white);
}

/* Course content layout */
.course-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: var(--sp-10);
  align-items: start;
}

.course-sidebar {
  position: sticky;
  top: calc(var(--header-height) + var(--sp-6));
}

/* Session cards */
.session-cards {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}

.session-card {
  background: var(--white);
  border: 1px solid var(--grey-100);
  border-radius: var(--radius-lg);
  padding: var(--sp-5);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--sp-4);
  align-items: center;
  transition: all var(--transition);
}

.session-card:hover {
  border-color: var(--grey-200);
  box-shadow: var(--shadow-sm);
}

.session-card__info {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4);
  font-size: 0.9rem;
}

.session-card__info span {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  color: var(--grey-600);
}

.session-card__info svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.session-card__info .session-date {
  font-weight: 600;
  color: var(--navy);
}

.session-card__actions {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}

/* Course content sections */
.course-section {
  margin-bottom: var(--sp-10);
}

.course-section h2 {
  font-size: 1.5rem;
  margin-bottom: var(--sp-6);
  padding-bottom: var(--sp-3);
  border-bottom: 2px solid var(--grey-100);
}

.course-section ul {
  list-style: none;
  padding: 0;
}

.course-section ul li {
  padding: var(--sp-3) 0;
  border-bottom: 1px solid var(--grey-100);
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  color: var(--grey-900);
}

.course-section ul li:last-child {
  border-bottom: none;
}

.course-section ul li svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--success);
  margin-top: 2px;
}

/* --- FAQ Accordion --- */
.faq__item {
  border: 1px solid var(--grey-100);
  border-radius: var(--radius-md);
  margin-bottom: var(--sp-3);
  overflow: hidden;
}

.faq__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: var(--sp-5) var(--sp-6);
  background: var(--white);
  border: none;
  cursor: pointer;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy);
  text-align: left;
  transition: background var(--transition);
}

.faq__question:hover {
  background: var(--grey-50);
}

.faq__question svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  transition: transform var(--transition-slow);
  color: var(--grey-300);
}

.faq__item--open .faq__question svg {
  transform: rotate(180deg);
}

.faq__answer {
  display: none;
  padding: 0 var(--sp-6) var(--sp-6);
  color: var(--grey-600);
  line-height: 1.7;
}

.faq__item--open .faq__answer {
  display: block;
}

/* Related courses */
.related-courses {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: var(--sp-4);
}

.related-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--white);
  border: 1px solid var(--grey-100);
  border-radius: var(--radius-lg);
  padding: var(--sp-5);
  transition: all var(--transition);
}

.related-card:hover {
  border-color: var(--orange);
  box-shadow: var(--shadow-md);
  color: inherit;
}

.related-card .mono {
  font-size: 0.75rem;
  color: var(--grey-600);
  margin-bottom: var(--sp-2);
}

.related-card h4 {
  font-size: 1rem;
  margin-bottom: var(--sp-2);
}

.related-card p {
  font-size: 0.85rem;
  color: var(--grey-600);
  margin: 0;
}

/* --- Session 2 Responsive --- */
@media (max-width: 900px) {
  .course-layout {
    grid-template-columns: 1fr;
  }

  .course-sidebar {
    position: static;
  }
}

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

  .filters {
    flex-direction: column;
    align-items: stretch;
  }

  .filter-group {
    min-width: 0;
  }

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

  .course-hero h1 {
    font-size: 1.75rem;
  }

  .course-quick-facts {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ============================================
   Session 3 — Compliance Features Styles
   ============================================ */

/* --- Handbook: Audit Defence Statement --- */
.handbook-defence {
  background: var(--success-light);
  border: 1px solid var(--success);
  border-left: 4px solid var(--success);
  border-radius: var(--radius-md);
  padding: var(--sp-6);
  margin-bottom: var(--sp-10);
  display: flex;
  gap: var(--sp-4);
  align-items: flex-start;
}

.handbook-defence svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  color: var(--success);
  margin-top: 2px;
}

.handbook-defence p {
  font-size: 0.95rem;
  color: var(--grey-900);
  line-height: 1.7;
  margin: 0;
}

.handbook-defence strong {
  color: var(--success);
}

/* --- Handbook: Layout --- */
.handbook-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: var(--sp-10);
  align-items: start;
}

/* --- Handbook: Table of Contents --- */
.handbook-toc {
  position: sticky;
  top: calc(var(--header-height) + var(--sp-6));
}

.handbook-toc h2 {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--grey-600);
  margin-bottom: var(--sp-4);
  padding-bottom: var(--sp-3);
  border-bottom: 2px solid var(--grey-100);
}

.handbook-toc__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.handbook-toc__list li {
  margin-bottom: var(--sp-1);
}

.handbook-toc__list a {
  display: block;
  padding: var(--sp-2) var(--sp-3);
  font-size: 0.85rem;
  color: var(--grey-600);
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: all var(--transition);
  line-height: 1.4;
}

.handbook-toc__list a:hover {
  color: var(--orange);
  background: var(--orange-light);
}

.handbook-toc__print {
  margin-top: var(--sp-6);
  padding-top: var(--sp-4);
  border-top: 1px solid var(--grey-100);
}

.handbook-toc__print .btn {
  width: 100%;
  font-size: 0.85rem;
}

/* --- Handbook: Sections --- */
.handbook-section {
  padding-bottom: var(--sp-10);
  margin-bottom: var(--sp-10);
  border-bottom: 1px solid var(--grey-100);
}

.handbook-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.handbook-section__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--sp-4);
  margin-bottom: var(--sp-6);
  flex-wrap: wrap;
}

.handbook-section__header h2 {
  font-size: 1.5rem;
  margin: 0;
}

.handbook-section__timestamp {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: 0.8rem;
  color: var(--grey-300);
  background: var(--grey-50);
  padding: var(--sp-1) var(--sp-3);
  border-radius: 100px;
  white-space: nowrap;
  flex-shrink: 0;
}

.handbook-section__timestamp svg {
  width: 14px;
  height: 14px;
}

/* --- Handbook: Content Typography --- */
.handbook-content h3 {
  font-size: 1.15rem;
  margin-top: var(--sp-6);
  margin-bottom: var(--sp-3);
  color: var(--navy);
}

.handbook-content h3:first-child {
  margin-top: 0;
}

.handbook-content p {
  line-height: 1.7;
  color: var(--grey-900);
}

.handbook-content ul,
.handbook-content ol {
  margin-bottom: var(--sp-4);
  padding-left: var(--sp-6);
}

.handbook-content ul li,
.handbook-content ol li {
  padding: var(--sp-1) 0;
  line-height: 1.6;
  color: var(--grey-900);
}

.handbook-content table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--sp-4) 0;
  font-size: 0.9rem;
}

.handbook-content table th,
.handbook-content table td {
  text-align: left;
  padding: var(--sp-3) var(--sp-4);
  border-bottom: 1px solid var(--grey-100);
}

.handbook-content table th {
  background: var(--grey-50);
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--navy);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.handbook-content table td {
  color: var(--grey-900);
}

.handbook-content table tbody tr:hover {
  background: var(--grey-50);
}

.handbook-content a {
  color: var(--orange);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* --- Handbook: Version History --- */
.handbook-version-history {
  background: var(--grey-50);
  border-radius: var(--radius-lg);
  padding: var(--sp-8);
  margin-top: var(--sp-12);
}

.handbook-version-history h2 {
  font-size: 1.25rem;
  margin-bottom: var(--sp-6);
}

.version-history__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.version-history__item {
  display: grid;
  grid-template-columns: 80px 120px 1fr;
  gap: var(--sp-4);
  padding: var(--sp-3) 0;
  border-bottom: 1px solid var(--grey-200);
  font-size: 0.9rem;
  align-items: baseline;
}

.version-history__item:last-child {
  border-bottom: none;
}

.version-history__version {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--navy);
}

.version-history__date {
  color: var(--grey-600);
  font-size: 0.85rem;
}

.version-history__notes {
  color: var(--grey-900);
}

/* --- Policies Hub: Grid --- */
.policies-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--sp-6);
}

.policy-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--white);
  border: 1px solid var(--grey-100);
  border-radius: var(--radius-lg);
  padding: var(--sp-6);
  transition: all var(--transition);
}

.policy-card:hover {
  border-color: var(--orange);
  box-shadow: var(--shadow-md);
  color: inherit;
  transform: translateY(-2px);
}

.policy-card__icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--orange-light);
  color: var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--sp-4);
}

.policy-card__icon svg {
  width: 22px;
  height: 22px;
}

.policy-card h3 {
  font-size: 1.1rem;
  margin-bottom: var(--sp-2);
  color: var(--navy);
}

.policy-card p {
  font-size: 0.9rem;
  color: var(--grey-600);
  margin-bottom: var(--sp-4);
  line-height: 1.6;
}

.policy-card__meta {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  font-size: 0.8rem;
  color: var(--grey-300);
  padding-top: var(--sp-3);
  border-top: 1px solid var(--grey-100);
}

.policy-card__meta span {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
}

.policy-card__meta svg {
  width: 14px;
  height: 14px;
}

/* --- Individual Policy Page --- */
.policy-meta {
  display: flex;
  align-items: center;
  gap: var(--sp-6);
  margin-bottom: var(--sp-8);
  flex-wrap: wrap;
}

.policy-meta__item {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: 0.85rem;
  color: var(--grey-600);
}

.policy-meta__item svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.policy-meta__item strong {
  color: var(--navy);
}

.policy-back {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: 0.9rem;
  color: var(--orange);
  margin-bottom: var(--sp-6);
}

.policy-back svg {
  width: 16px;
  height: 16px;
}

.policy-back:hover {
  color: var(--orange-hover);
}

/* Policy content reuses .handbook-content styles */
.policy-content h2 {
  display: none; /* Hide the h2 from content — already in hero */
}

.policy-content h3 {
  font-size: 1.15rem;
  margin-top: var(--sp-8);
  margin-bottom: var(--sp-3);
  color: var(--navy);
}

.policy-content h3:first-child,
.policy-content h2 + h3 {
  margin-top: 0;
}

.policy-content p {
  line-height: 1.7;
  color: var(--grey-900);
}

.policy-content ul,
.policy-content ol {
  margin-bottom: var(--sp-4);
  padding-left: var(--sp-6);
}

.policy-content ul li,
.policy-content ol li {
  padding: var(--sp-1) 0;
  line-height: 1.6;
  color: var(--grey-900);
}

.policy-content table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--sp-4) 0;
  font-size: 0.9rem;
}

.policy-content table th,
.policy-content table td {
  text-align: left;
  padding: var(--sp-3) var(--sp-4);
  border-bottom: 1px solid var(--grey-100);
}

.policy-content table th {
  background: var(--grey-50);
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--navy);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.policy-content table td {
  color: var(--grey-900);
}

.policy-content a {
  color: var(--orange);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* --- Session 3 Responsive --- */
@media (max-width: 900px) {
  .handbook-layout {
    grid-template-columns: 1fr;
  }

  .handbook-toc {
    position: static;
    border-bottom: 1px solid var(--grey-100);
    padding-bottom: var(--sp-6);
    margin-bottom: var(--sp-6);
  }
}

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

  .handbook-section__header {
    flex-direction: column;
    gap: var(--sp-2);
  }

  .version-history__item {
    grid-template-columns: 1fr;
    gap: var(--sp-1);
  }

  .policy-meta {
    flex-direction: column;
    gap: var(--sp-2);
  }
}

/* ============================================
   Session 4 — Forms + Interactive Styles
   ============================================ */

/* --- Footer demo notice --- */
.footer__demo-notice {
  color: var(--orange);
  font-weight: 600;
  letter-spacing: 0.3px;
}

.footer__links li {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
}

/* --- Shared Form Styles --- */
.form-group {
  margin-bottom: var(--sp-6);
}

.form-group label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: var(--sp-2);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="date"],
.form-group select,
.form-group textarea {
  width: 100%;
  padding: var(--sp-3) var(--sp-4);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--grey-900);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(230, 81, 0, 0.1);
}

.form-group input.is-invalid,
.form-group select.is-invalid {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(198, 40, 40, 0.08);
}

.form-group input.is-valid {
  border-color: var(--success);
}

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  padding-right: var(--sp-10);
  cursor: pointer;
}

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

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-4);
}

.form-error {
  display: block;
  font-size: 0.8rem;
  color: var(--danger);
  margin-top: var(--sp-1);
  min-height: 1.2em;
}

.form-help {
  font-size: 0.85rem;
  color: var(--grey-600);
  margin-top: var(--sp-2);
}

.form-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: var(--sp-8);
  padding-top: var(--sp-6);
  border-top: 1px solid var(--grey-100);
}

.required {
  color: var(--danger);
}

/* --- Enrol: Progress Bar --- */
.form-progress {
  display: flex;
  justify-content: space-between;
  margin-bottom: var(--sp-10);
  position: relative;
}

.form-progress::before {
  content: '';
  position: absolute;
  top: 18px;
  left: 24px;
  right: 24px;
  height: 2px;
  background: var(--grey-200);
  z-index: 0;
}

.form-progress__step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-2);
  position: relative;
  z-index: 1;
}

.form-progress__num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--grey-100);
  color: var(--grey-300);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  transition: all var(--transition-slow);
}

.form-progress__label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--grey-300);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: color var(--transition-slow);
}

.form-progress__step--active .form-progress__num {
  background: var(--orange);
  color: var(--white);
}

.form-progress__step--active .form-progress__label {
  color: var(--orange);
}

.form-progress__step--done .form-progress__num {
  background: var(--success);
  color: var(--white);
}

.form-progress__step--done .form-progress__label {
  color: var(--success);
}

/* --- Enrol: Form Steps --- */
.form-step {
  display: none;
}

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

.form-step h2 {
  font-size: 1.5rem;
  margin-bottom: var(--sp-2);
}

.form-step > .text-muted {
  margin-bottom: var(--sp-8);
}

/* --- Enrol: USI Input --- */
.usi-input-wrap {
  position: relative;
}

.usi-status {
  position: absolute;
  right: var(--sp-4);
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.2rem;
}

.usi-check-result {
  background: var(--grey-50);
  border-radius: var(--radius-md);
  padding: var(--sp-4) var(--sp-5);
  margin-top: var(--sp-4);
}

.usi-checking,
.usi-valid,
.usi-invalid {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  font-size: 0.9rem;
}

.usi-checking { color: var(--grey-600); }
.usi-valid { color: var(--success); }
.usi-valid svg { width: 20px; height: 20px; }
.usi-invalid { color: var(--danger); }
.usi-invalid svg { width: 20px; height: 20px; }

.spinner {
  width: 20px;
  height: 20px;
  border: 3px solid var(--grey-200);
  border-top-color: var(--orange);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* --- Enrol: LLN Self-Assessment --- */
.lln-questions {
  display: flex;
  flex-direction: column;
  gap: var(--sp-6);
}

.lln-question {
  background: var(--grey-50);
  border-radius: var(--radius-md);
  padding: var(--sp-5);
}

.lln-question p {
  margin-bottom: var(--sp-3);
}

.lln-options {
  display: flex;
  gap: var(--sp-6);
}

.lln-option {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  cursor: pointer;
  font-size: 0.95rem;
}

.lln-option input[type="radio"] {
  accent-color: var(--orange);
  width: 18px;
  height: 18px;
}

.lln-support-msg {
  display: flex;
  gap: var(--sp-4);
  align-items: flex-start;
  background: var(--amber-light);
  border: 1px solid var(--amber);
  border-left: 4px solid var(--amber);
  border-radius: var(--radius-md);
  padding: var(--sp-5);
  margin-top: var(--sp-6);
}

.lln-support-msg svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  color: var(--amber);
  margin-top: 2px;
}

.lln-support-msg p {
  font-size: 0.9rem;
  color: var(--grey-900);
  line-height: 1.6;
  margin: 0;
}

/* --- Enrol: Review & Consent --- */
.review-summary {
  background: var(--grey-50);
  border-radius: var(--radius-lg);
  padding: var(--sp-6);
  margin-bottom: var(--sp-8);
}

.review-section {
  margin-bottom: var(--sp-6);
}

.review-section:last-child {
  margin-bottom: 0;
}

.review-section h3 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--grey-600);
  margin-bottom: var(--sp-3);
  padding-bottom: var(--sp-2);
  border-bottom: 1px solid var(--grey-200);
}

.review-row {
  display: flex;
  justify-content: space-between;
  padding: var(--sp-2) 0;
  font-size: 0.9rem;
}

.review-row span:first-child {
  color: var(--grey-600);
}

.review-row span:last-child {
  font-weight: 600;
  color: var(--navy);
}

.consent-group {
  margin-bottom: var(--sp-6);
}

.consent-label {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  padding: var(--sp-3) 0;
  cursor: pointer;
  font-size: 0.95rem;
}

.consent-label input[type="checkbox"] {
  accent-color: var(--orange);
  width: 18px;
  height: 18px;
  margin-top: 2px;
  flex-shrink: 0;
}

/* --- Enrol: Confirmation --- */
.form-confirmation {
  text-align: center;
  padding: var(--sp-12) var(--sp-6);
}

.confirmation-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--success-light);
  color: var(--success);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--sp-6);
}

.confirmation-icon svg {
  width: 36px;
  height: 36px;
}

.form-confirmation h2 {
  margin-bottom: var(--sp-4);
}

.confirmation-ref {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  background: var(--grey-50);
  display: inline-block;
  padding: var(--sp-3) var(--sp-6);
  border-radius: var(--radius-md);
  margin-bottom: var(--sp-6);
}

.confirmation-actions {
  display: flex;
  gap: var(--sp-4);
  justify-content: center;
  margin-top: var(--sp-8);
}

/* --- Employer: Verification --- */
.verify-form-card {
  background: var(--white);
  border: 1px solid var(--grey-100);
  border-radius: var(--radius-lg);
  padding: var(--sp-8);
  box-shadow: var(--shadow-sm);
}

.verify-form-card h2 {
  font-size: 1.5rem;
  margin-bottom: var(--sp-2);
}

.verify-input-wrap {
  display: flex;
  gap: var(--sp-3);
}

.verify-input-wrap input {
  flex: 1;
  padding: var(--sp-3) var(--sp-4);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--grey-900);
}

.verify-input-wrap input:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(230, 81, 0, 0.1);
}

.verify-result {
  background: var(--success-light);
  border: 1px solid var(--success);
  border-radius: var(--radius-md);
  padding: var(--sp-6);
  margin-top: var(--sp-6);
}

.verify-result h3 {
  font-size: 1.1rem;
  color: var(--success);
  margin-bottom: var(--sp-4);
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}

.verify-result h3 svg {
  width: 20px;
  height: 20px;
}

.verify-result-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-3);
}

.verify-result-item {
  font-size: 0.9rem;
}

.verify-result-item strong {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--grey-600);
  margin-bottom: var(--sp-1);
}

.verify-no-result {
  background: var(--grey-50);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-md);
  padding: var(--sp-6);
  margin-top: var(--sp-6);
  text-align: center;
  color: var(--grey-600);
}

.verify-demo-hint {
  display: flex;
  gap: var(--sp-3);
  align-items: flex-start;
  background: var(--orange-light);
  border-radius: var(--radius-md);
  padding: var(--sp-5);
  margin-top: var(--sp-6);
  font-size: 0.85rem;
}

.verify-demo-hint svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--orange);
  margin-top: 2px;
}

.verify-demo-hint p {
  color: var(--grey-900);
  margin: 0;
  line-height: 1.6;
}

/* --- About: Stats --- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-6);
}

.stat-card {
  text-align: center;
  padding: var(--sp-8) var(--sp-4);
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.stat-card__number {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--orange);
  line-height: 1;
  margin-bottom: var(--sp-2);
}

.stat-card__label {
  font-size: 0.9rem;
  color: var(--grey-600);
  font-weight: 500;
}

/* --- About: Locations --- */
.location-card {
  background: var(--white);
  border: 1px solid var(--grey-100);
  border-radius: var(--radius-lg);
  padding: var(--sp-6);
  text-align: center;
}

.location-card__icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--orange-light);
  color: var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--sp-4);
}

.location-card__icon svg {
  width: 28px;
  height: 28px;
}

.location-card h3 {
  font-size: 1.15rem;
  margin-bottom: var(--sp-2);
}

/* --- About: Team --- */
.team-card {
  background: var(--white);
  border: 1px solid var(--grey-100);
  border-radius: var(--radius-lg);
  padding: var(--sp-6);
  text-align: center;
}

.team-card__avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--grey-50);
  color: var(--grey-300);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--sp-4);
}

.team-card__avatar svg {
  width: 40px;
  height: 40px;
}

.team-card h3 {
  font-size: 1.1rem;
  margin-bottom: var(--sp-1);
}

.team-card__role {
  font-size: 0.85rem;
  color: var(--orange);
  font-weight: 600;
  margin-bottom: var(--sp-3);
}

/* --- About: RTO Info --- */
.rto-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--grey-100);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-top: var(--sp-6);
}

.rto-info-item {
  display: flex;
  flex-direction: column;
  padding: var(--sp-4) var(--sp-5);
  border-bottom: 1px solid var(--grey-100);
  font-size: 0.9rem;
}

.rto-info-item:nth-child(odd) {
  border-right: 1px solid var(--grey-100);
}

.rto-info-item strong {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--grey-600);
  margin-bottom: var(--sp-1);
}

.rto-info-item span {
  color: var(--navy);
  font-weight: 500;
}

/* --- Contact: Layout --- */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: var(--sp-10);
  align-items: start;
}

.contact-form-col h2 {
  font-size: 1.5rem;
  margin-bottom: var(--sp-6);
}

.contact-form-success {
  text-align: center;
  padding: var(--sp-8);
  background: var(--success-light);
  border-radius: var(--radius-lg);
}

.contact-form-success svg {
  width: 48px;
  height: 48px;
  color: var(--success);
  margin-bottom: var(--sp-4);
}

.contact-form-success h3 {
  color: var(--success);
  margin-bottom: var(--sp-2);
}

.contact-details-col {
  display: flex;
  flex-direction: column;
  gap: var(--sp-6);
}

.contact-info-card {
  background: var(--grey-50);
  border-radius: var(--radius-lg);
  padding: var(--sp-6);
}

.contact-info-card h3 {
  font-size: 1.15rem;
  margin-bottom: var(--sp-4);
}

.contact-info-list {
  list-style: none;
}

.contact-info-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  padding: var(--sp-3) 0;
  border-bottom: 1px solid var(--grey-200);
  font-size: 0.9rem;
}

.contact-info-list li:last-child {
  border-bottom: none;
}

.contact-info-list svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--orange);
  margin-top: 2px;
}

.contact-locations h3 {
  font-size: 1.15rem;
  margin-bottom: var(--sp-4);
}

.contact-location {
  padding: var(--sp-4) 0;
  border-bottom: 1px solid var(--grey-100);
}

.contact-location:last-child {
  border-bottom: none;
}

.contact-location h4 {
  font-size: 1rem;
  margin-bottom: var(--sp-1);
}

.contact-location p {
  font-size: 0.9rem;
  color: var(--grey-600);
  margin: 0;
  line-height: 1.5;
}

/* --- Session 4 Responsive --- */
@media (max-width: 900px) {
  .contact-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .form-row {
    grid-template-columns: 1fr;
  }

  .form-progress__label {
    display: none;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .rto-info-grid {
    grid-template-columns: 1fr;
  }

  .rto-info-item:nth-child(odd) {
    border-right: none;
  }

  .verify-input-wrap {
    flex-direction: column;
  }

  .verify-result-grid {
    grid-template-columns: 1fr;
  }

  .lln-options {
    flex-direction: column;
    gap: var(--sp-3);
  }

  .confirmation-actions {
    flex-direction: column;
  }
}

/* --- Print Styles --- */
@media print {
  .header,
  .nav,
  .hero__actions,
  .btn,
  .footer,
  .handbook-toc,
  .handbook-toc__print,
  .course-sidebar,
  .cta-banner,
  .skip-link {
    display: none !important;
  }

  body {
    color: #000;
    font-size: 11pt;
    line-height: 1.5;
  }

  h1, h2, h3, h4, h5, h6 {
    color: #000;
    page-break-after: avoid;
  }

  .section {
    padding: 0.5cm 0;
  }

  .section--navy,
  .section--grey,
  .page-hero,
  .course-hero {
    background: transparent !important;
    color: #000 !important;
    padding: 0.5cm 0;
  }

  .page-hero h1,
  .page-hero p,
  .course-hero h1,
  .course-hero p,
  .course-hero .mono {
    color: #000 !important;
  }

  /* Handbook print layout */
  .handbook-layout {
    display: block;
  }

  .handbook-defence {
    border: 1px solid #999;
    background: transparent;
    margin-bottom: 1cm;
  }

  .handbook-section {
    page-break-inside: avoid;
    page-break-before: auto;
    border-bottom: 1px solid #ccc;
  }

  .handbook-section__timestamp {
    background: transparent;
    border: 1px solid #ccc;
  }

  .handbook-version-history {
    background: transparent;
    border: 1px solid #ccc;
    page-break-before: always;
  }

  .handbook-content table th,
  .policy-content table th {
    background: #f0f0f0;
  }

  .handbook-content table,
  .policy-content table {
    page-break-inside: avoid;
  }

  /* Policy print */
  .policy-meta {
    margin-bottom: 0.5cm;
  }

  .policy-back {
    display: none !important;
  }

  a {
    color: #000;
    text-decoration: underline;
  }

  a[href]:after {
    content: " (" attr(href) ")";
    font-size: 0.8em;
    color: #666;
  }

  /* Don't show URLs for internal links */
  a[href^="/"]:after,
  a[href^="#"]:after {
    content: "";
  }
}

/* ============================================
   Session 5 — Accessibility (WCAG 2.1 AA)
   ============================================ */

/* Focus-visible indicators for all interactive elements */
a:focus-visible,
.btn:focus-visible,
.nav__link:focus-visible,
.nav__toggle:focus-visible,
.faq__question:focus-visible,
.policy-card:focus-visible,
.category-card:focus-visible,
.related-card:focus-visible,
.catalogue-card h3 a:focus-visible,
.course-preview__card:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}

/* Ensure focus ring is visible on dark backgrounds */
.hero a:focus-visible,
.section--navy a:focus-visible,
.footer a:focus-visible,
.cta-banner a:focus-visible,
.skip-link:focus-visible {
  outline-color: var(--white);
}

/* Fix: grey-300 (#9ca3af) fails 4.5:1 contrast — use grey-600 */
.handbook-section__timestamp {
  color: var(--grey-600);
}

.policy-card__meta {
  color: var(--grey-600);
}

.form-progress__num {
  color: var(--grey-600);
}

.form-progress__label {
  color: var(--grey-600);
}

.faq__question svg {
  color: var(--grey-600);
}

/* Preserve active/done state overrides */
.form-progress__step--active .form-progress__num {
  color: var(--white);
}

.form-progress__step--done .form-progress__num {
  color: var(--white);
}

.form-progress__step--active .form-progress__label {
  color: var(--orange);
}

.form-progress__step--done .form-progress__label {
  color: var(--success);
}

/* Fix: amber badge text (#f57c00) fails 4.5:1 on cream (#fff8e1) — darken to 4.76:1 */
.badge--low {
  color: #b45309;
}
