/* =====================================================================
   CARE — Center of Applied Research and Education
   Design System · Static site stylesheet
   Brand: Navy + Teal · Premium · Institutional · Conversion-focused
   ===================================================================== */

/* ---------- Design tokens ---------- */
:root {
  /* Brand colours — from the CARE logo brand book (CMYK → sRGB) */
  --navy: #14477A;         /* C90 M65 Y40 K20 — primary */
  --navy-700: #103A64;
  --navy-900: #0B2A49;
  --teal: #45D1A1;         /* C73 M18 Y37 K0 — accent */
  --teal-soft: #8FE3C6;    /* lighter teal, on-dark accents */
  --teal-deep: #0E7A61;    /* accent text/links on light (>=4.5:1) */
  --tint: #E6F6F0;         /* light teal tint — tiles, tags, notices */
  --tint-deep: #D2ECE4;
  --white: #FFFFFF;
  --charcoal: #12212E;     /* deep navy-charcoal — footer */
  --ink: #0F2333;          /* headings */
  --border-rose: #B7CBDC;  /* legacy name — light navy-grey */

  /* Semantic tokens */
  --bg: #FFFFFF;
  --bg-alt: #F1F7F6;
  --surface: #FFFFFF;
  --text: #16232E;
  --text-muted: #51606B;
  --text-on-dark: #EAF4FF;
  --text-on-dark-muted: #B9D0E0;
  --primary: var(--navy);
  --primary-contrast: #FFFFFF;
  --accent: var(--teal);
  --accent-text: var(--teal-deep);
  --border: #E2ECEA;
  --border-strong: #9FBBD0;
  --border-input: #6F8AA3;
  --focus: #0E7A61;

  /* Type */
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Radius */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 34px;
  --r-pill: 999px;

  /* Shadow */
  --shadow-sm: 0 1px 2px rgba(11, 42, 73, .06), 0 2px 6px rgba(11, 42, 73, .05);
  --shadow-md: 0 6px 20px rgba(11, 42, 73, .08), 0 2px 8px rgba(11, 42, 73, .05);
  --shadow-lg: 0 24px 60px rgba(11, 42, 73, .16);

  /* Spacing scale (4/8) */
  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px;
  --space-5: 24px; --space-6: 32px; --space-7: 48px; --space-8: 64px;
  --space-9: 96px; --space-10: 128px;

  /* Layout */
  --container: 1200px;
  --container-narrow: 860px;
  --header-h: 76px;

  /* Motion */
  --ease-out: cubic-bezier(.16, .84, .44, 1);
  --dur: 220ms;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--navy-700); }
ul { margin: 0; padding: 0; }
button { font-family: inherit; }

/* Accessibility helpers */
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
.hero :focus-visible, .section-dark :focus-visible, .page-hero.dark :focus-visible, .cta-band :focus-visible { outline-color: var(--teal-soft); }
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 2000;
  background: var(--navy); color: #fff; padding: 10px 18px;
  border-radius: var(--r-sm); transition: top var(--dur) var(--ease-out);
}
.skip-link:focus { top: 16px; color: #fff; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -.01em;
  color: var(--ink);
  margin: 0 0 .5em;
  font-optical-sizing: auto;
}
h1 { font-size: clamp(2.2rem, 4.1vw, 3.55rem); font-weight: 620; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.9rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); }
h4 { font-size: 1.12rem; font-family: var(--font-sans); font-weight: 700; letter-spacing: 0; }
p { margin: 0 0 1rem; }
.lead { font-size: clamp(1.08rem, 1.6vw, 1.32rem); color: var(--text-muted); line-height: 1.6; }
.eyebrow {
  font-family: var(--font-sans); font-weight: 700; font-size: .8rem;
  letter-spacing: .14em; text-transform: uppercase; color: var(--teal-deep);
  margin: 0 0 .8rem; display: inline-flex; align-items: center; gap: .5rem;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--teal); border-radius: 2px; }
