/* ===================================================================
   Shalom Caregivers - CareCert Theme
   Premium caregiver training & certification UI
   =================================================================== */

/* ---------- Design tokens ---------- */
:root {
  /* CareCert palette */
  --primary: #0F9BBF;
  --primary-dark: #0B7E9C;
  --secondary: #EFFCFF;
  --accent: #DCA724;
  --accent-dark: #B8881A;
  --bg: #F8FBFC;
  --card: #FFFFFF;
  --heading: #0F172A;
  --body: #64748B;
  --success: #19CB66;
  --border: #DCE7EC;

  /* Effects */
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04), 0 1px 3px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 4px 16px rgba(15, 23, 42, 0.06), 0 2px 6px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 18px 48px rgba(15, 23, 42, 0.10), 0 6px 18px rgba(15, 23, 42, 0.06);
  --shadow-primary: 0 12px 30px rgba(15, 155, 191, 0.28);

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;

  --gradient-hero: linear-gradient(135deg, #0F9BBF 0%, #0B7E9C 55%, #0A6A85 100%);
  --gradient-soft: linear-gradient(180deg, #EFFCFF 0%, #F8FBFC 100%);

  /* Typography */
  --font-head: "Plus Jakarta Sans", "Segoe UI", sans-serif;
  --font-body: "Figtree", "Segoe UI", sans-serif;

  --maxw: 1180px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  color: var(--body);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; }

h1, h2, h3, h4, h5 {
  font-family: var(--font-head);
  color: var(--heading);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.02em;
}

::selection { background: var(--accent); color: #fff; }

/* Visible focus for keyboard users */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
.btn:focus-visible {
  outline: 3px solid rgba(15, 155, 191, 0.45);
  outline-offset: 2px;
}

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 24px;
}

.section { padding: 96px 0; }
.section--tint { background: var(--gradient-soft); }
.section--sky { background: var(--secondary); }

.section-head {
  max-width: 640px;
  margin: 0 auto 56px;
  text-align: center;
}
.section-head.left { margin-inline: 0; text-align: left; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--secondary);
  border: 1px solid var(--border);
  padding: 7px 16px;
  border-radius: var(--radius-pill);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

.section-head h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.7rem);
  margin-bottom: 14px;
}
.section-head p { font-size: 1.06rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1rem;
  padding: 14px 26px;
  border-radius: var(--radius-pill);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .25s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary { background: var(--primary); color: #fff; box-shadow: var(--shadow-primary); }
.btn--primary:hover { background: var(--primary-dark); }

.btn--accent { background: var(--accent); color: #fff; box-shadow: 0 12px 30px rgba(220, 167, 36, 0.30); }
.btn--accent:hover { background: var(--accent-dark); }

.btn--ghost { background: #fff; color: var(--heading); border-color: var(--border); box-shadow: var(--shadow-sm); }
.btn--ghost:hover { border-color: var(--primary); color: var(--primary); }

.btn--light { background: rgba(255,255,255,0.14); color: #fff; border-color: rgba(255,255,255,0.4); backdrop-filter: blur(4px); }
.btn--light:hover { background: rgba(255,255,255,0.24); }

.btn--block { width: 100%; }

/* Pill / badge */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.74rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 5px 13px;
  border-radius: var(--radius-pill);
}
.badge--gold { background: rgba(220,167,36,0.14); color: var(--accent-dark); }
.badge--blue { background: var(--secondary); color: var(--primary-dark); }
.badge--success { background: rgba(25,203,102,0.14); color: #128a47; }
.badge--muted { background: #eef2f5; color: var(--body); }

/* =====================================================================
   TOP ANNOUNCEMENT BAR
   Background + text follow the active theme palette via CSS vars.
   ===================================================================== */
.site-topbar {
  background: linear-gradient(90deg, var(--primary-dark) 0%, var(--primary) 100%);
  color: #fff;
  font-size: 13px;
  line-height: 1.2;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.site-topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 24px;
  padding: 8px 0;
}
.site-topbar__group {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 22px;
}
.site-topbar__group--right { margin-left: auto; }
.site-topbar__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.92);
}
.site-topbar__item a {
  color: inherit;
  text-decoration: none;
  transition: color .15s ease;
}
.site-topbar__item a:hover { color: #fff; text-decoration: underline; }
.site-topbar__icon {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  color: rgba(255, 255, 255, 0.85);
}
@media (max-width: 640px) {
  .site-topbar { font-size: 12px; }
  .site-topbar__group { gap: 4px 14px; }
}

/* =====================================================================
   HEADER
   ===================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 76px;
  transition: height .35s ease;
}
.site-header.scrolled { box-shadow: var(--shadow-md); }
.site-header.scrolled .nav { height: 62px; }
.site-header.scrolled .brand__mark { transform: scale(.92); }
.brand__mark { transition: transform .35s ease; }
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-head);
  color: var(--heading);
}
.brand__mark {
  width: 44px; height: 44px;
  border-radius: 13px;
  background: var(--gradient-hero);
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 800;
  font-size: 1.25rem;
  box-shadow: var(--shadow-primary);
  flex-shrink: 0;
}
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__name { font-weight: 800; font-size: 1.06rem; }
.brand__sub { font-size: 0.72rem; color: var(--body); font-family: var(--font-body); letter-spacing: 0.02em; }

.nav__links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  padding: 0;
}
.nav__links a {
  display: block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.97rem;
  color: var(--heading);
  padding: 9px 15px;
  border-radius: var(--radius-pill);
  transition: background .2s, color .2s;
}
.nav__links a:hover { background: var(--secondary); color: var(--primary-dark); }
.nav__links a.is-active { color: var(--primary); background: var(--secondary); }

.nav__cta { display: flex; align-items: center; gap: 12px; }

.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 46px; height: 46px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
}
.nav__toggle span {
  display: block;
  width: 20px; height: 2px;
  margin-inline: auto;
  background: var(--heading);
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}
.nav__toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle.is-open span:nth-child(2) { opacity: 0; }
.nav__toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =====================================================================
   HERO
   ===================================================================== */
.hero {
  position: relative;
  background: var(--gradient-hero);
  color: #fff;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: -160px; right: -120px;
  width: 520px; height: 520px;
  background: radial-gradient(circle, rgba(220,167,36,0.30), transparent 65%);
  border-radius: 50%;
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  bottom: -200px; left: -140px;
  width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(255,255,255,0.12), transparent 65%);
  border-radius: 50%;
  pointer-events: none;
}
.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 56px;
  padding: 92px 0 104px;
}
.hero__pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.85rem;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.28);
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  margin-bottom: 24px;
}
.hero__pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.hero h1 {
  color: #fff;
  font-size: clamp(2.5rem, 5.4vw, 4rem);
  margin-bottom: 22px;
}
.hero h1 .gold { color: var(--accent); }
.hero__lead {
  font-size: 1.18rem;
  color: rgba(255,255,255,0.92);
  max-width: 520px;
  margin-bottom: 34px;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 40px; }
.hero__stats {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}
.hero__stat .num { font-family: var(--font-head); font-weight: 800; font-size: 1.9rem; color: #fff; }
.hero__stat .label { font-size: 0.88rem; color: rgba(255,255,255,0.82); }

.hero__media { position: relative; min-width: 0; }
.hero__content { min-width: 0; }
.hero__media > img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  object-fit: cover;
  aspect-ratio: 4 / 4.4;
}

/* Hero slider (multi-image mode) */
.hero__swiper {
  position: relative;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  aspect-ratio: 4 / 4.4;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--primary-dark);
}
.hero__swiper .swiper-slide { background: #000; }
.hero__swiper .swiper-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* Pre-init: only the first slide is visible. Once Swiper boots, it adds the
   `.swiper-initialized` class and this rule no longer matches — Swiper then
   owns layout (flex wrapper, transformed slides). This prevents the flicker
   where all slides stack and overlap during the first paint. */
.hero__swiper:not(.swiper-initialized) .swiper-wrapper { display: block; height: 100%; }
.hero__swiper:not(.swiper-initialized) .swiper-slide { display: none; height: 100%; }
.hero__swiper:not(.swiper-initialized) .swiper-slide:first-child { display: block; }
.hero__swiper:not(.swiper-initialized) .hero__arrow,
.hero__swiper:not(.swiper-initialized) .hero__pagination { visibility: hidden; }
.hero__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 0;
  background: rgba(255, 255, 255, 0.92);
  color: var(--heading);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: background .15s ease, color .15s ease;
}
.hero__arrow:hover { background: var(--primary); color: #fff; }
.hero__arrow.swiper-button-disabled { opacity: .45; pointer-events: none; }
.hero__arrow--prev { left: 12px; }
.hero__arrow--next { right: 12px; }
.hero__pagination.swiper-pagination-bullets {
  position: absolute;
  bottom: 14px;
  z-index: 5;
}
.hero__pagination .swiper-pagination-bullet {
  background: rgba(255, 255, 255, 0.55);
  opacity: 1;
  width: 9px;
  height: 9px;
  transition: background .15s ease, transform .15s ease;
}
.hero__pagination .swiper-pagination-bullet-active {
  background: #fff;
  transform: scale(1.25);
}

@media (max-width: 720px) {
  .hero__arrow { width: 34px; height: 34px; font-size: 22px; }
  .hero__arrow--prev { left: 8px; }
  .hero__arrow--next { right: 8px; }
}
.hero__badge {
  position: absolute;
  z-index: 10;
  bottom: 26px; left: -26px;
  background: #fff;
  color: var(--heading);
  border-radius: var(--radius);
  padding: 16px 20px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 250px;
}
.hero__badge .icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: rgba(25,203,102,0.14);
  color: var(--success);
  display: grid; place-items: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.hero__badge strong { font-family: var(--font-head); display: block; color: var(--heading); }
.hero__badge span { font-size: 0.82rem; }

/* =====================================================================
   PAGE BANNER (inner pages)
   ===================================================================== */
.page-banner {
  background: var(--gradient-hero);
  color: #fff;
  text-align: center;
  padding: 84px 0 88px;
  position: relative;
  overflow: hidden;
}
.page-banner::after {
  content: "";
  position: absolute;
  top: -120px; right: -80px;
  width: 360px; height: 360px;
  background: radial-gradient(circle, rgba(220,167,36,0.28), transparent 65%);
  border-radius: 50%;
}
.page-banner .eyebrow { background: rgba(255,255,255,0.14); border-color: rgba(255,255,255,0.3); color: #fff; }
.page-banner .eyebrow::before { background: var(--accent); }
.page-banner h1 { color: #fff; font-size: clamp(2.2rem, 4.6vw, 3.2rem); margin-bottom: 14px; position: relative; }
.page-banner p { color: rgba(255,255,255,0.9); max-width: 600px; margin: 0 auto; font-size: 1.08rem; position: relative; }
.crumbs { font-size: 0.9rem; color: rgba(255,255,255,0.8); margin-top: 18px; position: relative; }
.crumbs a { color: var(--accent); }

/* =====================================================================
   TRUST STRIP
   ===================================================================== */
.trust {
  background: #fff;
  border-bottom: 1px solid var(--border);
}
.trust__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 48px 0;
}
.trust__item { display: flex; align-items: center; gap: 16px; }
.trust__item .ico {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--secondary);
  color: var(--primary);
  display: grid; place-items: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}
.trust__item .num { font-family: var(--font-head); font-weight: 800; font-size: 1.5rem; color: var(--heading); line-height: 1; }
.trust__item .lbl { font-size: 0.9rem; }

/* =====================================================================
   CARDS GRID (services / courses)
   ===================================================================== */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: rgba(15,155,191,0.4); }
