:root {
  --navy: #031b2f;
  --navy-2: #082742;
  --navy-3: #0f3556;
  --gold: #d9a62e;
  --gold-soft: #f0d18a;
  --white: #ffffff;
  --light: #f5f7fa;
  --text: #0b1c2c;
  --muted: #a8b6c5;
  --shadow: 0 20px 45px rgba(0, 0, 0, 0.22);
  --radius: 24px;
  --max: 1240px;
  --transition: 0.35s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  background:
    linear-gradient(135deg, var(--navy-2), var(--navy));
  color: var(--white);
  line-height: 1.6;
}

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

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

button {
  font: inherit;
  border: none;
  cursor: pointer;
}

.container {
  width: min(92%, var(--max));
  margin: 0 auto;
}

/* =========================================================
   WELCOME INTRO
   ========================================================= */

.welcome-intro {
  position: fixed;
  inset: 0;
  z-index: 9999;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 50% 35%, rgba(30, 109, 171, 0.18), transparent 280px),
    linear-gradient(135deg, #010912 0%, #041a2f 45%, #010912 100%);
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

.welcome-intro.hide {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.intro-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(131, 180, 224, 0.10) 1px, transparent 1px),
    linear-gradient(90deg, rgba(131, 180, 224, 0.10) 1px, transparent 1px);
  background-size: 70px 70px;
  opacity: 0.55;
}

.intro-stars {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 14% 23%, rgba(255,255,255,0.8) 1px, transparent 2px),
    radial-gradient(circle at 31% 68%, rgba(255,255,255,0.5) 1px, transparent 2px),
    radial-gradient(circle at 52% 19%, rgba(255,255,255,0.75) 1px, transparent 2px),
    radial-gradient(circle at 78% 32%, rgba(255,255,255,0.55) 1px, transparent 2px),
    radial-gradient(circle at 86% 72%, rgba(255,255,255,0.7) 1px, transparent 2px),
    radial-gradient(circle at 62% 80%, rgba(255,255,255,0.45) 1px, transparent 2px);
  opacity: 0.55;
}

.intro-scan-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    110deg,
    transparent 0%,
    transparent 42%,
    rgba(215, 166, 44, 0.08) 48%,
    rgba(72, 162, 232, 0.10) 50%,
    transparent 56%,
    transparent 100%
  );
  animation: introOverlayMove 3.6s linear infinite alternate;
}

.intro-satellite {
  position: absolute;
  top: 18%;
  left: -340px;
  width: 260px;
  z-index: 5;
  filter:
    drop-shadow(0 10px 18px rgba(0, 0, 0, 0.45))
    drop-shadow(0 0 20px rgba(118, 191, 255, 0.18));
  animation: satelliteSweep 2.8s ease-in-out 0.3s forwards;
}

.intro-centre {
  position: relative;
  z-index: 6;
  width: min(92%, 860px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 18px;
  padding: 20px;
}

.intro-logo-wrap {
  opacity: 0;
  transform: translateY(18px) scale(0.88);
  animation: introLogoReveal 1.1s ease 2s forwards;
}

.intro-logo {
  width: clamp(150px, 17vw, 220px);
  background: rgba(255, 255, 255, 0.96);
  padding: 14px;
  border-radius: 26px;
  box-shadow: 0 20px 38px rgba(0, 0, 0, 0.34);
}

.intro-text {
  opacity: 0;
  transform: translateY(20px);
  animation: introTextReveal 1.1s ease 3s forwards;
}

.intro-text h1 {
  margin: 0 0 10px;
  color: #ffffff;
  font-size: clamp(2rem, 5vw, 4.5rem);
  line-height: 1.05;
  text-shadow: 0 8px 24px rgba(0, 0, 0, 0.55);
}

.intro-text p {
  margin: 0;
  color: #f0d67b;
  font-weight: 700;
  font-size: clamp(1rem, 2vw, 1.35rem);
  text-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
}

.intro-enter {
  opacity: 0;
  transform: translateY(12px);
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid rgba(240, 209, 138, 0.58);
  background: rgba(3, 27, 47, 0.72);
  color: #ffffff;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(8px);
  animation: introButtonReveal 0.8s ease 4.2s forwards;
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.intro-enter:hover {
  transform: translateY(-2px);
  background: rgba(15, 53, 86, 0.92);
  border-color: var(--gold-soft);
}

/* =========================================================
   HEADER
   ========================================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(3, 22, 37, 0.90);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand img {
  width: 82px;
  height: 82px;
  object-fit: contain;
  background: rgba(255,255,255,0.95);
  border-radius: 16px;
  padding: 8px;
}

.brand-text h1 {
  font-size: 2rem;
  color: var(--gold);
  line-height: 1.05;
}

.brand-text p {
  color: #d3dde7;
  font-size: 0.98rem;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 999px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  transition: var(--transition);
  font-weight: 600;
}

.nav-link:hover,
.nav-link.active {
  transform: translateY(-2px);
  background: rgba(255,255,255,0.12);
  border-color: rgba(217,166,46,0.45);
  box-shadow: 0 12px 25px rgba(0,0,0,0.2);
}

.nav-icon {
  width: 18px;
  height: 18px;
  display: inline-block;
}

.nav-icon svg {
  width: 100%;
  height: 100%;
  fill: #a7cdf0;
}

/* =========================================================
   HOME HERO
   ========================================================= */

.hero {
  position: relative;
  min-height: 92vh;
  background:
    radial-gradient(circle at 72% 35%, rgba(25, 89, 138, 0.34), transparent 360px),
    linear-gradient(135deg, #082742, #021421);
  overflow: hidden;
}

.hero-bg-video,
.hero-bg-image,
.hero-dark-overlay {
  position: absolute;
  inset: 0;
}

.hero-bg-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-bg-image {
  z-index: 0;
  background:
    linear-gradient(rgba(2, 13, 23, 0.05), rgba(2, 13, 23, 0.05)),
    url("assets/home-bg.jpg");
  background-size: cover;
  background-position: center;
  filter: brightness(1.28) contrast(1.08) saturate(1.12);
  animation: slowSatelliteZoom 18s ease-in-out infinite alternate;
}

.hero-dark-overlay {
  z-index: 1;
  background:
    linear-gradient(
      90deg,
      rgba(2, 10, 18, 0.68),
      rgba(2, 10, 18, 0.38),
      rgba(2, 10, 18, 0.62)
    );
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background-image:
    linear-gradient(rgba(115, 176, 226, 0.11) 1px, transparent 1px),
    linear-gradient(90deg, rgba(115, 176, 226, 0.11) 1px, transparent 1px);
  background-size: 52px 52px;
  opacity: 0.28;
}

.hero-wrap {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 60px;
  align-items: center;
  padding: 90px 0 70px;
}

.eyebrow {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid rgba(217,166,46,0.5);
  color: var(--gold);
  margin-bottom: 22px;
  letter-spacing: 1.4px;
  font-size: 0.95rem;
  background: rgba(3, 27, 47, 0.55);
  text-shadow: 0 6px 18px rgba(0,0,0,0.45);
}

.hero h2 {
  font-size: clamp(2.9rem, 6vw, 5.4rem);
  line-height: 0.98;
  margin-bottom: 24px;
  max-width: 780px;
  text-shadow: 0 8px 24px rgba(0, 0, 0, 0.52);
}

.hero p {
  font-size: 1.18rem;
  max-width: 700px;
  color: #dbe7f1;
  margin-bottom: 30px;
  text-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 24px;
  border-radius: 999px;
  font-weight: 700;
  transition: var(--transition);
}

.btn-primary {
  background: var(--gold);
  color: #091522;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(217,166,46,0.28);
}

.btn-secondary {
  border: 1px solid rgba(255,255,255,0.3);
  background: rgba(3, 27, 47, 0.35);
  color: #fff;
}

.btn-secondary:hover {
  transform: translateY(-2px);
  background: rgba(255,255,255,0.08);
}

.dark-button {
  color: var(--navy);
  border-color: rgba(3, 27, 47, 0.22);
}

.hero-visual {
  position: relative;
}


/* =========================================================
   PHASE 3: REAL INTERACTIVE SOUTH AFRICA GIS MAP
   ========================================================= */

.sa-intel-panel {
  position: relative;
  width: min(100%, 650px);
  margin-left: auto;
  border-radius: 30px;
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(7, 28, 47, 0.96), rgba(8, 38, 66, 0.92));
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    0 26px 55px rgba(0, 0, 0, 0.34),
    inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(8px);
}

.intel-topbar,
.intel-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  font-size: 0.78rem;
  letter-spacing: 0.075em;
  text-transform: uppercase;
  color: #d9e7f4;
}

.intel-topbar {
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.intel-title-group {
  display: grid;
  gap: 2px;
}

.intel-title-group > span {
  font-weight: 800;
}

.intel-title-group small {
  color: rgba(217, 231, 244, 0.66);
  font-size: 0.68rem;
  letter-spacing: 0.025em;
  text-transform: none;
}

.intel-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(223, 235, 247, 0.8);
}

.live-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 92px;
  padding: 6px 11px;
  border-radius: 999px;
  background: rgba(217, 166, 46, 0.14);
  color: #f1cf69;
  border: 1px solid rgba(217, 166, 46, 0.26);
  font-weight: 800;
  white-space: nowrap;
}

.map-status-pill::before {
  content: "";
  width: 7px;
  height: 7px;
  margin-right: 7px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 10px currentColor;
}