.text-center { text-align: center; }
.measure { max-width: 62ch; }
.measure-center { max-width: 62ch; margin-left: auto; margin-right: auto; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: var(--container-narrow); }
.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section-sm { padding: clamp(2.5rem, 5vw, 4rem) 0; }
.section-alt { background: var(--bg-alt); }
.section-blush { background: var(--tint); }
.section-head { max-width: 720px; margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.compact { margin-bottom: clamp(1.2rem, 3vw, 2rem); }
.section-head.compact h3 { font-size: clamp(1.35rem, 2.4vw, 1.9rem); }
.country-mark {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin: 0 0 1rem;
  color: var(--navy);
  font-family: var(--font-sans);
  font-size: .84rem;
  font-weight: 700;
  letter-spacing: .02em;
}
.country-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.country-pin {
  width: 20px;
  height: 20px;
  display: inline-grid;
  place-items: center;
  color: var(--teal-deep);
  flex: 0 0 auto;
}
.country-pin svg { width: 18px; height: 18px; }
.footer-country-mark {
  margin: 1rem 0 0;
  color: var(--text-on-dark);
}
.footer-country-mark .country-pin { color: var(--teal-soft); }
@media (max-width: 460px) {
  .country-mark { gap: 8px 12px; font-size: .78rem; }
}

/* Grids */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.single-card-grid { grid-template-columns: minmax(0, 520px); }
@media (max-width: 980px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}
/* Compact brand on small screens so the header never overflows */
@media (max-width: 460px) {
  .header-inner { gap: 12px; }
  .brand { gap: 9px; }
  .brand-mark svg { width: 38px; height: 38px; }
  .brand-name { font-size: 1.28rem; }
  .brand-sub { font-size: .56rem; letter-spacing: .03em; }
}

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--navy); --btn-fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font-family: var(--font-sans); font-weight: 600; font-size: 1rem;
  line-height: 1; letter-spacing: .005em;
  padding: 15px 26px; min-height: 50px;
  border-radius: var(--r-pill); border: 1.5px solid transparent;
  cursor: pointer; text-align: center;
  background: var(--btn-bg); color: var(--btn-fg);
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out), background var(--dur) var(--ease-out), color var(--dur) var(--ease-out);
  box-shadow: var(--shadow-sm);
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); color: var(--btn-fg); }
.btn:active { transform: translateY(0); }
.btn svg { width: 18px; height: 18px; }

