/* =============================================================================
   Bloom Bright Institute — design system (loads after Bootstrap 5.3)
   ============================================================================= */

/* ---------- 1. Tokens ---------- */
:root {
  --bb-cream: #FBF8F2;
  --bb-cream-2: #F3ECE0;
  --bb-sand: #EAE0CF;
  --bb-white: #FFFFFF;
  --bb-teal: #1B7A78;
  --bb-teal-dark: #135E5C;
  --bb-teal-deep: #0F4A48;
  --bb-teal-soft: #DCEBE9;
  --bb-coral: #DB5B3F;
  --bb-coral-dark: #C24A30;
  --bb-coral-deep: #A93A22;
  --bb-coral-soft: #F9E4DD;
  --bb-green: #A9D3A0;
  --bb-green-soft: #E6F1E1;
  --bb-ink: #1E2A2A;
  --bb-ink-2: #55625F;
  --bb-ink-3: #606D68;

  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(20,40,40,.06);
  --shadow-md: 0 10px 30px -12px rgba(20,60,60,.18);
  --shadow-lg: 0 30px 60px -24px rgba(20,60,60,.28);

  --font-display: "Lora", Georgia, "Times New Roman", serif;
  --font-body: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;

  --section-y: clamp(72px, 10vw, 128px);
  --ease-out: cubic-bezier(.2,.7,.2,1);
  --header-h: 80px;

  /* Bootstrap bridges */
  --bs-body-bg: var(--bb-cream);
  --bs-body-color: var(--bb-ink);
  --bs-body-font-family: var(--font-body);
  --bs-body-font-size: 1.0625rem;
  --bs-body-line-height: 1.65;
  --bs-link-color: var(--bb-teal);
  --bs-link-hover-color: var(--bb-teal-dark);
  --bs-link-color-rgb: 27,122,120;
  --bs-link-hover-color-rgb: 19,94,92;
  --bs-border-color: var(--bb-sand);
  --bs-heading-color: var(--bb-teal-deep);
  --bs-primary: var(--bb-teal);
  --bs-primary-rgb: 27,122,120;
  --bs-focus-ring-color: rgba(27,122,120,.25);
}

.container { --bs-container-max-width: 1200px; --bs-gutter-x: 2rem; }
@media (max-width: 575.98px) {
  .container { --bs-gutter-x: 1.5rem; }
  /* Rows with gutters wider than the container padding would overflow the viewport on phones. */
  .row { --bs-gutter-x: 1.5rem; }
}

/* ---------- 2. Base ---------- */
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bb-cream);
  color: var(--bb-ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}
img, svg, video { max-width: 100%; height: auto; }
::selection { background: var(--bb-teal-soft); color: var(--bb-teal-deep); }

h1, h2, h3, h4, .h1, .h2, .h3, .h4 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--bb-teal-deep);
  letter-spacing: -0.01em;
  text-wrap: balance;
}
h1, .h1 { font-size: clamp(2.5rem, 5.2vw, 4.25rem); line-height: 1.05; margin-bottom: 1.25rem; }
h2, .h2 { font-size: clamp(2rem, 3.6vw, 3rem); line-height: 1.1; margin-bottom: 1rem; }
h3, .h3 { font-size: clamp(1.5rem, 2vw, 1.75rem); line-height: 1.2; margin-bottom: .75rem; }
h4, .h4 { font-size: 1.25rem; line-height: 1.3; font-family: var(--font-body); font-weight: 700; color: var(--bb-teal-deep); }
h1 em, h2 em, h3 em { font-style: italic; font-weight: 500; color: var(--bb-teal); }
p { margin-bottom: 1rem; }
.lead { font-size: 1.25rem; font-weight: 400; color: var(--bb-ink-2); line-height: 1.55; text-wrap: pretty; }
small, .small { font-size: .9rem; }
a { color: var(--bb-teal); text-decoration: none; text-underline-offset: .18em; transition: color .2s var(--ease-out); }
a:hover { color: var(--bb-teal-dark); }
.muted { color: var(--bb-ink-2); }
strong, b { font-weight: 700; }
.tabular { font-variant-numeric: tabular-nums; }

