/* =========================================================
   PRINGLE PCS - REUSABLE TRAINING COURSE OVERVIEW
   Shared stylesheet for all Pringle PCS course overview pages.
   Load after css/training.css. It does not alter shared scripts
   or the rest of the website.

   Naming convention:
   - training-*  = page-level layout sections
   - course-*    = reusable course cards and course details
   - stage-one to stage-five = stage colour and order hooks
========================================================= */

:root {
  --pcs-red: #ef233c;
  --pcs-red-dark: #bd1127;
  --pcs-navy: #061426;
  --pcs-navy-2: #0b203b;
  --pcs-blue: #2f7cff;
  --pcs-ink: #152238;
  --pcs-muted: #617086;
  --pcs-line: #dce4ed;
  --pcs-soft: #f3f6fa;
  --pcs-white: #ffffff;
  --pcs-shadow: 0 20px 55px rgba(9, 25, 45, 0.14);

  /* Override these variables on an individual course page when required. */
  --course-title-color: #ff0000;
  --course-title-glow: rgba(255, 0, 0, 0.18);
}

html {
  scroll-behavior: smooth;
}

body.training-course-page {
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 7% 5%, rgba(239, 35, 60, 0.08), transparent 28%),
    radial-gradient(circle at 94% 12%, rgba(47, 124, 255, 0.10), transparent 30%),
    linear-gradient(180deg, #f5f7fa 0%, #edf2f7 100%);
  color: var(--pcs-ink);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.55;
}

body.training-course-page *,
body.training-course-page *::before,
body.training-course-page *::after {
  box-sizing: border-box;
}

body.training-course-page img {
  max-width: 100%;
}

.training-page-shell {
  width: min(96%, 1600px);
  margin: 0 auto;
  padding: 28px 0 58px;
}

/* ---------------------------------------------------------
   HERO
--------------------------------------------------------- */
.training-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(330px, 0.65fr);
  gap: 30px;
  align-items: stretch;
  overflow: hidden;
  padding: 34px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(239, 35, 60, 0.14), transparent 34%),
    radial-gradient(circle at 80% 8%, rgba(47, 124, 255, 0.20), transparent 35%),
    linear-gradient(145deg, #030b15 0%, #07172b 52%, #0c203c 100%);
  box-shadow: 0 24px 70px rgba(4, 15, 29, 0.32);
  isolation: isolate;
}

.training-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 7px;
  background: linear-gradient(90deg, var(--pcs-red) 0%, #ff5768 42%, var(--pcs-blue) 100%);
  z-index: 3;
}

.training-hero::after {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  left: -190px;
  bottom: -260px;
  border: 1px solid rgba(239, 35, 60, 0.18);
  border-radius: 50%;
  box-shadow: 0 0 0 42px rgba(239, 35, 60, 0.035), 0 0 0 84px rgba(239, 35, 60, 0.025);
  z-index: -1;
}

.training-hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: 8px 6px 8px 4px;
}

.training-title-image-wrap {
  width: min(100%, 720px);
  margin-bottom: 19px;
  overflow: hidden;
  border-radius: 12px;
  background: #000;
}

.training-title-image-wrap img {
  display: block;
  width: 100%;
  height: auto;
}

.training-eyebrow,
.section-label,
.detail-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 12px;
  line-height: 1;
  font-weight: 900;
}

.training-eyebrow {
  margin-bottom: 13px;
  padding: 9px 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  color: #fff;
  background: rgba(239, 35, 60, 0.18);
}

.training-hero h1 {
  margin: 0;
  max-width: 880px;
  color: #fff;
  font-size: clamp(36px, 4.1vw, 65px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 900;
}

.hero-lead {
  max-width: 930px;
  margin: 18px 0 0;
  color: #c9d6e7;
  font-size: clamp(17px, 1.45vw, 21px);
  line-height: 1.55;
}

.hero-proof-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 22px;
}

.hero-proof-row span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 10px;
  color: #eef6ff;
  background: rgba(255, 255, 255, 0.055);
  font-size: 13px;
  font-weight: 700;
}