.sa-map-shell {
  position: relative;
  height: 485px;
  background:
    radial-gradient(circle at 32% 24%, rgba(215, 166, 44, 0.12), transparent 180px),
    radial-gradient(circle at 76% 72%, rgba(80, 162, 222, 0.16), transparent 210px),
    linear-gradient(180deg, #082b48, #041a2e);
}

.sa-interactive-map {
  width: 100%;
  height: 100%;
  background:
    linear-gradient(rgba(159, 204, 241, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(159, 204, 241, 0.07) 1px, transparent 1px),
    radial-gradient(circle at center, rgba(24, 84, 126, 0.42), transparent 68%),
    #061d31;
  background-size: 42px 42px, 42px 42px, auto, auto;
  cursor: crosshair;
}

.sa-interactive-map.leaflet-container {
  font-family: Arial, Helvetica, sans-serif;
  color: #102538;
}

.map-loading-state,
.map-error-state {
  position: absolute;
  inset: 0;
  z-index: 800;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 7px;
  padding: 30px;
  text-align: center;
  color: #eef7ff;
  background:
    radial-gradient(circle at center, rgba(30, 111, 170, 0.24), transparent 220px),
    rgba(3, 23, 40, 0.92);
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.map-loading-state[hidden],
.map-error-state[hidden] {
  display: none;
}

.map-loading-state small,
.map-error-state span {
  max-width: 330px;
  color: rgba(226, 239, 250, 0.74);
}

.map-loading-spinner {
  width: 40px;
  height: 40px;
  margin-bottom: 6px;
  border: 3px solid rgba(255, 255, 255, 0.16);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: mapLoadingSpin 0.9s linear infinite;
}

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

.map-reset-button {
  position: absolute;
  right: 12px;
  bottom: 34px;
  z-index: 700;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: #0c2a43;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 3px 14px rgba(0, 0, 0, 0.28);
  transition: transform 0.2s ease, background 0.2s ease;
}

.map-reset-button:hover,
.map-reset-button:focus-visible {
  transform: translateY(-2px);
  background: #ffffff;
}

.map-reset-button svg {
  width: 21px;
  height: 21px;
  fill: currentColor;
}

.map-readout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: rgba(255, 255, 255, 0.08);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.map-readout-item {
  min-width: 0;
  padding: 11px 16px;
  background: rgba(2, 20, 34, 0.62);
}

.map-readout-label {
  display: block;
  margin-bottom: 2px;
  color: rgba(208, 227, 243, 0.62);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.map-readout strong {
  display: block;
  overflow: hidden;
  color: #f6fbff;
  font-size: 0.82rem;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.map-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 13px;
  padding: 12px 17px;
  color: rgba(229, 240, 250, 0.86);
  font-size: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.map-legend-title {
  color: #f0d18a;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.map-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.legend-symbol {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1.5px solid rgba(3, 23, 40, 0.9);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.legend-drought { background: #d9a62e; }
.legend-flood { background: #4fa9e6; }
.legend-agriculture { background: #76b852; }
.legend-conservation { background: #b879d9; }
.legend-academy {
  background: #ffffff;
  border: 2px solid #d9a62e;
}

.map-data-note {
  margin: 0;
  padding: 0 17px 11px;
  color: rgba(214, 228, 241, 0.62);
  font-size: 0.72rem;
}

.map-source-bar {
  align-items: flex-start;
  font-size: 0.65rem;
  line-height: 1.35;
}

/* Province polygons must remain available to pointer events. */
.sa-interactive-map .ssa-province-polygon,
.sa-interactive-map path.leaflet-interactive.ssa-province-polygon {
  pointer-events: auto;
  cursor: pointer;
}

/* Leaflet controls and map typography */
.sa-interactive-map .leaflet-control-zoom a,
.sa-interactive-map .leaflet-control-layers {
  color: #0c2a43;
  background: rgba(255, 255, 255, 0.94);
  border: none;
  box-shadow: 0 3px 14px rgba(0, 0, 0, 0.25);
}

.sa-interactive-map .leaflet-bar a {
  border-bottom-color: rgba(3, 27, 47, 0.12);
}

.sa-interactive-map .leaflet-control-layers-expanded {
  min-width: 190px;
  padding: 10px 12px;
  border-radius: 10px;
  color: #102538;
  font-size: 0.78rem;
}

.sa-interactive-map .leaflet-control-layers-separator {
  border-top-color: rgba(3, 27, 47, 0.14);
}

.sa-interactive-map .leaflet-control-scale-line {
  color: #eaf4fc;
  background: rgba(3, 27, 47, 0.75);
  border-color: rgba(255, 255, 255, 0.72);
  text-shadow: none;
}

.sa-interactive-map .leaflet-control-attribution {
  max-width: 74%;
  padding: 2px 5px;
  color: rgba(225, 237, 247, 0.8);
  background: rgba(3, 20, 34, 0.76);
  font-size: 0.58rem;
  line-height: 1.25;
}

.sa-interactive-map .leaflet-control-attribution a {
  color: #f0d18a;
}

.sa-interactive-map .leaflet-popup-content-wrapper,
.sa-interactive-map .leaflet-popup-tip {
  color: #eaf4fc;
  background: #082742;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.34);
}

.sa-interactive-map .leaflet-popup-content-wrapper {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
}

.sa-interactive-map .leaflet-popup-close-button {
  color: #f0d18a;
}

.gis-popup-content {
  display: grid;
  gap: 7px;
  margin: 2px 0;
}

.gis-popup-category {
  color: #f0d18a;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.gis-popup-title {
  color: #ffffff;
  font-size: 1rem;
  line-height: 1.2;
}

.gis-popup-content p {
  margin: 0;
  color: rgba(232, 241, 249, 0.82);
  font-size: 0.82rem;
  line-height: 1.45;
}

.gis-popup-content small {
  color: rgba(240, 209, 138, 0.8);
  font-size: 0.72rem;
}

.province-tooltip,
.case-study-tooltip {
  color: #0c2a43;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(3, 27, 47, 0.12);
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.22);
  font-size: 0.76rem;
  font-weight: 800;
}

.province-tooltip::before,
.case-study-tooltip::before {
  border-top-color: rgba(255, 255, 255, 0.96);
}

@media (max-width: 760px) {
  .sa-map-shell {
    height: 410px;
  }

  .map-readout {
    grid-template-columns: 1fr;
  }

  .map-legend {
    gap: 7px 11px;
  }

  .intel-topbar,
  .intel-bottom {
    align-items: flex-start;
  }

  .map-source-bar {
    flex-direction: column;
  }

  .sa-interactive-map .leaflet-control-attribution {
    max-width: 88%;
    font-size: 0.52rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .map-loading-spinner {
    animation: none;
  }
}

/* =========================================================
   PAGE HERO BACKGROUNDS FOR OTHER PAGES
   ========================================================= */

.page-hero {
  position: relative;
  min-height: 430px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #021421;
  padding: 110px 0 80px;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--page-bg);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  transform: none;
  animation: none;
  opacity: 1;
  filter: brightness(1.16) contrast(1.05) saturate(1.08);
}

.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      rgba(2, 10, 18, 0.58),
      rgba(2, 10, 18, 0.24),
      rgba(2, 10, 18, 0.54)
    );
}

.page-hero-wrap {
  position: relative;
  z-index: 2;
}

.page-hero h2 {
  font-size: clamp(2.7rem, 5vw, 4.6rem);
  margin-bottom: 16px;
  text-shadow: 0 8px 24px rgba(0, 0, 0, 0.52);
}

.page-hero p {
  font-size: 1.12rem;
  max-width: 760px;
  color: #dce8f2;
  text-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
}

.page-hero-courses {
  --page-bg: url("assets/courses-bg.png");
}

.page-hero-research {
  --page-bg: url("assets/research-bg.png");
}

.page-hero-lessons {
  --page-bg: url("assets/lessons-bg.png");
}

.page-hero-booking {
  --page-bg: url("assets/booking-bg.jpg");
}

/* =========================================================
   GENERAL SECTIONS
   ========================================================= */

.section-light {
  background: #eef3f7;
  color: var(--text);
  padding: 90px 0;
}

.section-dark {
  background: linear-gradient(135deg, #021421 0%, #082742 100%);
  color: var(--white);
  padding: 90px 0;
}

.section-head {
  margin-bottom: 36px;
}

.section-head .mini-title,
.mini-title {
  color: var(--gold);
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.section-head h3 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.05;
}

.grid-4,
.grid-3 {
  display: grid;
  gap: 22px;
}

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

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

.info-card,
.course-card,
.booking-help-card,
.image-card,
.support-card,
.director-card {
  border-radius: 26px;
  padding: 26px;
  background: rgba(255,255,255,0.74);
  box-shadow: 0 12px 30px rgba(3, 27, 47, 0.08);
  transition: var(--transition);
}

.section-dark .image-card,
.section-dark .support-card,
.section-dark .director-card {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: var(--shadow);
}

.info-card:hover,
.course-card:hover,
.booking-help-card:hover,
.image-card:hover,
.support-card:hover,
.director-card:hover {
  transform: translateY(-6px);
}

.card-icon {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #ecf2fb, #d9e6f5);
}

.card-icon svg {
  width: 30px;
  height: 30px;
  fill: #21527c;
}

.info-card h4,
.course-card h4,
.booking-help-card h4,
.image-card h4,
.support-card h4,
.director-card h4 {
  font-size: 1.45rem;
  margin-bottom: 12px;
}

.info-card p,
.course-card p,
.booking-help-card p,
.image-card p,
.support-card p,
.director-card p {
  font-size: 1.02rem;
  color: inherit;
}

.badge {
  display: inline-block;
  margin-bottom: 18px;
  padding: 8px 14px;
  border-radius: 999px;
  background: #f7ebc8;
  color: #9b6a00;
  font-weight: 700;
  font-size: 0.95rem;
}

.section-dark .badge {
  background: rgba(217,166,46,0.18);
  color: #ffd67c;
}

.image-top {
  height: 190px;
  border-radius: 20px;
  margin-bottom: 18px;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.bg-drought {
  background:
    radial-gradient(circle at 30% 35%, rgba(217,166,46,0.7), transparent 90px),
    linear-gradient(135deg, #4b4a28, #2c7a36);
}

.bg-flood {
  background:
    radial-gradient(circle at 55% 40%, rgba(54,174,255,0.55), transparent 90px),
    linear-gradient(135deg, #114b76, #0d7369);
}

.bg-agri {
  background:
    repeating-linear-gradient(45deg, rgba(255,255,255,0.12) 0 8px, transparent 8px 16px),
    linear-gradient(135deg, #4d9a43, #8fb03a);
}

.support-box {
  max-width: 920px;
  padding: 34px;
  border-radius: 28px;
  background: rgba(255,255,255,0.82);
  box-shadow: 0 18px 40px rgba(3, 27, 47, 0.08);
}

.section-dark .support-box {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
}

/* =========================================================
   DIRECTOR
   ========================================================= */

.director-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 28px;
  align-items: stretch;
}

.director-photo {
  border-radius: 26px;
  overflow: hidden;
  min-height: 100%;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
}

.director-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.director-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 14px 0 18px;
}

.meta-chip {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(217,166,46,0.18);
  color: #ffd889;
  font-size: 0.95rem;
  font-weight: 700;
}

/* =========================================================
   FOOTER
   ========================================================= */

.site-footer {
  background: #02111c;
  color: #d9e7f2;
  padding: 32px 0;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.site-footer p {
  text-align: center;
}

/* =========================================================
   ANIMATIONS
   ========================================================= */

@keyframes satelliteSweep {
  0% {
    transform: translateX(0) translateY(35px) rotate(-8deg) scale(0.95);
    opacity: 0;
  }

  8% {
    opacity: 1;
  }

  45% {
    transform: translateX(52vw) translateY(-20px) rotate(3deg) scale(1.02);
    opacity: 1;
  }

  100% {
    transform: translateX(calc(100vw + 420px)) translateY(-50px) rotate(8deg) scale(1);
    opacity: 0;
  }
}

@keyframes introLogoReveal {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.88);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes introTextReveal {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes introButtonReveal {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes introOverlayMove {
  from {
    transform: translateX(-12%);
  }

  to {
    transform: translateX(12%);
  }
}

@keyframes orbitAroundEarth {
  from {
    transform: translate(-50%, -50%) rotate(0deg) translateX(92px) rotate(0deg);
  }

  to {
    transform: translate(-50%, -50%) rotate(360deg) translateX(92px) rotate(-360deg);
  }
}

@keyframes scanning {
  from {
    transform: translateX(-160%);
  }

  to {
    transform: translateX(260%);
  }
}

@keyframes slowSatelliteZoom {
  from {
    transform: scale(1.03);
  }

  to {
    transform: scale(1.12);
  }
}

/* =========================================================
   RESPONSIVE DESIGN
   ========================================================= */

@media (max-width: 1100px) {
  .hero-wrap,
  .director-layout,
  .grid-4,
  .grid-3 {
    grid-template-columns: 1fr 1fr;
  }

  .hero-wrap {
    grid-template-columns: 1fr;
  }

  .director-layout {
    grid-template-columns: 1fr;
  }

  .sa-intel-panel {
    margin-left: 0;
  }
}

@media (max-width: 760px) {
  .header-wrap {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-nav {
    justify-content: flex-start;
  }

  .grid-4,
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-wrap {
    padding: 70px 0 50px;
  }

  .hero h2,
  .section-head h3,
  .page-hero h2 {
    line-height: 1.08;
  }

  .brand {
    align-items: flex-start;
  }

  .brand img {
    width: 72px;
    height: 72px;
  }

  .brand-text h1 {
    font-size: 1.6rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .btn {
    width: 100%;
  }

  .intro-satellite {
    width: 200px;
    top: 20%;
  }

  .intro-logo {
    width: 150px;
  }

  .intro-text h1 {
    font-size: 2rem;
  }

  .intro-text p {
    font-size: 1rem;
  }

  .orbit-box {
    width: 220px;
    height: 220px;
  }

  @keyframes orbitAroundEarth {
    from {
      transform: translate(-50%, -50%) rotate(0deg) translateX(76px) rotate(0deg);
    }

    to {
      transform: translate(-50%, -50%) rotate(360deg) translateX(76px) rotate(-360deg);
    }
  }

  .intel-topbar,
  .intel-bottom {
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
  }

  .page-hero {
    min-height: 360px;
  }

  .page-hero::before {
    background-size: contain;
  }
}

/* =========================================================
   PAGE HERO BACKGROUND IMAGE FIT FIX
   ========================================================= */

.page-hero {
  min-height: 460px;
  background:
    radial-gradient(circle at 68% 35%, rgba(34, 108, 164, 0.30), transparent 340px),
    linear-gradient(135deg, #082742, #021421);
}

.page-hero::before {
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
  transform: none;
  animation: none;
  filter: brightness(1.18) contrast(1.06) saturate(1.08);
  background-color: #082742;
}

.page-hero::after {
  background:
    linear-gradient(
      90deg,
      rgba(2, 10, 18, 0.72),
      rgba(2, 10, 18, 0.36),
      rgba(2, 10, 18, 0.62)
    );
}

/* Adjust each page manually if the image focus is not centred */

.page-hero-courses::before {
  background-position: center center;
}

.page-hero-research::before {
  background-position: center center;
}

.page-hero-lessons::before {
  background-position: center center;
}

.page-hero-booking::before {
  background-position: center center;
}

/* =========================================================
   PROFESSIONAL FOOTER WITH COMPANY REGISTRATION
   ========================================================= */

.site-footer {
  background:
    linear-gradient(135deg, #020d18 0%, #041b2e 60%, #020d18 100%);
  color: #d9e7f2;
  padding: 54px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.10);
}

.footer-wrap {
  display: grid;
  grid-template-columns: 1.2fr 1.4fr 0.9fr;
  gap: 34px;
  align-items: start;
  padding-bottom: 38px;
}

.footer-brand {
  display: flex;
  gap: 16px;
  align-items: center;
}

.footer-main-logo {
  width: 92px;
  height: 92px;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.96);
  border-radius: 18px;
  padding: 8px;
}

.footer-brand h4 {
  color: #f0d18a;
  font-size: 1.35rem;
  margin-bottom: 6px;
}

.footer-brand p,
.footer-registration p {
  color: rgba(217, 231, 242, 0.86);
  font-size: 0.98rem;
}

.footer-registration {
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 22px;
  padding: 22px;
}

.footer-registration h5 {
  color: #f0d18a;
  font-size: 1.05rem;
  margin-bottom: 12px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.footer-registration p {
  margin-bottom: 8px;
}

.footer-small-note {
  font-size: 0.82rem !important;
  color: rgba(217, 231, 242, 0.66) !important;
  margin-top: 14px;
  line-height: 1.5;
}

.footer-gov-logos {
  display: grid;
  gap: 14px;
}

.gov-logo-card {
  background: rgba(255, 255, 255, 0.96);
  border-radius: 18px;
  padding: 14px;
  display: grid;
  place-items: center;
  min-height: 82px;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.18);
}

.gov-logo-card img {
  max-width: 170px;
  max-height: 64px;
  object-fit: contain;
}

.footer-bottom {
  padding: 18px 0;
  background: rgba(0, 0, 0, 0.22);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-bottom p {
  text-align: center;
  color: rgba(217, 231, 242, 0.72);
  font-size: 0.92rem;
}

@media (max-width: 950px) {
  .footer-wrap {
    grid-template-columns: 1fr;
  }

  .footer-brand {
    align-items: flex-start;
  }

  .footer-gov-logos {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .footer-gov-logos {
    grid-template-columns: 1fr;
  }

  .footer-brand {
    flex-direction: column;
  }
}

/* =========================================================
   PHASE 1: NATIVE PAGE TRANSITIONS
   ========================================================= */

/*
  Both pages must use this shared stylesheet and be served from the same
  local or production origin for cross-document transitions to run.
*/
@view-transition {
  navigation: auto;
}

html {
  background: var(--navy);
}

/*
  The old full-screen route loader is intentionally disabled. It may remain
  in older HTML files temporarily, but it no longer delays navigation.
*/
.page-loader.route-loader {
  display: none !important;
}

/* Prevent a repeated welcome-intro flash before script.js executes. */
html.skip-welcome .welcome-intro {
  display: none !important;
}

::view-transition-group(root) {
  animation-duration: 300ms;
  animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
}

::view-transition-image-pair(root) {
  isolation: auto;
}

::view-transition-old(root),
::view-transition-new(root) {
  mix-blend-mode: normal;
}

/*
  Keep the old page fully visible underneath the incoming page. This avoids
  exposing the browser canvas while the next hero image is being decoded.
*/
::view-transition-old(root) {
  animation: none;
  z-index: 1;
}

::view-transition-new(root) {
  animation: ssaPageReveal 300ms cubic-bezier(0.22, 1, 0.36, 1) both;
  z-index: 2;
}

@keyframes ssaPageReveal {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* Make keyboard focus clearly visible throughout the website. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--gold-soft);
  outline-offset: 4px;
}

/* Booking placeholder is now an ordinary content section, not a loader. */
.booking-placeholder .support-box {
  max-width: 980px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  ::view-transition-old(root),
  ::view-transition-new(root) {
    animation: none !important;
  }
}

/* =========================================================
   PHASE 2: GEOSPATIAL NEWS AND IMPACT
   ========================================================= */

.geo-news-section {
  position: relative;
  overflow: hidden;
}

.geo-news-section::before {
  content: "";
  position: absolute;
  top: -160px;
  right: -160px;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(36, 111, 168, 0.13), transparent 68%);
  pointer-events: none;
}

.news-heading-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 48px;
  align-items: end;
  margin-bottom: 30px;
}

.news-heading-layout .section-head {
  margin-bottom: 0;
}

.news-heading-copy {
  padding: 22px 24px;
  border-left: 4px solid var(--gold);
  border-radius: 0 18px 18px 0;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: 0 14px 30px rgba(3, 27, 47, 0.07);
}

.news-heading-copy p {
  color: #334c61;
  margin-bottom: 8px;
}

.news-updated {
  display: block;
  color: #5f7487;
  font-size: 0.86rem;
  font-weight: 700;
}

.news-filter-bar {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 30px;
}

.news-filter {
  padding: 10px 17px;
  border: 1px solid rgba(3, 27, 47, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: #17334b;
  font-weight: 800;
  transition: transform 0.22s ease, background 0.22s ease, color 0.22s ease,
    border-color 0.22s ease, box-shadow 0.22s ease;
}

.news-filter:hover {
  transform: translateY(-2px);
  border-color: rgba(217, 166, 46, 0.62);
  box-shadow: 0 10px 20px rgba(3, 27, 47, 0.08);
}

.news-filter.active {
  background: var(--navy-2);
  color: #ffffff;
  border-color: var(--navy-2);
  box-shadow: 0 12px 24px rgba(3, 27, 47, 0.17);
}

.news-status,
.news-empty {
  padding: 24px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(3, 27, 47, 0.10);
  color: #385168;
  text-align: center;
}

.news-status {
  margin-bottom: 24px;
}

.news-status-error {
  color: #7b2d26;
  border-color: rgba(150, 54, 45, 0.25);
  background: #fff5f3;
}

.news-empty {
  margin-top: 22px;
}

.news-empty h4 {
  color: var(--navy-2);
  margin-bottom: 6px;
}

.news-empty code {
  padding: 2px 7px;
  border-radius: 7px;
  background: #dfe8f0;
}

.news-featured {
  position: relative;
  z-index: 1;
}

.news-feature-card {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(340px, 0.85fr);
  overflow: hidden;
  border-radius: 30px;
  background:
    linear-gradient(145deg, rgba(3, 27, 47, 0.98), rgba(10, 50, 82, 0.96));
  color: #ffffff;
  box-shadow: 0 26px 58px rgba(3, 27, 47, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.news-feature-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(28px, 4vw, 52px);
}

.news-feature-title {
  font-size: clamp(2rem, 3.7vw, 3.55rem);
  line-height: 1.04;
  margin: 16px 0 18px;
}

.news-summary {
  color: rgba(227, 239, 249, 0.90);
  font-size: 1.07rem;
}

.news-impact {
  margin-top: 24px;
  padding: 18px 20px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.10);
}

.news-impact-label {
  display: block;
  margin-bottom: 7px;
  color: #f1cf69;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  font-size: 0.78rem;
}

.news-impact p {
  color: rgba(235, 244, 251, 0.88);
}

.news-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.news-category,
.news-date,
.news-source {
  display: inline-flex;
  align-items: center;
  min-height: 31px;
  padding: 6px 11px;
  border-radius: 999px;
  font-size: 0.77rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.news-category {
  background: rgba(217, 166, 46, 0.18);
  color: #a57000;
}

.news-date,
.news-source {
  background: #eaf0f5;
  color: #385269;
}

.news-feature-card .news-category {
  color: #ffe08a;
  background: rgba(217, 166, 46, 0.16);
}

.news-feature-card .news-date,
.news-feature-card .news-source {
  color: #d9e8f5;
  background: rgba(255, 255, 255, 0.09);
}

.news-actions,
.news-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.news-actions {
  margin-top: 26px;
}

.news-detail-button,
.news-text-button {
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.22s ease, box-shadow 0.22s ease,
    background 0.22s ease;
}

.news-detail-button {
  padding: 13px 20px;
  background: var(--gold);
  color: #081522;
}

.news-detail-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(217, 166, 46, 0.25);
}

.news-source-link,
.news-card-source {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 800;
}

.news-source-link {
  color: #e8f2fa;
}

.news-source-link:hover,
.news-card-source:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.news-link-arrow {
  font-size: 1.05em;
}

.news-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-top: 24px;
}

.news-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border-radius: 25px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(3, 27, 47, 0.08);
  box-shadow: 0 16px 34px rgba(3, 27, 47, 0.10);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.news-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 44px rgba(3, 27, 47, 0.15);
}

.news-card-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 23px;
}

.news-card-title {
  margin: 16px 0 12px;
  color: var(--navy-2);
  font-size: 1.42rem;
  line-height: 1.15;
}

.news-card-summary {
  color: #4a6276;
  margin-bottom: 22px;
}

.news-card-actions {
  margin-top: auto;
  padding-top: 4px;
  justify-content: space-between;
}

.news-text-button {
  padding: 9px 14px;
  background: #e8eef4;
  color: #17364f;
}

.news-text-button:hover {
  background: #dbe6ef;
  transform: translateY(-1px);
}

.news-card-source {
  color: #8a6209;
  font-size: 0.88rem;
}

.news-media {
  position: relative;
  overflow: hidden;
  margin: 0;
  background:
    linear-gradient(rgba(7, 35, 59, 0.14), rgba(7, 35, 59, 0.34)),
    repeating-linear-gradient(
      0deg,
      rgba(152, 198, 232, 0.09) 0,
      rgba(152, 198, 232, 0.09) 1px,
      transparent 1px,
      transparent 34px
    ),
    repeating-linear-gradient(
      90deg,
      rgba(152, 198, 232, 0.09) 0,
      rgba(152, 198, 232, 0.09) 1px,
      transparent 1px,
      transparent 34px
    ),
    #082a47;
}

.news-media-featured {
  min-height: 520px;
}

.news-media-card {
  aspect-ratio: 16 / 10;
}

.news-media-dialog {
  min-height: 320px;
  max-height: 430px;
}

.news-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.015);
  transition: opacity 0.4s ease, transform 0.8s ease;
}

.news-media.image-loaded img {
  opacity: 1;
  transform: scale(1);
}

.news-card:hover .news-media.image-loaded img {
  transform: scale(1.035);
}

.news-media-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 8px;
  padding: 24px;
  color: #dceaf6;
  text-align: center;
}

.news-media-fallback-mark {
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #f1cf69;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.news-media-fallback-text {
  font-size: 0.83rem;
  color: rgba(220, 234, 246, 0.75);
}

.news-media.image-loaded .news-media-fallback {
  opacity: 0;
}

.news-image-credit {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 2;
  max-width: calc(100% - 24px);
  padding: 6px 9px;
  border-radius: 8px;
  background: rgba(1, 13, 24, 0.78);
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.68rem;
  line-height: 1.25;
  backdrop-filter: blur(5px);
}

.news-editor-note {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: start;
  margin-top: 28px;
  padding: 20px 22px;
  border-radius: 20px;
  background: #e2ebf2;
  color: #304b61;
}

.news-editor-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: #d2dfeb;
}

.news-editor-icon svg {
  width: 24px;
  height: 24px;
  fill: #275578;
}

.news-editor-note strong {
  color: var(--navy-2);
}

.news-editor-note p {
  margin-top: 3px;
  font-size: 0.94rem;
}

.news-dialog {
  width: min(94vw, 1040px);
  max-height: 90vh;
  padding: 0;
  overflow: auto;
  border: 0;
  border-radius: 28px;
  background: #f5f8fb;
  color: var(--text);
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.40);
}

.news-dialog::backdrop {
  background: rgba(1, 10, 18, 0.78);
  backdrop-filter: blur(7px);
}

.news-dialog-content {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
}

.news-dialog-close {
  position: fixed;
  top: max(18px, calc(5vh + 8px));
  right: max(18px, calc(3vw + 8px));
  z-index: 12;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(2, 19, 32, 0.90);
  color: #ffffff;
  font-size: 1.75rem;
  line-height: 1;
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.24);
}

.news-dialog-close:hover {
  background: var(--gold);
  color: #071420;
}

.news-dialog-body {
  padding: clamp(28px, 4vw, 48px);
}

.news-dialog-title {
  margin: 18px 0 17px;
  color: var(--navy-2);
  font-size: clamp(2rem, 4vw, 3.3rem);
  line-height: 1.04;
}

.news-dialog-summary {
  color: #314d63;
  font-size: 1.08rem;
  font-weight: 700;
  margin-bottom: 18px;
}

.news-dialog-detail {
  color: #4a6276;
}

.news-dialog-impact,
.news-dialog-source {
  margin-top: 24px;
  padding: 19px 20px;
  border-radius: 18px;
}

.news-dialog-impact {
  background: #e4edf4;
  border-left: 4px solid var(--gold);
}

.news-dialog-impact h4 {
  margin-bottom: 6px;
  color: var(--navy-2);
}

.news-dialog-source {
  background: #ffffff;
  border: 1px solid rgba(3, 27, 47, 0.09);
}

.news-dialog-source p {
  margin-bottom: 13px;
  color: #526a7e;
  font-size: 0.9rem;
}

.news-dialog-source .news-source-link {
  color: #795607;
}

.dialog-fallback-open {
  position: fixed;
  inset: 5vh auto auto 50%;
  z-index: 9999;
  transform: translateX(-50%);
}

@media (max-width: 1050px) {
  .news-feature-card,
  .news-dialog-content {
    grid-template-columns: 1fr;
  }

  .news-media-featured {
    min-height: 390px;
  }

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

@media (max-width: 760px) {
  .news-heading-layout {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .news-heading-copy {
    border-left-width: 3px;
  }

  .news-filter-bar {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .news-filter {
    width: 100%;
  }

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

  .news-media-featured {
    min-height: 300px;
  }

  .news-feature-title {
    font-size: 2.15rem;
  }

  .news-actions,
  .news-card-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .news-detail-button,
  .news-source-link,
  .news-text-button,
  .news-card-source {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .news-editor-note {
    grid-template-columns: 1fr;
  }

  .news-dialog {
    width: 96vw;
    border-radius: 22px;
  }

  .news-dialog-close {
    top: 12px;
    right: 12px;
  }
}

@media (max-width: 460px) {
  .news-filter-bar {
    grid-template-columns: 1fr;
  }

  .news-media-featured {
    min-height: 250px;
  }
}


/* =========================================================
   PHASE 3.2: RELIABLE PROVINCE INTERACTION
   ========================================================= */
#saInteractiveMap .ssa-province-polygon.leaflet-interactive {
  pointer-events: auto;
  cursor: pointer;
  transition: fill-opacity 140ms ease, stroke 140ms ease;
}


/* =========================================================
   PHASE 4: SHARED ACADEMY NAVIGATION AND VISUAL SYSTEM
   ========================================================= */

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 10050;
  transform: translateY(-160%);
  padding: 11px 16px;
  border-radius: 10px;
  background: #ffffff;
  color: #031b2f;
  font-weight: 800;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.28);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header[data-shared-ui="true"] {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(2, 17, 30, 0.94);
  border-bottom: 1px solid rgba(151, 195, 230, 0.14);
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.16);
  backdrop-filter: blur(18px) saturate(135%);
  -webkit-backdrop-filter: blur(18px) saturate(135%);
}

.site-header[data-shared-ui="true"] .header-wrap {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 8px 0;
  transition: min-height 0.28s ease, padding 0.28s ease;
}

.site-header[data-shared-ui="true"] .brand {
  min-width: 280px;
  display: inline-flex;
  align-items: center;
  gap: 13px;
  color: #ffffff;
}

.brand-logo-shell {
  flex: 0 0 auto;
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  padding: 5px;
  border: 1px solid rgba(240, 209, 138, 0.28);
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.19);
  transition: width 0.28s ease, height 0.28s ease, border-radius 0.28s ease;
}

.site-header[data-shared-ui="true"] .brand img {
  width: 100%;
  height: 100%;
  padding: 0;
  border-radius: 12px;
  background: transparent;
  object-fit: contain;
}

.site-header[data-shared-ui="true"] .brand-text {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.site-header[data-shared-ui="true"] .brand-text strong {
  color: #f0d18a;
  font-size: clamp(1rem, 1.4vw, 1.34rem);
  line-height: 1.1;
  letter-spacing: 0.01em;
}

.site-header[data-shared-ui="true"] .brand-text small {
  color: rgba(219, 233, 244, 0.74);
  font-size: 0.72rem;
  line-height: 1.35;
}

.site-header[data-shared-ui="true"] .site-nav {
  display: block;
  margin-left: auto;
}

.nav-list {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
  margin: 0;
  padding: 0;
}

.nav-item {
  margin: 0;
}

.site-header[data-shared-ui="true"] .nav-link {
  position: relative;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 12px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  color: rgba(233, 242, 249, 0.84);
  font-size: 0.82rem;
  font-weight: 750;
  white-space: nowrap;
  box-shadow: none;
  transform: none;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.site-header[data-shared-ui="true"] .nav-link::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 3px;
  height: 2px;
  border-radius: 2px;
  background: #d9a62e;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.22s ease;
}

.site-header[data-shared-ui="true"] .nav-link:hover,
.site-header[data-shared-ui="true"] .nav-link:focus-visible {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.075);
  border-color: rgba(255, 255, 255, 0.08);
  transform: translateY(-1px);
}

.site-header[data-shared-ui="true"] .nav-link.active {
  color: #f8df9f;
  background: rgba(217, 166, 46, 0.10);
  border-color: rgba(217, 166, 46, 0.22);
}

.site-header[data-shared-ui="true"] .nav-link.active::after {
  transform: scaleX(1);
}

.site-header[data-shared-ui="true"] .nav-icon {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
}

.site-header[data-shared-ui="true"] .nav-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.site-header[data-shared-ui="true"] .nav-link-cta {
  margin-left: 5px;
  padding-inline: 15px;
  color: #092239;
  background: linear-gradient(135deg, #f0d18a, #d9a62e);
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: 0 10px 22px rgba(217, 166, 46, 0.18);
}

.site-header[data-shared-ui="true"] .nav-link-cta:hover,
.site-header[data-shared-ui="true"] .nav-link-cta:focus-visible,
.site-header[data-shared-ui="true"] .nav-link-cta.active {
  color: #041b2e;
  background: linear-gradient(135deg, #f6dfa5, #e0ad39);
  border-color: rgba(255, 255, 255, 0.38);
}

.site-header[data-shared-ui="true"] .nav-link-cta::after {
  display: none;
}

.nav-toggle,
.mobile-nav-heading,
.mobile-nav-note,
.nav-backdrop {
  display: none;
}

.site-header.header-scrolled .header-wrap {
  min-height: 72px;
  padding-block: 6px;
}

.site-header.header-scrolled .brand-logo-shell {
  width: 54px;
  height: 54px;
  border-radius: 15px;
}

body.nav-open {
  overflow: hidden;
}

/* Shared footer */
.site-footer[data-shared-ui="true"] {
  position: relative;
  overflow: hidden;
  padding: 62px 0 0;
  background:
    radial-gradient(circle at 8% 0%, rgba(35, 111, 168, 0.18), transparent 310px),
    linear-gradient(135deg, #020d18 0%, #041b2e 58%, #020d18 100%);
  border-top: 1px solid rgba(240, 209, 138, 0.18);
}

.footer-orbit {
  position: absolute;
  top: -260px;
  right: -180px;
  width: 520px;
  height: 520px;
  border: 1px solid rgba(151, 195, 230, 0.08);
  border-radius: 50%;
  box-shadow:
    0 0 0 55px rgba(151, 195, 230, 0.025),
    0 0 0 110px rgba(151, 195, 230, 0.018);
  pointer-events: none;
}

.site-footer[data-shared-ui="true"] .footer-wrap {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(250px, 1.25fr) minmax(150px, 0.65fr) minmax(270px, 1.15fr) minmax(170px, 0.72fr);
  gap: 32px;
  align-items: start;
  padding-bottom: 44px;
}

.site-footer[data-shared-ui="true"] .footer-brand {
  display: flex;
  align-items: flex-start;
  gap: 15px;
}

.site-footer[data-shared-ui="true"] .footer-main-logo {
  width: 76px;
  height: 76px;
  flex: 0 0 auto;
  padding: 6px;
  border: 1px solid rgba(240, 209, 138, 0.25);
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.96);
}

.site-footer[data-shared-ui="true"] .footer-brand h2,
.site-footer[data-shared-ui="true"] .footer-links h3,
.site-footer[data-shared-ui="true"] .footer-registration h3 {
  margin: 0 0 12px;
  color: #f0d18a;
  font-size: 1rem;
  line-height: 1.3;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.site-footer[data-shared-ui="true"] .footer-brand h2 {
  margin-bottom: 7px;
  font-size: 1.08rem;
  letter-spacing: 0;
  text-transform: none;
}

.site-footer[data-shared-ui="true"] .footer-brand p,
.site-footer[data-shared-ui="true"] .footer-registration p {
  margin: 0 0 8px;
  color: rgba(217, 231, 242, 0.78);
  font-size: 0.88rem;
  line-height: 1.55;
}

.footer-location {
  display: inline-flex;
  margin-top: 12px;
  padding: 6px 10px;
  border: 1px solid rgba(117, 214, 161, 0.20);
  border-radius: 999px;
  color: #a9e3c0;
  background: rgba(117, 214, 161, 0.07);
  font-size: 0.75rem;
  font-weight: 800;
}

.footer-links ul {
  list-style: none;
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 3px 0;
  color: rgba(217, 231, 242, 0.78);
  font-size: 0.87rem;
  transition: color 0.2s ease, transform 0.2s ease;
}

.footer-links a span {
  color: #d9a62e;
  font-size: 1.1rem;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: #ffffff;
  transform: translateX(3px);
}

.site-footer[data-shared-ui="true"] .footer-registration {
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.045);
}

.site-footer[data-shared-ui="true"] .footer-registration strong {
  color: rgba(255, 255, 255, 0.92);
}

.site-footer[data-shared-ui="true"] .footer-small-note {
  margin-top: 13px;
  color: rgba(217, 231, 242, 0.56) !important;
  font-size: 0.75rem !important;
}

.footer-verification {
  display: grid;
  gap: 12px;
}

.site-footer[data-shared-ui="true"] .gov-logo-card {
  min-height: 72px;
  display: grid;
  place-items: center;
  padding: 11px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.14);
}

.site-footer[data-shared-ui="true"] .gov-logo-card img {
  max-width: 145px;
  max-height: 48px;
  object-fit: contain;
}

.site-footer[data-shared-ui="true"] .footer-bottom {
  padding: 17px 0;
  background: rgba(0, 0, 0, 0.23);
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.footer-bottom-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-footer[data-shared-ui="true"] .footer-bottom p {
  margin: 0;
  color: rgba(217, 231, 242, 0.62);
  font-size: 0.76rem;
  text-align: left;
}

@media (max-width: 1180px) {
  .site-header[data-shared-ui="true"] .brand {
    min-width: 225px;
  }

  .site-header[data-shared-ui="true"] .brand-text small {
    display: none;
  }

  .site-header[data-shared-ui="true"] .nav-link {
    padding-inline: 9px;
    font-size: 0.76rem;
  }

  .site-header[data-shared-ui="true"] .nav-icon {
    width: 16px;
    height: 16px;
  }

  .site-footer[data-shared-ui="true"] .footer-wrap {
    grid-template-columns: 1fr 0.65fr 1fr;
  }

  .footer-verification {
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(160px, 220px));
  }
}

@media (max-width: 980px) {
  .site-header[data-shared-ui="true"] .header-wrap {
    min-height: 76px;
    flex-direction: row;
    align-items: center;
    padding: 8px 0;
  }

  .site-header[data-shared-ui="true"] .brand {
    min-width: 0;
    align-items: center;
  }

  .brand-logo-shell,
  .site-header.header-scrolled .brand-logo-shell {
    width: 54px;
    height: 54px;
  }

  .site-header[data-shared-ui="true"] .brand-text strong {
    font-size: 1rem;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-width: 88px;
    min-height: 44px;
    padding: 9px 13px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.065);
    color: #ffffff;
    font-weight: 800;
  }

  .nav-toggle-lines {
    width: 19px;
    display: grid;
    gap: 4px;
  }

  .nav-toggle-lines span {
    width: 100%;
    height: 2px;
    border-radius: 2px;
    background: #f0d18a;
    transition: transform 0.22s ease, opacity 0.22s ease;
  }

  .nav-toggle-label {
    font-size: 0.78rem;
  }

  .ssa-ui-enhanced .site-header[data-shared-ui="true"] .site-nav {
    position: fixed;
    z-index: 1003;
    top: 0;
    right: 0;
    width: min(88vw, 410px);
    height: 100vh;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 22px;
    overflow-y: auto;
    background:
      radial-gradient(circle at 90% 8%, rgba(36, 111, 168, 0.24), transparent 220px),
      linear-gradient(160deg, #061f35, #02111e 70%);
    border-left: 1px solid rgba(255, 255, 255, 0.11);
    box-shadow: -24px 0 55px rgba(0, 0, 0, 0.34);
    transform: translateX(105%);
    visibility: hidden;
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.3s;
  }

  .ssa-ui-enhanced .site-header.nav-is-open .site-nav {
    transform: translateX(0);
    visibility: visible;
  }

  .mobile-nav-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.09);
    color: #f0d18a;
    font-size: 0.82rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .mobile-nav-close {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
  }

  .mobile-nav-close svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
  }

  .site-header[data-shared-ui="true"] .nav-list {
    display: grid;
    gap: 8px;
    margin-top: 20px;
  }

  .site-header[data-shared-ui="true"] .nav-link {
    width: 100%;
    min-height: 52px;
    justify-content: flex-start;
    padding: 12px 14px;
    border-color: rgba(255, 255, 255, 0.07);
    background: rgba(255, 255, 255, 0.035);
    font-size: 0.91rem;
  }

  .site-header[data-shared-ui="true"] .nav-link::after {
    top: 10px;
    right: auto;
    bottom: 10px;
    left: 0;
    width: 3px;
    height: auto;
    transform: scaleY(0);
  }

  .site-header[data-shared-ui="true"] .nav-link.active::after {
    transform: scaleY(1);
  }

  .site-header[data-shared-ui="true"] .nav-link-cta {
    margin: 7px 0 0;
    justify-content: center;
    color: #061f35;
    background: linear-gradient(135deg, #f0d18a, #d9a62e);
  }

  .mobile-nav-note {
    display: grid;
    gap: 5px;
    margin-top: auto;
    padding: 20px 4px 4px;
    color: rgba(217, 231, 242, 0.62);
    font-size: 0.75rem;
  }

  .mobile-nav-note strong {
    color: #f0d18a;
  }

  .nav-backdrop {
    position: fixed;
    z-index: 1002;
    inset: 0;
    display: block;
    opacity: 0;
    visibility: hidden;
    background: rgba(0, 8, 15, 0.68);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    transition: opacity 0.25s ease, visibility 0.25s;
  }

  .site-header.nav-is-open .nav-backdrop {
    opacity: 1;
    visibility: visible;
  }

  .site-footer[data-shared-ui="true"] .footer-wrap {
    grid-template-columns: 1fr 1fr;
  }

  .footer-verification {
    grid-column: auto;
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .site-header[data-shared-ui="true"] .header-wrap {
    width: min(94%, var(--max));
  }

  .site-header[data-shared-ui="true"] .brand-text strong {
    max-width: 190px;
    display: block;
    font-size: 0.92rem;
  }

  .nav-toggle {
    min-width: 44px;
    padding-inline: 11px;
  }

  .nav-toggle-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .site-footer[data-shared-ui="true"] {
    padding-top: 48px;
  }

  .site-footer[data-shared-ui="true"] .footer-wrap {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-verification {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-bottom-wrap {
    flex-direction: column;
    align-items: flex-start;
    gap: 7px;
  }

  .site-footer[data-shared-ui="true"] .footer-bottom p {
    text-align: left;
  }
}

@media (max-width: 420px) {
  .brand-logo-shell,
  .site-header.header-scrolled .brand-logo-shell {
    width: 49px;
    height: 49px;
    border-radius: 13px;
  }

  .site-header[data-shared-ui="true"] .brand-text strong {
    max-width: 155px;
    font-size: 0.82rem;
  }

  .footer-verification {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ssa-ui-enhanced .site-header[data-shared-ui="true"] .site-nav,
  .nav-backdrop,
  .brand-logo-shell {
    transition: none !important;
  }
}

/* =========================================================
   PHASE 5: BOOK A SESSION WORKFLOW
   ========================================================= */

.booking-hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.65fr);
  gap: 46px;
  align-items: center;
}

.booking-hero-note {
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 22px;
  background: rgba(3, 27, 47, 0.72);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(12px);
}

.booking-step-number {
  display: inline-flex;
  margin-bottom: 16px;
  padding: 6px 11px;
  border-radius: 999px;
  background: rgba(217, 166, 46, 0.16);
  color: var(--gold-soft);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.booking-hero-note ol {
  display: grid;
  gap: 13px;
  padding-left: 22px;
  color: #edf4fa;
}

.booking-hero-note li::marker {
  color: var(--gold);
  font-weight: 800;
}

.booking-section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.72fr);
  gap: 40px;
  align-items: end;
}

.booking-section-heading > p {
  color: #536a7d;
  max-width: 590px;
}

.booking-service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.booking-service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 28px;
  overflow: hidden;
  border: 1px solid rgba(7, 52, 87, 0.1);
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 16px 34px rgba(3, 27, 47, 0.08);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.booking-service-card::after {
  content: "";
  position: absolute;
  right: -42px;
  bottom: -42px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(217, 166, 46, 0.14), transparent 68%);
  pointer-events: none;
}

.booking-service-card:hover {
  transform: translateY(-5px);
  border-color: rgba(217, 166, 46, 0.45);
  box-shadow: 0 22px 44px rgba(3, 27, 47, 0.13);
}

.booking-service-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 18px;
  border-radius: 15px;
  background: linear-gradient(145deg, var(--navy-2), var(--navy));
  color: var(--gold-soft);
}

.booking-service-icon svg,
.booking-summary-icon svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.booking-service-card .badge {
  align-self: flex-start;
}

.booking-service-card h4 {
  margin: 15px 0 10px;
  color: var(--navy);
  font-size: 1.22rem;
  line-height: 1.25;
}

.booking-service-card p {
  flex: 1;
  color: #536a7d;
}

.booking-service-select {
  position: relative;
  z-index: 1;
  align-self: flex-start;
  margin-top: 20px;
  padding: 10px 0 5px;
  background: transparent;
  color: #0c5c91;
  font-weight: 800;
  border-bottom: 2px solid rgba(12, 92, 145, 0.2);
  transition: color var(--transition), border-color var(--transition);
}

.booking-service-select:hover {
  color: #8c6511;
  border-color: var(--gold);
}

.booking-form-section {
  position: relative;
  overflow: hidden;
}

.booking-form-section::before {
  content: "";
  position: absolute;
  top: -240px;
  right: -180px;
  width: 620px;
  height: 620px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(24, 113, 178, 0.17), transparent 68%);
  pointer-events: none;
}

.booking-workspace {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.65fr);
  gap: 38px;
  align-items: start;
}

.booking-form-heading {
  margin-bottom: 28px;
}

.booking-form-heading > p:last-child {
  max-width: 760px;
  color: #c1cfdb;
}

.booking-form {
  display: grid;
  gap: 22px;
}

.booking-fieldset {
  min-width: 0;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.055);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.1);
}