:focus-visible { outline: 2px solid var(--bb-teal); outline-offset: 2px; border-radius: 4px; }
.btn-bb:focus-visible, .form-control:focus-visible, .form-select:focus-visible { outline-offset: 3px; }

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 2000;
  background: var(--bb-teal-deep); color: #fff; padding: 10px 16px; border-radius: var(--radius-md);
  font-weight: 600; transition: top .2s;
}
.skip-link:focus { top: 16px; color: #fff; }

/* ---------- 3. Typography helpers ---------- */
.eyebrow {
  font-family: var(--font-body); font-weight: 700; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--bb-teal); margin-bottom: .9rem; display: block;
}
.eyebrow--light { color: var(--bb-green); }
.eyebrow--coral { color: var(--bb-coral-dark); }
.section-head { max-width: 720px; margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head .section-title { margin-bottom: 1rem; }
.section-head .lead { margin-bottom: 0; }
.section-head--form { max-width: 760px; }
/* Section header with an action on the right (e.g. "All events →") */
.section-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem 3rem; flex-wrap: wrap; margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.section-head-row .section-head { margin-bottom: 0; }
.section-head-row__aside { padding-bottom: .35rem; }
.section-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem; margin-top: clamp(2rem, 4vw, 3rem); }

.link-arrow { font-weight: 600; display: inline-flex; align-items: center; gap: .35rem; color: var(--bb-teal); }
.link-arrow svg { width: 18px; height: 18px; transition: transform .25s var(--ease-out); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- 4. Sections ---------- */
.section { padding-block: var(--section-y); position: relative; }
.section--tint { background: var(--bb-cream-2); }
.section--white { background: var(--bb-white); }
.section--tight { padding-block: clamp(48px, 6vw, 80px); }
.section--cta { padding-top: 0; }
.section--form { background: var(--bb-cream-2); }
.section--faq .faq-wrap { max-width: 860px; margin: 0 auto; }
.section + .section--cta { padding-top: 0; }

/* ---------- 5. Buttons ---------- */
.btn-bb {
  --btn-bg: var(--bb-coral); --btn-fg: #fff; --btn-bd: var(--bb-coral);
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: 14px 26px; border-radius: var(--radius-pill);
  font-family: var(--font-body); font-weight: 600; font-size: 1rem; line-height: 1.2; letter-spacing: .005em;
  background: var(--btn-bg); color: var(--btn-fg); border: 1.5px solid var(--btn-bd);
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: background-color .22s var(--ease-out), color .22s var(--ease-out), border-color .22s var(--ease-out), transform .22s var(--ease-out), box-shadow .22s var(--ease-out);
}
.btn-bb svg, .btn-bb .btn-ic { width: 18px; height: 18px; flex: 0 0 auto; transition: transform .25s var(--ease-out); }
.btn-bb:hover { color: var(--btn-fg); transform: translateY(-1px); }
.btn-bb:active { transform: translateY(0); }
.btn-bb:disabled, .btn-bb.is-loading { opacity: .7; pointer-events: none; }
.btn-bb--sm { padding: 10px 20px; font-size: .95rem; }
.btn-bb--lg { padding: 17px 32px; font-size: 1.05rem; }
/* Ghost links flow inline so the arrow hugs the last word when the label wraps */
.btn-bb-ghost, .btn-bb-ghost-light { display: inline; white-space: normal; text-align: left; padding: 0; border: 0; line-height: 1.45; }
.btn-bb-ghost .btn-ic, .btn-bb-ghost-light .btn-ic { display: inline-block; vertical-align: -3px; margin-left: .3rem; }
@media (max-width: 575.98px) {
  .btn-bb { white-space: normal; text-align: center; max-width: 100%; }
  .btn-bb--lg { padding: 15px 26px; font-size: 1rem; }
  .btn-bb-ghost, .btn-bb-ghost-light { text-align: left; }
}

.btn-bb-primary { --btn-bg: var(--bb-coral-dark); --btn-bd: var(--bb-coral-dark); box-shadow: 0 8px 20px -10px rgba(194,74,48,.6); }
.btn-bb-primary:hover { --btn-bg: var(--bb-coral-deep); --btn-bd: var(--bb-coral-deep); box-shadow: 0 12px 24px -10px rgba(169,58,34,.65); }

.btn-bb-secondary { --btn-bg: transparent; --btn-fg: var(--bb-teal); --btn-bd: var(--bb-teal); }
.btn-bb-secondary:hover { --btn-bg: var(--bb-teal); --btn-fg: #fff; }

.btn-bb-ghost { --btn-bg: transparent; --btn-fg: var(--bb-teal); --btn-bd: transparent; padding-inline: 0; }
.btn-bb-ghost:hover { --btn-fg: var(--bb-teal-dark); transform: none; }
.btn-bb-ghost:hover .btn-ic { transform: translateX(4px); }
.btn-bb-ghost-light { --btn-bg: transparent; --btn-fg: #fff; --btn-bd: transparent; padding-inline: 0; }
.btn-bb-ghost-light:hover { --btn-fg: var(--bb-green); transform: none; }
.btn-bb-ghost-light:hover .btn-ic { transform: translateX(4px); }

.btn-bb-light { --btn-bg: #fff; --btn-fg: var(--bb-teal-deep); --btn-bd: #fff; }
.btn-bb-light:hover { --btn-bg: var(--bb-cream); --btn-bd: var(--bb-cream); }
.btn-bb-light-outline { --btn-bg: transparent; --btn-fg: #fff; --btn-bd: rgba(255,255,255,.7); }
.btn-bb-light-outline:hover { --btn-bg: rgba(255,255,255,.12); --btn-bd: #fff; }
.btn-ic--lead { margin-right: .1rem; }
.btn-bb .btn-ic--lead { transition: none; }

.btn-row { display: flex; flex-wrap: wrap; gap: .75rem 1rem; align-items: center; }

/* ---------- 6. Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 1030;
  background: rgba(251,248,242,.85);
  -webkit-backdrop-filter: saturate(160%) blur(14px); backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s, background-color .3s;
}
.site-header.is-scrolled { border-bottom-color: var(--bb-sand); box-shadow: 0 6px 24px -18px rgba(20,60,60,.35); background: rgba(251,248,242,.94); }
.site-header__inner { display: flex; align-items: center; gap: 1rem; min-height: var(--header-h); }
.site-header__actions { flex: 0 0 auto; }
.brand { display: inline-flex; align-items: center; flex: 0 0 auto; }
.brand__logo { height: 50px; width: auto; display: block; }
.site-nav { flex: 1 1 auto; justify-content: center; }
.site-nav__list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: .15rem; }
.site-nav__link {
  display: inline-flex; align-items: center; gap: .25rem; padding: .55rem .8rem; border-radius: var(--radius-pill);
  font-weight: 600; font-size: .95rem; color: var(--bb-ink); transition: background-color .2s, color .2s;
}
.site-nav__link:hover, .site-nav__link:focus-visible { color: var(--bb-teal); background: rgba(27,122,120,.07); }
.site-nav__link.active { color: var(--bb-teal); }
.site-nav__link { white-space: nowrap; }
/* Russian labels are longer: slightly tighter nav and display scale */
.lang-ru .site-nav__link { font-size: .9rem; padding: .55rem .6rem; }
.lang-ru :where(h1, .h1) { font-size: clamp(2.25rem, 4.3vw, 3.5rem); }
.lang-ru :where(h2, .h2) { font-size: clamp(1.85rem, 3.2vw, 2.6rem); }
.site-nav__link.dropdown-toggle::after { display: none; }

.site-nav__item.show .site-nav__chev, .site-nav__item:hover .site-nav__chev { transform: rotate(180deg); }

@keyframes dropFade { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

.site-header__actions { display: flex; align-items: center; gap: .75rem; margin-left: auto; }
.lang-switch { display: inline-flex; border: 1.5px solid var(--bb-sand); border-radius: var(--radius-pill); padding: 3px; background: #fff; }
.lang-switch__item { padding: 5px 11px; border-radius: var(--radius-pill); font-weight: 700; font-size: .8rem; letter-spacing: .06em; color: var(--bb-ink-2); }
.lang-switch__item.is-active { background: var(--bb-teal); color: #fff; }
.lang-switch__item:not(.is-active):hover { color: var(--bb-teal); }
.lang-switch--wide { width: 100%; margin-top: 1rem; }
.lang-switch--wide .lang-switch__item { flex: 1; text-align: center; padding: 9px; font-size: .9rem; letter-spacing: 0; }
.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: var(--radius-pill);
  border: 1.5px solid var(--bb-sand); background: #fff; color: var(--bb-teal-deep); cursor: pointer; transition: background-color .2s;
}
.nav-toggle:hover { background: var(--bb-teal-soft); }
.nav-toggle svg { width: 22px; height: 22px; }

.mobile-nav { --bs-offcanvas-width: min(400px, 88vw); --bs-offcanvas-bg: var(--bb-cream); --bs-offcanvas-border-width: 0; }
.mobile-nav .offcanvas-header { padding: 1rem 1.5rem; min-height: var(--header-h); border-bottom: 1px solid var(--bb-sand); }
.mobile-nav .offcanvas-header .brand__logo { height: 40px; }
.mobile-nav .offcanvas-body { padding: 1.5rem; display: flex; flex-direction: column; }
.mobile-nav__list { list-style: none; padding: 0; margin: 0 0 auto; }
.mobile-nav__link { display: block; padding: .8rem 0; font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; color: var(--bb-teal-deep); border-bottom: 1px solid var(--bb-sand); }
.mobile-nav__link.active { color: var(--bb-teal); }

.mobile-nav__cta { display: grid; gap: .75rem; padding-top: 1.5rem; }

@media (max-width: 767.98px) { .brand__logo { height: 40px; } :root { --header-h: 68px; } }

/* ---------- 7. Breadcrumbs ---------- */

/* ---------- 8. Cards ---------- */
.card-bb {
  background: var(--bb-white); border: 1px solid var(--bb-sand); border-radius: var(--radius-xl); box-shadow: var(--shadow-sm);
  padding: clamp(1.5rem, 2.5vw, 2.25rem); position: relative; display: flex; flex-direction: column; height: 100%; color: inherit;
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out), border-color .35s;
}
.card-bb:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.card-bb--tint { background: var(--bb-cream-2); border-color: transparent; }
.card-bb--teal { background: var(--bb-teal-dark); border-color: var(--bb-teal-dark); color: #fff; }
.card-bb--teal h3, .card-bb--teal h4 { color: #fff; }
.card-bb--teal .eyebrow { color: var(--bb-green); }
.card-bb--teal a:not(.btn-bb) { color: #fff; }
.card-bb--static:hover { transform: none; box-shadow: var(--shadow-sm); }

/* Pathway cards */

/* Level cards */

.level-card__name { font-family: var(--font-body); font-weight: 800; font-size: clamp(1.5rem, 2.1vw, 1.85rem); line-height: 1.12; letter-spacing: .01em; text-transform: uppercase; color: var(--bb-teal-deep); margin: 0 0 1rem; text-wrap: balance; }
.card-bb--teal .level-card__name { color: #fff; }
.level-card__facts { margin: 0 0 1.75rem; }
.level-card__facts > div + div { border-top: 1px solid var(--bb-sand); margin-top: 1rem; padding-top: 1rem; }
.level-card__facts dt { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--bb-ink-3); margin-bottom: .35rem; }
.level-card__facts dd { margin: 0; color: var(--bb-ink-2); font-size: 1.05rem; }
.level-card__facts .level-card__role { color: var(--bb-teal-deep); font-weight: 600; }
.card-bb--teal .level-card__facts > div + div { border-color: rgba(255,255,255,.18); }
.card-bb--teal .level-card__facts dt { color: var(--bb-green); }
.card-bb--teal .level-card__facts dd { color: rgba(255,255,255,.85); }
.card-bb--teal .level-card__facts .level-card__role { color: #fff; }
.compare-table__en { display: block; margin-top: .3rem; font-size: .85rem; color: var(--bb-ink-3); }
.compare-table__role { font-weight: 600; color: var(--bb-teal-deep); }




.level-card__actions { margin-top: auto; display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; align-items: center; }

/* Feature grid */
.feature-grid { --bs-gutter-y: 2rem; }
.feature { display: flex; gap: 1.1rem; align-items: flex-start; }
.feature--stack { flex-direction: column; gap: 1rem; }
.feature__icon {
  flex: 0 0 48px; width: 48px; height: 48px; border-radius: 14px; background: var(--bb-teal-soft); color: var(--bb-teal);
  display: inline-flex; align-items: center; justify-content: center;
}
.feature__icon svg { width: 24px; height: 24px; }
.feature__title { font-family: var(--font-body); font-weight: 700; font-size: 1.15rem; color: var(--bb-teal-deep); margin-bottom: .35rem; }
.feature__text { color: var(--bb-ink-2); margin: 0; font-size: 1rem; }
.feature--card { background: var(--bb-white); border: 1px solid var(--bb-sand); border-radius: var(--radius-xl); padding: 1.75rem; height: 100%; transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out); }
.feature--card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.feature__num { font-family: var(--font-display); font-style: italic; font-weight: 500; font-size: 1.5rem; color: var(--bb-teal); line-height: 1; }

/* Facts strip */
.facts { --bs-gutter-x: 1rem; --bs-gutter-y: 1rem; }
.fact { background: var(--bb-teal-soft); border-radius: var(--radius-lg); padding: 1.5rem 1.25rem; text-align: center; height: 100%; }
.fact__value { font-weight: 800; font-size: clamp(2rem, 3.5vw, 2.75rem); line-height: 1; color: var(--bb-teal-deep); font-variant-numeric: tabular-nums; margin-bottom: .4rem; }
.fact__label { font-size: .9rem; font-weight: 600; color: var(--bb-ink-2); margin: 0; }

/* Numbered steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 2rem; counter-reset: step; position: relative; }
.step { position: relative; padding-left: 3.5rem; }
.step__num { position: absolute; left: 0; top: -.1rem; font-family: var(--font-display); font-style: italic; font-weight: 500; font-size: 1.75rem; color: var(--bb-teal); line-height: 1; }
.step__title { font-family: var(--font-body); font-weight: 700; font-size: 1.15rem; color: var(--bb-teal-deep); margin-bottom: .35rem; }
.step__text { color: var(--bb-ink-2); margin: 0; }
@media (min-width: 992px) {
  .steps--h { grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 2rem; }
  .steps--h::before { content: ""; position: absolute; left: 0; right: 0; top: .8rem; height: 1px; background: var(--bb-sand); }
  .steps--h .step { padding-left: 0; padding-top: 2.5rem; }
  .steps--h .step__num { top: -.15rem; background: var(--bb-cream); padding-right: .75rem; }
  .section--tint .steps--h .step__num { background: var(--bb-cream-2); }
}

/* Chips */
.chip {
  display: inline-flex; align-items: center; gap: .35rem; padding: .35rem .8rem; border-radius: var(--radius-pill);
  background: var(--bb-teal-soft); color: var(--bb-teal-deep); font-size: .82rem; font-weight: 600; white-space: nowrap;
}
.chip svg { width: 14px; height: 14px; }
.chip--online { background: var(--bb-green-soft); }
.chip--coral { background: var(--bb-coral-soft); color: var(--bb-coral-dark); }
.chip-list { display: flex; flex-wrap: wrap; gap: .5rem; padding: 0; margin: 0; list-style: none; }
.chip-list .chip { font-size: .92rem; padding: .5rem 1rem; }

/* Check list */
.check-list { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; gap: .7rem; }
.check-list li { display: flex; gap: .7rem; align-items: flex-start; }
.check-list svg { width: 22px; height: 22px; flex: 0 0 auto; color: var(--bb-teal); margin-top: .15rem; }
.check-list--light svg { color: var(--bb-green); }
.check-list--light li { color: rgba(255,255,255,.92); }

/* Compare table */
.compare-wrap { border: 1px solid var(--bb-sand); border-radius: var(--radius-lg); overflow: hidden; background: #fff; }
.compare-wrap .table-responsive { margin: 0; }
.compare-table { margin: 0; --bs-table-bg: transparent; --bs-table-border-color: var(--bb-sand); font-size: .98rem; min-width: 640px; }
.compare-table thead th { background: var(--bb-teal-soft); color: var(--bb-teal-deep); border-bottom: 0; padding: 1rem 1.25rem; vertical-align: middle; }
.compare-table__lvl { font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; }
.compare-table th, .compare-table td { padding: .95rem 1.25rem; vertical-align: top; border-color: var(--bb-sand); }
.compare-table tbody th { font-weight: 700; color: var(--bb-ink-2); font-size: .85rem; letter-spacing: .04em; text-transform: uppercase; width: 200px; white-space: nowrap; }
.compare-table tbody tr:nth-child(even) > * { background: var(--bb-cream-2); }
.compare-table tbody tr:last-child > * { border-bottom: 0; }
.compare-table td { font-variant-numeric: tabular-nums; }
.compare-table__links td { padding-top: .6rem; padding-bottom: .6rem; }
@media (max-width: 767.98px) {
  .compare-table tbody th, .compare-table thead th:first-child { position: sticky; left: 0; z-index: 1; background: #fff; box-shadow: 1px 0 0 var(--bb-sand); width: 140px; white-space: normal; }
  .compare-table tbody tr:nth-child(even) th { background: var(--bb-cream-2); }
  .compare-table thead th:first-child { background: var(--bb-teal-soft); }
}

/* Event cards */

/* FAQ */

/* CTA band */
.cta-band { border-radius: var(--radius-xl); padding: clamp(2.5rem, 5vw, 4.5rem); position: relative; overflow: hidden; }
.cta-band--teal { background: linear-gradient(135deg, #1B7A78, #135E5C); color: #fff; }
.cta-band--teal::after { content: ""; position: absolute; right: -80px; top: -120px; width: 380px; height: 380px; border-radius: 50%; background: rgba(255,255,255,.06); pointer-events: none; }
.cta-band--coral { background: var(--bb-coral-soft); }
.cta-band--cream { background: var(--bb-cream-2); }
.cta-band__inner { display: flex; flex-wrap: wrap; gap: 2rem 3rem; align-items: center; justify-content: space-between; position: relative; z-index: 1; }
.cta-band__text { flex: 1 1 480px; max-width: 680px; text-wrap: balance; }
.cta-band__title { color: inherit; margin-bottom: .75rem; }
.cta-band--teal .cta-band__title { color: #fff; }
.cta-band__lead { font-size: 1.15rem; margin: 0; color: rgba(255,255,255,.85); text-wrap: pretty; }
.cta-band--coral .cta-band__lead, .cta-band--cream .cta-band__lead { color: var(--bb-ink-2); }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: .75rem 1rem; align-items: center; }
.cta-band__wa { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; color: inherit; opacity: .9; }
.cta-band__wa svg { width: 20px; height: 20px; }
.cta-band__wa:hover { color: inherit; opacity: 1; }
.cta-band--coral .cta-band__wa, .cta-band--cream .cta-band__wa { color: var(--bb-teal); }

/* Founder */

/* Rooted band */

/* Application form */
.apply-form { padding: clamp(1.5rem, 3vw, 2.5rem); }
.apply-form:hover { transform: none; box-shadow: var(--shadow-sm); }
.form-label { font-weight: 600; font-size: .95rem; color: var(--bb-teal-deep); margin-bottom: .4rem; }
.form-hint { font-weight: 500; color: var(--bb-ink-3); font-size: .85rem; }
.req { color: var(--bb-coral-dark); }
.form-control, .form-select {
  border: 1.5px solid var(--bb-sand); border-radius: var(--radius-md); padding: .8rem 1rem; font-size: 1rem; color: var(--bb-ink);
  background-color: #fff; transition: border-color .2s, box-shadow .2s;
}
.form-control::placeholder { color: var(--bb-ink-3); }
.form-control:focus, .form-select:focus { border-color: var(--bb-teal); box-shadow: 0 0 0 4px rgba(27,122,120,.14); }
.form-control.is-invalid, .form-select.is-invalid, .form-check-input.is-invalid { border-color: var(--bb-coral); background-image: none; }
.form-control.is-invalid:focus, .form-select.is-invalid:focus { box-shadow: 0 0 0 4px rgba(219,91,63,.15); }
.invalid-feedback { color: var(--bb-coral-dark); font-weight: 500; font-size: .875rem; }
.form-check-input { width: 1.25em; height: 1.25em; border: 1.5px solid var(--bb-sand); margin-top: .15em; }
.form-check-input:checked { background-color: var(--bb-teal); border-color: var(--bb-teal); }
.form-check-input:focus { border-color: var(--bb-teal); box-shadow: 0 0 0 4px rgba(27,122,120,.14); }
.form-check-label { font-size: .95rem; color: var(--bb-ink-2); padding-left: .35rem; }
.apply-form__footer { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; padding-top: .5rem; }
.apply-form__note { margin: 0; color: var(--bb-ink-3); font-size: .9rem; }
.apply-form__alert { margin: 1.25rem 0 0; border-radius: var(--radius-md); font-weight: 500; }
.apply-form__alert.alert-success { background: var(--bb-green-soft); color: var(--bb-teal-deep); border-color: var(--bb-green); }
.apply-form__alert.alert-danger { background: var(--bb-coral-soft); color: var(--bb-coral-dark); border-color: #f2c4b7; }
.hp { position: absolute; left: -9999px; top: -9999px; width: 1px; height: 1px; overflow: hidden; opacity: 0; }
.apply-side { position: sticky; top: calc(var(--header-h) + 1.5rem); }
.apply-side__card { padding: 2rem; gap: 1.25rem; }
.apply-side__card:hover { transform: none; box-shadow: var(--shadow-sm); }
.apply-side__title { font-size: 1.5rem; margin: 0; }
.apply-side__list { list-style: none; padding: 0; margin: 0; display: grid; gap: .75rem; }
.apply-side__list li { display: flex; gap: .7rem; align-items: flex-start; color: var(--bb-ink-2); font-size: .98rem; }
.apply-side__list svg { width: 20px; height: 20px; flex: 0 0 auto; color: var(--bb-teal); margin-top: .2rem; }
.apply-side__list a { color: var(--bb-ink); font-weight: 500; overflow-wrap: anywhere; }
.apply-side__list a:hover { color: var(--bb-teal); }
@media (max-width: 991.98px) { .apply-side { position: static; } }

/* WhatsApp float */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 1020; width: 56px; height: 56px; border-radius: 50%;
  background: var(--bb-coral); color: #fff; display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 12px 28px -10px rgba(194,74,48,.7); transition: transform .25s var(--ease-out), background-color .25s;
}
.wa-float svg { width: 28px; height: 28px; }
.wa-float:hover { background: var(--bb-coral-dark); color: #fff; transform: translateY(-3px) scale(1.04); }

/* ---------- 9. Footer ---------- */
.site-footer { background: var(--bb-teal-deep); color: rgba(255,255,255,.82); padding: clamp(40px, 5vw, 64px) 0 1.75rem; margin-top: auto; }
.site-footer__contact { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2.5rem; }
.site-footer__contact .site-footer__h { margin: 0; }
.site-footer__contact .site-footer__links { display: flex; flex-wrap: wrap; gap: .75rem 2rem; }

.site-footer__h { font-family: var(--font-body); font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .14em; color: var(--bb-green); margin-bottom: 1rem; }
.site-footer__links { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; font-size: .95rem; }
.site-footer__links a, .site-footer__links span { color: rgba(255,255,255,.82); display: inline-flex; align-items: center; gap: .5rem; }
.site-footer__links a:hover { color: #fff; }
.site-footer__links svg { width: 16px; height: 16px; flex: 0 0 auto; color: var(--bb-green); }
.site-footer__links--contact a { overflow-wrap: anywhere; word-break: keep-all; }
.site-footer__bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: clamp(1.75rem, 3vw, 2.5rem); padding-top: 1.5rem; font-size: .85rem; color: rgba(255,255,255,.6); }
.site-footer__bottom p { margin: 0 0 .35rem; }
.site-footer__tm { font-size: .8rem; }

/* ---------- 10. Hero ---------- */
.hero { padding: clamp(40px, 6vw, 88px) 0 clamp(56px, 8vw, 104px); position: relative; overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.hero__title { margin-bottom: 1.5rem; }
.hero__lead { max-width: 560px; margin-bottom: 2rem; }
.hero__actions { margin-bottom: 1.75rem; }
.hero__trust { display: flex; flex-wrap: wrap; gap: .4rem 1rem; padding: 0; margin: 0; list-style: none; font-size: .9rem; font-weight: 600; color: var(--bb-ink-2); }
.hero__trust li { display: inline-flex; align-items: center; gap: .45rem; }
.hero__trust svg { width: 16px; height: 16px; color: var(--bb-green); }
.hero__media { position: relative; }
.hero__photo { border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 4 / 3; background: var(--bb-cream-2); }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero__badge {
  position: absolute; left: -1rem; bottom: 2rem; background: #fff; border-radius: var(--radius-lg); padding: .9rem 1.15rem; box-shadow: var(--shadow-md);
  display: flex; gap: .8rem; align-items: center; max-width: min(340px, calc(100% - 2rem)); border: 1px solid var(--bb-sand);
}
.hero__badge-icon { width: 44px; height: 44px; border-radius: 12px; background: var(--bb-teal-soft); color: var(--bb-teal); display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.hero__badge-icon svg { width: 22px; height: 22px; }
.hero__badge strong { display: block; font-size: .92rem; color: var(--bb-teal-deep); line-height: 1.25; text-wrap: balance; }
.hero__badge span { font-size: .82rem; color: var(--bb-ink-2); line-height: 1.35; display: block; margin-top: .15rem; }
.hero__balloon { position: absolute; right: 1.25rem; top: -2.75rem; width: 88px; z-index: 2; opacity: .95; animation: floatY 6s ease-in-out infinite; pointer-events: none; }
@keyframes floatY { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@media (max-width: 991.98px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr); }
  .hero__media { order: -1; }
  .hero__badge { left: 1rem; bottom: 1rem; max-width: 260px; }
  .hero__balloon { display: none; }
}
.hero--page { padding-bottom: clamp(40px, 6vw, 72px); }
.hero--page .hero__photo { aspect-ratio: 5 / 4; }

/* ---------- 11. Motion ---------- */
[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .6s var(--ease-out), transform .6s var(--ease-out); }
[data-reveal].is-visible { opacity: 1; transform: none; }
[data-reveal-stagger] > * { opacity: 0; transform: translateY(24px); transition: opacity .6s var(--ease-out), transform .6s var(--ease-out); }
[data-reveal-stagger].is-visible > * { opacity: 1; transform: none; }
[data-reveal-stagger].is-visible > *:nth-child(1) { transition-delay: 0ms; }
[data-reveal-stagger].is-visible > *:nth-child(2) { transition-delay: 60ms; }
[data-reveal-stagger].is-visible > *:nth-child(3) { transition-delay: 120ms; }
[data-reveal-stagger].is-visible > *:nth-child(4) { transition-delay: 180ms; }
[data-reveal-stagger].is-visible > *:nth-child(5) { transition-delay: 240ms; }
[data-reveal-stagger].is-visible > *:nth-child(6) { transition-delay: 300ms; }
[data-reveal-stagger].is-visible > *:nth-child(n+7) { transition-delay: 360ms; }
.no-js [data-reveal], .no-js [data-reveal-stagger] > * { opacity: 1; transform: none; }

/* Animated icons (hover on the enclosing card/feature) */
.icon-anim svg { transition: transform .35s var(--ease-out); }
.icon-anim[data-anim="arrow"]:hover svg, .feature:hover .icon-anim[data-anim="arrow"] svg { transform: translateX(4px); }
.feature:hover .icon-anim[data-anim="spin"] svg, .card-bb:hover .icon-anim[data-anim="spin"] svg { transform: rotate(15deg) scale(1.1); }
.feature:hover .icon-anim[data-anim="bob"] svg, .card-bb:hover .icon-anim[data-anim="bob"] svg { animation: bob .5s var(--ease-out); }
.feature:hover .icon-anim[data-anim="pop"] svg, .card-bb:hover .icon-anim[data-anim="pop"] svg { transform: scale(1.12); }
.feature:hover .icon-anim[data-anim="draw"] svg path, .feature:hover .icon-anim[data-anim="draw"] svg circle { stroke-dasharray: 60; stroke-dashoffset: 60; animation: draw .5s var(--ease-out) forwards; }
@keyframes bob { 0% { transform: translateY(0); } 40% { transform: translateY(-4px); } 100% { transform: translateY(0); } }
@keyframes draw { to { stroke-dashoffset: 0; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  [data-reveal], [data-reveal-stagger] > * { opacity: 1; transform: none; }
  .hero__balloon { animation: none; }
  .card-bb:hover, .btn-bb:hover { transform: none; }
}

/* ---------- 12. Find My Level modal ---------- */

/* ---------- 13. Misc utilities ---------- */
.photo-rounded { border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow-md); }
.photo-rounded img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ratio-4x3 { aspect-ratio: 4 / 3; }
.ratio-3x4 { aspect-ratio: 3 / 4; }
.ratio-1x1 { aspect-ratio: 1 / 1; }
.max-720 { max-width: 720px; }
.max-860 { max-width: 860px; }
.text-teal { color: var(--bb-teal) !important; }
.text-ink-2 { color: var(--bb-ink-2) !important; }
.bg-cream-2 { background: var(--bb-cream-2); }
.divider { height: 1px; background: var(--bb-sand); border: 0; margin: 0; opacity: 1; }
.prose p { color: var(--bb-ink-2); }
.prose h2 { margin-top: 2.5rem; }
.prose h3 { margin-top: 2rem; }
.prose ul, .prose ol { color: var(--bb-ink-2); padding-left: 1.25rem; }
.prose li { margin-bottom: .35rem; }
.page-404 { min-height: 60vh; display: flex; align-items: center; }

/* Level page intro row: numbered list */
.num-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; counter-reset: n; }
.num-list li { display: flex; gap: .9rem; align-items: baseline; padding: .75rem 0; border-bottom: 1px solid var(--bb-sand); }
.num-list li::before { counter-increment: n; content: counter(n, decimal-leading-zero); font-family: var(--font-display); font-style: italic; color: var(--bb-teal); font-size: 1.25rem; min-width: 2rem; }

/* Bootstrap modal backdrop tint */
.modal-backdrop { --bs-backdrop-bg: #0F4A48; --bs-backdrop-opacity: .55; }
.offcanvas-backdrop { --bs-backdrop-bg: #0F4A48; --bs-backdrop-opacity: .5; }

/* ---- country cards (home: "A qualification recognised internationally") */
.country-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(.75rem, 1.5vw, 1.25rem); }
.country-card { position: relative; border-radius: var(--radius-xl); overflow: hidden; aspect-ratio: 3 / 4; background: var(--bb-teal-deep); box-shadow: var(--shadow-md); }
.country-card img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .8s var(--ease-out); }
.country-card:hover img { transform: scale(1.04); }
.country-card::after { content: ""; position: absolute; inset: 45% 0 0; background: linear-gradient(to top, rgba(8, 32, 31, .75), rgba(8, 32, 31, 0)); pointer-events: none; }
.country-card__name { position: absolute; left: 1.1rem; right: 1rem; bottom: 1rem; z-index: 1; color: #fff; font-weight: 800; font-size: clamp(1.1rem, 1.5vw, 1.35rem); line-height: 1.15; }
@media (max-width: 991.98px) {
  .country-cards { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: .5rem; scrollbar-width: thin; }
  .country-card { flex: 0 0 34%; scroll-snap-align: start; }
}
@media (max-width: 575.98px) {
  .country-card { flex-basis: 64%; }
}
@media (prefers-reduced-motion: reduce) {
  .country-card img { transition: none; }
  .country-card:hover img { transform: none; }
}