.hero-proof-row i {
  color: #57df88;
}

body.training-course-page .course-button-row {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin: 25px 0 0;
}

body.training-course-page .download-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: auto;
  min-width: 205px;
  min-height: 50px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: 12px;
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 900;
  box-shadow: none;
  transition: transform 0.22s ease, background 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

body.training-course-page .download-button:hover,
body.training-course-page .download-button:focus {
  color: #fff;
  text-decoration: none;
  transform: translateY(-2px);
}

body.training-course-page .primary-button {
  background: linear-gradient(135deg, #ff3b4f 0%, var(--pcs-red) 100%);
  box-shadow: 0 11px 28px rgba(239, 35, 60, 0.26);
}

body.training-course-page .primary-button:hover,
body.training-course-page .primary-button:focus {
  background: linear-gradient(135deg, #ff5264 0%, #db1730 100%);
  box-shadow: 0 15px 32px rgba(239, 35, 60, 0.34);
}

body.training-course-page .secondary-button {
  border-color: rgba(255, 255, 255, 0.20);
  background: rgba(255, 255, 255, 0.075);
}

body.training-course-page .secondary-button:hover,
body.training-course-page .secondary-button:focus {
  border-color: rgba(255, 255, 255, 0.38);
  background: rgba(255, 255, 255, 0.13);
}

/* Pringle PCS-style connected hub */
.training-pathway-hub {
  align-self: start;
  height: auto;
  min-height: 0;
  padding: 18px;
  border: 1px solid rgba(94, 168, 255, 0.42);
  border-radius: 20px;
  background: linear-gradient(
    180deg,
    rgba(7, 23, 43, 0.94),
    rgba(4, 14, 28, 0.96)
  );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.055),
    0 18px 38px rgba(0, 0, 0, 0.22);
}
.hub-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 3px 2px 15px;
  margin-bottom: 12px;
  border-bottom: 1px solid rgba(105, 165, 230, 0.26);
}

.hub-heading > div {
  display: flex;
  flex-direction: column;
}

.hub-heading span:first-child {
  color: #8498b2;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.11em;
}

.hub-heading strong {
  margin-top: 3px;
  color: #fff;
  font-size: 19px;
  line-height: 1.15;
}

.hub-connected {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: 0 0 auto;
  padding: 7px 10px;
  border-radius: 999px;
  color: #64eca1 !important;
  background: rgba(29, 190, 107, 0.13);
  font-size: 10px !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}

.hub-connected i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #2ce482;
  box-shadow: 0 0 11px rgba(44, 228, 130, 0.85);
}

.hub-stage {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-height: 74px;
  margin-top: 12px;
  padding: 14px 16px;
  border: 2px solid var(--hub-border);
  border-radius: 14px;
  background: var(--hub-bg);
  box-shadow: none;
}

.hub-stage > span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 2px solid rgba(255, 255, 255, 0.45);
  border-radius: 50%;
  color: var(--hub-text);
  background: rgba(0, 0, 0, 0.18);
  font-size: 13px;
  font-weight: 900;
}

.hub-stage div {
  min-width: 0;
}

.hub-stage strong,
.hub-stage small {
  display: block;
}

.hub-stage strong {
  color: var(--hub-text);
  font-size: 15px;
  line-height: 1.2;
  font-weight: 800;
}

.hub-stage small {
  margin-top: 4px;
  color: var(--hub-subtext);
  font-size: 12px;
  line-height: 1.25;
}

/* Stage colours */
.hub-stage-1 {
  --hub-bg: #16a34a;      /* Green */
  --hub-border: #22c55e;
  --hub-text: #ffffff;
  --hub-subtext: rgba(255,255,255,0.92);
}

.hub-stage-2 {
  --hub-bg: #facc15;      /* Yellow */
  --hub-border: #fde047;
  --hub-text: #111827;
  --hub-subtext: #1f2937;
}

.hub-stage-3 {
  --hub-bg: #facc15;      /* Yellow */
  --hub-border: #fde047;
  --hub-text: #111827;
  --hub-subtext: #1f2937;
}