.booking-fieldset legend {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 10px;
  color: #ffffff;
  font-size: 1.04rem;
  font-weight: 800;
}

.booking-fieldset legend span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--navy);
  font-size: 0.86rem;
}

.booking-choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
}

.booking-choice {
  position: relative;
  cursor: pointer;
}

.booking-choice input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.booking-choice > span {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
  padding: 16px 17px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  background: rgba(1, 16, 29, 0.42);
  transition: border-color var(--transition), background var(--transition), transform var(--transition);
}

.booking-choice strong {
  color: #ffffff;
  line-height: 1.3;
}

.booking-choice small {
  flex: 0 0 auto;
  color: #aebfcd;
  font-size: 0.76rem;
  text-align: right;
}

.booking-choice input:checked + span {
  border-color: var(--gold);
  background: rgba(217, 166, 46, 0.14);
  box-shadow: inset 0 0 0 1px rgba(217, 166, 46, 0.35);
}

.booking-choice input:focus-visible + span {
  outline: 3px solid var(--gold-soft);
  outline-offset: 3px;
}

.booking-choice:hover > span {
  transform: translateY(-2px);
  border-color: rgba(240, 209, 138, 0.55);
}

.booking-input-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.booking-field {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}

.booking-input-grid .booking-field {
  margin-top: 0;
}