.card__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .card__media img { transform: scale(1.06); }
.card__media .badge { position: absolute; top: 14px; left: 14px; background: #fff; box-shadow: var(--shadow-sm); }
.card__body { padding: 26px 24px 28px; display: flex; flex-direction: column; flex: 1; }
.card__body h3 {
  font-size: 1.28rem;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.3;
  min-height: calc(2 * 1.3 * 1.28rem);
}
.card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
  max-height: calc(2 * (1.5em + 10px));
  overflow: hidden;
}
.card__meta .chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.85rem; color: var(--body);
  background: var(--secondary);
  padding: 5px 12px; border-radius: var(--radius-pill);
  white-space: nowrap;
}
.card__body p {
  margin-bottom: 22px;
  font-size: 0.97rem;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card__foot { margin-top: auto; display: flex; gap: 12px; align-items: center; }
.card__price { font-family: var(--font-head); font-weight: 800; color: var(--heading); font-size: 1.15rem; }

/* =====================================================================
   PROGRAM / FEATURE SPLIT
   ===================================================================== */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.split--reverse .split__media { order: 2; }
.split__media img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  object-fit: cover;
  aspect-ratio: 5 / 4;
}
.split__body h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); margin-bottom: 18px; }
.split__body > p { margin-bottom: 26px; font-size: 1.05rem; }