.hub-stage-4 {
  --hub-bg: #dc2626;      /* Red */
  --hub-border: #ef4444;
  --hub-text: #ffffff;
  --hub-subtext: rgba(255,255,255,0.92);
}

.hub-stage-5 {
  --hub-bg: #2563eb;      /* Blue */
  --hub-border: #3b82f6;
  --hub-text: #ffffff;
  --hub-subtext: rgba(255,255,255,0.92);
}
/* ---------------------------------------------------------
   MAIN FEATURE VISUAL
--------------------------------------------------------- */
.training-feature-visual {
  position: relative;
  overflow: hidden;
  margin-top: 22px;
  border: 1px solid #1d3654;
  border-radius: 22px;
  background: #020811;
  box-shadow: var(--pcs-shadow);
}

.training-feature-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(3, 10, 20, 0.42) 0%, transparent 30%, transparent 72%, rgba(3, 10, 20, 0.24) 100%);
}

.training-feature-visual img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 1;
  object-fit: cover;
}

.feature-visual-label {
  position: absolute;
  z-index: 2;
  left: 26px;
  bottom: 22px;
  display: flex;
  flex-direction: column;
  max-width: min(650px, 62%);
  padding: 14px 18px;
  border-left: 5px solid var(--pcs-red);
  border-radius: 6px 13px 13px 6px;
  background: rgba(3, 12, 23, 0.86);
  backdrop-filter: blur(7px);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.24);
}

.feature-visual-label span {
  color: #a8bad0;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.feature-visual-label strong {
  margin-top: 4px;
  color: #fff;
  font-size: clamp(17px, 2vw, 25px);
  line-height: 1.25;
}

/* ---------------------------------------------------------
   BENEFITS
--------------------------------------------------------- */
.training-benefits {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-top: 22px;
}

.benefit-item {
  display: flex;
  align-items: center;
  gap: 13px;
  min-height: 91px;
  padding: 17px;
  border: 1px solid var(--pcs-line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 9px 24px rgba(14, 34, 58, 0.07);
}

.benefit-item > i {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 43px;
  height: 43px;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, var(--pcs-red), #ff5d6e);
  box-shadow: 0 8px 18px rgba(239, 35, 60, 0.21);
  font-size: 19px;
}

.benefit-item:nth-child(even) > i {
  background: linear-gradient(135deg, #2269d8, #4297ff);
  box-shadow: 0 8px 18px rgba(47, 124, 255, 0.22);
}

.benefit-item strong,
.benefit-item span {
  display: block;
}

.benefit-item strong {
  color: #152238;
  font-size: 14px;
  line-height: 1.2;
}

.benefit-item span {
  margin-top: 4px;
  color: #6e7d91;
  font-size: 12px;
  line-height: 1.25;
}

/* ---------------------------------------------------------
   PATHWAY
--------------------------------------------------------- */
.training-pathway-section {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(480px, 1.22fr);
  gap: 28px;
  align-items: center;
  margin-top: 28px;
  padding: 28px;
  border: 1px solid var(--pcs-line);
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--pcs-shadow);
}

.section-label,
.detail-kicker {
  color: var(--pcs-red);
}

.pathway-copy h2,
.course-section-title h2,
.training-bespoke-cta h2 {
  margin: 10px 0 0;
  color: #102039;
  font-size: clamp(28px, 3vw, 43px);
  line-height: 1.08;
  letter-spacing: -0.025em;
  font-weight: 900;
}

.pathway-copy p,
.course-section-title p,
.training-bespoke-cta p {
  color: var(--pcs-muted);
  font-size: 16px;
  line-height: 1.65;
}

.pathway-copy p {
  margin: 16px 0 0;
}

.pathway-points {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 20px;
}

.pathway-points span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 11px;
  border: 1px solid #d7e0eb;
  border-radius: 999px;
  color: #34465d;
  background: #f7f9fc;
  font-size: 12px;
  font-weight: 800;
}

.pathway-points i {
  color: var(--pcs-red);
}