.booking-field-wide {
  grid-column: 1 / -1;
}

.booking-field label,
.booking-label-row label {
  color: #f5f8fb;
  font-size: 0.92rem;
  font-weight: 800;
}

.optional-label {
  margin-left: 6px;
  color: #91a7b8;
  font-size: 0.73rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.booking-field input,
.booking-field select,
.booking-field textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 13px;
  background: rgba(1, 15, 27, 0.72);
  color: #ffffff;
  font: inherit;
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}

.booking-field input,
.booking-field select {
  min-height: 50px;
  padding: 0 14px;
}

.booking-field textarea {
  resize: vertical;
  min-height: 112px;
  padding: 13px 14px;
  line-height: 1.55;
}

.booking-field input::placeholder,
.booking-field textarea::placeholder {
  color: #8093a3;
}

.booking-field select option {
  background: var(--navy);
  color: #ffffff;
}

.booking-field input:focus,
.booking-field select:focus,
.booking-field textarea:focus {
  border-color: var(--gold);
  background: rgba(1, 15, 27, 0.92);
  box-shadow: 0 0 0 4px rgba(217, 166, 46, 0.12);
}

.booking-field input:user-invalid,
.booking-field select:user-invalid,
.booking-field textarea:user-invalid {
  border-color: #ef8f8f;
}

.booking-field small {
  color: #9fb1bf;
  font-size: 0.77rem;
}

.booking-label-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
}

.booking-label-row > span {
  color: #9fb1bf;
  font-size: 0.78rem;
}

.booking-consent {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  padding: 18px 20px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.045);
  color: #d9e3eb;
  cursor: pointer;
}

.booking-consent input {
  flex: 0 0 auto;
  width: 19px;
  height: 19px;
  margin-top: 3px;
  accent-color: var(--gold);
}

.booking-submit-row {
  display: flex;
  align-items: center;
  gap: 22px;
}

.booking-submit-row p {
  max-width: 460px;
  color: #aebfcd;
  font-size: 0.82rem;
}

.btn-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 20px;
  border-radius: 12px;
  background: linear-gradient(135deg, #e6b53c, #c79119);
  color: #061b2d;
  font-weight: 900;
  box-shadow: 0 13px 28px rgba(217, 166, 46, 0.22);
  transition: transform var(--transition), box-shadow var(--transition), filter var(--transition);
}

.btn-gold:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
  box-shadow: 0 17px 34px rgba(217, 166, 46, 0.3);
}

.booking-submit {
  flex: 0 0 auto;
  min-height: 52px;
}

.booking-summary {
  position: sticky;
  top: 118px;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 24px;
  background: linear-gradient(155deg, rgba(15, 53, 86, 0.96), rgba(2, 22, 38, 0.96));
  box-shadow: 0 24px 55px rgba(0, 0, 0, 0.25);
}

.booking-summary-heading {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.booking-summary-heading .mini-title {
  margin-bottom: 2px;
}

.booking-summary-heading h3 {
  font-size: 1.35rem;
}

.booking-summary-icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  border-radius: 15px;
  background: rgba(217, 166, 46, 0.14);
  color: var(--gold-soft);
}

.booking-summary-list {
  display: grid;
  gap: 0;
  margin: 18px 0;
}

.booking-summary-list > div {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  gap: 15px;
  padding: 13px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.booking-summary-list dt {
  color: #91a7b8;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.booking-summary-list dd {
  color: #f4f8fb;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.booking-summary-notice {
  display: grid;
  gap: 4px;
  padding: 15px 16px;
  border-left: 3px solid var(--gold);
  border-radius: 0 12px 12px 0;
  background: rgba(217, 166, 46, 0.09);
}

.booking-summary-notice strong {
  color: var(--gold-soft);
}

.booking-summary-notice span {
  color: #c4d1da;
  font-size: 0.8rem;
}

.booking-process-list {
  margin-top: 22px;
}

.booking-process-list h4 {
  margin-bottom: 10px;
  color: #ffffff;
}

.booking-process-list ol {
  display: grid;
  gap: 10px;
  padding-left: 20px;
  color: #c6d2dc;
  font-size: 0.84rem;
}

.booking-process-list li::marker {
  color: var(--gold);
  font-weight: 800;
}

.booking-ready-panel {
  display: flex;
  gap: 20px;
  margin-top: 26px;
  padding: 25px;
  border: 1px solid rgba(104, 215, 166, 0.35);
  border-radius: 20px;
  background: rgba(44, 151, 102, 0.13);
}

.booking-ready-panel[hidden] {
  display: none !important;
}

.booking-ready-icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #65d2a3;
  color: #06251a;
  font-size: 1.25rem;
  font-weight: 900;
}