.tick-list { list-style: none; padding: 0; display: grid; gap: 16px; margin-bottom: 30px; }
.tick-list li { display: flex; gap: 14px; align-items: flex-start; }
.tick-list .tick {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: rgba(25,203,102,0.14);
  color: var(--success);
  display: grid; place-items: center;
  font-size: 0.85rem; font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}
.tick-list strong { font-family: var(--font-head); color: var(--heading); display: block; }
.tick-list span { font-size: 0.95rem; }

/* =====================================================================
   VALUES (about)
   ===================================================================== */
.values {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.value {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 24px;
  box-shadow: var(--shadow-sm);
  transition: transform .3s, box-shadow .3s;
}
.value:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.value .ico {
  width: 54px; height: 54px;
  border-radius: 15px;
  background: var(--gradient-hero);
  color: #fff;
  display: grid; place-items: center;
  font-size: 1.4rem;
  margin-bottom: 18px;
  box-shadow: var(--shadow-primary);
}
.value h3 { font-size: 1.2rem; margin-bottom: 8px; }
.value p { font-size: 0.95rem; }

/* =====================================================================
   MEDIA BAND (training overview)
   ===================================================================== */
.media-band { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.media-band img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 21 / 9; }
.media-band__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(11,126,156,0.92) 0%, rgba(15,155,191,0.55) 55%, rgba(15,155,191,0.15) 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 8% 0 7%;
  color: #fff;
}
.media-band__overlay h2 { color: #fff; font-size: clamp(1.6rem, 3.4vw, 2.5rem); margin-bottom: 12px; max-width: 540px; }
.media-band__overlay p { color: rgba(255,255,255,0.92); max-width: 460px; margin-bottom: 24px; }
.play-btn {
  position: relative;
  width: 72px; height: 72px;
  border-radius: 50%;
  background: #fff;
  color: var(--primary);
  border: none;
  display: grid; place-items: center;
  cursor: pointer;
  font-size: 1.4rem;
  box-shadow: var(--shadow-lg);
  transition: transform .25s;
}
.play-btn:hover { transform: scale(1.08); }

/* =====================================================================
   BLOG CARDS
   ===================================================================== */
.post {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .3s, box-shadow .3s;
  display: flex;
  flex-direction: column;
}
.post:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.post__media { aspect-ratio: 16 / 10; overflow: hidden; }
.post__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.post:hover .post__media img { transform: scale(1.06); }
.post__body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.post__date { font-size: 0.82rem; color: var(--primary); font-weight: 600; font-family: var(--font-head); margin-bottom: 10px; }
.post__body h3 { font-size: 1.18rem; margin-bottom: 12px; }
.post__body p { font-size: 0.95rem; margin-bottom: 18px; }
.post__more { margin-top: auto; font-family: var(--font-head); font-weight: 600; color: var(--primary); display: inline-flex; align-items: center; gap: 6px; }
.post__more:hover { gap: 10px; }

/* =====================================================================
   GALLERY (portfolio)
   ===================================================================== */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 240px;
  gap: 20px;
}
.gallery figure {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.gallery figure img,
.gallery figure video,
.gallery figure .gallery__play img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; display: block; }
.gallery figure:hover img,
.gallery figure:hover .gallery__play img { transform: scale(1.08); }
.gallery figure video { background: #000; transition: none; }
.gallery figure:hover video { transform: none; }
.gallery .tall { grid-row: span 2; }
.gallery .wide { grid-column: span 2; }
.gallery .full { grid-column: 1 / -1; grid-row: span 2; }

/* YouTube tile: thumbnail + centered play button */
.gallery__play {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  padding: 0;
  background: #000;
  cursor: pointer;
  overflow: hidden;
}
.gallery__play-btn {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 64px; height: 64px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.7);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background .2s ease, transform .2s ease;
  pointer-events: none;
}
.gallery__play-btn svg { width: 28px; height: 28px; margin-left: 3px; }
.gallery__play:hover .gallery__play-btn { background: var(--primary); transform: translate(-50%, -50%) scale(1.06); }
.gallery__play:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