.pathway-image-card {
  overflow: hidden;
  border: 1px solid #203a59;
  border-radius: 16px;
  background: #020712;
  box-shadow: 0 17px 42px rgba(9, 27, 48, 0.20);
}

.pathway-image-card img {
  display: block;
  width: 100%;
  height: auto;
}

/* ---------------------------------------------------------
   SECTION HEADING
--------------------------------------------------------- */
body.training-course-page .course-section-title {
  max-width: 920px;
  margin: 48px auto 26px;
  text-align: center;
}

body.training-course-page .course-section-title h2 {
  color: #102039;
}

body.training-course-page .course-section-title p {
  margin: 11px auto 0;
}

body.training-course-page .course-section-title .section-label {
  margin: 0 auto;
}

/* ---------------------------------------------------------
   COURSE CARDS
--------------------------------------------------------- */
body.training-course-page .course-level-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 17px;
}

body.training-course-page .course-level-grid.course-expanded {
  grid-template-columns: minmax(0, 1fr);
}

body.training-course-page .course-level-card {
  --accent: #ef233c;
  --accent-rgb: 239, 35, 60;
  position: relative;
  overflow: hidden;
  min-width: 0;
  border: 1px solid #d8e2ed;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(9, 28, 50, 0.10);
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

body.training-course-page .course-level-card::before {
  content: none;
  display: none;
}

body.training-course-page .course-level-card:hover {
  z-index: 2;
  transform: translateY(-6px);
  border-color: rgba(var(--accent-rgb), 0.58);
  box-shadow: 0 20px 44px rgba(9, 28, 50, 0.16), 0 0 0 1px rgba(var(--accent-rgb), 0.08);
}

body.training-course-page .stage-one {
  --accent: #1fca69;
  --accent-rgb: 31, 202, 105;
}

body.training-course-page .stage-two {
  --accent: #f2c53d;
  --accent-rgb: 242, 197, 61;
}

body.training-course-page .stage-three {
  --accent: #2f9cff;
  --accent-rgb: 47, 156, 255;
}

body.training-course-page .stage-four {
  --accent: #ef3348;
  --accent-rgb: 239, 51, 72;
}

body.training-course-page .stage-five {
  --accent: #356fff;
  --accent-rgb: 53, 111, 255;
}

body.training-course-page .course-level-card.hidden-course {
  display: none;
}

body.training-course-page .course-level-card.full-width-course {
  width: 100%;
  transform: none;
  border-color: rgba(var(--accent-rgb), 0.55);
  box-shadow: 0 24px 60px rgba(8, 27, 51, 0.17);
}

body.training-course-page .course-level-card-top {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 0;
  cursor: pointer;
  text-align: left;
  background: #fff;
  border: 0;
}

.course-card-visual {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 1;
  min-height: 94px;
  border-bottom: 4px solid var(--accent);
  background: #071426;
}

.course-card-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(3, 10, 19, 0.22));
  pointer-events: none;
}

.course-card-visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.stage-number {
  position: absolute;
  z-index: 2;
  left: 12px;
  top: 12px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 2px solid rgba(255, 255, 255, 0.78);
  border-radius: 50%;
  color: #fff;
  background: rgba(4, 14, 28, 0.86);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.24), 0 0 0 3px rgba(var(--accent-rgb), 0.30);
  font-size: 14px;
  font-weight: 900;
}

.course-card-copy {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 264px;
  padding: 18px 17px 17px;
}

.course-level-label {
  display: block;
  color: var(--accent);
  font-size: 11px;
  line-height: 1.35;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

body.training-course-page .course-level-card h3 {
  margin: 8px 0 0;
  color: #132238;
  font-size: clamp(19px, 1.55vw, 25px);
  line-height: 1.08;
  letter-spacing: -0.018em;
  font-weight: 900;
}

body.training-course-page .course-subtitle {
  margin: 11px 0 0;
  color: #64748a;
  font-size: 13px;
  line-height: 1.48;
}

.course-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 15px;
}