.booking-ready-panel h3 {
  margin: 3px 0 8px;
  color: #ffffff;
  font-size: 1.35rem;
}

.booking-ready-panel p {
  color: #c7d8d0;
}

.booking-ready-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
  margin-top: 17px;
}

.booking-secondary-button {
  padding: 11px 15px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.07);
  color: #ffffff;
  font-weight: 800;
  transition: background var(--transition), border-color var(--transition);
}

.booking-secondary-button:hover {
  border-color: rgba(240, 209, 138, 0.65);
  background: rgba(255, 255, 255, 0.12);
}

.booking-copy-status {
  min-height: 1.4em;
  margin-top: 10px;
  color: #8ee0b7 !important;
  font-size: 0.82rem;
  font-weight: 700;
}

@media (max-width: 1080px) {
  .booking-service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .booking-workspace {
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 26px;
  }
}

@media (max-width: 900px) {
  .booking-hero-layout,
  .booking-section-heading,
  .booking-workspace {
    grid-template-columns: 1fr;
  }

  .booking-summary {
    position: static;
    order: -1;
  }
}

@media (max-width: 680px) {
  .booking-service-grid,
  .booking-choice-grid,
  .booking-input-grid {
    grid-template-columns: 1fr;
  }

  .booking-field-wide {
    grid-column: auto;
  }

  .booking-fieldset,
  .booking-summary,
  .booking-service-card {
    padding: 21px;
  }

  .booking-submit-row,
  .booking-ready-panel {
    align-items: stretch;
    flex-direction: column;
  }

  .booking-submit-row .btn,
  .booking-ready-actions > * {
    width: 100%;
  }

  .booking-summary-list > div {
    grid-template-columns: 1fr;
    gap: 3px;
  }
}

.booking-noscript {
  display: block;
  margin-bottom: 22px;
  padding: 16px 18px;
  border: 1px solid rgba(239, 143, 143, 0.45);
  border-radius: 14px;
  background: rgba(239, 143, 143, 0.1);
  color: #ffe5e5;
}


/* =========================================================
   PHASE 7: COURSES CATALOGUE
   ========================================================= */

.courses-hero {
  min-height: 640px;
}

.courses-hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.7fr);
  align-items: center;
  gap: 70px;
}

.courses-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
  margin-top: 28px;
}

.courses-hero-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 24px;
  background: rgba(3, 27, 47, 0.78);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(14px);
}

.courses-hero-panel div {
  display: flex;
  min-height: 132px;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  padding: 22px;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.courses-hero-panel div:nth-child(2n) {
  border-right: 0;
}

.courses-hero-panel div:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.courses-hero-panel strong {
  color: var(--gold-soft);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1;
}

.courses-hero-panel span {
  color: #c5d1db;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.courses-intro {
  padding: 90px 0;
}

.courses-principles-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  align-items: start;
  gap: 80px;
}

.courses-principles-grid h3,
.courses-assurance-layout h3 {
  margin-bottom: 16px;
  color: var(--navy);
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.1;
}

.courses-principles-grid > div:first-child > p:last-child,
.courses-assurance-layout > div:first-child > p:last-child {
  color: #506474;
}

.courses-principle-list {
  display: grid;
  gap: 14px;
}

.courses-principle-list article {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  align-items: start;
  gap: 18px;
  padding: 22px;
  border: 1px solid #dfe7ed;
  border-radius: 17px;
  background: #ffffff;
  box-shadow: 0 16px 34px rgba(4, 29, 48, 0.08);
}

.courses-principle-list article > span {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 14px;
  background: #edf5f8;
  color: var(--navy-3);
  font-weight: 800;
}

.courses-principle-list strong {
  color: var(--navy);
  font-size: 1.05rem;
}

.courses-principle-list p {
  margin-top: 3px;
  color: #627483;
  font-size: 0.88rem;
}

.courses-catalogue-section {
  padding: 100px 0 110px;
}

.courses-section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.65fr);
  align-items: end;
  gap: 60px;
}

.courses-section-heading h3 {
  font-size: clamp(2.1rem, 4vw, 3.5rem);
}

.courses-section-heading > p {
  color: #b9c8d3;
}

.courses-noscript {
  display: block;
  margin-top: 24px;
  padding: 15px 18px;
  border: 1px solid rgba(239, 143, 143, 0.42);
  border-radius: 13px;
  background: rgba(239, 143, 143, 0.1);
  color: #ffe4e4;
}

.course-finder {
  display: grid;
  grid-template-columns: minmax(260px, 1.2fr) minmax(360px, 1.5fr) minmax(160px, 0.6fr) minmax(170px, 0.65fr) auto;
  align-items: end;
  gap: 14px;
  margin-top: 34px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.055);
  box-shadow: 0 25px 55px rgba(0, 0, 0, 0.18);
}

.course-search-field,
.course-select-field,
.course-pathway-filter {
  display: grid;
  gap: 8px;
}

.course-search-field label,
.course-select-field > span,
.course-pathway-filter > span {
  color: #b9c9d5;
  font-size: 0.69rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.course-search-field input,
.course-select-field select {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 11px;
  outline: none;
  background: #ffffff;
  color: var(--text);
  padding: 0 13px;
}

.course-search-field input:focus,
.course-select-field select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(217, 166, 46, 0.18);
}

.course-pathway-filter > div {
  display: flex;
  min-height: 46px;
  flex-wrap: wrap;
  gap: 6px;
}

.course-pathway-filter button {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
  color: #d4e0e8;
  padding: 9px 12px;
  font-size: 0.74rem;
  font-weight: 700;
  transition: 0.2s ease;
}

.course-pathway-filter button:hover,
.course-pathway-filter button[aria-pressed="true"] {
  border-color: var(--gold);
  background: rgba(217, 166, 46, 0.18);
  color: #ffffff;
}

.course-reset-button {
  min-height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 11px;
  background: transparent;
  color: #dce6ed;
  padding: 0 15px;
  font-weight: 700;
}

.course-reset-button:hover {
  border-color: var(--gold-soft);
  color: var(--gold-soft);
}

.course-results-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 24px 0 20px;
  color: #9eb1c0;
  font-size: 0.8rem;
}

.course-results-bar strong {
  color: #ffffff;
  font-size: 0.9rem;
}

.course-catalogue-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.academy-course-card {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  padding: 25px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 22px;
  background:
    linear-gradient(145deg, rgba(15, 53, 86, 0.98), rgba(3, 27, 47, 0.98));
  box-shadow: 0 24px 55px rgba(0, 0, 0, 0.22);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.academy-course-card::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, #4fd3c4, #2f8bb5);
  content: "";
}

.academy-course-card.is-featured::before {
  background: linear-gradient(180deg, var(--gold-soft), var(--gold));
}

.academy-course-card:hover {
  transform: translateY(-5px);
  border-color: rgba(240, 209, 138, 0.42);
  box-shadow: 0 30px 68px rgba(0, 0, 0, 0.3);
}

.academy-course-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.academy-course-pathway,
.academy-course-availability {
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.academy-course-pathway {
  color: var(--gold-soft);
}

.academy-course-availability {
  padding: 5px 8px;
  border: 1px solid rgba(78, 211, 196, 0.3);
  border-radius: 999px;
  background: rgba(78, 211, 196, 0.09);
  color: #9ae7dc;
}

.academy-course-card h4 {
  margin-bottom: 11px;
  color: #ffffff;
  font-size: 1.35rem;
  line-height: 1.18;
}

.academy-course-summary {
  min-height: 84px;
  color: #b9c9d4;
  font-size: 0.87rem;
}

.academy-course-facts {
  display: grid;
  gap: 9px;
  margin: 20px 0;
  padding: 15px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.academy-course-facts div {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 10px;
}

.academy-course-facts dt {
  color: #7f98aa;
  font-size: 0.7rem;
  font-weight: 700;
}

.academy-course-facts dd {
  color: #e1e9ef;
  font-size: 0.76rem;
}

.academy-course-software {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 21px;
}

.academy-course-software span {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.075);
  color: #c4d2dc;
  padding: 6px 9px;
  font-size: 0.66rem;
}

.academy-course-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  margin-top: auto;
}

.academy-course-actions button,
.academy-course-actions a {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  padding: 8px 11px;
  font-size: 0.74rem;
  font-weight: 800;
  text-align: center;
}

.academy-course-details {
  background: var(--gold);
  color: #132232;
}

.academy-course-compare {
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.05);
  color: #dbe5eb;
}

.academy-course-compare[aria-pressed="true"] {
  border-color: #4fd3c4;
  background: rgba(78, 211, 196, 0.13);
  color: #9ae7dc;
}

.academy-course-enquiry {
  grid-column: 1 / -1;
  border: 1px solid rgba(240, 209, 138, 0.24);
  color: var(--gold-soft);
}

.academy-course-actions button:hover,
.academy-course-actions a:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
}

.course-empty-state {
  padding: 55px 25px;
  border: 1px dashed rgba(255, 255, 255, 0.22);
  border-radius: 20px;
  text-align: center;
}

.course-empty-state strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1.2rem;
}

.course-empty-state p {
  color: #9eb2c1;
}

.course-empty-state button {
  margin-top: 18px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--navy);
  padding: 10px 18px;
  font-weight: 800;
}

.courses-assurance-section {
  padding: 100px 0;
}

.courses-assurance-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 70px;
}

.courses-assurance-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.courses-assurance-cards article {
  padding: 22px;
  border: 1px solid #dfe7ed;
  border-radius: 17px;
  background: #ffffff;
  box-shadow: 0 15px 32px rgba(3, 27, 47, 0.07);
}

.courses-assurance-cards strong {
  display: block;
  margin-bottom: 8px;
  color: var(--navy);
}

.courses-assurance-cards p {
  color: #627483;
  font-size: 0.82rem;
}

.courses-next-step {
  padding: 85px 0;
}

.courses-next-layout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 50px;
}

.courses-next-layout h3 {
  margin-bottom: 9px;
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.courses-next-layout p:not(.mini-title) {
  color: #b8c7d2;
}

.course-compare-tray {
  position: fixed;
  z-index: 850;
  right: 22px;
  bottom: 22px;
  left: 22px;
  display: flex;
  max-width: 780px;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin: 0 auto;
  padding: 15px 17px;
  border: 1px solid rgba(240, 209, 138, 0.3);
  border-radius: 17px;
  background: rgba(3, 27, 47, 0.96);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.36);
  backdrop-filter: blur(14px);
}

.course-compare-tray[hidden] {
  display: none;
}

.course-compare-tray > div:first-child {
  display: grid;
  gap: 2px;
}

.course-compare-tray strong {
  color: #ffffff;
}

.course-compare-tray span {
  color: #9eb2c1;
  font-size: 0.72rem;
}

.course-compare-tray > div:last-child {
  display: flex;
  gap: 8px;
}

.course-compare-tray button {
  min-height: 40px;
  border-radius: 9px;
  padding: 8px 13px;
  font-weight: 800;
}

#courseClearCompare {
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: transparent;
  color: #dce6ec;
}

#courseOpenCompare {
  background: var(--gold);
  color: var(--navy);
}

#courseOpenCompare:disabled {
  cursor: not-allowed;
  opacity: 0.56;
}

.course-dialog {
  width: min(94vw, 980px);
  max-height: 90vh;
  overflow: auto;
  border: 0;
  border-radius: 24px;
  background: transparent;
  color: var(--text);
  padding: 0;
  box-shadow: 0 35px 90px rgba(0, 0, 0, 0.42);
}

.course-dialog::backdrop {
  background: rgba(0, 10, 18, 0.8);
  backdrop-filter: blur(5px);
}

.course-dialog-shell {
  position: relative;
  padding: 34px;
  background: #ffffff;
}

.course-dialog-close {
  position: absolute;
  top: 15px;
  right: 15px;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  background: #edf2f5;
  color: var(--navy);
  font-size: 1.7rem;
  line-height: 1;
}

.course-dialog-heading {
  max-width: 780px;
  padding-right: 45px;
}

.course-dialog-pathway {
  color: #8f6914;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.course-dialog-heading h2 {
  margin: 7px 0 11px;
  color: var(--navy);
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.05;
}

.course-dialog-heading p {
  color: #5f7180;
}

.course-dialog-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 28px 0;
}

.course-dialog-facts div {
  display: grid;
  gap: 4px;
  padding: 15px;
  border-radius: 13px;
  background: #edf4f7;
}

.course-dialog-facts span {
  color: #718593;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.course-dialog-facts strong {
  color: var(--navy);
  font-size: 0.83rem;
}

.course-dialog-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
  gap: 34px;
  padding-top: 25px;
  border-top: 1px solid #dfe7ed;
}

.course-dialog-columns h3 {
  margin-bottom: 10px;
  color: var(--navy);
  font-size: 1.12rem;
}

.course-dialog-columns section:last-child h3:not(:first-child) {
  margin-top: 21px;
}

.course-dialog-columns p,
.course-dialog-columns li {
  color: #5b6f7e;
  font-size: 0.87rem;
}

.course-dialog-columns ul {
  display: grid;
  gap: 10px;
  list-style: none;
}

.course-dialog-columns li {
  position: relative;
  padding-left: 22px;
}

.course-dialog-columns li::before {
  position: absolute;
  top: 0.42em;
  left: 0;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--gold);
  content: "";
}

.course-dialog-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.course-dialog-secondary {
  border: 1px solid #ccd8df;
  border-radius: 999px;
  background: #ffffff;
  color: var(--navy);
  padding: 12px 18px;
  font-weight: 800;
}

.course-comparison-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 13px;
  margin-top: 27px;
}

.course-comparison-card {
  min-width: 0;
  padding: 20px;
  border: 1px solid #dfe7ed;
  border-radius: 17px;
  background: #f6f9fb;
}