/* Lightbox for YouTube playback */
.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(15, 23, 42, 0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.gallery-lightbox[hidden] { display: none; }
.gallery-lightbox__frame {
  width: min(960px, 100%);
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.gallery-lightbox__frame > div { width: 100%; height: 100%; }
.gallery-lightbox__frame iframe { display: block; width: 100%; height: 100%; border: 0; }
.gallery-lightbox__close {
  position: absolute;
  top: 18px; right: 18px;
  width: 40px; height: 40px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  transition: background .15s ease;
}
.gallery-lightbox__close:hover { background: rgba(255, 255, 255, 0.22); }
.gallery figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 18px 18px 16px;
  background: linear-gradient(180deg, transparent, rgba(15,23,42,0.78));
  color: #fff;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.98rem;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .3s, transform .3s;
}
.gallery figure:hover figcaption { opacity: 1; transform: translateY(0); }

/* =====================================================================
   CERTIFICATIONS & AFFILIATIONS (about page) — Swiper carousel
   Layout/sizing is owned by Swiper; this stylesheet only paints.
   ===================================================================== */
.certs .section-head { text-align: center; max-width: 760px; margin-inline: auto; }
.certs__title {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(28px, 3.6vw, 40px);
  color: var(--heading);
  margin: 0 0 14px;
  line-height: 1.18;
}
.certs__title .text-accent {
  background: var(--accent);
  color: #fff;
  padding: 0 14px;
  border-radius: 6px;
  display: inline-block;
}
.certs__eyebrow { font-size: 15px; color: var(--body); margin: 0 0 14px; }
.certs__lede    { font-size: 15px; color: var(--body); margin: 0 auto 36px; max-width: 640px; }

.certs__slider {
  position: relative;
  padding: 0 56px;
}
.certs__swiper {
  padding: 6px 2px 36px;
}
.certs__slide {
  display: flex !important;
  align-items: center;
  justify-content: center;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 26px;
  height: auto;
  min-height: 200px;
  transition: box-shadow .2s ease, transform .2s ease;
}
.certs__slide:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.certs__slide img {
  max-width: 100%;
  max-height: 140px;
  width: auto;
  height: auto;
  object-fit: contain;
}
.certs__placeholder {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--primary);
  text-align: center;
  font-size: 16px;
}