.course-meta-row span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  border: 1px solid rgba(var(--accent-rgb), 0.22);
  border-radius: 8px;
  color: #3f5066;
  background: rgba(var(--accent-rgb), 0.07);
  font-size: 11px;
  font-weight: 800;
}

.course-meta-row i {
  color: var(--accent);
}

body.training-course-page .open-text {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: auto 0 0;
  padding-top: 17px;
  color: #27374d;
  font-size: 12px;
  line-height: 1.3;
  font-weight: 900;
}

body.training-course-page .open-text::after {
  content: "+";
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: #fff;
  background: var(--accent);
  box-shadow: 0 6px 15px rgba(var(--accent-rgb), 0.25);
  font-size: 19px;
  line-height: 1;
}

body.training-course-page .full-width-course .open-text::after {
  content: "−";
}

/* Expanded card top */
body.training-course-page .full-width-course .course-level-card-top {
  display: grid;
  grid-template-columns: minmax(360px, 0.82fr) minmax(0, 1.18fr);
  align-items: stretch;
  border-bottom: 1px solid #e2e8f0;
}

body.training-course-page .full-width-course .course-card-visual {
  min-height: 260px;
  aspect-ratio: auto;
  border-right: 5px solid var(--accent);
  border-bottom: 0;
}

body.training-course-page .full-width-course .course-card-copy {
  min-height: 260px;
  justify-content: center;
  padding: 31px;
}

body.training-course-page .full-width-course .course-level-label {
  font-size: 13px;
}

body.training-course-page .full-width-course h3 {
  font-size: clamp(30px, 4vw, 52px);
}

body.training-course-page .full-width-course .course-subtitle {
  max-width: 820px;
  font-size: 16px;
}

body.training-course-page .full-width-course .open-text {
  margin-top: 22px;
  max-width: 390px;
}

/* ---------------------------------------------------------
   EXPANDED CONTENT
--------------------------------------------------------- */
body.training-course-page .course-content {
  display: none;
  padding: 25px;
  border-top: 0;
  background: #f7f9fc;
}

body.training-course-page .full-width-course .course-content {
  display: block;
}

.expanded-course-banner {
  overflow: hidden;
  border: 1px solid #203951;
  border-radius: 16px;
  background: #05101d;
  box-shadow: 0 14px 36px rgba(9, 28, 51, 0.16);
}

.expanded-course-banner img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 1;
  object-fit: cover;
}

.course-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(290px, 0.45fr);
  gap: 18px;
  margin-top: 20px;
}

.course-overview-panel,
.course-facts-panel,
.detail-card,
.course-topics-panel {
  border: 1px solid #dce5ef;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 9px 26px rgba(10, 31, 55, 0.065);
}

.course-overview-panel {
  padding: 24px;
}

body.training-course-page .course-content h4 {
  margin: 9px 0 0;
  color: #132238;
  font-size: clamp(22px, 2.5vw, 34px);
  line-height: 1.15;
  font-weight: 900;
}

body.training-course-page .course-content p {
  margin: 14px 0 0;
  color: #526378;
  font-size: 15px;
  line-height: 1.68;
}

.course-outcome {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 20px;
  padding: 15px;
  border: 1px solid rgba(var(--accent-rgb), 0.26);
  border-radius: 12px;
  background: rgba(var(--accent-rgb), 0.07);
}

.course-outcome > i {
  flex: 0 0 auto;
  margin-top: 2px;
  color: var(--accent);
  font-size: 22px;
}

.course-outcome span,
.course-outcome strong {
  display: block;
}

.course-outcome strong {
  margin-bottom: 3px;
  color: #1b2a3f;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.055em;
}

.course-outcome span {
  color: #53657b;
  font-size: 14px;
  line-height: 1.5;
}

.course-facts-panel {
  overflow: hidden;
}

.course-fact-heading {
  padding: 15px 17px;
  color: #fff;
  background: linear-gradient(135deg, var(--pcs-navy-2), var(--pcs-navy));
  border-top: 5px solid var(--accent);
  font-size: 14px;
  font-weight: 900;
}

.course-fact {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 15px 17px;
  border-top: 1px solid #e6edf4;
}