.btn-primary { --btn-bg: var(--navy); --btn-fg: #fff; }
.btn-primary:hover { background: var(--navy-700); }

.btn-secondary {
  --btn-bg: transparent; --btn-fg: var(--navy);
  border-color: var(--border-input); box-shadow: none;
}
.btn-secondary:hover { background: var(--tint); border-color: var(--navy); color: var(--navy); }

.btn-ghost { --btn-bg: transparent; --btn-fg: var(--navy); box-shadow: none; padding-left: 8px; padding-right: 8px; }
.btn-ghost:hover { background: transparent; color: var(--navy-700); transform: none; }

/* On dark backgrounds */
.on-dark .btn-primary,
.page-hero.dark .btn-primary { --btn-bg: #fff; --btn-fg: var(--navy); }
.on-dark .btn-primary:hover,
.page-hero.dark .btn-primary:hover { background: var(--tint); }
.on-dark .btn-secondary,
.page-hero.dark .btn-secondary { --btn-fg: #fff; border-color: rgba(255,255,255,.55); }
.on-dark .btn-secondary:hover,
.page-hero.dark .btn-secondary:hover { background: rgba(255,255,255,.12); color: #fff; border-color: #fff; }

.btn-lg { padding: 17px 32px; min-height: 56px; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
.btn-row.center { justify-content: center; }

.link-arrow { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; color: var(--navy); }
.link-arrow svg { width: 16px; height: 16px; transition: transform var(--dur) var(--ease-out); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.86);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; gap: 20px; min-height: var(--header-h); max-width: 1440px; }
.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand:hover { color: inherit; }
.brand-logo { display: block; width: auto; height: 50px; object-fit: contain; }
.footer-brand .brand-logo { height: 66px; }
@media (max-width: 460px) { .brand-logo { height: 44px; } }
.brand-mark { flex-shrink: 0; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; color: var(--navy); letter-spacing: .02em; }
.brand-sub { font-size: .66rem; letter-spacing: .06em; text-transform: uppercase; color: var(--text-muted); font-weight: 600; }

.primary-nav { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.nav-list { display: flex; align-items: center; gap: 0; list-style: none; }
.nav-list a {
  display: inline-block; padding: 8px 7px; border-radius: var(--r-sm);
  font-size: .82rem; font-weight: 500; color: var(--ink); white-space: nowrap;
  transition: background var(--dur), color var(--dur);
}
/* Keep optional expanded brand text out of constrained headers. */
@media (max-width: 1460px) { .site-header .brand-sub { display: none; } }
.nav-list a:hover { background: var(--tint); color: var(--navy); }
.nav-list a[aria-current="page"] { color: var(--navy); font-weight: 700; }
.header-cta { display: flex; align-items: center; gap: 10px; margin-left: 6px; }
.header-cta .btn { min-height: 44px; padding: 11px 16px; font-size: .88rem; white-space: nowrap; }

.nav-toggle {
  display: none; margin-left: auto; width: 46px; height: 46px;
  border: 1.5px solid var(--border-strong); background: #fff; border-radius: var(--r-sm);
  cursor: pointer; align-items: center; justify-content: center; color: var(--navy);
}
.nav-toggle svg { width: 24px; height: 24px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

@media (max-width: 1080px) {
  .nav-toggle { display: inline-flex; }
  .site-header .brand-sub { display: block; }
  .primary-nav {
    position: fixed; inset: var(--header-h) 0 auto 0; margin: 0; display: block;
    background: #fff; border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg); padding: 12px 0 20px;
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out), visibility var(--dur);
    max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
  }
  .primary-nav.open { opacity: 1; visibility: visible; transform: translateY(0); }
  .nav-list { flex-direction: column; align-items: stretch; gap: 2px; padding: 0 16px; }
  .nav-list a { padding: 14px 16px; font-size: 1.05rem; border-radius: var(--r-md); }
  .header-cta { flex-direction: column; align-items: stretch; margin: 14px 16px 0; gap: 10px; }
  .header-cta .btn { min-height: 52px; font-size: 1rem; }
}

/* ---------- Hero ---------- */
.hero { padding: clamp(1.5rem, 3vw, 2.5rem) 0 clamp(3rem, 6vw, 5rem); }
.hero-block {
  position: relative; overflow: hidden;
  border-radius: var(--r-xl);
  background:
    radial-gradient(120% 140% at 88% -10%, rgba(69,209,161,.55) 0%, rgba(69,209,161,0) 55%),
    linear-gradient(150deg, var(--navy) 0%, var(--navy-900) 100%);
  color: var(--text-on-dark);
  padding: clamp(2rem, 4.6vw, 4.25rem);
  box-shadow: var(--shadow-lg);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }
.hero h1 { color: #fff; margin-bottom: 1rem; }
.hero .lead { color: var(--text-on-dark-muted); }
.hero .eyebrow { color: var(--teal-soft); }
.hero .eyebrow::before { background: var(--teal-soft); }
.hero-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hero-card {
  background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.16);
  border-radius: var(--r-md); padding: 20px; backdrop-filter: blur(4px);
  transition: background var(--dur), transform var(--dur) var(--ease-out);
}
.hero-card:hover { background: rgba(255,255,255,.15); transform: translateY(-3px); }
.hero-card .ico { width: 42px; height: 42px; border-radius: 12px; background: rgba(255,255,255,.16); display: grid; place-items: center; margin-bottom: 12px; color: #fff; }
.hero-card .ico svg { width: 22px; height: 22px; }
.hero-card strong { display: block; font-size: 1.02rem; color: #fff; margin-bottom: 3px; }
.hero-card span { font-size: .86rem; color: var(--text-on-dark-muted); }
.hero-visual {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-lg);
  min-height: clamp(260px, 28vw, 410px);
  border: 1px solid rgba(255,255,255,.18);
  box-shadow: 0 24px 70px rgba(0,0,0,.28);
}
.hero-visual img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
}
.hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11,42,73,0) 45%, rgba(11,42,73,.52) 100%);
  pointer-events: none;
}
.hero-proof {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.hero-proof span {
  color: #fff;
  background: rgba(255,255,255,.16);
  border: 1px solid rgba(255,255,255,.26);
  border-radius: var(--r-pill);
  padding: 8px 12px;
  font-size: .82rem;
  font-weight: 700;
  backdrop-filter: blur(10px);
}

/* Decorative Mediterranean arches */
.hero-decor { position: absolute; inset: 0; pointer-events: none; opacity: .5; mix-blend-mode: soft-light; }

/* ---------- Value strip ---------- */
.value-strip { border-radius: var(--r-lg); background: var(--tint); border: 1px solid var(--border); padding: 8px; }
.value-strip ul { display: grid; grid-template-columns: repeat(4,1fr); list-style: none; }
.value-strip li { display: flex; align-items: center; gap: 12px; padding: 18px 20px; font-weight: 600; color: var(--ink); font-size: .96rem; }
.value-strip li + li { border-left: 1px solid var(--border); }
.value-strip .ico { color: var(--teal-deep); flex-shrink: 0; }
.value-strip .ico svg { width: 24px; height: 24px; }
@media (max-width: 900px) {
  .value-strip ul { grid-template-columns: 1fr 1fr; }
  .value-strip li:nth-child(odd) { border-left: 0; }
  .value-strip li:nth-child(n+3) { border-top: 1px solid var(--border); }
}
@media (max-width: 520px) {
  .value-strip ul { grid-template-columns: 1fr; }
  .value-strip li { border-left: 0 !important; }
  .value-strip li + li { border-top: 1px solid var(--border); }
}

/* ---------- Cards ---------- */
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out), border-color var(--dur);
  display: flex; flex-direction: column; height: 100%;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--border-strong); }
