/* =====================================================================
   Components: shared building blocks for all content pages.
   Tokens (--c-*, --f-*) are defined in style.css.
   Breakpoints: tablet ≤1024px, mobile ≤767px.
   ===================================================================== */

:root {
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 40px;
  --space-5: 64px;
  --radius: 6px;
  --shadow: 0 5px 20px rgba(0, 0, 0, .10);
  --c-muted-bg: #F4F8FC;
  --c-border: #E2E6EA;
}

/* ---------- Layout ---------- */
.section { position: relative; padding: var(--space-5) 3%; }
.section--tight { padding-block: var(--space-4); }
.section--muted { background: var(--c-muted-bg); }
.section--sky { background: #CDE5F5; }
.section--grey { background: #DDDDDD; }
.panel { padding: var(--space-3); background: #fff; }
.section--primary { background: var(--c-primary); color: #fff; }
.section--primary .section-title { color: #fff; }
.container { width: 100%; max-width: var(--content, 1280px); margin-inline: auto; }
.container--narrow { max-width: 960px; }
.container--md { max-width: 1140px; }
.stack > * + * { margin-top: var(--space-3); }

.section-title {
  margin: 0 0 var(--space-3); font-size: 29px; line-height: 1.2; font-weight: 700;
  color: var(--c-primary); text-align: center;
}
.section-title--serif { font-family: var(--f-serif); }
.section-title--left { text-align: left; }
.block-subtitle { margin: calc(var(--space-2) * -1) 0 var(--space-2); color: var(--c-secondary); font-size: 24px; font-weight: 700; line-height: 1.2; }
.section-subtitle { margin: calc(var(--space-2) * -1) 0 var(--space-3); color: var(--c-primary); font-size: 20px; text-align: center; }

.grid { display: grid; gap: var(--space-3); grid-template-columns: 1fr; }
@media (min-width: 768px) { .grid.grid--3-tablet { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1025px) { .grid.grid--3-desktop { grid-template-columns: repeat(3, 1fr); } } /* one column below desktop */
@media (min-width: 768px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1025px) {
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
}

.split { display: grid; gap: var(--space-4); align-items: center; }
@media (min-width: 1025px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split--wide-text { grid-template-columns: 2fr 3fr; }
  .split--1-2 { grid-template-columns: 1fr 2fr; }
  .split--reverse > :first-child { order: 2; }
}
@media (min-width: 768px) { .split.split--tablet { grid-template-columns: 1fr 1fr; gap: var(--space-3); } }
.split img { width: 100%; height: auto; border-radius: var(--radius); }

/* ---------- Rich text ---------- */
.prose { color: #333; font-size: 16px; line-height: 1.6; }
.prose > :first-child { margin-top: 0; }
.prose > :last-child { margin-bottom: 0; }
.prose p { margin: 0 0 1em; }
.prose h2, .prose h3, .prose h4 { color: var(--c-primary); line-height: 1.25; margin: 1.6em 0 .6em; }
.prose h2 { font-size: 26px; } .prose h3 { font-size: 22px; } .prose h4 { font-size: 18px; }
.prose ul, .prose ol { margin: 0 0 1em; padding-left: 1.4em; }
.prose li { margin-bottom: .35em; }
.prose a { color: var(--c-primary); text-decoration: underline; }
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 1.2em; font-size: 15px; }
.prose th, .prose td { padding: 8px 10px; border: 1px solid var(--c-border); text-align: start; }
.prose th { background: var(--c-primary); color: #fff; }
.prose--lead { font-size: 20px; line-height: 1.5; color: var(--c-primary); text-align: center; }
.prose--justify { text-align: justify; }
[dir="rtl"] .prose ul, [dir="rtl"] .prose ol { padding-left: 0; padding-right: 1.4em; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 26px; border: 0; border-radius: 3px; background: var(--c-sky-strong); color: #fff;
  font: 500 15px/1.2 var(--f-sans); text-decoration: none; cursor: pointer; transition: background .3s, color .3s;
}
.btn:hover, .btn:focus-visible { background: var(--c-primary); color: #fff; }
.btn--primary { background: var(--c-primary); }
.btn--primary:hover, .btn--primary:focus-visible { background: var(--c-accent-strong); }
.btn--pill { border-radius: 100px; padding: 15px 30px; font-weight: 400; font-size: 14px; }
.btn--sm { padding: 6px 14px; font-size: 14px; }
.btn .icon { width: 1em; height: 1em; }

/* ---------- Page hero ---------- */
.page-hero {
  position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden;
  min-height: 500px; padding: var(--space-4) 3%; background: #555 center / cover no-repeat; text-align: center;
}
.page-hero::before { content: ""; position: absolute; inset: 0; background: var(--c-text); opacity: .5; }
/* Background video (YouTube, see [data-youtube] in main.js): page heroes and any section (.bg-video) */
.page-hero__video, .bg-video { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.page-hero__video iframe, .bg-video iframe { position: absolute; top: 50%; left: 50%; border: 0; transform: translate(-50%, -50%); opacity: 0; transition: opacity 1s; }
.page-hero__video iframe.is-ready, .bg-video iframe.is-ready { opacity: 1; }
.page-hero__title { position: relative; z-index: 1; margin: 0; color: #fff; font: 700 39px/1.2 var(--f-sans); }
.page-hero__subtitle { position: relative; z-index: 1; margin: var(--space-2) 0 0; color: #fff; font-size: 20px; }
.page-hero--short { min-height: 300px; }
.page-hero--serif .page-hero__title { font-family: var(--f-serif); }
@media (max-width: 767px) { .page-hero { min-height: 300px; } .page-hero__title { font-size: 28px; } }

/* ---------- Service cards (bar, framed photo, title, text, pill button) ---------- */
.service-card {
  display: flex; flex-direction: column; padding: 0 20px 20px; background: #fff; box-shadow: var(--shadow);
  color: #5D5D5D; font-size: 14px; line-height: 1.5; text-align: center;
}
.service-card__bar { display: block; width: 100px; height: 6px; margin: 0 auto 20px; background: var(--c-primary); }
.service-card__bar--sky { background: var(--c-sky); }
.service-card__bar--gold { background: var(--c-accent); }
.service-card__media img { display: block; width: 100%; height: 300px; object-fit: cover; }
.service-card__title { margin: 20px 0 16px; color: #000; font-size: 21px; line-height: 1.2; }
.service-card__text { margin: 0 0 16px; }
.service-card__btn { align-self: center; margin-top: auto; }

/* ---------- Cards ---------- */
.card {
  display: flex; flex-direction: column; overflow: hidden; background: #fff; box-shadow: var(--shadow);
  border-radius: var(--radius); text-align: center;
}
.card__media img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.card__body { display: flex; flex: 1; flex-direction: column; gap: var(--space-1); padding: var(--space-3); }
.card__label { color: var(--c-accent); font-size: 14px; font-weight: 700; text-decoration: none; }
.card__title { margin: 0; font-size: 20px; line-height: 1.25; color: #000; }
.card__title a { color: inherit; text-decoration: none; }
.card__text { margin: 0; color: #5d5d5d; font-size: 14px; line-height: 1.5; }
.card__actions { margin-top: auto; padding-top: var(--space-2); }

/* Image card with text on the photo */
.photo-card {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 280px;
  overflow: hidden; border-radius: var(--radius); background: #555 center / cover no-repeat; color: #fff;
  padding: var(--space-3); text-decoration: none;
}
.photo-card::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(27,61,125,.15) 0%, rgba(27,61,125,.85) 100%); }
.photo-card > * { position: relative; }
.photo-card__number { font-size: 22px; font-weight: 700; }
.photo-card__title { margin: 0 0 var(--space-1); font-size: 22px; line-height: 1.2; color: #fff; }
.photo-card__text { margin: 0; font-size: 15px; line-height: 1.5; }
/* Flat blue tint, leaf corners (Executive coaching approach) */
.photo-card--tint { min-height: 390px; padding: var(--space-2) 10px; border-radius: 50px 0 50px 0; }
.photo-card--tint::before { background: var(--c-primary); opacity: .5; }
.photo-card--tint .photo-card__number { font-size: 39px; line-height: 1.2; }
.photo-card--tint .photo-card__title { font-size: 24px; margin-block: 8px 12px; }
.photo-card--tint .photo-card__text { font-size: 16px; }
.photo-grid { display: grid; gap: 10px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .photo-grid { grid-template-columns: repeat(2, 1fr); } }

/* Round image feature (Approach: Discover / Propose / Plan) */
.feature { text-align: center; }
.feature__media img { width: 180px; height: 180px; border-radius: 50%; object-fit: cover; }
.feature__icon { display: inline-flex; width: 64px; height: 64px; align-items: center; justify-content: center; font-size: 40px; color: var(--c-primary); }
.feature__title { margin: var(--space-2) 0 var(--space-1); color: var(--c-primary); font-size: 20px; }
.feature__text { margin: 0; color: #555; font-size: 15px; line-height: 1.55; }

.feature--lg .feature__media img { width: 300px; max-width: 100%; height: auto; aspect-ratio: 1; }
.feature--lg .feature__title { color: #333; font-size: 24px; }
.feature--lg .feature__text { font-size: 16px; }

/* ---------- Orbit: icon buttons on a ring, centre label; linked to an accordion in main.js ---------- */
.orbit { position: relative; width: min(500px, 100%); aspect-ratio: 1; margin-inline: auto; }
.orbit__ring { position: absolute; inset: 15%; border: 4px solid var(--c-primary); border-radius: 50%; }
.orbit__label {
  position: absolute; inset: 30%; display: flex; align-items: center; justify-content: center; margin: 0;
  color: var(--c-primary); font-size: 24px; line-height: 1.2; text-align: center;
}
.orbit__item {
  position: absolute; left: calc(50% + 35% * sin(var(--i) * 360deg / var(--n))); top: calc(50% - 35% * cos(var(--i) * 360deg / var(--n)));
  display: flex; width: 20%; aspect-ratio: 1; align-items: center; justify-content: center; padding: 0;
  border: 4px solid var(--c-primary); border-radius: 50%; background: var(--c-text); color: #fff;
  transform: translate(-50%, -50%); cursor: pointer; transition: background .3s, transform .3s;
}
.orbit__item .icon { width: 32%; height: 32%; }
.orbit__item:hover, .orbit__item:focus-visible { transform: translate(-50%, -50%) scale(1.08); }
.orbit__item[aria-pressed="true"] { background: var(--c-sky); color: var(--c-primary); }
@media (max-width: 767px) { .orbit__label { font-size: 18px; } }

/* ---------- Coloured step columns (Plan & Design / Develop / Deliver / Evaluate) ---------- */
.steps { display: grid; gap: 0; grid-template-columns: 1fr; }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1025px) { .steps { grid-template-columns: repeat(4, 1fr); align-items: start; } .steps > :nth-child(2) { margin-top: 25px; } .steps > :nth-child(3) { margin-top: 50px; } .steps > :nth-child(4) { margin-top: 75px; } .steps--offset { margin-bottom: 75px; } }
.step { padding: var(--space-3); color: #fff; }
.step:nth-child(4n+1) { background: var(--c-primary); }
.step:nth-child(4n+2) { background: var(--c-secondary); }
.step:nth-child(4n+3) { background: var(--c-grey-strong); }
.step:nth-child(4n+4) { background: var(--c-accent-strong); }
.step__number { display: block; font-size: 40px; font-weight: 700; line-height: 1; text-align: center; }
.step__media { display: flex; justify-content: center; height: 100px; }
.step__lottie { width: 30%; margin-inline: auto; }
.step__title { margin: var(--space-1) 0 var(--space-2); font-size: 20px; color: #fff; text-align: center; }
.step ul { margin: 0; padding-left: 1.2em; font-size: 15px; line-height: 1.5; }

/* ---------- Numbered bars (Program levels) ---------- */
/* Number tab (rounded right) + bar (rounded left) with arrow and right-aligned label */
.bars { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; counter-reset: bar; }
.bars li { --bar: var(--c-secondary); display: grid; grid-template-columns: 20% 1fr; min-height: 78px; color: #fff; counter-increment: bar; }
.bars li::before {
  content: counter(bar); display: flex; align-items: center; padding-left: 10px; border-radius: 0 50px 50px 0;
  background: var(--bar); font-size: 60px; font-weight: 700; line-height: 1;
}
.bars__label {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); padding: 10px 10px 10px 20px;
  border-radius: 50px 0 0 50px; background: var(--bar); font-size: 24px; font-weight: 700; line-height: 1.2; text-align: right;
}
.bars__label .icon { flex: none; width: 36px; height: 36px; }
.bars li:nth-child(4n+2) { --bar: var(--c-grey-strong); }
.bars li:nth-child(4n+3) { --bar: var(--c-sky-strong); }
.bars li:nth-child(4n+4) { --bar: var(--c-primary); }
@media (max-width: 767px) { .bars li { min-height: 60px; } .bars li::before { font-size: 40px; } .bars__label { font-size: 18px; } }

/* ---------- Offering row: title + image | Brief box | Focus areas box (Organizational Excellence) ---------- */
.offers { display: grid; gap: 50px; }
.offer { display: grid; gap: var(--space-3); align-items: start; }
@media (min-width: 1025px) { .offer { grid-template-columns: 20% 1fr 1fr; } }
@media (min-width: 768px) and (max-width: 1024px) { .offer { grid-template-columns: 1fr 1fr; } .offer__head { grid-column: 1 / -1; } }
.offer__head { text-align: center; }
.offer__title { margin: 0 0 var(--space-2); color: var(--c-sky-strong); font-size: 18px; line-height: 1.1; }
.offer__head img { display: block; width: 100%; max-width: 360px; margin-inline: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 15px; }
.box { height: 100%; padding: 12px; border: 3px solid var(--c-sky); border-radius: 25px 25px 0 0; background: #ECECEC; color: var(--c-primary); }
.box__title { margin: 0 0 var(--space-2); font-size: 16px; font-weight: 700; }
.box .prose { color: var(--c-primary); }
.box .prose ul { margin-bottom: 0; }

/* ---------- Arrow bars (icon + text on a right-pointing coloured band) ---------- */
.arrows { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.arrows li {
  display: flex; align-items: center; gap: 14px; min-height: 64px; padding: 10px 28px 10px 14px;
  background: var(--c-sky-strong); color: #fff; font-size: 16px; font-weight: 700; line-height: 1.3;
  clip-path: polygon(calc(100% - 18px) 0, 100% 50%, calc(100% - 18px) 100%, 0 100%, 0 0);
}
.arrows .icon { flex: none; width: 28px; height: 28px; }
.arrows li:nth-child(5n+2) { background: var(--c-grey-strong); }
.arrows li:nth-child(5n+3) { background: var(--c-primary); }
.arrows li:nth-child(5n+4) { background: var(--c-secondary); }

/* ---------- Quote (icon + two-line statement) ---------- */
.quote { display: grid; gap: var(--space-3); align-items: center; margin: 0; }
@media (min-width: 768px) { .quote { grid-template-columns: 1fr 2fr; } }
.quote__mark { justify-self: center; color: var(--c-accent); }
.quote__mark .icon { width: 110px; height: 110px; }
.quote__text { margin: 0; font-size: 29px; font-weight: 700; line-height: 1.2; color: var(--c-primary); }
.quote__text strong { display: block; color: var(--c-sky-strong); font-size: 39px; }
@media (max-width: 767px) { .quote__text { font-size: 22px; } .quote__text strong { font-size: 28px; } }

/* Large light statement (Program levels) */
.statement { margin: 0 0 var(--space-2); color: var(--c-sky-strong); font-size: 45px; font-weight: 400; line-height: 1.1; }
.statement--primary { color: var(--c-primary); font-size: 55px; }
@media (max-width: 767px) { .statement { font-size: 30px; } }

/* ---------- Hub diagram (centre label + surrounding items) ---------- */
.hub { display: grid; gap: var(--space-3); align-items: center; grid-template-columns: 1fr; text-align: center; }
.hub__center {
  justify-self: center; display: flex; align-items: center; justify-content: center; width: 260px; height: 260px;
  padding: 24px; border: 8px solid var(--c-primary); border-radius: 50%; background: var(--c-sky-strong);
  color: #fff; font-size: 24px; font-weight: 700; line-height: 1.3;
}
.hub__list { margin: 0; padding: 0; list-style: none; color: var(--c-primary); font-size: 20px; font-weight: 500; line-height: 1.3; }
.hub__list li { padding: 10px 0; }
@media (max-width: 767px) { .hub__center { width: 200px; height: 200px; font-size: 20px; } .hub__list { font-size: 17px; } }
@media (min-width: 1025px) {
  .hub { grid-template-columns: 1fr auto 1fr; }
  .hub__list--start { text-align: right; }
  .hub__list--end { text-align: left; }
}

/* ---------- Image strip with captions ---------- */
.strip { display: grid; gap: var(--space-2); grid-template-columns: repeat(2, 1fr); margin: 0; }
@media (min-width: 1025px) { .strip { grid-template-columns: repeat(4, 1fr); } }
.strip figure { margin: 0; text-align: center; }
.strip img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.strip figcaption { margin-top: var(--space-1); color: var(--c-primary); font-size: 15px; }

/* ---------- Flip card (photo front, list on the back; flips down on hover / focus / tap) ---------- */
.flip { position: relative; height: 280px; perspective: 1000px; cursor: pointer; }
.flip__face {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 35px; color: #fff; text-align: center; backface-visibility: hidden; transition: transform .6s ease-in-out;
}
.flip__face--front { z-index: 1; background: #555 center / cover no-repeat; }
.flip__face--front::before { content: ""; position: absolute; inset: 0; background: rgba(122, 122, 122, .31); }
.flip__face--front > * { position: relative; }
.flip__face--back { background: var(--c-sky-strong); transform: rotateX(180deg); }
.flip:hover .flip__face--front, .flip:focus-visible .flip__face--front, .flip:focus-within .flip__face--front { transform: rotateX(-180deg); }
.flip:hover .flip__face--back, .flip:focus-visible .flip__face--back, .flip:focus-within .flip__face--back { transform: none; }
.flip__title { margin: 0; color: #fff; font: 700 28px/1 var(--f-sans); }
.flip__list { margin: 0; padding: 0; list-style: none; font-size: 18px; line-height: 1.5; }
.flip__list li { display: inline; }
.flip__list li:not(:last-child)::after { content: " | "; }
@media (prefers-reduced-motion: reduce) { .flip__face { transition-duration: 0s; } }

/* ---------- Reveal text (colour block sweeps across, then the text appears; main.js adds .is-revealed) ---------- */
.reveal-line { margin: var(--space-4) 0 0; text-align: center; color: var(--c-primary); font-size: 36px; line-height: 1.3; }
@media (max-width: 767px) { .reveal-line { font-size: 26px; } }
.reveal { position: relative; display: inline-block; overflow: hidden; }
.reveal__text { opacity: 0; transition: opacity 0s .75s; }
.reveal::after { content: ""; position: absolute; inset: 0; z-index: 2; background: var(--c-accent); transform: scaleX(0); }
.reveal.is-revealed .reveal__text { opacity: 1; }
.reveal.is-revealed::after { animation: dnReveal 1s .3s cubic-bezier(.77, 0, .18, 1) both; }
@keyframes dnReveal { 0% { transform: scaleX(0); transform-origin: left; } 45% { transform: scaleX(1); transform-origin: left; } 55% { transform: scaleX(1); transform-origin: right; } 100% { transform: scaleX(0); transform-origin: right; } }
@media (prefers-reduced-motion: reduce) { .reveal__text { opacity: 1; } .reveal::after { display: none; } }

/* ---------- Accordion (native <details>) ---------- */
.accordion { display: grid; gap: 4px; }
.accordion details { background: var(--c-sky-strong); color: #fff; }
.accordion summary {
  display: flex; align-items: center; gap: var(--space-2); padding: 14px 20px; cursor: pointer;
  font-weight: 700; list-style: none;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::before { content: "+"; width: 1em; font-size: 20px; line-height: 1; text-align: center; }
.accordion details[open] summary { background: #3F3F3F; }
.accordion details[open] summary::before { content: "−"; }
.accordion__body { padding: 20px 30px; background: #F8F8F8; color: var(--c-primary); }
.accordion__body > :last-child { margin-bottom: 0; }

/* ---------- Logo grid ---------- */
.logo-grid { display: grid; gap: 10px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 1025px) { .logo-grid--5 { grid-template-columns: repeat(5, 1fr); } .logo-grid--4 { grid-template-columns: repeat(4, 1fr); } }
.logo-grid__item {
  display: flex; align-items: center; justify-content: center; height: 140px; padding: 5px; background: #fff;
  border: solid #B1B1B169; border-width: 0 1px 1px 0; border-radius: 0 0 15px 0;
}
.logo-grid__item img { max-width: min(100%, var(--w, 100%)); max-height: 100%; object-fit: contain; } /* --w: natural width (logo_grid) */

/* ---------- Carousel (scroll-snap; arrows + autoplay in main.js) ---------- */
.carousel { position: relative; min-width: 0; } /* min-width: lets it shrink inside grid/flex parents */
.carousel__track {
  display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - var(--space-1)) / 2); gap: var(--space-1);
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none;
}
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__track > * { scroll-snap-align: start; }
@media (max-width: 767px) { .carousel__track { grid-auto-columns: 100%; } }
.carousel__btn {
  position: absolute; top: 50%; z-index: 2; display: flex; width: 40px; height: 40px; align-items: center; justify-content: center;
  border: 0; border-radius: 50%; background: rgba(0, 0, 0, .35); color: #fff; font-size: 22px; transform: translateY(-50%); cursor: pointer;
}
.carousel__btn:hover { background: rgba(0, 0, 0, .6); }
.carousel__btn--prev { left: 8px; } .carousel__btn--next { right: 8px; }

/* Course slide: photo background, title, category, button */
.course-slide {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: var(--space-1);
  min-height: 400px; padding: var(--space-2); background: #555 center / cover no-repeat; color: #fff;
}
.course-slide::before { content: ""; position: absolute; inset: 0; background: rgba(122, 122, 122, .5); }
.course-slide > * { position: relative; }
.course-slide__title { margin: 0; font-size: 26px; line-height: 1.2; color: #fff; }
.course-slide__cat { color: #fff; font-size: 18px; text-decoration: none; }
.course-slide .btn { align-self: flex-start; }
.course-slide .btn:hover, .course-slide .btn:focus-visible { background: var(--c-accent-strong); }

/* ---------- Course page: main 75% (hero + sections) | grey sidebar 25% with a sticky panel ---------- */
.course { display: grid; grid-template-columns: 1fr; margin-bottom: 2%; }
@media (min-width: 768px) { .course { grid-template-columns: 3fr 1fr; } }
.page-hero--course { justify-content: flex-start; align-items: flex-end; padding: 0 2% 2% 5%; text-align: left; }
.page-hero--course .page-hero__title { line-height: 1.5; }
.course__body { padding: 2% 2% 2% 5%; }
.course__section { scroll-margin-top: 140px; } /* clears the sticky header when jumped to from the contents */
.course__section + .course__section { margin-top: var(--space-3); }
.band-title {
  margin: 0 0 12px; padding: 10px 0 10px 5px; background: rgba(114, 185, 231, .52);
  color: var(--c-primary); font: 700 24px/1.3 var(--f-sans);
}
/* Course texts are long lists: keep them tight like the original. */
.course__body .prose { line-height: 1.5; }
.course__body .prose li { margin-bottom: 0; }
.course__body .prose p + ul, .course__body .prose p + ol { margin-top: -.6em; }
.course__aside { background: var(--c-grey-strong); color: #fff; } /* live: #7A7A7A at 55% (#B6B6B6), too light for white text */
.course__panel { position: sticky; top: 130px; padding: 16px 10% 16px 5%; }
.course__panel > * + * { margin-top: 10px; padding-top: 10px; border-top: 1px solid #000; }
.course__cta { padding-bottom: 10px; border-bottom: 1px solid #000; }
.course__cta .btn { padding: 12px 32px; }
.course__cta .btn:hover, .course__cta .btn:focus-visible { background: var(--c-accent-strong); }
.course__lang p { margin: 0; }
@media (max-width: 767px) { .course__panel { position: static; padding: 20px 5%; } }
.toc.toc--dark { border: 0; }
.toc.toc--dark summary { padding: 0; color: #fff; }
.toc.toc--dark ol { padding: 8px 0 0 20px; }
.toc.toc--dark a { color: #fff; }
.toc.toc--dark a { text-decoration: underline; text-decoration-color: transparent; }
.toc.toc--dark a:hover, .toc.toc--dark a:focus-visible { text-decoration-color: currentColor; }
.meta.meta--dark { padding: 10px 0 0; border-top-color: #000; border-bottom: 0; font-size: 15px; }
.meta.meta--dark dt { color: #fff; }
.meta.meta--dark a { color: #fff; text-decoration: underline; }
.meta.meta--dark a:hover, .meta.meta--dark a:focus-visible { text-decoration-thickness: 2px; }
.modal__lead { margin: calc(var(--space-1) * -1) 0 var(--space-2); color: var(--c-secondary); font-weight: 700; }

/* ---------- Search results ---------- */
.search-page { max-width: 1340px; }
.search-page__banner { display: block; width: 100%; height: 400px; margin-bottom: var(--space-3); object-fit: cover; }
@media (max-width: 767px) { .search-page__banner { height: 180px; } }
.search-page__form { max-width: 640px; margin: 0 auto var(--space-3); padding-right: 6px; }
.search-page__form .btn { flex-shrink: 0; }
.search-page__count { margin: 0 0 var(--space-2); color: var(--c-secondary); font-size: 16px; font-weight: 400; text-align: center; }
.search-page__empty { max-width: 640px; margin: 0 auto; padding: 20px; border: 1px solid #C4C4C4; background: #E8E8E8; color: #000; text-align: center; }
.search-page__empty a { color: var(--c-primary); text-decoration: underline; }
.search-page__results { gap: 20px; }
/* Result card: grey body, tall photo, pill button (as the original Unlimited Elements grid) */
.card--result { border-radius: 0; box-shadow: none; }
.card--result .card__media img { height: 270px; aspect-ratio: auto; }
@media (max-width: 767px) { .card--result .card__media img { height: 200px; } }
.card--result .card__body { padding: 15px; background: #EEE; }
.card--result .card__label { color: var(--c-secondary); font-size: 13px; }
.card--result .card__title { color: var(--c-secondary); font-size: 16px; font-weight: 400; }
.card--result .card__title a:hover { color: var(--c-primary); }
.card--result .btn { padding: 10px 20px; border-radius: 20px; }
.card--result .btn:hover, .card--result .btn:focus-visible { background: var(--c-accent-strong); }

/* ---------- Course grid (category pages): photo 25% | grey panel 75% ---------- */
.course-grid { display: grid; gap: 30px 2%; grid-template-columns: 1fr; grid-auto-rows: 1fr; }
@media (min-width: 768px) { .course-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 767px) { .course-grid { gap: 10px; } }
.course-row { display: grid; grid-template-columns: 1fr 3fr; min-height: 100px; }
.course-row__media { position: relative; } /* photo fills the row; the text decides the height */
.course-row__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.course-row__body {
  display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 10px;
  padding: 10px; background: var(--c-grey-strong); /* live: #7A7A7A at 56% (#B4B4B4), too light for white text */
}
.course-row__title { margin: 0; color: #fff; font: 700 18px/1.3 var(--f-sans); }
.course-row__btn { gap: 10px; }
.course-row__btn:hover, .course-row__btn:focus-visible { background: var(--c-accent-strong); }

/* ---------- Category tiles (photo | grey panel with name + button) ---------- */
.cat-grid { display: grid; gap: 30px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .cat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1025px) { .cat-grid { grid-template-columns: repeat(3, 1fr); } }
.cat-tile { display: grid; grid-template-columns: 1fr 1fr; align-items: start; }
.cat-tile__body { align-self: stretch; min-height: 200px; background: #EEE; }
.cat-tile__media img { display: block; width: 100%; height: 200px; object-fit: cover; }
.cat-tile__body { display: flex; flex-direction: column; justify-content: center; gap: 10px; padding: 15px; text-align: center; }
.cat-tile__title { margin: 0; font: 400 20px/1.5 var(--f-sans); }
.cat-tile__title a { color: var(--c-primary); }
.cat-tile__btn {
  display: block; padding: 10px; border-radius: 10px; background: var(--c-sky-strong); color: #fff;
  font-weight: 300; transition: background .3s;
}
.cat-tile__btn:hover, .cat-tile__btn:focus-visible { background: var(--c-accent-strong); color: #fff; }

/* ---------- Course list rows (training calendar) ---------- */
.course-list { margin: 0; padding: 0; list-style: none; }
.course-list li {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-1) var(--space-2);
  padding: 10px 0; border-bottom: 1px dashed #999;
}
.course-list__title { flex: 1 1 320px; margin: 0; font-size: 19px; font-weight: 400; color: var(--c-secondary); }
.course-list__meta { display: flex; align-items: center; gap: var(--space-2); color: #333; font-size: 15px; }

/* ---------- Table of contents ---------- */
.toc { border: 1px solid var(--c-border); }
.toc summary { display: flex; justify-content: space-between; padding: 10px 14px; cursor: pointer; font-weight: 700; color: var(--c-primary); list-style: none; }
.toc summary::-webkit-details-marker { display: none; }
.toc summary::after { content: "▾"; }
.toc[open] summary::after { content: "▴"; }
.toc ol { margin: 0; padding: 0 14px 12px 34px; }
.toc a { color: var(--c-secondary); text-decoration: none; }
.toc a:hover { color: var(--c-primary); }

/* ---------- Definition rows (course meta) ---------- */
.meta { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 0; padding: var(--space-2) 0; border-block: 1px solid var(--c-border); }
.meta dt { font-weight: 700; color: var(--c-secondary); }
.meta dd { margin: 0; }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(0, 0, 0, .55); }
.modal[hidden] { display: none; }
.modal__dialog { position: relative; width: 640px; max-width: 100%; max-height: calc(100vh - 40px); overflow: auto; padding: var(--space-4) var(--space-3) var(--space-3); background: #fff; box-shadow: 2px 8px 23px 3px rgba(0, 0, 0, .2); }
.modal__close { position: absolute; top: 6px; right: 10px; padding: 4px 8px; border: 0; background: none; color: #555; font-size: 28px; line-height: 1; cursor: pointer; }
.modal__title { margin: 0 0 var(--space-2); color: var(--c-primary); font-size: 22px; }

/* ---------- Forms (UI; sending is handled by inc/form-endpoint.php) ---------- */
.form { display: grid; gap: var(--space-2); }
.form__field { display: grid; gap: 6px; }
.form__label { font-size: 15px; color: #333; }
.form__label .req { color: #c00; }
.form input[type="text"], .form input[type="email"], .form input[type="tel"], .form textarea, .form select {
  width: 100%; padding: 12px 14px; border: 1px solid #69727D; border-radius: 3px; background: #fff;
  font: 16px/1.4 var(--f-sans); color: #333;
}
.form input:focus, .form textarea:focus { outline: 2px solid var(--c-sky); outline-offset: 1px; }
.form__check { display: flex; align-items: flex-start; gap: 8px; font-size: 15px; }
.form__check a { color: var(--c-primary); text-decoration: underline; }
.form .btn { justify-self: start; }

/* ---------- Video ---------- */
.video { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #000; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- Coming soon ---------- */
.coming-soon { display: grid; place-items: center; min-height: 45vh; text-align: center; }
.coming-soon__title { margin: 0 0 var(--space-2); color: var(--c-primary); font: 700 40px/1.2 var(--f-serif); }
.coming-soon p { margin: 0 0 var(--space-3); color: var(--c-secondary); font-size: 18px; }

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; } .mt-3 { margin-top: var(--space-3); } .mb-4 { margin-bottom: var(--space-4); }
.text-secondary { color: var(--c-secondary); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Maintenance page (pages/maintenance.php, 503) */
.maintenance { min-height: 80vh; }
.maintenance__logo { display: block; width: 230px; height: auto; margin: 0 auto var(--space-3); }
.maintenance .maintenance__contact { font-size: 16px; }

/* ---------- Cookie consent banner (inc/integrations.php, assets/js/consent.js) ---------- */
.consent {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 1000; max-width: 560px; margin-left: auto;
  padding: 18px 20px; border-radius: 10px; background: #fff; color: #333; box-shadow: 0 10px 40px rgba(10, 22, 45, .25);
  border-top: 4px solid var(--c-accent);
}
.consent[hidden] { display: none; }
.consent__title { margin: 0 0 6px; color: var(--c-primary); font: 700 18px/1.3 var(--f-serif); }
.consent__text { margin: 0 0 12px; font-size: 14px; line-height: 1.5; }
.consent__text a { color: var(--c-sky-strong); text-decoration: underline; }
.consent__prefs { margin: 0 0 12px; display: grid; gap: 10px; }
.consent__prefs[hidden] { display: none; }
.consent__cat p { margin: 2px 0 0 28px; font-size: 13px; line-height: 1.45; color: #555; }
.consent__switch { display: flex; align-items: center; gap: 10px; font-weight: 500; color: var(--c-primary); cursor: pointer; }
.consent__switch input { width: 18px; height: 18px; margin: 0; accent-color: var(--c-primary); }
.consent__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.consent__btn { min-height: 40px; background: var(--c-primary); }   /* Accept and Reject look the same on purpose */
.consent__btn:hover, .consent__btn:focus-visible { background: var(--c-accent-strong); }
.consent__btn[hidden], .consent__link[hidden] { display: none; }
.consent__link { min-height: 40px; padding: 0 6px; border: 0; background: none; color: var(--c-primary); font: inherit; font-size: 14px; text-decoration: underline; cursor: pointer; }
.footer-link-btn { display: flex; padding: 1px; border: 0; background: none; color: #BF2F5E; /* same as the footer links */ font: inherit; line-height: 20px; text-align: left; cursor: pointer; }
.footer-link-btn:hover, .footer-link-btn:focus-visible { text-decoration: underline; }
@media (max-width: 480px) { .consent { left: 8px; right: 8px; bottom: 8px; padding: 16px; } .consent__btn { flex: 1; } }

/* Admin preview of unpublished text (Content, Legal pages): fixed notice, never on published pages */
.preview-bar { position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 1000; margin: 0; padding: 10px 18px; border-radius: 999px; background: #8E7313; color: #fff; font: 600 14px/1.3 Roboto, sans-serif; box-shadow: 0 4px 16px rgba(0, 0, 0, .25); max-width: calc(100% - 32px); text-align: center; }

/* FAQ category headings (Content, FAQ): only shown when the FAQ has categories */
.faq-group { margin: 40px 0 16px; color: var(--c-primary); font-family: var(--f-serif); font-size: 26px; line-height: 1.3; }
.faq-group:first-of-type { margin-top: 0; }

/* Forms: status line, field errors, honeypot, Turnstile (Inbox, Submissions; main.js) */
.form__status { margin: 0; font-size: 15px; }
.form__status:empty { display: none; }
.form__status.is-ok { color: #1E6B3A; }
.form__status.is-error { color: #B00020; }
.form__error { margin: 2px 0 0; color: #B00020; font-size: 14px; }
.form [aria-invalid="true"] { border-color: #B00020; }
.form__check { flex-wrap: wrap; }
.form__check .form__error { flex-basis: 100%; }
.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__turnstile:empty { display: none; }
.form .btn:disabled { opacity: .6; cursor: progress; }