.course-fact span {
  color: #738197;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.045em;
}

.course-fact strong {
  max-width: 60%;
  color: #1c2b40;
  font-size: 13px;
  line-height: 1.4;
  text-align: right;
}

.course-audience-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px;
  margin-top: 18px;
}

.detail-card {
  padding: 22px;
}

body.training-course-page .detail-card h4 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 21px;
}

.detail-card h4 i {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  color: #fff;
  background: var(--accent);
  font-size: 17px;
}

body.training-course-page .course-content ul {
  list-style: none;
  margin: 17px 0 0;
  padding: 0;
}

body.training-course-page .detail-card li {
  position: relative;
  margin: 9px 0 0;
  padding: 0 0 0 25px;
  color: #44566d;
  font-size: 14px;
  line-height: 1.45;
}

body.training-course-page .detail-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 14px;
  height: 14px;
  border: 4px solid rgba(var(--accent-rgb), 0.22);
  border-radius: 50%;
  background: var(--accent);
  background-image: none;
}

.requirement-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #fff 0%, rgba(var(--accent-rgb), 0.065) 100%);
}

.requirement-card::after {
  content: "";
  position: absolute;
  right: -54px;
  bottom: -74px;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  background: rgba(var(--accent-rgb), 0.07);
  pointer-events: none;
}

body.training-course-page .requirement-card p {
  position: relative;
  z-index: 1;
  margin-top: 17px;
}

.course-topics-panel {
  margin-top: 18px;
  padding: 24px;
}

.course-topics-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid #e3eaf2;
}

body.training-course-page .course-topics-heading h4 {
  margin-top: 7px;
}

.topics-count {
  flex: 0 0 auto;
  padding: 8px 11px;
  border: 1px solid rgba(var(--accent-rgb), 0.24);
  border-radius: 999px;
  color: var(--accent);
  background: rgba(var(--accent-rgb), 0.07);
  font-size: 12px;
  font-weight: 900;
}

body.training-course-page .course-topic-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 14px;
  margin-top: 19px;
}

body.training-course-page .course-topic-list li {
  position: relative;
  min-height: 78px;
  margin: 0;
  padding: 14px 14px 14px 45px;
  border: 1px solid #e0e8f1;
  border-radius: 12px;
  color: #526378;
  background: #f9fbfd;
  font-size: 13px;
  line-height: 1.45;
}

body.training-course-page .course-topic-list li::before {
  content: "\f00c";
  position: absolute;
  left: 14px;
  top: 15px;
  display: grid;
  place-items: center;
  width: 23px;
  height: 23px;
  border-radius: 7px;
  color: #fff;
  background: var(--accent);
  background-image: none;
  font-family: FontAwesome;
  font-size: 11px;
}

.course-topic-list strong,
.course-topic-list span {
  display: block;
}

.course-topic-list strong {
  color: #1e2e43;
  font-size: 13px;
  line-height: 1.3;
}

.course-topic-list span {
  margin-top: 4px;
}

/* ---------------------------------------------------------
   BESPOKE CTA & FOOTER
--------------------------------------------------------- */
.training-bespoke-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 30px;
  align-items: center;
  margin-top: 34px;
  padding: 30px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.11);
  border-radius: 22px;
  background:
    radial-gradient(circle at 95% 20%, rgba(47,124,255,0.27), transparent 32%),
    linear-gradient(135deg, #061426 0%, #0b203b 100%);
  box-shadow: 0 22px 55px rgba(5, 20, 38, 0.24);
}

.training-bespoke-cta .section-label {
  color: #73a8ff;
}

.training-bespoke-cta h2 {
  color: #fff;
}

.training-bespoke-cta p {
  max-width: 950px;
  margin: 13px 0 0;
  color: #c1d0e2;
}

.bespoke-cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 13px 20px;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, #3d83ff, #235fcf);
  box-shadow: 0 13px 27px rgba(34, 104, 225, 0.27);
  text-decoration: none;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 900;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.bespoke-cta-button:hover,
.bespoke-cta-button:focus {
  color: #fff;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 17px 34px rgba(34, 104, 225, 0.35);
}