.course-comparison-card > span {
  color: #8f6914;
  font-size: 0.65rem;
  font-weight: 900;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.course-comparison-card h3 {
  margin: 5px 0 16px;
  color: var(--navy);
  line-height: 1.15;
}

.course-comparison-card dl {
  display: grid;
  gap: 12px;
}

.course-comparison-card dl div {
  display: grid;
  gap: 2px;
  padding-bottom: 10px;
  border-bottom: 1px solid #dfe7ed;
}

.course-comparison-card dt {
  color: #718593;
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
}

.course-comparison-card dd {
  color: #425867;
  font-size: 0.78rem;
}

.course-comparison-card a {
  display: inline-flex;
  margin-top: 18px;
  color: #8f6914;
  font-size: 0.78rem;
  font-weight: 900;
}

@media (max-width: 1180px) {
  .course-finder {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .course-pathway-filter {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .course-reset-button {
    align-self: end;
  }

  .course-catalogue-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .courses-assurance-cards {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .courses-hero-layout,
  .courses-principles-grid,
  .courses-section-heading,
  .courses-assurance-layout {
    grid-template-columns: 1fr;
  }

  .courses-hero-layout,
  .courses-principles-grid,
  .courses-assurance-layout {
    gap: 42px;
  }

  .courses-section-heading {
    gap: 18px;
  }

  .course-dialog-facts,
  .course-comparison-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .course-dialog-columns {
    grid-template-columns: 1fr;
  }

  .courses-next-layout {
    align-items: stretch;
    flex-direction: column;
  }

  .courses-next-layout .btn {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 680px) {
  .courses-hero-panel,
  .course-finder,
  .course-catalogue-grid,
  .course-dialog-facts,
  .course-comparison-grid {
    grid-template-columns: 1fr;
  }

  .courses-hero-panel div,
  .courses-hero-panel div:nth-child(2n),
  .courses-hero-panel div:nth-last-child(-n + 2) {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .courses-hero-panel div:last-child {
    border-bottom: 0;
  }

  .courses-hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .courses-hero-actions .btn {
    width: 100%;
    text-align: center;
  }

  .course-pathway-filter {
    grid-column: auto;
    grid-row: auto;
  }

  .course-results-bar,
  .course-compare-tray {
    align-items: stretch;
    flex-direction: column;
  }

  .course-compare-tray {
    right: 10px;
    bottom: 10px;
    left: 10px;
  }

  .course-compare-tray > div:last-child {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .academy-course-summary {
    min-height: auto;
  }

  .course-dialog-shell {
    padding: 26px 20px;
  }

  .course-dialog-heading {
    padding-right: 32px;
  }

  .course-dialog-actions {
    flex-direction: column;
  }

  .course-dialog-actions .btn,
  .course-dialog-actions button {
    width: 100%;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .academy-course-card,
  .academy-course-actions button,
  .academy-course-actions a {
    transition: none;
  }
}

/* =========================================================
   PHASE 8: RESEARCH SUPPORT HUB
   ========================================================= */

.page-hero-research {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(2, 19, 34, 0.96), rgba(3, 27, 47, 0.82)),
    url("assets/research-bg.png") center / cover;
}

.page-hero-research::before {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(116, 172, 214, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(116, 172, 214, 0.08) 1px, transparent 1px);
  background-size: 54px 54px;
  content: "";
  mask-image: linear-gradient(to right, transparent, #000 48%, #000);
}

.research-hero {
  min-height: 700px;
  display: grid;
  align-items: center;
}

.research-hero-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.72fr);
  align-items: center;
  gap: 76px;
  padding-top: 110px;
  padding-bottom: 100px;
}

.research-hero-layout > div:first-child {
  max-width: 770px;
}

.research-hero-layout h2 {
  max-width: 760px;
  margin: 10px 0 22px;
  font-size: clamp(3rem, 6vw, 5.9rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.research-hero-layout > div:first-child > p:not(.mini-title) {
  max-width: 720px;
  color: #c5d3dc;
  font-size: clamp(1rem, 1.5vw, 1.18rem);
}

.research-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.research-hero-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  background: rgba(3, 24, 42, 0.78);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(16px);
}

.research-hero-panel div {
  min-height: 150px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  padding: 25px;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.research-hero-panel div:nth-child(2n) {
  border-right: 0;
}

.research-hero-panel div:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.research-hero-panel strong {
  color: var(--gold-soft);
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1;
}

.research-hero-panel span {
  color: #b9c8d2;
  font-size: 0.77rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.research-process-section {
  padding: 105px 0;
}

.research-process-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 76px;
  align-items: start;
}

.research-process-layout h3,
.research-planner-intro h3,
.research-integrity-layout h3,
.research-next-layout h3 {
  margin: 8px 0 16px;
  color: var(--navy);
  font-size: clamp(2.2rem, 4.8vw, 4.1rem);
  line-height: 1.04;
  letter-spacing: -0.04em;
}

.research-process-layout > div > p:not(.mini-title),
.research-planner-intro > p:not(.mini-title),
.research-next-layout p:not(.mini-title) {
  color: #5d7180;
}

.research-process-steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  list-style: none;
}

.research-process-steps li {
  min-height: 185px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 15px;
  padding: 24px;
  border: 1px solid #dbe5eb;
  border-radius: 19px;
  background: #fff;
  box-shadow: 0 18px 40px rgba(3, 27, 47, 0.07);
}

.research-process-steps > li > span {
  color: #9c751c;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.research-process-steps strong {
  display: block;
  margin-bottom: 7px;
  color: var(--navy);
  font-size: 1.08rem;
}

.research-process-steps p {
  color: #637684;
  font-size: 0.84rem;
}

.research-finder-section {
  padding: 110px 0;
}

.research-section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.58fr);
  align-items: end;
  gap: 70px;
}

.research-section-heading h3 {
  font-size: clamp(2.5rem, 5vw, 4.6rem);
  line-height: 1;
  letter-spacing: -0.045em;
}

.research-section-heading > p {
  color: #aebfca;
}

.research-finder {
  display: grid;
  grid-template-columns: minmax(260px, 1.1fr) minmax(190px, 0.55fr) auto;
  gap: 14px;
  margin-top: 42px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.045);
}

.research-search-field,
.research-select-field,
.research-stage-filter {
  display: grid;
  gap: 8px;
}

.research-search-field label,
.research-select-field > span,
.research-stage-filter > span {
  color: #b9cad4;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.research-search-field input,
.research-select-field select,
.research-planner-field input,
.research-planner-field select {
  width: 100%;
  min-height: 49px;
  border: 1px solid #cfdce3;
  border-radius: 11px;
  background: #fff;
  color: var(--navy);
  padding: 11px 13px;
  font: inherit;
}

.research-search-field input {
  border-color: rgba(255, 255, 255, 0.13);
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
}

.research-search-field input::placeholder {
  color: #91a6b4;
}

.research-select-field select {
  border-color: rgba(255, 255, 255, 0.13);
  background: #0a2b47;
  color: #fff;
}

.research-stage-filter {
  grid-column: 1 / -1;
  grid-row: 2;
}

.research-stage-filter > div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.research-stage-filter button {
  min-height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: #c5d3dc;
  padding: 8px 14px;
  font-size: 0.76rem;
  font-weight: 800;
}

.research-stage-filter button[aria-pressed="true"] {
  border-color: var(--gold);
  background: var(--gold);
  color: var(--navy);
}

.research-reset-button {
  min-height: 49px;
  align-self: end;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 11px;
  background: transparent;
  color: #d4e0e7;
  padding: 10px 17px;
  font-weight: 800;
}

.research-reset-button:hover,
.research-reset-button:focus-visible {
  border-color: var(--gold-soft);
  color: var(--gold-soft);
}

.research-results-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 21px 0 16px;
  color: #8fa6b4;
  font-size: 0.75rem;
}

.research-results-bar strong {
  color: #fff;
}

.research-support-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.research-support-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.025));
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.15);
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.research-support-card:hover {
  transform: translateY(-5px);
  border-color: rgba(240, 209, 138, 0.38);
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.035));
}

.research-support-card-top {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 17px;
}

.research-support-stage,
.research-support-need {
  display: inline-flex;
  align-items: center;
  min-height: 27px;
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.research-support-stage {
  background: rgba(79, 211, 196, 0.12);
  color: #79e3d7;
}

.research-support-need {
  background: rgba(217, 166, 46, 0.13);
  color: var(--gold-soft);
}

.research-support-card h4 {
  margin-bottom: 11px;
  color: #fff;
  font-size: 1.32rem;
  line-height: 1.16;
}

.research-support-summary {
  min-height: 104px;
  color: #acbdc8;
  font-size: 0.84rem;
}

.research-support-output-list {
  display: grid;
  gap: 8px;
  margin: 20px 0;
  list-style: none;
}

.research-support-output-list li {
  position: relative;
  color: #d2dde4;
  padding-left: 19px;
  font-size: 0.76rem;
}

.research-support-output-list li::before {
  position: absolute;
  top: 0.48em;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  content: "";
}

.research-support-session {
  display: grid;
  gap: 2px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
}

.research-support-session span {
  color: #8098a8;
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.research-support-session strong {
  color: #fff;
  font-size: 0.77rem;
}

.research-support-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 18px;
}

.research-support-actions button,
.research-support-actions a {
  min-height: 43px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  padding: 9px 11px;
  text-align: center;
  font-size: 0.74rem;
  font-weight: 900;
}

.research-support-details {
  border: 1px solid rgba(255, 255, 255, 0.13);
  background: transparent;
  color: #e4edf2;
}

.research-support-enquiry {
  background: var(--gold);
  color: var(--navy);
}

.research-empty-state {
  padding: 42px 25px;
  border: 1px dashed rgba(255, 255, 255, 0.18);
  border-radius: 20px;
  text-align: center;
}

.research-empty-state strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1.2rem;
}

.research-empty-state p {
  color: #9eb2c1;
}

.research-empty-state button {
  margin-top: 18px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--navy);
  padding: 10px 18px;
  font-weight: 800;
}

.research-planner-section {
  padding: 110px 0;
}

.research-planner-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
  gap: 70px;
  align-items: start;
}

.research-planner-intro {
  position: sticky;
  top: 120px;
}

.research-planner-note {
  margin-top: 25px;
  padding: 18px;
  border-left: 4px solid var(--gold);
  border-radius: 0 13px 13px 0;
  background: #eef4f7;
}

.research-planner-note strong {
  display: block;
  margin-bottom: 5px;
  color: var(--navy);
}

.research-planner-note p {
  color: #607381;
  font-size: 0.82rem;
}

.research-prep-download {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  color: #8e6811;
  font-size: 0.82rem;
  font-weight: 900;
}

.research-prep-download span {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  background: #f0dfb4;
}

.research-planner-workspace {
  min-width: 0;
}

.research-planner-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 28px;
  border: 1px solid #dbe5eb;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 25px 60px rgba(3, 27, 47, 0.09);
}

.research-planner-field {
  display: grid;
  gap: 7px;
}

.research-planner-field-wide {
  grid-column: 1 / -1;
}

.research-planner-field label {
  color: var(--navy);
  font-size: 0.76rem;
  font-weight: 900;
}

.research-planner-field input:focus,
.research-planner-field select:focus,
.research-search-field input:focus,
.research-select-field select:focus {
  outline: 3px solid rgba(217, 166, 46, 0.24);
  outline-offset: 1px;
  border-color: var(--gold);
}

.research-planner-actions {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 7px;
}

.research-planner-reset {
  min-height: 47px;
  border: 1px solid #ccd9e0;
  border-radius: 999px;
  background: #fff;
  color: var(--navy);
  padding: 10px 17px;
  font-weight: 800;
}

.research-plan-result {
  margin-top: 20px;
  overflow: hidden;
  border: 1px solid #cbd9e1;
  border-radius: 22px;
  background: var(--navy);
  color: #fff;
  box-shadow: 0 26px 65px rgba(3, 27, 47, 0.18);
}

.research-plan-result[hidden] {
  display: none;
}

.research-plan-heading {
  padding: 27px 28px 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.research-plan-heading > span,
.research-plan-recommendation > span {
  color: var(--gold-soft);
  font-size: 0.64rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.research-plan-heading h4 {
  margin: 6px 0 8px;
  font-size: clamp(1.6rem, 3.8vw, 2.6rem);
  line-height: 1.08;
}

.research-plan-heading p {
  color: #b9c9d3;
  font-size: 0.85rem;
}

.research-plan-recommendations {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 20px 28px;
}

.research-plan-recommendation {
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.045);
}

.research-plan-recommendation h5 {
  margin: 5px 0 8px;
  font-size: 1rem;
  line-height: 1.18;
}

.research-plan-recommendation p {
  color: #aebfca;
  font-size: 0.74rem;
}

.research-plan-recommendation button {
  margin-top: 13px;
  background: transparent;
  color: var(--gold-soft);
  font-size: 0.72rem;
  font-weight: 900;
}

.research-plan-prepare {
  margin: 0 28px;
  padding: 20px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.research-plan-prepare h5 {
  margin-bottom: 10px;
  font-size: 0.96rem;
}

.research-plan-prepare ul {
  display: grid;
  gap: 8px;
  list-style: none;
}

.research-plan-prepare li {
  position: relative;
  color: #c5d3dc;
  padding-left: 20px;
  font-size: 0.78rem;
}

.research-plan-prepare li::before {
  position: absolute;
  top: 0.48em;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4fd3c4;
  content: "";
}

.research-plan-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  padding: 0 28px 25px;
}

.research-plan-actions button {
  min-height: 45px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  background: transparent;
  color: #fff;
  padding: 10px 17px;
  font-weight: 800;
}

.research-plan-copy-status {
  min-height: 22px;
  color: #8fded4;
  padding: 0 28px 18px;
  font-size: 0.73rem;
}

.research-integrity-section {
  padding: 105px 0;
}

.research-integrity-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
  gap: 70px;
  align-items: start;
}

.research-integrity-layout h3 {
  color: #fff;
}

.research-integrity-layout > div:first-child > p:not(.mini-title) {
  color: #afc0cb;
}

.research-integrity-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.research-integrity-grid article {
  min-height: 300px;
  padding: 25px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
}

.research-integrity-grid article.is-supported {
  background: linear-gradient(155deg, rgba(79, 211, 196, 0.12), rgba(255, 255, 255, 0.025));
}

.research-integrity-grid article.is-not-supported {
  background: linear-gradient(155deg, rgba(255, 147, 100, 0.12), rgba(255, 255, 255, 0.025));
}

.research-integrity-grid strong {
  display: block;
  margin-bottom: 17px;
  font-size: 1.1rem;
}

.research-integrity-grid ul {
  display: grid;
  gap: 11px;
  list-style: none;
}

.research-integrity-grid li {
  position: relative;
  color: #c0ced7;
  padding-left: 22px;
  font-size: 0.82rem;
}

.research-integrity-grid li::before {
  position: absolute;
  top: 0.25em;
  left: 0;
  display: grid;
  width: 15px;
  height: 15px;
  place-items: center;
  border-radius: 50%;
  font-size: 0.62rem;
  font-weight: 900;
}

.research-integrity-grid .is-supported li::before {
  background: rgba(79, 211, 196, 0.18);
  color: #74dfd3;
  content: "✓";
}

.research-integrity-grid .is-not-supported li::before {
  background: rgba(255, 147, 100, 0.18);
  color: #ffad89;
  content: "×";
}

.research-next-section {
  padding: 90px 0;
}

.research-next-layout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 55px;
}

.research-next-layout > div {
  max-width: 800px;
}

.research-dialog {
  width: min(94vw, 1000px);
  max-height: 90vh;
  overflow: auto;
  border: 0;
  border-radius: 24px;
  background: transparent;
  color: var(--text);
  padding: 0;
  box-shadow: 0 35px 90px rgba(0, 0, 0, 0.42);
}

.research-dialog::backdrop {
  background: rgba(0, 10, 18, 0.82);
  backdrop-filter: blur(5px);
}

.research-dialog-shell {
  position: relative;
  padding: 35px;
  background: #fff;
}

.research-dialog-close {
  position: absolute;
  top: 15px;
  right: 15px;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  background: #edf2f5;
  color: var(--navy);
  font-size: 1.7rem;
  line-height: 1;
}

.research-dialog-heading {
  max-width: 800px;
  padding-right: 45px;
}

.research-dialog-heading > span {
  color: #8f6914;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.research-dialog-heading h2 {
  margin: 7px 0 11px;
  color: var(--navy);
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.03;
}

.research-dialog-heading p {
  color: #5f7180;
}

.research-dialog-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 28px 0;
}

.research-dialog-facts div {
  display: grid;
  gap: 4px;
  padding: 15px;
  border-radius: 13px;
  background: #edf4f7;
}

.research-dialog-facts span {
  color: #718593;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.research-dialog-facts strong {
  color: var(--navy);
  font-size: 0.82rem;
}