.card .ico {
  width: 52px; height: 52px; border-radius: 14px;
  background: var(--tint); color: var(--navy);
  display: grid; place-items: center; margin-bottom: 18px; flex-shrink: 0;
}
.card .ico svg { width: 26px; height: 26px; }
.card h3 { font-size: 1.28rem; margin-bottom: .5rem; }
.card p { color: var(--text-muted); font-size: .97rem; margin-bottom: 1rem; }
.card .card-foot { margin-top: auto; }
.card .tag {
  display: inline-block; font-size: .74rem; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase; color: var(--teal-deep);
  background: var(--tint); padding: 5px 11px; border-radius: var(--r-pill); margin-bottom: 14px;
  align-self: flex-start;
}
.card .audience { font-size: .84rem; color: var(--text-muted); margin: 0 0 16px; }
.card .audience b { color: var(--ink); font-weight: 600; }

.offer-grid { margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.offer-card { overflow: hidden; padding: 0; }
.offer-card .thumb { aspect-ratio: 16 / 9; overflow: hidden; background: var(--tint); }
.offer-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 420ms var(--ease-out);
}
.offer-card:hover .thumb img { transform: scale(1.035); }
.offer-card .offer-body {
  padding: 24px 26px 28px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.compact-grid .card { padding: 24px; }
.team-photo {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
  border-radius: var(--r-md);
  margin-bottom: 20px;
  background: var(--tint);
}
.team-name-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.team-name-row h3 {
  margin-bottom: .5rem;
}
.team-social-link {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  margin-top: -2px;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  color: var(--navy);
  background: #fff;
  transition: background var(--dur), border-color var(--dur), color var(--dur), transform var(--dur) var(--ease-out);
}
.team-social-link:hover {
  background: var(--tint);
  border-color: var(--navy);
  color: var(--navy);
  transform: translateY(-2px);
}
.team-social-link svg {
  width: 17px;
  height: 17px;
}

/* Team carousel */
.carousel-shell { position: relative; }
.team-carousel {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 4px 2px 18px;
  scroll-snap-type: x mandatory;
  scroll-padding: 2px;
  scrollbar-width: thin;
}
.team-carousel .card {
  flex: 0 0 clamp(280px, 31vw, 360px);
  scroll-snap-align: start;
}
.carousel-controls {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin: -8px 0 16px;
}
.carousel-btn {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1.5px solid var(--border-input);
  border-radius: var(--r-pill);
  background: #fff;
  color: var(--navy);
  cursor: pointer;
  transition: background var(--dur), border-color var(--dur), transform var(--dur) var(--ease-out);
}
.carousel-btn:hover { background: var(--tint); border-color: var(--navy); transform: translateY(-2px); }
.carousel-btn svg { width: 20px; height: 20px; }
@media (max-width: 640px) {
  .team-carousel .card { flex-basis: min(86vw, 340px); }
  .carousel-controls { justify-content: center; margin-top: -4px; }
}

/* Course card meta rows */
.course-meta { list-style: none; margin: 0 0 18px; display: grid; gap: 8px; }
.course-meta li { display: flex; align-items: center; gap: 10px; font-size: .88rem; color: var(--text-muted); }
.course-meta svg { width: 17px; height: 17px; color: var(--teal-deep); flex-shrink: 0; }
.course-meta b { color: var(--ink); font-weight: 600; }
.course-details {
  margin: 18px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.course-details summary {
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  cursor: pointer;
  color: var(--navy);
  font-weight: 700;
  list-style: none;
}
.course-details summary::-webkit-details-marker { display: none; }
.course-details summary::after {
  content: "+";
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--tint);
  color: var(--navy);
  font-weight: 700;
  flex-shrink: 0;
}
.course-details[open] summary::after { content: "-"; }
.course-detail-body {
  padding: 0 0 18px;
  color: var(--text-muted);
  font-size: .92rem;
}
.course-detail-body p { margin-bottom: 10px; }
.course-detail-body ul {
  margin: 0;
  padding-left: 1.2rem;
  display: grid;
  gap: 6px;
}
.catalogue-filter {
  display: grid;
  justify-items: center;
  gap: 12px;
  margin: 0 auto 28px;
}
.filter-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}
.filter-chip {
  min-height: 44px;
  border: 1.5px solid var(--border-input);
  border-radius: var(--r-pill);
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-size: .92rem;
  font-weight: 700;
  padding: 10px 17px;
  transition: background var(--dur), border-color var(--dur), color var(--dur), transform var(--dur) var(--ease-out);
}
.filter-chip:hover {
  background: var(--tint);
  border-color: var(--navy);
  color: var(--navy);
  transform: translateY(-2px);
}
.filter-chip.is-active {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}
.filter-status {
  margin: 0;
  color: var(--text-muted);
  font-size: .92rem;
  text-align: center;
}
.catalogue-grid [hidden] { display: none !important; }
.catalogue-grid .card { overflow: hidden; }
.course-thumb {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  margin: -28px -28px 22px;
  background: var(--tint);
}
.course-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 420ms var(--ease-out);
}
.catalogue-grid .card:hover .course-thumb img { transform: scale(1.035); }
.empty-state {
  margin: 24px auto 0;
  max-width: 620px;
  padding: 18px 22px;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-md);
  background: #fff;
  color: var(--text-muted);
  text-align: center;
}
.catalogue-group + .catalogue-group {
  margin-top: clamp(2.5rem, 5vw, 4.5rem);
  padding-top: clamp(2rem, 4vw, 3.5rem);
  border-top: 1px solid var(--border);
}
.catalogue-group .section-head p:not(.eyebrow) { color: var(--text-muted); }