.training-page-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  margin-top: 22px;
  padding: 21px 24px;
  border: 1px solid #dbe4ed;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(11, 30, 52, 0.07);
}

.footer-brand {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-brand span {
  color: #0c1727;
  font-size: 16px;
  font-weight: 1000;
  letter-spacing: 0.045em;
}

.footer-brand strong {
  color: var(--pcs-red);
  font-size: 14px;
}

.footer-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px 18px;
  color: #5d6c7e;
  font-size: 12px;
  font-weight: 800;
}

.footer-links a {
  color: #2a66c7;
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}

body.training-course-page #back-to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 40;
}

/* ---------------------------------------------------------
   RESPONSIVE
--------------------------------------------------------- */
@media (max-width: 1320px) {
  body.training-course-page .course-level-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .training-benefits {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1080px) {
  .training-hero {
    grid-template-columns: 1fr;
  }

  .training-pathway-hub {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .hub-heading {
    grid-column: 1 / -1;
    margin-bottom: 0;
  }

  .hub-stage {
    margin-top: 0;
  }

  .hub-stage:last-child {
    grid-column: 1 / -1;
  }

  .training-pathway-section {
    grid-template-columns: 1fr;
  }

  body.training-course-page .full-width-course .course-level-card-top {
    grid-template-columns: 1fr;
  }

  body.training-course-page .full-width-course .course-card-visual {
    min-height: 0;
    aspect-ratio: 3 / 1;
    border-right: 0;
    border-bottom: 5px solid var(--accent);
  }
}

@media (max-width: 860px) {
  .training-page-shell {
    width: 95%;
    padding-top: 18px;
  }

  .training-hero {
    padding: 25px 20px;
    border-radius: 22px;
  }

  .training-feature-visual,
  .training-pathway-section,
  .training-bespoke-cta {
    border-radius: 18px;
  }

  .feature-visual-label {
    left: 16px;
    bottom: 15px;
    max-width: calc(100% - 32px);
  }

  .training-benefits {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.training-course-page .course-level-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .course-detail-grid,
  .course-audience-grid {
    grid-template-columns: 1fr;
  }

  .training-bespoke-cta {
    grid-template-columns: 1fr;
  }

  .bespoke-cta-button {
    width: fit-content;
  }

  .training-page-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 620px) {
  .training-page-shell {
    width: 94%;
  }

  .training-hero {
    padding: 22px 17px;
  }

  .training-hero h1 {
    font-size: 36px;
  }

  .hero-lead {
    font-size: 16px;
  }

  body.training-course-page .course-button-row {
    align-items: stretch;
    flex-direction: column;
  }

  body.training-course-page .download-button {
    width: 100%;
  }

  .training-pathway-hub {
    display: block;
  }

  .hub-stage {
    margin-top: 10px;
  }

  .training-feature-visual img {
    min-height: 240px;
    aspect-ratio: auto;
  }

  .feature-visual-label span {
    display: none;
  }

  .training-benefits,
  body.training-course-page .course-level-grid {
    grid-template-columns: 1fr;
  }

  .training-pathway-section {
    padding: 21px 17px;
  }

  .pathway-copy h2,
  .course-section-title h2,
  .training-bespoke-cta h2 {
    font-size: 30px;
  }

  body.training-course-page .course-level-card h3 {
    font-size: 25px;
  }

  .course-card-copy {
    min-height: 220px;
  }

  body.training-course-page .course-content {
    padding: 14px;
  }

  body.training-course-page .full-width-course .course-card-copy,
  .course-overview-panel,
  .detail-card,
  .course-topics-panel {
    padding: 18px;
  }

  body.training-course-page .course-topic-list {
    grid-template-columns: 1fr;
  }

  .course-topics-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .course-fact {
    align-items: flex-start;
    flex-direction: column;
  }

  .course-fact strong {
    max-width: 100%;
    text-align: left;
  }

  .training-bespoke-cta {
    padding: 23px 19px;
  }

  .bespoke-cta-button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.training-course-page *,
  body.training-course-page *::before,
  body.training-course-page *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

/* Expanded course cards must size to their content rather than the collapsed-card grid height. */
body.training-course-page .course-level-card.full-width-course .course-level-card-top {
  height: auto;
}

/* =========================================================
   COURSE TITLE + LARGE PRIMARY STAGE PANELS
   Added after the original page rules so no scripts or shared
   website styles need to be changed.
========================================================= */

/* Reusable live-text course title. */
.training-main-title {
  display: block;
  width: fit-content;
  max-width: 100%;
  margin: 0 0 20px;
  color: var(--course-title-color);
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: clamp(58px, 7vw, 112px);
  font-weight: 400;
  line-height: 0.88;
  letter-spacing: 0.01em;
  text-transform: none;
  text-shadow: 0 4px 0 rgba(0, 0, 0, 0.38), 0 10px 26px var(--course-title-glow);
}

/* Exact solid primary colours requested for the five stages. */
body.training-course-page .stage-one {
  --accent: #00ff00;
  --accent-rgb: 0, 255, 0;
  --accent-text: #008000;
}

body.training-course-page .stage-two,
body.training-course-page .stage-three {
  --accent: #ffff00;
  --accent-rgb: 255, 255, 0;
  --accent-text: #806f00;
}

body.training-course-page .stage-four {
  --accent: #ff0000;
  --accent-rgb: 255, 0, 0;
  --accent-text: #d60000;
}

body.training-course-page .stage-five {
  --accent: #0000ff;
  --accent-rgb: 0, 0, 255;
  --accent-text: #0000cc;
}

/* Turn the former banner area into one large solid colour panel. */
body.training-course-page .course-card-visual {
  display: grid;
  place-items: center;
  min-height: 178px;
  aspect-ratio: auto;
  border-bottom: 0;
  background: var(--accent) !important;
}

body.training-course-page .course-card-visual::after {
  display: none;
}

body.training-course-page .course-card-visual img {
  display: none;
}

/* Make 01-05 large, clean and central. */
body.training-course-page .stage-number {
  position: static;
  display: block;
  width: auto;
  height: auto;
  border: 0;
  border-radius: 0;
  color: #ffffff;
  background: transparent;
  box-shadow: none;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: clamp(74px, 7vw, 112px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.035em;
  text-shadow: 0 5px 0 rgba(0, 0, 0, 0.20), 0 10px 24px rgba(0, 0, 0, 0.20);
}

/* Black numerals give the green and yellow panels stronger contrast. */
body.training-course-page .stage-one .stage-number,
body.training-course-page .stage-two .stage-number,
body.training-course-page .stage-three .stage-number {
  color: #111111;
  text-shadow: 0 4px 0 rgba(255, 255, 255, 0.26), 0 10px 22px rgba(0, 0, 0, 0.16);
}

body.training-course-page .course-level-card {
  border-color: rgba(var(--accent-rgb), 0.68);
}

body.training-course-page .course-level-label,
body.training-course-page .course-meta-row i {
  color: var(--accent-text, var(--accent));
}

body.training-course-page .stage-two .open-text::after,
body.training-course-page .stage-three .open-text::after {
  color: #111111;
}

/* Keep the enlarged colour panel when a course is opened. */
body.training-course-page .full-width-course .course-card-visual {
  min-height: 270px;
  border-right: 5px solid rgba(0, 0, 0, 0.20);
  border-bottom: 0;
  background: var(--accent) !important;
}

body.training-course-page .full-width-course .stage-number {
  font-size: clamp(110px, 13vw, 190px);
}

@media (max-width: 760px) {
  .training-main-title {
    margin-bottom: 16px;
    font-size: clamp(54px, 16vw, 84px);
    line-height: 0.92;
  }

  body.training-course-page .course-card-visual {
    min-height: 145px;
  }

  body.training-course-page .stage-number {
    font-size: 82px;
  }

  body.training-course-page .full-width-course .course-card-visual {
    min-height: 190px;
    border-right: 0;
    border-bottom: 5px solid rgba(0, 0, 0, 0.20);
  }
}