.research-dialog-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 34px;
  padding-top: 25px;
  border-top: 1px solid #dfe7ed;
}

.research-dialog-columns h3 {
  margin-bottom: 10px;
  color: var(--navy);
  font-size: 1.1rem;
}

.research-dialog-columns section > h3:not(:first-child) {
  margin-top: 23px;
}

.research-dialog-columns p,
.research-dialog-columns li {
  color: #5b6f7e;
  font-size: 0.86rem;
}

.research-dialog-columns ul {
  display: grid;
  gap: 9px;
  list-style: none;
}

.research-dialog-columns li {
  position: relative;
  padding-left: 21px;
}

.research-dialog-columns li::before {
  position: absolute;
  top: 0.44em;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  content: "";
}

.research-dialog-integrity {
  margin-top: 24px;
  padding: 17px;
  border-left: 4px solid #4fd3c4;
  border-radius: 0 12px 12px 0;
  background: #edf7f6;
}

.research-dialog-integrity strong {
  display: block;
  margin-bottom: 5px;
  color: var(--navy);
}

.research-dialog-integrity p {
  color: #526d70;
  font-size: 0.8rem;
}

.research-dialog-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.research-dialog-secondary {
  border: 1px solid #ccd8df;
  border-radius: 999px;
  background: #fff;
  color: var(--navy);
  padding: 12px 18px;
  font-weight: 800;
}

@media (max-width: 1120px) {
  .research-support-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .research-finder {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .research-reset-button {
    align-self: end;
  }
}

@media (max-width: 920px) {
  .research-hero-layout,
  .research-process-layout,
  .research-section-heading,
  .research-planner-layout,
  .research-integrity-layout {
    grid-template-columns: 1fr;
  }

  .research-hero-layout,
  .research-process-layout,
  .research-planner-layout,
  .research-integrity-layout {
    gap: 44px;
  }

  .research-hero-layout {
    padding-top: 95px;
  }

  .research-section-heading {
    gap: 18px;
  }

  .research-planner-intro {
    position: static;
  }

  .research-next-layout {
    align-items: stretch;
    flex-direction: column;
  }

  .research-next-layout .btn {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 680px) {
  .research-hero-panel,
  .research-process-steps,
  .research-finder,
  .research-support-grid,
  .research-planner-form,
  .research-plan-recommendations,
  .research-integrity-grid,
  .research-dialog-facts,
  .research-dialog-columns {
    grid-template-columns: 1fr;
  }

  .research-hero-panel div,
  .research-hero-panel div:nth-child(2n),
  .research-hero-panel div:nth-last-child(-n + 2) {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .research-hero-panel div:last-child {
    border-bottom: 0;
  }

  .research-hero-actions,
  .research-planner-actions,
  .research-plan-actions,
  .research-dialog-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .research-hero-actions .btn,
  .research-planner-actions .btn,
  .research-planner-actions button,
  .research-plan-actions .btn,
  .research-plan-actions button,
  .research-dialog-actions .btn,
  .research-dialog-actions button {
    width: 100%;
    text-align: center;
  }

  .research-stage-filter,
  .research-planner-field-wide,
  .research-planner-actions {
    grid-column: auto;
    grid-row: auto;
  }

  .research-results-bar,
  .research-support-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .research-support-actions {
    display: flex;
  }

  .research-support-summary {
    min-height: auto;
  }

  .research-planner-form,
  .research-plan-heading,
  .research-dialog-shell {
    padding: 24px 20px;
  }

  .research-plan-recommendations {
    padding: 18px 20px;
  }

  .research-plan-prepare {
    margin: 0 20px;
  }

  .research-plan-actions {
    padding: 0 20px 20px;
  }

  .research-plan-copy-status {
    padding: 0 20px 16px;
  }

  .research-dialog-heading {
    padding-right: 32px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .research-support-card {
    transition: none;
  }
}

/* =========================================================
   PHASE 8.2: RESEARCH HERO BACKGROUND VISIBILITY FIX
   Keep the photographic/geospatial artwork visible while
   preserving readable foreground content.
   ========================================================= */

.page-hero-research {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #021421;
}

.page-hero-research::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: url("assets/research-bg.png");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center right;
  opacity: 1;
  filter: brightness(0.92) contrast(1.06) saturate(1.06);
  transform: none;
  animation: none;
  -webkit-mask-image: none;
  mask-image: none;
}

.page-hero-research::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(
      90deg,
      rgba(2, 12, 22, 0.86) 0%,
      rgba(2, 12, 22, 0.72) 31%,
      rgba(2, 12, 22, 0.47) 56%,
      rgba(2, 12, 22, 0.20) 82%,
      rgba(2, 12, 22, 0.14) 100%
    );
  pointer-events: none;
}

.page-hero-research .page-hero-wrap,
.page-hero-research .research-hero-layout {
  position: relative;
  z-index: 2;
}

@media (max-width: 900px) {
  .page-hero-research::before {
    background-position: 66% center;
  }

  .page-hero-research::after {
    background: rgba(2, 12, 22, 0.68);
  }
}

/* =========================================================
   PHASE 9: FREE LESSONS LEARNING LIBRARY
   ========================================================= */

.page-hero-lessons.free-lessons-hero {
  position: relative;
  min-height: 680px;
  isolation: isolate;
  overflow: hidden;
  background: #031b2f;
}

.page-hero-lessons.free-lessons-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: url("assets/lessons-bg.png");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center center;
  opacity: 1;
  filter: brightness(1.04) contrast(1.04) saturate(1.04);
  transform: none;
  animation: none;
}

.page-hero-lessons.free-lessons-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(
      90deg,
      rgba(2, 12, 22, 0.78) 0%,
      rgba(2, 12, 22, 0.65) 34%,
      rgba(2, 12, 22, 0.36) 62%,
      rgba(2, 12, 22, 0.20) 100%
    );
  pointer-events: none;
}

.free-lessons-hero-layout {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(330px, 0.72fr);
  align-items: center;
  gap: 72px;
  padding-top: 105px;
  padding-bottom: 95px;
}

.free-lessons-hero-layout > div:first-child {
  max-width: 790px;
}

.free-lessons-hero-layout h2 {
  max-width: 800px;
  margin: 10px 0 24px;
  font-size: clamp(3rem, 5.7vw, 5.5rem);
  line-height: 0.99;
  letter-spacing: -0.05em;
}

.free-lessons-hero-layout > div:first-child > p:not(.mini-title) {
  max-width: 730px;
  color: #e1eaf2;
  font-size: clamp(1rem, 1.5vw, 1.18rem);
}

.free-lessons-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.free-lessons-hero-actions .btn-secondary {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.32);
  background: rgba(3, 27, 47, 0.58);
}

.free-lessons-hero-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 24px;
  background: rgba(3, 27, 47, 0.82);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(15px);
}

.free-lessons-hero-panel div {
  min-height: 142px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 24px;
  border-right: 1px solid rgba(255, 255, 255, 0.11);
  border-bottom: 1px solid rgba(255, 255, 255, 0.11);
}

.free-lessons-hero-panel div:nth-child(2n) { border-right: 0; }
.free-lessons-hero-panel div:nth-last-child(-n + 2) { border-bottom: 0; }

.free-lessons-hero-panel strong {
  color: var(--gold-soft);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  line-height: 1;
}

.free-lessons-hero-panel span {
  color: #d2dde7;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.free-lessons-method {
  padding: 90px 0;
}

.free-lessons-method-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(520px, 1.1fr);
  align-items: start;
  gap: 68px;
}

.free-lessons-method-layout h3,
.free-lessons-progress-copy h3 {
  margin-bottom: 18px;
  color: #0a2439;
  font-size: clamp(2.2rem, 4vw, 3.6rem);
  line-height: 1.05;
}

.free-lessons-method-layout > div > p:last-child,
.free-lessons-progress-copy > p {
  color: #516576;
  font-size: 1.05rem;
}

.free-lessons-method-steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  list-style: none;
}

.free-lessons-method-steps li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 15px;
  padding: 21px;
  border: 1px solid rgba(5, 40, 65, 0.11);
  border-radius: 19px;
  background: #ffffff;
  box-shadow: 0 14px 32px rgba(3, 27, 47, 0.08);
}

.free-lessons-method-steps li > span {
  color: #c98f11;
  font-size: 1.5rem;
  font-weight: 900;
  line-height: 1;
}

.free-lessons-method-steps strong {
  display: block;
  margin-bottom: 4px;
  color: #0a2439;
}

.free-lessons-method-steps p {
  color: #627484;
  font-size: 0.9rem;
}

.free-lessons-library-section {
  padding: 95px 0 105px;
}

.free-lessons-section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.62fr);
  gap: 60px;
  align-items: end;
}

.free-lessons-section-heading > p {
  color: rgba(224, 236, 246, 0.78);
}

.free-lessons-noscript {
  display: block;
  margin-bottom: 22px;
  padding: 16px 18px;
  border: 1px solid rgba(240, 209, 138, 0.35);
  border-radius: 14px;
  color: #f7e5b5;
  background: rgba(217, 166, 46, 0.1);
}

.free-lessons-finder {
  display: grid;
  grid-template-columns: minmax(250px, 1fr) minmax(0, 1.7fr) 180px 180px auto;
  gap: 14px;
  align-items: end;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.065);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18);
}

.free-lessons-search-field,
.free-lessons-select-field,
.free-lessons-topic-filter {
  display: grid;
  gap: 8px;
}

.free-lessons-search-field label,
.free-lessons-select-field > span,
.free-lessons-topic-filter > span {
  color: #f0d18a;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.free-lessons-search-field input,
.free-lessons-select-field select {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  outline: none;
  color: #f6fbff;
  background: rgba(2, 18, 31, 0.8);
}

.free-lessons-select-field select option {
  color: #102538;
  background: #ffffff;
}

.free-lessons-search-field input:focus,
.free-lessons-select-field select:focus {
  border-color: rgba(240, 209, 138, 0.7);
  box-shadow: 0 0 0 3px rgba(217, 166, 46, 0.13);
}

.free-lessons-topic-filter > div {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.free-lessons-topic-filter button,
.free-lessons-reset-button {
  min-height: 42px;
  padding: 9px 13px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  color: #dce7f0;
  background: rgba(255, 255, 255, 0.05);
  font-size: 0.8rem;
  font-weight: 700;
  transition: 0.22s ease;
}

.free-lessons-topic-filter button:hover,
.free-lessons-topic-filter button[aria-pressed="true"] {
  color: #0a1926;
  border-color: var(--gold-soft);
  background: var(--gold-soft);
}

.free-lessons-reset-button {
  border-radius: 12px;
  white-space: nowrap;
}

.free-lessons-reset-button:hover {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.11);
}

.free-lessons-results-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 22px 0;
  color: rgba(225, 237, 247, 0.72);
  font-size: 0.86rem;
}

.free-lessons-results-bar strong {
  color: #ffffff;
}

.free-lessons-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.free-lesson-card {
  position: relative;
  display: flex;
  min-height: 420px;
  flex-direction: column;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 23px;
  background:
    linear-gradient(160deg, rgba(15, 53, 86, 0.97), rgba(4, 27, 47, 0.97));
  box-shadow: 0 20px 46px rgba(0, 0, 0, 0.22);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.free-lesson-card:hover {
  transform: translateY(-5px);
  border-color: rgba(240, 209, 138, 0.4);
  box-shadow: 0 28px 58px rgba(0, 0, 0, 0.3);
}

.free-lesson-card.is-complete {
  border-color: rgba(93, 205, 151, 0.42);
}

.free-lesson-card-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 20px;
}

.free-lesson-topic,
.free-lesson-complete-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.free-lesson-topic {
  color: #0b1d2c;
  background: #d5e8f7;
}

.free-lesson-topic-remote-sensing { background: #f0d18a; }
.free-lesson-topic-qgis { background: #aad69d; }
.free-lesson-topic-spatial-data { background: #a9d3f2; }
.free-lesson-topic-mapwork { background: #dab8ec; }
.free-lesson-topic-research { background: #efb49e; }

.free-lesson-complete-badge {
  color: #d9e7f2;
  border: 1px solid rgba(255, 255, 255, 0.13);
  background: rgba(255, 255, 255, 0.06);
}

.free-lesson-card.is-complete .free-lesson-complete-badge {
  color: #bff1d5;
  border-color: rgba(93, 205, 151, 0.36);
  background: rgba(93, 205, 151, 0.11);
}

.free-lesson-card h4 {
  margin-bottom: 13px;
  color: #ffffff;
  font-size: 1.45rem;
  line-height: 1.15;
}

.free-lesson-card > p {
  margin-bottom: 20px;
  color: rgba(224, 236, 246, 0.78);
  font-size: 0.94rem;
}

.free-lesson-card-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 16px;
}

.free-lesson-card-facts span,
.free-lesson-card-concepts span {
  padding: 5px 8px;
  border-radius: 8px;
  font-size: 0.7rem;
}

.free-lesson-card-facts span {
  color: #dbe8f2;
  background: rgba(255, 255, 255, 0.07);
}

.free-lesson-card-concepts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 22px;
}

.free-lesson-card-concepts span {
  color: #f0d18a;
  border: 1px solid rgba(240, 209, 138, 0.2);
  background: rgba(217, 166, 46, 0.07);
}

.free-lesson-card > button {
  width: 100%;
  margin-top: auto;
  padding: 12px 15px;
  border-radius: 12px;
  color: #081724;
  background: var(--gold);
  font-weight: 800;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.free-lesson-card > button:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
}

.free-lessons-empty-state {
  padding: 48px 25px;
  border: 1px dashed rgba(255, 255, 255, 0.2);
  border-radius: 22px;
  text-align: center;
  color: #dbe7f1;
}

.free-lessons-empty-state strong {
  display: block;
  margin-bottom: 6px;
  color: #ffffff;
  font-size: 1.2rem;
}

.free-lessons-empty-state button {
  margin-top: 16px;
  padding: 10px 16px;
  border-radius: 999px;
  color: #0a1926;
  background: var(--gold-soft);
  font-weight: 800;
}

.free-lessons-progress-section {
  padding: 95px 0;
}

.free-lessons-progress-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.72fr);
  align-items: center;
  gap: 76px;
}

.free-lessons-progress-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.free-lessons-progress-actions > button:not(.btn) {
  padding: 13px 18px;
  border: 1px solid rgba(5, 40, 65, 0.17);
  border-radius: 999px;
  color: #19374f;
  background: #ffffff;
  font-weight: 700;
}

.free-lessons-progress-card {
  padding: 29px;
  border: 1px solid rgba(5, 40, 65, 0.11);
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 24px 55px rgba(3, 27, 47, 0.12);
}

.free-lessons-progress-number {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 16px;
}

.free-lessons-progress-number strong {
  color: #0b2a43;
  font-size: 3.4rem;
  line-height: 1;
}

.free-lessons-progress-number span {
  color: #687b8b;
  font-weight: 800;
  text-transform: uppercase;
}

.free-lessons-progress-track,
.free-lesson-dialog-progress > div {
  overflow: hidden;
  height: 10px;
  border-radius: 999px;
  background: #dfe8ef;
}

.free-lessons-progress-track > span,
.free-lesson-dialog-progress i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #d9a62e, #f0d18a);
  transition: width 0.35s ease;
}

.free-lessons-progress-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 22px 0;
}

.free-lessons-progress-facts div {
  padding: 15px;
  border-radius: 15px;
  background: #eef4f8;
}

.free-lessons-progress-facts strong,
.free-lessons-progress-facts span {
  display: block;
}