/* Feature (why-choose) tile */
.feature { display: flex; gap: 16px; }
.feature .ico { width: 48px; height: 48px; border-radius: 12px; background: var(--tint); color: var(--navy); display: grid; place-items: center; flex-shrink: 0; }
.feature .ico svg { width: 24px; height: 24px; }
.feature h3 { font-size: 1.12rem; font-family: var(--font-sans); font-weight: 700; margin-bottom: .3rem; }
.feature p { color: var(--text-muted); font-size: .94rem; margin: 0; }

/* Compact "what we do" pill card */
.pill-card {
  display: flex; align-items: center; gap: 14px;
  background: #fff; border: 1px solid var(--border); border-radius: var(--r-md);
  padding: 16px 18px; box-shadow: var(--shadow-sm);
  transition: transform var(--dur) var(--ease-out), border-color var(--dur);
}
.pill-card:hover { transform: translateY(-3px); border-color: var(--border-strong); }
.pill-card .ico { width: 44px; height: 44px; border-radius: 12px; background: var(--tint); color: var(--navy); display: grid; place-items: center; flex-shrink: 0; }
.pill-card .ico svg { width: 22px; height: 22px; }
.pill-card span { font-weight: 600; font-size: .97rem; color: var(--ink); }

/* ---------- Split media block ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.split.reverse .split-media { order: -1; }
@media (max-width: 860px) { .split, .split.reverse { grid-template-columns: 1fr; } .split.reverse .split-media { order: 0; } }
.split-media { border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-md); }
.check-list { list-style: none; display: grid; gap: 14px; margin: 24px 0; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; }
.check-list .ico { flex-shrink: 0; width: 26px; height: 26px; border-radius: 8px; background: var(--tint); color: var(--navy); display: grid; place-items: center; margin-top: 1px; }
.check-list .ico svg { width: 16px; height: 16px; }
.check-list b { color: var(--ink); }
.check-list span { color: var(--text-muted); }

/* ---------- Dark / burgundy section ---------- */
.section-dark {
  background:
    radial-gradient(110% 120% at 90% 0%, rgba(69,209,161,.4) 0%, rgba(69,209,161,0) 55%),
    linear-gradient(155deg, var(--navy) 0%, var(--navy-900) 100%);
  color: var(--text-on-dark);
}
.section-dark h1, .section-dark h2, .section-dark h3 { color: #fff; }
.section-dark .lead, .section-dark p { color: var(--text-on-dark-muted); }
.section-dark .eyebrow { color: var(--teal-soft); }
.section-dark .eyebrow::before { background: var(--teal-soft); }

/* Process flow */
.flow { display: flex; flex-wrap: wrap; align-items: stretch; gap: 12px; }
.flow-step {
  flex: 1 1 150px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16);
  border-radius: var(--r-md); padding: 20px 18px; position: relative;
}
.flow-step .n { font-family: var(--font-display); font-size: 1.1rem; color: var(--teal-soft); font-weight: 700; }
.flow-step strong { display: block; color: #fff; margin-top: 4px; font-size: 1.02rem; }
.flow-step span { font-size: .85rem; color: var(--text-on-dark-muted); }
.flow-arrow { align-self: center; color: var(--teal-soft); flex: 0 0 auto; }
.flow-arrow svg { width: 22px; height: 22px; }
@media (max-width: 720px) { .flow-arrow { transform: rotate(90deg); } }

/* On-light process chips */
.chip-flow { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.chip {
  background: #fff; border: 1px solid var(--border-strong); border-radius: var(--r-pill);
  padding: 10px 18px; font-weight: 600; color: var(--navy); font-size: .92rem;
}
.chip-flow .sep { color: var(--teal-deep); }

/* ---------- Notice ---------- */
.notice {
  display: flex; gap: 16px; align-items: flex-start;
  background: var(--tint); border: 1px solid var(--border-strong);
  border-radius: var(--r-md); padding: 20px 24px;
}
.notice .ico { color: var(--navy); flex-shrink: 0; margin-top: 2px; }
.notice .ico svg { width: 24px; height: 24px; }
.notice p { margin: 0; font-size: .92rem; color: var(--ink); }
.notice.subtle { background: transparent; border-color: var(--border); }

/* ---------- CTA band ---------- */
.cta-band { border-radius: var(--r-xl); padding: clamp(2.5rem, 5vw, 4rem); text-align: center; }
.cta-band h2 { color: #fff; margin-bottom: .6rem; }
.cta-band p { max-width: 60ch; margin: 0 auto 1.8rem; }

/* ---------- Insight cards ---------- */
.insight-card { overflow: hidden; padding: 0; }
.insight-card .thumb { aspect-ratio: 16/9; }
.insight-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.insight-card .insight-body { padding: 24px 26px 28px; display: flex; flex-direction: column; flex: 1; }
.insight-card .cat { font-size: .76rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--teal-deep); margin-bottom: 8px; }
.insight-card h3 { font-size: 1.18rem; }
.insight-card p { font-size: .92rem; }

/* ---------- Testimonials ---------- */
.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
@media (max-width: 900px) { .testimonial-grid { grid-template-columns: 1fr; } }
.testimonial-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-height: 100%;
  margin: 0;
  padding: 30px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out), border-color var(--dur);
}
.testimonial-card::before {
  content: "";
  width: 42px;
  height: 4px;
  border-radius: var(--r-pill);
  background: var(--teal);
}
.testimonial-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--border-strong); }
.testimonial-card.featured { background: var(--tint); border-color: var(--border-strong); }
.testimonial-card blockquote {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2vw, 1.32rem);
  line-height: 1.42;
}
.testimonial-card figcaption {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: auto;
  color: var(--text-muted);
}
.testimonial-card figcaption strong { display: block; color: var(--ink); font-size: .96rem; }
.testimonial-card figcaption small { display: block; font-size: .82rem; line-height: 1.35; }
.testimonial-avatar {
  display: grid;
  place-items: center;
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .05em;
}