.certs__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--body);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
  box-shadow: var(--shadow-sm);
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.certs__arrow:hover { background: var(--primary); border-color: var(--primary); color: #fff; }
.certs__arrow.swiper-button-disabled { opacity: .4; cursor: default; pointer-events: none; }
.certs__arrow--prev { left: 6px; }
.certs__arrow--next { right: 6px; }

/* Swiper pagination — keep visuals on theme */
.certs__pagination.swiper-pagination-bullets {
  position: absolute;
  bottom: 4px;
}
.certs__pagination .swiper-pagination-bullet {
  background: var(--border);
  opacity: 1;
  transition: background .15s ease, transform .15s ease;
}
.certs__pagination .swiper-pagination-bullet-active {
  background: var(--primary);
  transform: scale(1.25);
}

@media (max-width: 720px) {
  .certs__slider { padding: 0 44px; }
  .certs__slide  { min-height: 160px; padding: 20px; }
}
@media (max-width: 480px) {
  .certs__slider { padding: 0 36px; }
}

/* =====================================================================
   TESTIMONIALS (home page) — Swiper carousel
   ===================================================================== */
.testimonials .section-head { text-align: center; max-width: 760px; margin-inline: auto; }
.testimonials__slider { position: relative; padding: 0 44px; }
.testimonials__swiper { padding: 6px 4px 40px; }
.testimonial {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  height: auto;
  transition: box-shadow .2s ease, transform .2s ease;
}
.testimonial:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.testimonial__media:empty { display: none; }
.testimonial__media { display: flex; align-items: center; gap: 14px; }
.testimonial__thumb img {
  width: 72px; height: 72px;
  border-radius: 999px;
  object-fit: cover;
  border: 3px solid var(--secondary);
}
.testimonial__video,
.testimonial__poster {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
  display: block;
}
.testimonial__poster {
  position: relative;
  padding: 0;
  border: 0;
  cursor: pointer;
}
.testimonial__poster img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.testimonial__playbtn {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 52px; height: 52px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.72);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background .15s ease, transform .15s ease;
}
.testimonial__poster:hover .testimonial__playbtn {
  background: var(--primary);
  transform: translate(-50%, -50%) scale(1.06);
}
.testimonial__video { width: 100%; height: 100%; }
.testimonial__rating { display: flex; gap: 2px; color: #cbd5e1; font-size: 15px; }
.testimonial__rating .is-on { color: var(--accent); }
.testimonial__quote {
  font-size: 15px;
  line-height: 1.6;
  color: var(--body);
  margin: 0;
  font-style: italic;
}
.testimonial__byline { margin-top: auto; display: flex; flex-direction: column; gap: 2px; }
.testimonial__byline strong {
  font-family: var(--font-head);
  color: var(--heading);
  font-size: 15px;
}
.testimonial__role {
  font-size: 12px;
  color: var(--primary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.testimonial__meta { font-size: 12px; color: var(--body); }

.testimonials__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px; height: 40px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--body);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
  box-shadow: var(--shadow-sm);
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.testimonials__arrow:hover { background: var(--primary); border-color: var(--primary); color: #fff; }
.testimonials__arrow.swiper-button-disabled { opacity: .4; pointer-events: none; }
.testimonials__arrow--prev { left: 0; }
.testimonials__arrow--next { right: 0; }

.testimonials__pagination.swiper-pagination-bullets {
  position: absolute;
  bottom: 6px;
}
.testimonials__pagination .swiper-pagination-bullet {
  background: var(--border);
  opacity: 1;
  width: 8px;
  height: 8px;
  transition: background .15s ease, transform .15s ease;
}
.testimonials__pagination .swiper-pagination-bullet-active {
  background: var(--primary);
  transform: scale(1.25);
}

@media (max-width: 720px) {
  .testimonials__slider { padding: 0; }
  .testimonials__arrow { display: none; }
  .testimonial { padding: 18px; }
}

/* =====================================================================
   ADMISSION CTA BAND
   ===================================================================== */
.cta-band {
  background: var(--gradient-hero);
  border-radius: var(--radius-lg);
  padding: 56px 8%;
  color: #fff;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.cta-band::after {
  content: "";
  position: absolute;
  top: -100px; right: -60px;
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(220,167,36,0.3), transparent 65%);
  border-radius: 50%;
}
.cta-band h2 { color: #fff; font-size: clamp(1.8rem, 3.6vw, 2.6rem); margin-bottom: 14px; position: relative; }
.cta-band p { color: rgba(255,255,255,0.92); max-width: 560px; margin: 0 auto 28px; position: relative; }
.cta-band .btn { position: relative; }

/* =====================================================================
   CONTACT / FORM
   ===================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.form-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 38px 36px;
  box-shadow: var(--shadow-md);
}
.form-card h2 { font-size: 1.6rem; margin-bottom: 6px; }
.form-card .sub { margin-bottom: 28px; font-size: 0.97rem; }

.field { margin-bottom: 20px; }
.field label {
  display: block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--heading);
  margin-bottom: 7px;
}
.field label .req { color: var(--accent-dark); }
.field input,
.field select {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--heading);
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 13px 15px;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.field input::placeholder { color: #9fb0bb; }
.field input:focus,
.field select:focus {
  outline: none;
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(15,155,191,0.12);
}
.field.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field.row3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.field .err { display: none; color: #d9534f; font-size: 0.82rem; margin-top: 6px; font-family: var(--font-head); }
.field.invalid input,
.field.invalid select { border-color: #e0a3a0; background: #fdf6f6; }
.field.invalid .err { display: block; }
.field-group-label {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--heading);
  margin-bottom: 7px;
}

.form-note { font-size: 0.85rem; margin-top: 10px; text-align: center; }

.form-success {
  display: none;
  background: rgba(25,203,102,0.10);
  border: 1.5px solid rgba(25,203,102,0.4);
  color: #128a47;
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  font-family: var(--font-head);
  font-weight: 600;
}
.form-success.show { display: block; }

/* contact info side */
.info-card {
  background: var(--gradient-hero);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 38px 34px;
  box-shadow: var(--shadow-lg);
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}
.info-card::after {
  content:"";
  position:absolute; bottom:-90px; right:-60px;
  width:240px; height:240px;
  background: radial-gradient(circle, rgba(220,167,36,0.25), transparent 65%);
  border-radius:50%;
}
.info-card h2 { color: #fff; font-size: 1.5rem; margin-bottom: 22px; position: relative; }
.info-row { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 22px; position: relative; }
.info-row .ico {
  width: 46px; height: 46px;
  border-radius: 12px;
  background: rgba(255,255,255,0.16);
  display: grid; place-items: center;
  font-size: 1.15rem;
  flex-shrink: 0;
}
.info-row .lbl { font-size: 0.8rem; color: rgba(255,255,255,0.78); text-transform: uppercase; letter-spacing: 0.06em; font-family: var(--font-head); }
.info-row .val { color: #fff; font-weight: 500; }
.info-row a.val:hover { color: var(--accent); }

.map-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  background: #fff;
}
.map-card iframe { width: 100%; height: 280px; border: 0; display: block; }

/* =====================================================================
   FOOTER
   ===================================================================== */
.site-footer {
  background: var(--heading);
  color: rgba(255,255,255,0.72);
  padding-top: 72px;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 52px;
}
.footer .brand__name { color: #fff; }
.footer .brand__sub { color: rgba(255,255,255,0.6); }
.footer__about { margin: 20px 0 22px; font-size: 0.95rem; max-width: 320px; }
.footer h4 { color: #fff; font-size: 1.02rem; margin-bottom: 18px; }
.footer ul { list-style: none; padding: 0; display: grid; gap: 11px; }
.footer ul a { color: rgba(255,255,255,0.72); font-size: 0.95rem; transition: color .2s, padding-left .2s; }
.footer ul a:hover { color: var(--accent); padding-left: 4px; }
.footer__contact li { display: flex; gap: 10px; align-items: flex-start; font-size: 0.95rem; }
.footer__contact .ico { color: var(--accent); flex-shrink: 0; }

.socials { display: flex; gap: 10px; }
.socials a {
  width: 40px; height: 40px;
  border-radius: 11px;
  background: rgba(255,255,255,0.08);
  display: grid; place-items: center;
  color: rgba(255,255,255,0.85);
  transition: background .2s, transform .2s, color .2s;
}
.socials a:hover { background: var(--primary); color: #fff; transform: translateY(-3px); }
.socials a svg { width: 18px; height: 18px; }

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.10);
  padding: 22px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.88rem;
}
.footer__bottom .links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer__bottom a { color: rgba(255,255,255,0.7); }
.footer__bottom a:hover { color: var(--accent); }

/* =====================================================================
   SCROLL REVEAL
   ===================================================================== */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }
.reveal.d4 { transition-delay: .32s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 1024px) {
  .hero__grid { grid-template-columns: 1fr; gap: 48px; }
  .hero__media { max-width: 460px; }
  .trust__grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .values { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}

@media (max-width: 860px) {
  .nav__toggle { display: flex; }
  .nav__links {
    position: absolute;
    top: 76px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    background: #fff;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    padding: 16px 24px 24px;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s, transform .25s;
  }
  .nav__links.is-open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav__links a { padding: 13px 16px; }
  .nav__cta .btn:not(.nav__toggle) { display: none; }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .split--reverse .split__media { order: 0; }
  .contact-grid { grid-template-columns: 1fr; }
  .media-band__overlay { padding: 0 7%; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .section { padding: 64px 0; }
  .container { padding-inline: 18px; }
  .cards { grid-template-columns: 1fr; }
  .values { grid-template-columns: 1fr; }
  .trust__grid { grid-template-columns: 1fr; gap: 22px; padding: 36px 0; }
  .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 180px; }
  .gallery .wide { grid-column: span 2; }
  .gallery .full { grid-column: 1 / -1; grid-row: span 2; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; text-align: center; }
  .hero__stats { gap: 26px; }
  .hero__badge { left: 0; }
  .field.row2, .field.row3 { grid-template-columns: 1fr; }
  .cta-band, .form-card, .info-card { padding-inline: 24px; }
}

/* =====================================================================
   THEME ANIMATIONS — calm, premium, healthcare-education feel
   ===================================================================== */

/* Scroll progress bar (injected by JS) */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  z-index: 200;
  border-radius: 0 3px 3px 0;
  box-shadow: 0 0 10px rgba(15, 155, 191, 0.4);
}

/* ---- Hero staggered entrance (above the fold, runs on load) ---- */
@keyframes heroRise {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: none; }
}
.hero__content > * { opacity: 0; animation: heroRise .85s cubic-bezier(.22,.61,.36,1) both; }
.hero__pill    { animation-delay: .05s; }
.hero h1       { animation-delay: .16s; }
.hero__lead    { animation-delay: .30s; }
.hero__actions { animation-delay: .44s; }
.hero__stats   { animation-delay: .58s; }
.hero__media   { opacity: 0; animation: heroRise 1s cubic-bezier(.22,.61,.36,1) .38s both; }

/* ---- Gentle floating accents ---- */
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-9px); }
}
.hero__badge { animation: floaty 4.5s ease-in-out infinite; }