.free-lessons-progress-facts strong {
  color: #0b2a43;
  font-size: 1.8rem;
}

.free-lessons-progress-facts span {
  color: #637687;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
}

.free-lessons-progress-card > p {
  color: #566a7b;
}

.free-lessons-pathways-section {
  padding: 90px 0 100px;
}

.free-lessons-pathway-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.free-lessons-pathway-grid article {
  padding: 27px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.065);
}

.free-lessons-pathway-grid article > span {
  color: var(--gold-soft);
  font-size: 1.8rem;
  font-weight: 900;
}

.free-lessons-pathway-grid h4 {
  margin: 10px 0;
  color: #ffffff;
  font-size: 1.35rem;
}

.free-lessons-pathway-grid p {
  margin-bottom: 18px;
  color: rgba(225, 237, 247, 0.76);
}

.free-lessons-pathway-grid a {
  color: #f0d18a;
  font-weight: 800;
}

.free-lesson-dialog {
  width: min(94vw, 980px);
  max-height: 92vh;
  padding: 0;
  border: 0;
  border-radius: 25px;
  color: #102538;
  background: transparent;
  box-shadow: 0 35px 95px rgba(0, 0, 0, 0.46);
}

.free-lesson-dialog::backdrop {
  background: rgba(1, 10, 18, 0.78);
  backdrop-filter: blur(7px);
}

.free-lesson-dialog-shell {
  position: relative;
  overflow: auto;
  max-height: 92vh;
  padding: 34px;
  border-radius: 25px;
  background: #f3f7fa;
}

.free-lesson-dialog-close {
  position: absolute;
  top: 15px;
  right: 17px;
  z-index: 3;
  width: 39px;
  height: 39px;
  border-radius: 50%;
  color: #ffffff;
  background: #082742;
  font-size: 1.6rem;
  line-height: 1;
}

.free-lesson-dialog-heading {
  padding-right: 44px;
}

.free-lesson-dialog-heading > span {
  color: #a26f00;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.free-lesson-dialog-heading h2 {
  margin: 9px 0 13px;
  color: #082742;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.03;
}

.free-lesson-dialog-heading p {
  color: #526778;
  font-size: 1.02rem;
}

.free-lesson-dialog-progress {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 14px;
  margin: 24px 0 28px;
  color: #5d7182;
  font-size: 0.78rem;
  font-weight: 800;
}

.free-lesson-dialog-outcomes,
.free-lesson-dialog-concepts,
.free-lesson-practice,
.free-lesson-check,
.free-lesson-reference {
  margin-top: 22px;
  padding: 22px;
  border: 1px solid rgba(6, 42, 68, 0.1);
  border-radius: 18px;
  background: #ffffff;
}

.free-lesson-dialog-outcomes h3,
.free-lesson-dialog-concepts h3,
.free-lesson-practice h3,
.free-lesson-check h3 {
  margin-bottom: 12px;
  color: #0a2a43;
  font-size: 1.22rem;
}

.free-lesson-dialog-outcomes ul,
.free-lesson-practice ol {
  display: grid;
  gap: 8px;
  padding-left: 21px;
  color: #4e6374;
}

.free-lesson-dialog-content {
  display: grid;
  gap: 18px;
  margin-top: 25px;
}

.free-lesson-dialog-content section {
  padding: 22px;
  border-left: 4px solid var(--gold);
  border-radius: 0 17px 17px 0;
  background: #ffffff;
}

.free-lesson-dialog-content h3 {
  margin-bottom: 9px;
  color: #0a2a43;
  font-size: 1.28rem;
}

.free-lesson-dialog-content p {
  color: #506576;
}

.free-lesson-dialog-content p + p {
  margin-top: 10px;
}

.free-lesson-dialog-concepts > div {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.free-lesson-dialog-concepts span {
  padding: 7px 10px;
  border-radius: 999px;
  color: #153b57;
  background: #e5eef5;
  font-size: 0.78rem;
  font-weight: 700;
}

.free-lesson-check > button {
  padding: 10px 15px;
  border-radius: 999px;
  color: #ffffff;
  background: #0b3150;
  font-weight: 800;
}

.free-lesson-check > p {
  margin-top: 14px;
  padding: 14px;
  border-radius: 12px;
  color: #25465d;
  background: #e8f2f8;
}

.free-lesson-reference {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.free-lesson-reference strong {
  color: #193b53;
}

.free-lesson-reference a {
  color: #8c6208;
  font-weight: 900;
  text-align: right;
}

.free-lesson-dialog-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 25px;
}

.free-lesson-dialog-actions button:not(.btn) {
  padding: 12px 16px;
  border: 1px solid rgba(6, 42, 68, 0.15);
  border-radius: 999px;
  color: #173b55;
  background: #ffffff;
  font-weight: 800;
}

.free-lesson-dialog-actions button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.free-lesson-dialog-status {
  min-height: 24px;
  margin-top: 12px;
  color: #38624e;
  font-weight: 700;
}

@media (max-width: 1100px) {
  .free-lessons-finder {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .free-lessons-topic-filter {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .free-lessons-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .free-lessons-hero-layout,
  .free-lessons-method-layout,
  .free-lessons-progress-layout,
  .free-lessons-section-heading {
    grid-template-columns: 1fr;
  }

  .free-lessons-hero-layout,
  .free-lessons-method-layout,
  .free-lessons-progress-layout {
    gap: 42px;
  }

  .page-hero-lessons.free-lessons-hero::before {
    background-position: 60% center;
  }

  .page-hero-lessons.free-lessons-hero::after {
    background: rgba(2, 12, 22, 0.59);
  }

  .free-lessons-pathway-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .free-lessons-hero-layout {
    padding-top: 75px;
    padding-bottom: 70px;
  }

  .free-lessons-hero-panel,
  .free-lessons-method-steps,
  .free-lessons-grid,
  .free-lessons-finder,
  .free-lessons-progress-facts {
    grid-template-columns: 1fr;
  }

  .free-lessons-hero-panel div,
  .free-lessons-hero-panel div:nth-child(2n),
  .free-lessons-hero-panel div:nth-last-child(-n + 2) {
    min-height: 105px;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .free-lessons-hero-panel div:last-child {
    border-bottom: 0;
  }

  .free-lessons-hero-actions,
  .free-lessons-progress-actions,
  .free-lesson-dialog-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .free-lessons-hero-actions .btn,
  .free-lessons-progress-actions button,
  .free-lesson-dialog-actions button {
    width: 100%;
  }

  .free-lessons-topic-filter {
    grid-column: auto;
    grid-row: auto;
  }

  .free-lessons-results-bar,
  .free-lesson-reference {
    align-items: flex-start;
    flex-direction: column;
  }

  .free-lesson-reference a {
    text-align: left;
  }

  .free-lesson-dialog-shell {
    padding: 25px 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .free-lesson-card,
  .free-lessons-progress-track > span,
  .free-lesson-dialog-progress i {
    transition: none;
  }
}

.free-lessons-plan-download {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  padding: 11px 16px;
  border: 1px solid rgba(5, 40, 65, 0.15);
  border-radius: 999px;
  color: #153b57;
  background: #ffffff;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(3, 27, 47, 0.08);
}

.free-lessons-plan-download span {
  color: #b27c08;
  font-size: 1.1rem;
}

/* =========================================================
   PHASE 10: LAUNCH READINESS, POLICY PAGES AND 404
   ========================================================= */

html {
  scroll-padding-top: 118px;
}

main:focus {
  outline: none;
}

main [id] {
  scroll-margin-top: 118px;
}

/* Keep focus indicators visible against light and dark sections. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid #f4cf69;
  outline-offset: 4px;
  box-shadow: 0 0 0 2px rgba(3, 27, 47, 0.72);
}

.footer-policy-row {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(1, 12, 22, 0.46);
}

.footer-policy-wrap {
  min-height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 12px;
  padding-bottom: 12px;
}

.footer-policy-wrap nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
}

.footer-policy-wrap a,
.footer-back-to-top {
  color: rgba(223, 235, 245, 0.78);
  font-size: 0.82rem;
  font-weight: 700;
  transition: color 0.2s ease, transform 0.2s ease;
}

.footer-policy-wrap a:hover,
.footer-policy-wrap a:focus-visible,
.footer-back-to-top:hover,
.footer-back-to-top:focus-visible {
  color: #ffffff;
}

.footer-back-to-top {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  padding: 9px 13px;
  border: 1px solid rgba(240, 209, 138, 0.28);
  border-radius: 999px;
  background: rgba(217, 166, 46, 0.09);
}

.footer-back-to-top:hover {
  transform: translateY(-2px);
}

.policy-hero {
  position: relative;
  min-height: 440px;
  display: grid;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at 80% 25%, rgba(48, 124, 181, 0.28), transparent 300px),
    linear-gradient(135deg, #031b2f 0%, #082742 58%, #031523 100%);
}

.policy-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(140, 190, 229, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(140, 190, 229, 0.08) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(90deg, transparent 8%, #000 55%, #000);
}

.policy-hero-terms::after,
.policy-hero-accessibility::after {
  content: "";
  position: absolute;
  right: clamp(32px, 8vw, 130px);
  top: 50%;
  width: clamp(180px, 25vw, 340px);
  aspect-ratio: 1;
  transform: translateY(-50%);
  border: 1px solid rgba(240, 209, 138, 0.22);
  border-radius: 50%;
  box-shadow:
    0 0 0 42px rgba(76, 139, 187, 0.05),
    0 0 0 84px rgba(76, 139, 187, 0.035);
  pointer-events: none;
}

.policy-hero-wrap {
  width: min(92%, 920px);
  margin: 0 auto;
  padding: 110px 0 92px;
}

.policy-hero h2 {
  max-width: 830px;
  margin-bottom: 22px;
  font-size: clamp(2.7rem, 6vw, 5.3rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.policy-hero p:not(.mini-title) {
  max-width: 780px;
  color: #d2e0eb;
  font-size: clamp(1rem, 1.8vw, 1.2rem);
}

.policy-updated {
  display: inline-flex;
  margin-top: 24px;
  padding: 8px 13px;
  border: 1px solid rgba(240, 209, 138, 0.24);
  border-radius: 999px;
  color: #f0d18a;
  background: rgba(3, 27, 47, 0.62);
  font-size: 0.8rem;
  font-weight: 800;
}

.policy-section {
  padding-top: 82px;
  padding-bottom: 100px;
}

.policy-layout {
  display: grid;
  grid-template-columns: minmax(210px, 0.3fr) minmax(0, 1fr);
  gap: clamp(38px, 7vw, 92px);
  align-items: start;
}

.policy-navigation {
  position: sticky;
  top: 118px;
  display: grid;
  gap: 7px;
  padding: 22px;
  border: 1px solid rgba(3, 27, 47, 0.11);
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 16px 38px rgba(3, 27, 47, 0.08);
}

.policy-navigation strong {
  margin-bottom: 7px;
  color: #082742;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.policy-navigation a {
  padding: 8px 10px;
  border-radius: 9px;
  color: #3e5568;
  font-size: 0.88rem;
  font-weight: 700;
}

.policy-navigation a:hover,
.policy-navigation a:focus-visible {
  color: #082742;
  background: #eef4f8;
}

.policy-content {
  min-width: 0;
  max-width: 900px;
  color: #203648;
}

.policy-content-single {
  margin: 0 auto;
}

.policy-content section {
  padding: 0 0 36px;
  margin: 0 0 36px;
  border-bottom: 1px solid rgba(3, 27, 47, 0.11);
}

.policy-content section:last-of-type {
  margin-bottom: 0;
}

.policy-content h3 {
  margin-bottom: 14px;
  color: #082742;
  font-size: clamp(1.55rem, 3vw, 2.2rem);
  line-height: 1.12;
}

.policy-content p,
.policy-content li {
  color: #43596a;
  font-size: 1rem;
  line-height: 1.78;
}

.policy-content p + p {
  margin-top: 13px;
}

.policy-content ul {
  display: grid;
  gap: 8px;
  margin: 14px 0 0 20px;
}

.policy-content a {
  color: #075b97;
  font-weight: 800;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}

.policy-note {
  margin-top: 36px;
  padding: 22px;
  border-left: 5px solid #d9a62e;
  border-radius: 4px 18px 18px 4px;
  background: #fff8e6;
}

.policy-note strong {
  display: block;
  margin-bottom: 6px;
  color: #6f4b08;
}

.not-found-main {
  min-height: 70vh;
}

.not-found-section {
  position: relative;
  min-height: 720px;
  display: grid;
  align-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 74% 45%, rgba(51, 130, 188, 0.25), transparent 330px),
    linear-gradient(135deg, #031b2f, #041524);
}

.not-found-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(115, 176, 226, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(115, 176, 226, 0.09) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(circle at 70% 50%, #000, transparent 64%);
}

.not-found-layout {
  position: relative;
  display: grid;
  grid-template-columns: minmax(250px, 0.62fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(44px, 8vw, 110px);
  padding: 105px 0;
}

.not-found-code {
  color: rgba(240, 209, 138, 0.96);
  font-size: clamp(7rem, 19vw, 15rem);
  font-weight: 900;
  line-height: 0.8;
  letter-spacing: -0.08em;
  text-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.not-found-copy h2 {
  max-width: 700px;
  margin-bottom: 20px;
  font-size: clamp(2.5rem, 5vw, 4.8rem);
  line-height: 1;
}

.not-found-copy > p:not(.mini-title) {
  max-width: 650px;
  color: #c9d9e6;
  font-size: 1.08rem;
}

.not-found-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
  margin-top: 30px;
}

@media (max-width: 820px) {
  .footer-policy-wrap,
  .not-found-layout {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-policy-wrap {
    display: grid;
  }

  .policy-layout,
  .not-found-layout {
    grid-template-columns: 1fr;
  }

  .policy-navigation {
    position: static;
  }

  .policy-hero-terms::after,
  .policy-hero-accessibility::after {
    opacity: 0.45;
  }

  .not-found-section {
    min-height: 640px;
  }
}

@media (max-width: 560px) {
  .policy-hero-wrap {
    padding-top: 88px;
    padding-bottom: 72px;
  }

  .policy-section {
    padding-top: 62px;
    padding-bottom: 76px;
  }

  .not-found-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .not-found-actions .btn {
    width: 100%;
  }
}

@media print {
  .site-header,
  .site-footer,
  .welcome-intro,
  .hero-actions,
  .courses-hero-actions,
  .research-hero-actions,
  .free-lessons-hero-actions,
  .booking-hero-note,
  .footer-policy-row {
    display: none !important;
  }

  body,
  .section-light,
  .section-dark,
  .policy-hero,
  .page-hero {
    color: #000 !important;
    background: #fff !important;
  }

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

  main {
    display: block;
  }
}

/* Prefer compact WebP hero images while retaining PNG fallbacks. */
.page-hero-courses::before {
  background-image: url("assets/courses-bg.png");
  background-image: image-set(
    url("assets/courses-bg.webp") type("image/webp"),
    url("assets/courses-bg.png") type("image/png")
  );
}

.page-hero-research::before {
  background-image: url("assets/research-bg.png");
  background-image: image-set(
    url("assets/research-bg.webp") type("image/webp"),
    url("assets/research-bg.png") type("image/png")
  );
}

.page-hero-lessons.free-lessons-hero::before {
  background-image: url("assets/lessons-bg.png");
  background-image: image-set(
    url("assets/lessons-bg.webp") type("image/webp"),
    url("assets/lessons-bg.png") type("image/png")
  );
}