/* ---------- Social media ---------- */
.social-panel {
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
@media (max-width: 900px) { .social-panel { grid-template-columns: 1fr; } }
.social-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (max-width: 560px) { .social-grid { grid-template-columns: 1fr; } }
.social-card {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  min-height: 132px;
  padding: 20px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
}
.social-card:is(a) {
  color: inherit;
  text-decoration: none;
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out), border-color var(--dur);
}
.social-card:is(a):hover {
  color: inherit;
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}
.social-icon {
  display: grid;
  place-items: center;
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--tint);
  color: var(--navy);
}
.social-icon svg { width: 23px; height: 23px; }
.social-card strong { display: block; color: var(--ink); margin-bottom: 4px; }
.social-card span:not(.social-icon) { color: var(--text-muted); font-size: .92rem; line-height: 1.5; }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; max-width: 980px; margin: 0 auto; }
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: clamp(1.3rem, 2.4vw, 1.8rem);
  box-shadow: var(--shadow-sm);
}
.faq-item h3 { font-size: 1.08rem; margin-bottom: .55rem; }
.faq-item p { color: var(--text-muted); font-size: .96rem; margin: 0; }
@media (max-width: 760px) { .faq-grid { grid-template-columns: 1fr; } }

/* ---------- Stats / audience ---------- */
.pill-list { display: flex; flex-wrap: wrap; gap: 10px; }
.pill-list .tagpill {
  background: var(--tint); color: var(--navy); border: 1px solid var(--border);
  border-radius: var(--r-pill); padding: 9px 16px; font-weight: 600; font-size: .9rem;
}