/* ---- Slow drifting background glows in hero ---- */
@keyframes driftA {
  0%, 100% { transform: translate(0, 0); }
  50%      { transform: translate(-34px, 22px); }
}
@keyframes driftB {
  0%, 100% { transform: translate(0, 0); }
  50%      { transform: translate(28px, -20px); }
}
.hero::before { animation: driftA 16s ease-in-out infinite; }
.hero::after  { animation: driftB 20s ease-in-out infinite; }

/* ---- Soft heartbeat-style pulse on the certification check ---- */
@keyframes softPulse {
  0%   { box-shadow: 0 0 0 0 rgba(25, 203, 102, 0.40); }
  70%  { box-shadow: 0 0 0 14px rgba(25, 203, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(25, 203, 102, 0); }
}
.hero__badge .icon { animation: softPulse 2.8s ease-out infinite; }

/* ---- Ripple ring around the play button ---- */
.play-btn::before,
.play-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.55);
  animation: ripple 2.6s ease-out infinite;
}
.play-btn::after { animation-delay: 1.3s; }
@keyframes ripple {
  0%   { transform: scale(1);   opacity: 0.7; }
  100% { transform: scale(1.7); opacity: 0; }
}

/* ---- Light sweep across primary / accent buttons on hover ---- */
.btn--primary, .btn--accent { position: relative; overflow: hidden; }
.btn--primary > *, .btn--accent > * { position: relative; z-index: 1; }
.btn--primary::after, .btn--accent::after {
  content: "";
  position: absolute;
  top: 0; left: -130%;
  width: 55%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: skewX(-20deg);
  pointer-events: none;
}
.btn--primary:hover::after, .btn--accent:hover::after { animation: sheen .85s ease; }
@keyframes sheen { to { left: 150%; } }