/* ---------- Partners / logo wall ---------- */
.partner-wall { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 760px) { .partner-wall { grid-template-columns: 1fr; } }
.partner {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 16px;
  background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 32px 26px; box-shadow: var(--shadow-sm);
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out), border-color var(--dur);
}
.partner:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--border-strong); }
.partner-logo { display: grid; place-items: center; height: 104px; width: 100%; }
.partner-logo:is(a) { border-radius: var(--r-md); }
.partner-logo:is(a):focus-visible { outline: 3px solid var(--teal); outline-offset: 6px; }
.partner-logo img { max-height: 104px; max-width: 230px; width: auto; object-fit: contain; }
.partner-mono {
  font-family: var(--font-display); font-weight: 700; font-size: 2rem; letter-spacing: .04em;
  color: var(--navy); background: var(--tint); border: 1px solid var(--border-strong);
  border-radius: var(--r-md); padding: 14px 24px; line-height: 1;
}
.partner-name { font-weight: 600; color: var(--ink); font-size: 1.05rem; }
.partner-note { font-size: .85rem; color: var(--text-muted); margin: -6px 0 0; }

/* ---------- Forms ---------- */
.form-card { background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg); padding: clamp(1.75rem, 4vw, 2.75rem); box-shadow: var(--shadow-md); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: .9rem; color: var(--ink); }
.field .req { color: var(--teal-deep); }
.field .hint { font-size: .8rem; color: var(--text-muted); }
.field input, .field select, .field textarea {
  font-family: inherit; font-size: 1rem; color: var(--text);
  padding: 13px 15px; min-height: 50px; border: 1.5px solid var(--border-input);
  border-radius: var(--r-sm); background: #fff; width: 100%;
  transition: border-color var(--dur), box-shadow var(--dur);
}
.field textarea { min-height: 130px; resize: vertical; line-height: 1.55; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--navy); box-shadow: 0 0 0 4px rgba(69,209,161,.16);
}
.field input:invalid:not(:placeholder-shown), .field textarea:invalid:not(:placeholder-shown) { border-color: #B4243F; }
.field .error { font-size: .82rem; color: #B4243F; display: none; }
.field.has-error .error { display: block; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: #B4243F; }
.form-status { border-radius: var(--r-md); padding: 16px 18px; font-weight: 600; display: none; margin-bottom: 18px; }
.form-status.success { display: block; background: #EAF6EE; color: #1C7A3E; border: 1px solid #A9DCB9; }
.form-status.error { display: block; background: #FCEAEE; color: #B4243F; border: 1px solid #F0BCC7; }
fieldset { border: 0; padding: 0; margin: 0; }
.field fieldset legend { padding: 0; margin: 0 0 7px; font-weight: 600; font-size: .9rem; color: var(--ink); }
.radio-row { display: flex; gap: 10px; flex-wrap: wrap; }
.radio-pill { position: relative; }
.radio-pill input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.radio-pill span {
  display: block; padding: 12px 20px; border: 1.5px solid var(--border-input);
  border-radius: var(--r-pill); font-weight: 600; font-size: .93rem; color: var(--ink);
  transition: all var(--dur); cursor: pointer;
}
.radio-pill input:checked + span { background: var(--navy); color: #fff; border-color: var(--navy); }
.radio-pill input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }

/* Contact detail cards */
.contact-detail { display: flex; gap: 14px; align-items: flex-start; }
.contact-detail .ico { width: 46px; height: 46px; border-radius: 12px; background: var(--tint); color: var(--navy); display: grid; place-items: center; flex-shrink: 0; }
.contact-detail .ico svg { width: 22px; height: 22px; }
.contact-detail strong { display: block; color: var(--ink); }
.contact-detail a, .contact-detail span { color: var(--text-muted); font-size: .95rem; }

/* ---------- Page hero (interior) ---------- */
.page-hero { padding: clamp(2.5rem, 5vw, 4rem) 0 clamp(1.5rem, 3vw, 2.5rem); }
.page-hero.dark {
  background:
    radial-gradient(100% 130% at 92% -20%, rgba(69,209,161,.45) 0%, rgba(69,209,161,0) 55%),
    linear-gradient(155deg, var(--navy) 0%, var(--navy-900) 100%);
  color: var(--text-on-dark); margin-bottom: 0;
}
.page-hero.dark h1 { color: #fff; }
.page-hero.dark .lead { color: var(--text-on-dark-muted); }
.page-hero.dark .eyebrow { color: var(--teal-soft); }
.page-hero.dark .eyebrow::before { background: var(--teal-soft); }
.page-hero.dark .hero-note {
  color: var(--text-on-dark);
  font-weight: 700;
  margin-top: 1rem;
  max-width: 640px;
}
.breadcrumb { font-size: .85rem; color: var(--text-muted); margin-bottom: 18px; display: flex; gap: 8px; flex-wrap: wrap; }
.page-hero.dark .breadcrumb { color: var(--text-on-dark-muted); }
.breadcrumb a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.breadcrumb a:hover { color: var(--navy); }
.page-hero.dark .breadcrumb a:hover { color: #fff; }

/* ---------- Course detail pages ---------- */
.course-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.course-hero-card {
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: var(--r-lg);
  padding: clamp(1.4rem, 3vw, 2rem);
  box-shadow: var(--shadow-md);
}
.course-hero-card .tag {
  display: inline-block;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--teal-soft);
  background: rgba(255,255,255,.1);
  border-radius: var(--r-pill);
  padding: 5px 11px;
  margin-bottom: 16px;
}
.course-hero-card .course-meta { margin-bottom: 0; }
.course-hero-card .course-meta li { color: var(--text-on-dark-muted); }
.course-hero-card .course-meta b { color: #fff; }
@media (max-width: 860px) { .course-hero-grid { grid-template-columns: 1fr; } }

/* ---------- Media illustration blocks ---------- */
.scene { width: 100%; height: 100%; display: block; }
.media-frame { border-radius: var(--r-lg); overflow: hidden; background: var(--tint); box-shadow: var(--shadow-md); }
.media-frame.tall { aspect-ratio: 4/5; }
.media-frame.wide { aspect-ratio: 16/10; }
.media-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.contact-visual { margin-top: 2rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--charcoal); color: #E7DCE1; padding: clamp(3rem, 6vw, 4.5rem) 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 540px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand .brand-name { color: #fff; }
.footer-brand .brand-sub { color: #B49AA5; }
.site-footer p { color: #B9A9B0; font-size: .92rem; }
.footer-col h4 { color: #fff; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 16px; }
.footer-col ul { list-style: none; display: grid; gap: 10px; }
.footer-col a { color: #C9B9C0; font-size: .93rem; }
.footer-col a:hover { color: #fff; }
.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}
.footer-social-link {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 50%;
  color: #C9B9C0;
  transition: background var(--dur), color var(--dur), border-color var(--dur), transform var(--dur) var(--ease-out);
}
.footer-social-link:hover {
  background: rgba(255,255,255,.1);
  border-color: rgba(255,255,255,.42);
  color: #fff;
  transform: translateY(-2px);
}
.footer-social-link svg {
  width: 17px;
  height: 17px;
}
.footer-link {
  border: 0;
  background: transparent;
  color: #C9B9C0;
  font: inherit;
  font-size: .93rem;
  padding: 0;
  cursor: pointer;
  text-align: left;
}
.footer-link:hover { color: #fff; }
.footer-legal { margin-top: 40px; padding-top: 28px; border-top: 1px solid rgba(255,255,255,.12); }
.footer-legal .disclaimer { font-size: .82rem; color: #9A8A91; max-width: 900px; line-height: 1.6; }
.footer-legal .copyright { margin-top: 18px; font-size: .84rem; color: #8A7A81; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.footer-legal .company-line { font-size: .86rem; color: #C9B9C0; margin-bottom: 14px; }
.footer-legal .company-line b { color: #fff; }

/* ---------- Cookie consent ---------- */
.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 1500;
  max-width: 980px;
  margin: 0 auto;
  background: #fff;
  color: var(--text);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  padding: 18px;
}
.cookie-banner[hidden] { display: none; }
.cookie-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
}
.cookie-banner h2 {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.3;
  letter-spacing: 0;
  margin: 0 0 6px;
}
.cookie-banner p {
  margin: 0;
  color: var(--text-muted);
  font-size: .9rem;
  line-height: 1.55;
}
.cookie-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.cookie-actions .btn { min-height: 44px; padding: 11px 18px; font-size: .9rem; }
@media (max-width: 760px) {
  .cookie-inner { grid-template-columns: 1fr; }
  .cookie-actions { justify-content: stretch; }
  .cookie-actions .btn { flex: 1 1 150px; }
}

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s var(--ease-out), transform .6s var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ---------- Utility ---------- */
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.mt-4 { margin-top: 24px; } .mt-5 { margin-top: 32px; }
.stack > * + * { margin-top: 16px; }
.divider { height: 1px; background: var(--border); border: 0; margin: 0; }
.badge-soft { display: inline-flex; align-items: center; gap: 8px; background: var(--tint); color: var(--navy); border: 1px solid var(--border); padding: 8px 16px; border-radius: var(--r-pill); font-weight: 600; font-size: .88rem; }
.badge-soft svg { width: 16px; height: 16px; }