/* ---- Trust strip icons settle in with a gentle pop ---- */
@keyframes iconPop {
  0%   { transform: scale(.6); opacity: 0; }
  60%  { transform: scale(1.08); }
  100% { transform: scale(1); opacity: 1; }
}
.reveal.in .trust__item .ico,
.trust__item.in .ico { animation: iconPop .6s ease-out both; }

/* ---- Reveal: richer easing + optional directional variants ---- */
.reveal.from-left  { transform: translateX(-32px); }
.reveal.from-right { transform: translateX(32px); }
.reveal.from-left.in,
.reveal.from-right.in { transform: none; }

/* ---- Counting stat shimmer while animating ---- */
.hero__stat .num.counting { color: #fff; }

@media (prefers-reduced-motion: reduce) {
  .hero__content > *,
  .hero__media,
  .hero__badge,
  .hero::before,
  .hero::after,
  .hero__badge .icon,
  .play-btn::before,
  .play-btn::after,
  .trust__item .ico {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  .btn--primary::after, .btn--accent::after { display: none; }
  .scroll-progress { display: none; }
}

/* ============================================================================
   Rich article content (admin Froala output: blog posts, course bodies)
   Scoped to .rich so it never affects the rest of the design system.
   ============================================================================ */
.rich { color: var(--body); font-size: 1.05rem; line-height: 1.8; }
.rich > :first-child { margin-top: 0; }
.rich h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin: 1.6rem 0 .7rem; color: var(--heading); }
.rich h3 { font-size: clamp(1.2rem, 2.2vw, 1.45rem); margin: 1.4rem 0 .6rem; color: var(--heading); }
.rich h4 { font-size: 1.1rem; margin: 1.2rem 0 .5rem; color: var(--heading); }
.rich p { margin: 0 0 1.1rem; }
.rich ul, .rich ol { margin: 0 0 1.1rem; padding-left: 1.5rem; }
.rich ul { list-style: disc; }
.rich ol { list-style: decimal; }
.rich li { margin: .4rem 0; }
.rich a { color: var(--primary); text-decoration: underline; text-underline-offset: 2px; }
.rich a:hover { color: var(--primary-dark); }
.rich strong { color: var(--heading); font-weight: 700; }
.rich blockquote { border-left: 4px solid var(--accent); margin: 1.4rem 0; padding: .4rem 0 .4rem 1.1rem; font-style: italic; color: var(--heading); }
.rich img { max-width: 100%; height: auto; border-radius: var(--radius-sm); margin: 1rem 0; }
.rich hr { border: 0; border-top: 1px solid var(--border); margin: 2rem 0; }
.rich table { width: 100%; border-collapse: collapse; margin: 1.2rem 0; }
.rich th, .rich td { border: 1px solid var(--border); padding: 8px 12px; text-align: left; }

/* ============================================================================
   Course detail page (centered, readable article layout)
   ============================================================================ */
.course-detail { max-width: 860px; margin: 0 auto; }
.course-figure { margin: 0 0 28px; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); position: relative; width: 100%; max-width: 100%; }
.course-figure img,
.course-figure video { display: block; width: 100%; height: clamp(260px, 38vw, 440px); object-fit: cover; }
.course-figure video { background: #000; }
/* YouTube variant: drive size from container width via aspect-ratio (responsive),
   not a fixed height (which would force width to overflow on mobile). */
.course-figure--youtube {
  aspect-ratio: 16 / 9;
  width: 100%;
  height: auto;
  background: #000;
}
.course-figure--youtube .gallery__play {
  position: relative;
  width: 100%;
  height: 100%;
}
.course-figure--youtube .gallery__play img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.course-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 22px; }
.course-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--border); }

/* ---- Legal pages (privacy, terms) ---- */
.legal-doc { max-width: 820px; margin: 0 auto; }
.legal-updated { color: var(--body); font-size: .92rem; margin-bottom: 22px; padding-bottom: 16px; border-bottom: 1px solid var(--border); }

/* ---- Team section (About page) ---- */
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 26px; }
.team-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px 22px; text-align: center; box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease; }
.team-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.team-photo { width: 110px; height: 110px; margin: 0 auto 16px; border-radius: 50%; overflow: hidden; background: var(--secondary); display: grid; place-items: center; border: 3px solid #fff; box-shadow: var(--shadow-md); }
.team-photo img { width: 100%; height: 100%; object-fit: cover; }
.team-initial { font-family: var(--font-head); font-size: 2.4rem; font-weight: 800; color: var(--primary); }
.team-card h3 { font-size: 1.18rem; margin-bottom: 2px; }
.team-role { color: var(--primary); font-weight: 600; font-size: .92rem; margin-bottom: 10px; }
.team-card p { color: var(--body); font-size: .95rem; line-height: 1.6; margin: 0; }
