/* ==========================================================================
   Briavel Institute — static site stylesheet
   Built on Bootstrap 5.0.0. Design tokens are scoped on <body> (no :root).
   ========================================================================== */

body {
  /* colour */
  --bi-navy: #102d3d;
  --bi-navy-deep: #0d2331;
  --bi-ink: #1f3a4a;
  --bi-muted: #5a6e7a;
  --bi-soft: #8a9ba5;
  --bi-line: rgba(16, 45, 61, 0.08);
  --bi-line-strong: rgba(16, 45, 61, 0.14);
  --bi-primary: #0290be;
  --bi-primary-dark: #0a6f95;
  --bi-teal: #2bb3b8;
  --bi-pale: #ecf9fc;
  --bi-pale-2: #f6fcfe;
  --bi-white: #ffffff;
  --bi-success: #1f9d7a;
  --bi-grad: linear-gradient(90deg, #0aa6d6 0%, #0a7fa6 100%);
  --bi-grad-text: linear-gradient(90deg, #35bfbf 0%, #0a93be 100%);
  --bi-grad-panel: linear-gradient(135deg, #0e3a52 0%, #0a6788 100%);
  /* shape + depth */
  --bi-radius-sm: 10px;
  --bi-radius: 16px;
  --bi-radius-lg: 24px;
  --bi-shadow: 0 1px 2px rgba(16, 45, 61, 0.04), 0 8px 24px rgba(16, 45, 61, 0.06);
  --bi-shadow-lg: 0 2px 6px rgba(16, 45, 61, 0.05), 0 24px 48px rgba(16, 45, 61, 0.1);
  --bi-shadow-btn: 0 8px 20px rgba(2, 144, 190, 0.28);
  /* motion */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
  /* type */
  --bi-font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --bi-math: "Cambria Math", "STIX Two Math", "Times New Roman", serif;

  font-family: var(--bi-font);
  color: var(--bi-ink);
  background: var(--bi-white);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4,
h5,
h6,
.h1,
.h2,
.h3,
.h4,
.h5,
.h6 {
  color: var(--bi-navy);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.12;
}
p {
  color: var(--bi-muted);
}
a {
  color: var(--bi-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}
a:hover {
  color: var(--bi-primary-dark);
}
img {
  max-width: 100%;
  height: auto;
}
::selection {
  background: rgba(43, 179, 184, 0.22);
  color: var(--bi-navy);
}

:focus-visible {
  outline: 3px solid rgba(2, 144, 190, 0.55);
  outline-offset: 3px;
  border-radius: 6px;
}

.container {
  max-width: 1180px;
}
.skip-link {
  position: absolute;
  left: 1rem;
  top: -60px;
  z-index: 2000;
  background: var(--bi-navy);
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: 8px;
}
.skip-link:focus {
  top: 1rem;
  color: #fff;
}

/* ---------- Type helpers ---------- */
.display-hero {
  font-size: clamp(2.5rem, 5.4vw, 4.1rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
}
.display-title {
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.03em;
}
.page-title {
  font-size: clamp(2.2rem, 4.6vw, 3.5rem);
  letter-spacing: -0.035em;
  line-height: 1.06;
}
.text-accent {
  background: var(--bi-grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lede {
  font-size: 1.08rem;
  color: var(--bi-muted);
  max-width: 60ch;
}
.eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bi-primary);
  margin-bottom: 0.9rem;
}
.small-muted {
  font-size: 0.875rem;
  color: var(--bi-muted);
}
.math {
  font-family: var(--bi-math);
  font-style: italic;
  letter-spacing: 0;
}

/* ---------- Buttons ---------- */
.btn {
  font-weight: 700;
  border-radius: 10px;
  padding: 0.72rem 1.35rem;
  font-size: 0.93rem;
  transition:
    transform 160ms var(--ease-out),
    box-shadow 200ms ease,
    background-color 200ms ease,
    color 200ms ease,
    border-color 200ms ease;
}
.btn:active {
  transform: scale(0.97);
}
.btn-sm {
  padding: 0.48rem 1rem;
  font-size: 0.85rem;
}
.btn-bi {
  background: var(--bi-grad);
  color: #fff;
  border: 0;
  box-shadow: var(--bi-shadow-btn);
}
.btn-bi:hover,
.btn-bi:focus {
  color: #fff;
  box-shadow: 0 10px 26px rgba(2, 144, 190, 0.36);
}
.btn-bi-outline {
  background: #fff;
  color: var(--bi-navy);
  border: 1px solid var(--bi-line-strong);
}
.btn-bi-outline:hover {
  color: var(--bi-primary);
  border-color: rgba(2, 144, 190, 0.45);
}
.btn-bi-light {
  background: #fff;
  color: var(--bi-primary);
  border: 0;
}
.btn-bi-light:hover {
  color: var(--bi-primary-dark);
}
.btn-bi-ghost {
  background: transparent;
  color: var(--bi-primary);
  border: 1px solid rgba(2, 144, 190, 0.35);
}
.btn-bi-ghost:hover {
  background: rgba(2, 144, 190, 0.06);
  color: var(--bi-primary-dark);
}
.btn .bi-arrow-right {
  display: inline-block;
  transition: transform 200ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .btn:hover .bi-arrow-right {
    transform: translateX(3px);
  }
}
.link-arrow {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--bi-navy);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.link-arrow:hover {
  color: var(--bi-primary);
}

/* ---------- Top bar + header ---------- */
.topbar {
  background: var(--bi-navy);
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.78rem;
  padding: 0.45rem 0;
}
.topbar a {
  color: rgba(255, 255, 255, 0.86);
}
.topbar a:hover {
  color: #fff;
}
.topbar .bi {
  margin-right: 0.35rem;
  opacity: 0.8;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1030;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(1.6) blur(12px);
  -webkit-backdrop-filter: saturate(1.6) blur(12px);
  border-bottom: 1px solid transparent;
  transition:
    box-shadow 250ms ease,
    border-color 250ms ease;
}
.site-header.is-scrolled {
  border-bottom-color: var(--bi-line);
  box-shadow: 0 6px 24px rgba(16, 45, 61, 0.06);
}
.site-header .navbar {
  padding: 0.85rem 0;
  transition: padding 250ms var(--ease-out);
}
.site-header.is-scrolled .navbar {
  padding: 0.55rem 0;
}
.brand-logo {
  height: 48px;
  width: auto;
}
.site-header .nav-link {
  color: var(--bi-navy);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0.5rem 0.85rem !important;
  position: relative;
}
.site-header .nav-link:hover,
.site-header .nav-link:focus {
  color: var(--bi-primary);
}
.site-header .nav-link.active {
  color: var(--bi-primary);
}
.site-header .nav-link.active::after {
  content: "";
  position: absolute;
  left: 0.85rem;
  right: 0.85rem;
  bottom: 0.15rem;
  height: 2px;
  border-radius: 2px;
  background: var(--bi-grad);
}
.site-header .dropdown-toggle::after {
  border: 0;
  content: "\F282";
  font-family: "bootstrap-icons";
  font-size: 0.7rem;
  vertical-align: middle;
  margin-left: 0.3rem;
  transition: transform 200ms var(--ease-out);
}
.site-header .dropdown-toggle.show::after {
  transform: rotate(180deg);
}
.dropdown-menu {
  border: 1px solid var(--bi-line);
  border-radius: 14px;
  box-shadow: var(--bi-shadow-lg);
  padding: 0.5rem;
  min-width: 18rem;
}
.dropdown-menu.show {
  animation: dropIn 200ms var(--ease-out);
  transform-origin: top left;
}
@keyframes dropIn {
  from {
    opacity: 0;
    transform: translateY(-4px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.dropdown-item {
  border-radius: 10px;
  padding: 0.6rem 0.8rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--bi-navy);
  display: flex;
  gap: 0.75rem;
  align-items: center;
}
.dropdown-item small {
  display: block;
  font-weight: 500;
  color: var(--bi-muted);
  font-size: 0.78rem;
}
.dropdown-item:hover,
.dropdown-item:focus {
  background: var(--bi-pale);
  color: var(--bi-navy);
}
.dropdown-item .code-badge {
  flex: none;
}
.code-badge {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--bi-grad-panel);
  color: #fff;
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
}

.navbar-toggler {
  border: 1px solid var(--bi-line-strong);
  border-radius: 10px;
  padding: 0.45rem 0.6rem;
  color: var(--bi-navy);
  font-size: 1.35rem;
  line-height: 1;
}
.navbar-toggler:focus {
  box-shadow: none;
}
.offcanvas {
  border-left: 0 !important;
}
.offcanvas.offcanvas-end {
  width: min(360px, 88vw);
  transition: transform 360ms var(--ease-drawer);
}
.offcanvas .mobile-nav a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--bi-line);
  color: var(--bi-navy);
  font-weight: 700;
}
.offcanvas .mobile-nav a.active {
  color: var(--bi-primary);
}
.offcanvas .mobile-sub a {
  font-weight: 600;
  font-size: 0.92rem;
  padding-left: 1rem;
  color: var(--bi-ink);
}

/* ---------- Sections ---------- */
.section {
  padding: 6rem 0;
}
.section-sm {
  padding: 4rem 0;
}
.section-pale {
  background: var(--bi-pale);
}
.section-head {
  max-width: 640px;
  margin-bottom: 3rem;
}
.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* ---------- Landing hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1200px 600px at 100% 0%, rgba(43, 179, 184, 0.16), transparent 60%),
    radial-gradient(760px 420px at -6% 96%, rgba(10, 166, 214, 0.14), transparent 65%),
    linear-gradient(180deg, #f1fbfd 0%, #f7fdfe 70%, #fff 100%);
  padding: 5rem 0 7.5rem;
}
.hero::before {
  content: "\03A3";
  position: absolute;
  right: -4%;
  top: -14%;
  font-family: var(--bi-math);
  font-style: italic;
  font-size: clamp(14rem, 26vw, 22rem);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(2, 144, 190, 0.09);
  pointer-events: none;
  user-select: none;
  z-index: 0;
}
.pill-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: #fff;
  border: 1px solid var(--bi-line-strong);
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--bi-navy);
}
.pill-tag .dot {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--bi-primary);
}
.hero .pill-tag .dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1.5px solid var(--bi-primary);
  opacity: 0.55;
  animation: pulseRing 2.2s ease-out infinite;
}
@keyframes pulseRing {
  0% {
    transform: scale(0.6);
    opacity: 0.55;
  }
  100% {
    transform: scale(2.4);
    opacity: 0;
  }
}

/* Load sequence (one orchestrated moment) */
.load-seq > * {
  opacity: 0;
  transform: translateY(18px);
  animation: seqIn 700ms var(--ease-out) forwards;
}
.load-seq > *:nth-child(1) {
  animation-delay: 60ms;
}
.load-seq > *:nth-child(2) {
  animation-delay: 130ms;
}
.load-seq > *:nth-child(3) {
  animation-delay: 200ms;
}
.load-seq > *:nth-child(4) {
  animation-delay: 270ms;
}
.load-seq > *:nth-child(5) {
  animation-delay: 340ms;
}
.load-seq > *:nth-child(6) {
  animation-delay: 410ms;
}
@keyframes seqIn {
  to {
    opacity: 1;
    transform: none;
  }
}
.load-visual {
  opacity: 0;
  transform: translateY(12px) scale(0.98);
  animation: seqIn 900ms var(--ease-out) 250ms forwards;
}

/* ---------- Stats bar ---------- */
.stats-bar {
  position: relative;
  z-index: 2;
  overflow: hidden;
  margin-top: -3.25rem;
  background: linear-gradient(100deg, #0a7aa3 0%, #0aa4d4 55%, #3cc4c4 100%);
  border-radius: var(--bi-radius-lg);
  padding: 2.1rem 1rem;
}
.home-stats-bar {
  margin: clamp(2rem, 4vw, 3rem) 0 0;
}
.stats-bar::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(420px 220px at 8% -10%, rgba(255, 255, 255, 0.16), transparent 60%),
    radial-gradient(460px 240px at 105% 115%, rgba(43, 179, 184, 0.4), transparent 60%);
  pointer-events: none;
}
.stat {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0.4rem 1rem;
}
.stat-ic {
  width: 48px;
  height: 48px;
  margin: 0 auto 0.9rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.16);
  display: grid;
  place-items: center;
  font-size: 1.3rem;
  color: #fff;
  transition:
    transform 320ms var(--ease-out),
    background-color 320ms ease;
}
.stat + .stat {
  border-left: 1px solid rgba(255, 255, 255, 0.18);
}
.stat .num {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.02em;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}
.stat .lbl {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 600;
}
@media (hover: hover) and (pointer: fine) {
  .stat:hover .stat-ic {
    transform: translateY(-4px) scale(1.08);
    background: rgba(255, 255, 255, 0.24);
  }
}
@media (max-width: 767.98px) {
  .stat:nth-child(3) {
    border-left: 0;
  }
  .stat:nth-child(n + 3) {
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    padding-top: 1.1rem;
    margin-top: 0.7rem;
  }
}

/* ---------- Feature / programme cards ---------- */
.feature-card {
  background: #fff;
  border: 1px solid var(--bi-line);
  border-radius: 18px;
  overflow: hidden;
  height: 100%;
  box-shadow: var(--bi-shadow);
  transition:
    transform 250ms var(--ease-out),
    box-shadow 250ms ease;
}
.feature-card .media {
  position: relative;
  aspect-ratio: 3 / 2;
  overflow: hidden;
}
.feature-card .media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms var(--ease-out);
}
.feature-card .media .ic {
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.95);
  display: grid;
  place-items: center;
  color: var(--bi-primary);
  box-shadow: var(--bi-shadow);
}
.feature-card .body {
  padding: 1.25rem 1.3rem 1.4rem;
}
.feature-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.45rem;
  letter-spacing: -0.01em;
}
.feature-card p {
  font-size: 0.87rem;
  margin: 0;
}
.feature-card .subject-links a {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  margin: 0.2rem 0.4rem 0 0;
}
@media (hover: hover) and (pointer: fine) {
  .feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--bi-shadow-lg);
  }
  .feature-card:hover .media img {
    transform: scale(1.04);
  }
}

/* Symbol panel (replaces photo in feature cards) */
.feature-card .media-symbol {
  display: grid;
  place-items: center;
  background-image:
    radial-gradient(circle at 18% 22%, rgba(43, 179, 184, 0.16) 0, transparent 45%),
    radial-gradient(circle at 85% 80%, rgba(2, 144, 190, 0.14) 0, transparent 50%),
    radial-gradient(rgba(2, 144, 190, 0.14) 1px, transparent 1.4px);
  background-size: auto, auto, 18px 18px;
  background-color: var(--bi-pale);
  border-bottom: 1px solid var(--bi-line);
}
.feature-card .media-symbol .sym-ring {
  position: absolute;
  width: 62%;
  aspect-ratio: 1;
  max-width: 190px;
  border-radius: 50%;
  border: 1.5px dashed rgba(2, 144, 190, 0.28);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: transform 900ms var(--ease-out);
}
.feature-card .media-symbol .sym-main {
  position: relative;
  z-index: 1;
  width: 84px;
  height: 84px;
  border-radius: 22px;
  background: var(--bi-grad);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 2.3rem;
  box-shadow: 0 14px 30px rgba(2, 144, 190, 0.32);
  transition: transform 400ms var(--ease-out);
}
.feature-card .media-symbol .sym-chip {
  position: absolute;
  z-index: 2;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #fff;
  color: var(--bi-primary);
  display: grid;
  place-items: center;
  font-size: 1.05rem;
  box-shadow: var(--bi-shadow);
  transition: transform 400ms var(--ease-out);
}
.feature-card .media-symbol .chip-a { top: 18%; left: 20%; }
.feature-card .media-symbol .chip-b { top: 16%; right: 19%; color: var(--bi-teal); }
.feature-card .media-symbol .chip-c { bottom: 15%; right: 25%; }
@media (hover: hover) and (pointer: fine) {
  .feature-card:hover .media-symbol .sym-main { transform: scale(1.06); }
  .feature-card:hover .media-symbol .sym-ring { transform: translate(-50%, -50%) rotate(45deg); }
  .feature-card:hover .media-symbol .chip-a { transform: translate(-3px, -3px); }
  .feature-card:hover .media-symbol .chip-b { transform: translate(3px, -3px); }
  .feature-card:hover .media-symbol .chip-c { transform: translate(3px, 3px); }
}

/* ---------- Become an actuary ---------- */
.collage {
  position: relative;
  max-width: 470px;
}
.collage img {
  display: block;
  width: 100%;
}
.collage .note {
  position: absolute;
  right: -2%;
  bottom: 12%;
  background: var(--bi-navy);
  color: #fff;
  border-radius: 16px;
  padding: 1.1rem 1.25rem;
  max-width: 190px;
  box-shadow: var(--bi-shadow-lg);
}
.collage .note strong {
  font-size: 1.35rem;
  line-height: 1.15;
  display: block;
  letter-spacing: -0.02em;
}
.collage .note span {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.78);
  display: block;
  margin-top: 0.4rem;
}

/* ---------- Steps ---------- */
.step-card {
  background: #fff;
  border: 1px solid var(--bi-line);
  border-radius: 18px;
  padding: 1.6rem 1.4rem;
  height: 100%;
  box-shadow: var(--bi-shadow);
  position: relative;
}
.step-card .num {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--bi-grad);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.9rem;
  margin-bottom: 1.4rem;
}
.step-card h3 {
  font-size: 1rem;
  margin-bottom: 0.4rem;
}
.step-card p {
  font-size: 0.86rem;
  margin: 0;
}
.steps-line {
  position: relative;
}
@media (min-width: 992px) {
  .steps-line::before {
    content: "";
    position: absolute;
    left: 6%;
    right: 6%;
    top: 2.85rem;
    height: 2px;
    background: linear-gradient(
      90deg,
      rgba(2, 144, 190, 0),
      rgba(2, 144, 190, 0.25),
      rgba(2, 144, 190, 0)
    );
    z-index: 0;
  }
  .steps-line .step-card {
    z-index: 1;
  }
}
.preview-section {
  position: relative;
  overflow: hidden;
}
.preview-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 420px at 10% 0%, rgba(43, 179, 184, 0.09), transparent 60%),
    radial-gradient(700px 380px at 100% 100%, rgba(10, 166, 214, 0.08), transparent 60%);
  pointer-events: none;
}
.preview-section > .container {
  position: relative;
  z-index: 1;
}
.preview-steps {
  position: relative;
}
@media (min-width: 768px) {
  .preview-steps::before {
    content: "";
    position: absolute;
    left: 16.6%;
    right: 16.6%;
    top: 3.8rem;
    height: 2px;
    background: linear-gradient(
      90deg,
      rgba(2, 144, 190, 0),
      rgba(2, 144, 190, 0.3),
      rgba(2, 144, 190, 0)
    );
    z-index: 0;
  }
  .preview-steps .preview-card {
    z-index: 1;
  }
}
.preview-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--bi-line);
  border-radius: 20px;
  padding: 2.3rem 1.6rem 1.9rem;
  text-align: center;
  height: 100%;
  box-shadow: var(--bi-shadow);
  overflow: hidden;
  transition:
    transform 300ms var(--ease-out),
    box-shadow 300ms var(--ease-out),
    border-color 300ms ease;
}
.preview-card::after {
  content: "";
  position: absolute;
  inset: -45% -45% auto auto;
  width: 170px;
  height: 170px;
  background: radial-gradient(circle, rgba(10, 166, 214, 0.16), transparent 70%);
  opacity: 0;
  transition: opacity 320ms ease;
  pointer-events: none;
}
.preview-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--bi-shadow-lg);
  border-color: rgba(2, 144, 190, 0.22);
}
.preview-card:hover::after {
  opacity: 1;
}
.preview-card .pv-icon {
  position: absolute;
  top: 1.1rem;
  right: 1.1rem;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--bi-pale);
  color: var(--bi-primary);
  display: none;
  place-items: center;
  font-size: 1rem;
  transition:
    transform 320ms var(--ease-out),
    background-color 320ms ease,
    color 320ms ease;
}
.preview-card:hover .pv-icon {
  background: var(--bi-grad);
  color: #fff;
  transform: rotate(-8deg) scale(1.08);
}
.preview-card .ring {
  position: relative;
  z-index: 1;
  width: 52px;
  height: 52px;
  border: 2px solid var(--bi-primary);
  color: var(--bi-primary);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1.1rem;
  margin: 0 auto 1.2rem;
  background: #fff;
  transition:
    background-color 320ms var(--ease-out),
    color 320ms ease,
    transform 320ms var(--ease-out),
    box-shadow 320ms ease,
    border-color 320ms ease;
}
.preview-card:hover .ring {
  background: var(--bi-grad);
  color: #fff;
  border-color: transparent;
  transform: scale(1.1);
}
.preview-card h3 {
  font-size: 1.08rem;
  margin-bottom: 0.5rem;
}
.preview-card p {
  font-size: 0.88rem;
  margin: 0;
}
@media (prefers-reduced-motion: reduce) {
  .preview-card,
  .preview-card .ring,
  .preview-card .pv-icon {
    transition: none;
  }
  .preview-card:hover {
    transform: none;
  }
}

/* ---------- Lesson library ---------- */
.library-row + .library-row {
  margin-top: 2.6rem;
}
.library-row .row-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}
.library-row .row-head h3 {
  font-size: 1.05rem;
  margin: 0;
  letter-spacing: -0.01em;
}
.lesson-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  width: 100%;
  text-align: left;
  background: #fff;
  border: 1px solid var(--bi-line);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--bi-shadow);
  padding: 0;
  height: 100%;
  color: inherit;
  transition:
    transform 250ms var(--ease-out),
    box-shadow 250ms ease;
}
.lesson-card .thumb {
  position: relative;
  aspect-ratio: 16 / 7.5;
  background: var(--bi-grad-panel);
  display: grid;
  place-items: center;
  color: #fff;
  overflow: hidden;
}
.lesson-card .thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(400px 160px at 80% 0%, rgba(255, 255, 255, 0.12), transparent 60%);
}
.lesson-card .thumb .math {
  font-size: 1.05rem;
  position: relative;
  z-index: 1;
  padding: 0 1rem;
  text-align: center;
}
.lesson-card .badge-tl {
  position: absolute;
  top: 0.6rem;
  left: 0.6rem;
  z-index: 2;
  font-size: 0.66rem;
  font-weight: 800;
  border-radius: 999px;
  padding: 0.28rem 0.6rem;
}
.badge-free {
  background: #fff;
  color: var(--bi-primary);
}
.badge-member {
  background: rgba(10, 30, 42, 0.62);
  color: #fff;
}
.lesson-card .dur {
  position: absolute;
  right: 0.6rem;
  bottom: 0.6rem;
  z-index: 2;
  background: rgba(10, 30, 42, 0.7);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.2rem 0.45rem;
  border-radius: 6px;
}
.lesson-card .play {
  position: absolute;
  z-index: 2;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  color: var(--bi-primary);
  display: grid;
  place-items: center;
  font-size: 1.3rem;
  opacity: 0;
  transform: scale(0.9);
  transition:
    opacity 200ms ease,
    transform 250ms var(--ease-out);
}
.lesson-card .meta {
  display: block;
  padding: 0.9rem 1rem 1rem;
}
.lesson-card .meta strong {
  display: block;
  font-size: 0.88rem;
  color: var(--bi-navy);
  line-height: 1.35;
}
.lesson-card .meta span {
  font-size: 0.74rem;
  color: var(--bi-muted);
}
@media (hover: hover) and (pointer: fine) {
  .lesson-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--bi-shadow-lg);
  }
  .lesson-card:hover .play {
    opacity: 1;
    transform: scale(1);
  }
  .lesson-card:hover .thumb .math {
    opacity: 0.3;
  }
}
.lesson-card .thumb .math {
  transition: opacity 200ms ease;
}

/* ---------- Plans ---------- */
.plan-card {
  background: #fff;
  border: 1px solid var(--bi-line);
  border-radius: 20px;
  padding: 1.8rem 1.6rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: var(--bi-shadow);
}
.plan-card.featured {
  border: 2px solid var(--bi-primary);
  box-shadow: 0 24px 48px rgba(2, 144, 190, 0.14);
}
@media (min-width: 992px) {
  .plan-card.featured {
    transform: translateY(-10px);
  }
}
.plan-card .tag {
  align-self: flex-start;
  background: var(--bi-pale);
  color: var(--bi-primary-dark);
  font-size: 0.7rem;
  font-weight: 800;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}
.plan-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.2rem;
}
.plan-card .for {
  font-size: 0.84rem;
  color: var(--bi-muted);
}
.plan-card .price {
  font-size: 2rem;
  font-weight: 800;
  color: var(--bi-navy);
  margin: 1.1rem 0 1.2rem;
  letter-spacing: -0.03em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.plan-card .price small {
  font-size: 0.74rem;
  color: var(--bi-muted);
  font-weight: 600;
  letter-spacing: 0;
  margin-left: 0.25rem;
}
.plan-card .price .alt {
  display: block;
  font-size: 0.8rem;
  color: var(--bi-muted);
  font-weight: 600;
  letter-spacing: 0;
  margin-top: 0.45rem;
}
.check-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.6rem;
}
.check-list li {
  position: relative;
  padding-left: 1.6rem;
  font-size: 0.88rem;
  color: var(--bi-ink);
  margin-bottom: 0.6rem;
}
.check-list li::before {
  content: "\F26E";
  font-family: "bootstrap-icons";
  position: absolute;
  left: 0;
  top: -0.05rem;
  color: var(--bi-primary);
  font-size: 1.05rem;
}
.plan-card .btn {
  margin-top: auto;
}

/* ---------- FAQ / accordion ---------- */
.faq {
  max-width: 780px;
  margin: 0 auto;
}
.faq .accordion-item,
.bi-accordion .accordion-item {
  border: 1px solid var(--bi-line);
  border-radius: 14px !important;
  overflow: hidden;
  margin-bottom: 0.75rem;
  background: #fff;
  box-shadow: 0 1px 2px rgba(16, 45, 61, 0.04);
}
.faq .accordion-button,
.bi-accordion .accordion-button {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--bi-navy);
  background: #fff;
  padding: 1.05rem 1.25rem;
  box-shadow: none;
}
.faq .accordion-button:not(.collapsed),
.bi-accordion .accordion-button:not(.collapsed) {
  color: var(--bi-primary-dark);
  background: #fff;
  border-radius: 20px;
}
.faq .accordion-button::after,
.bi-accordion .accordion-button::after {
  background-image: none;
  content: "\F282";
  font-family: "bootstrap-icons";
  width: auto;
  height: auto;
  font-size: 0.9rem;
  transition: transform 250ms var(--ease-out);
}
.faq .accordion-button:not(.collapsed)::after,
.bi-accordion .accordion-button:not(.collapsed)::after {
  background-image: none;
  transform: rotate(180deg);
}
.faq .accordion-button:focus,
.bi-accordion .accordion-button:focus {
  box-shadow: inset 0 0 0 2px rgba(2, 144, 190, 0.35);
  border-radius: 20px;
}
.faq .accordion-body {
  color: var(--bi-muted);
  font-size: 0.92rem;
  padding: 0 1.25rem 1.2rem;
}
.collapsing {
  transition: height 280ms var(--ease-out);
}

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  overflow: hidden;
  border-radius: var(--bi-radius-lg);
  background: linear-gradient(100deg, #0a7aa3 0%, #0aa4d4 55%, #3cc4c4 100%);
  color: #fff;
  padding: 3.2rem clamp(1.5rem, 4vw, 3rem);
  box-shadow: 0 24px 50px rgba(2, 144, 190, 0.22);
}
.cta-band::before,
.cta-band::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 44px solid rgba(255, 255, 255, 0.1);
  pointer-events: none;
}
.cta-band::before {
  width: 300px;
  height: 300px;
  right: -60px;
  top: -120px;
}
.cta-band::after {
  width: 180px;
  height: 180px;
  right: 90px;
  bottom: -120px;
  border-width: 30px;
}
.cta-band h2 {
  color: #fff;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 0.5rem;
}
.cta-band p {
  color: rgba(255, 255, 255, 0.86);
  margin: 0;
}
.cta-band .eyebrow {
  color: rgba(255, 255, 255, 0.8);
}
.cta-band > * {
  position: relative;
  z-index: 1;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--bi-navy-deep);
  color: rgba(255, 255, 255, 0.72);
  padding: 4.5rem 0 1.6rem;
  font-size: 0.88rem;
}
.site-footer h4 {
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 1.1rem;
  letter-spacing: 0;
}
.site-footer a {
  color: rgba(255, 255, 255, 0.72);
}
.site-footer a:hover {
  color: #fff;
}
.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.site-footer li {
  margin-bottom: 0.6rem;
}
.site-footer p {
  color: rgba(255, 255, 255, 0.64);
}
.footer-logo {
  display: inline-block;
  background: #fff;
  border-radius: 8px;
  padding: 6px 10px;
  margin-bottom: 1.1rem;
}
.footer-logo img {
  height: 30px;
  display: block;
}
.social a {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  margin-right: 0.35rem;
  transition:
    background-color 200ms ease,
    border-color 200ms ease;
}
.social a:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.3);
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 3rem;
  padding-top: 1.4rem;
  font-size: 0.8rem;
}

.fab-whatsapp {
  position: fixed;
  right: 1.2rem;
  bottom: 1.2rem;
  z-index: 1040;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 1.55rem;
  box-shadow: 0 10px 24px rgba(37, 211, 102, 0.35);
  transition: transform 200ms var(--ease-out);
}
.fab-whatsapp:hover {
  color: #fff;
}
.fab-whatsapp:active {
  transform: scale(0.95);
}
.to-top {
  position: fixed;
  right: 1.35rem;
  bottom: 5.1rem;
  z-index: 1040;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--bi-line-strong);
  background: #fff;
  color: var(--bi-navy);
  display: grid;
  place-items: center;
  box-shadow: var(--bi-shadow);
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition:
    opacity 200ms ease,
    transform 250ms var(--ease-out);
}
.to-top.show {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

/* ==========================================================================
   Inner pages
   ========================================================================== */
.page-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(900px 480px at 100% 0%, rgba(43, 179, 184, 0.14), transparent 60%),
    linear-gradient(180deg, #f1fbfd 0%, #fbfeff 100%);
  padding: 3.6rem 0 4.4rem;
  border-bottom: 1px solid var(--bi-line);
}
.page-hero .glyph {
  position: absolute;
  right: -2%;
  bottom: -18%;
  font-family: var(--bi-math);
  font-style: italic;
  font-size: clamp(12rem, 26vw, 22rem);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(2, 144, 190, 0.12);
  pointer-events: none;
  user-select: none;
}
.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 1.3rem;
  padding: 0;
  list-style: none;
}
.crumbs li {
  color: var(--bi-muted);
}
.crumbs li + li::before {
  content: "\F285";
  font-family: "bootstrap-icons";
  font-size: 0.62rem;
  margin-right: 0.35rem;
  color: var(--bi-soft);
}
.crumbs a {
  color: var(--bi-muted);
}
.crumbs a:hover {
  color: var(--bi-primary);
}
.crumbs [aria-current] {
  color: var(--bi-navy);
}

/* ---------- About hero: gradient banner with coach portrait ---------- */
.about-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #0a2436 0%, #0a4f68 42%, #0a7fa6 75%, #0aa6d6 100%);
  padding: 4.75rem 0 6.5rem;
  color: #fff;
}
.about-hero .glyph {
  position: absolute;
  right: -2%;
  bottom: -20%;
  font-family: var(--bi-math);
  font-style: italic;
  font-size: clamp(12rem, 26vw, 22rem);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.08);
  pointer-events: none;
  user-select: none;
}
.about-hero .blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(50px);
  pointer-events: none;
}
.about-hero .blob-1 {
  width: 280px;
  height: 280px;
  background: rgba(60, 196, 196, 0.35);
  top: -100px;
  left: 42%;
}
.about-hero .blob-2 {
  width: 220px;
  height: 220px;
  background: rgba(10, 166, 214, 0.28);
  bottom: -80px;
  left: 4%;
}
.about-hero > .container {
  position: relative;
  z-index: 1;
}
.about-hero .crumbs li,
.about-hero .crumbs a {
  color: rgba(255, 255, 255, 0.62);
}
.about-hero .crumbs a:hover {
  color: #fff;
}
.about-hero .crumbs [aria-current] {
  color: #fff;
}
.about-hero .crumbs li + li::before {
  color: rgba(255, 255, 255, 0.35);
}
.about-hero .pill-tag {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.22);
  color: #fff;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.about-hero .pill-tag .dot {
  background: var(--bi-teal);
}
.about-hero .display-hero {
  color: #fff;
}
.about-hero .lede {
  color: rgba(255, 255, 255, 0.8);
}
.about-hero .btn-bi-outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}
.about-hero .btn-bi-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.6);
}

.hero-portrait {
  position: relative;
  width: min(340px, 84%);
  margin: 0 auto;
}
.hero-portrait .ring {
  position: absolute;
  inset: -16px;
  border-radius: 50%;
  border: 1.5px dashed rgba(255, 255, 255, 0.32);
  animation: heroRingSpin 26s linear infinite;
}
.hero-portrait .ring-2 {
  inset: -34px;
  border-color: rgba(255, 255, 255, 0.16);
  animation-duration: 38s;
  animation-direction: reverse;
}
.hero-portrait-photo {
  position: relative;
  z-index: 1;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.02));
  box-shadow: 0 30px 60px rgba(2, 15, 22, 0.45);
  border: 4px solid rgba(255, 255, 255, 0.16);
}
.hero-portrait-photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: 50% 18%;
}
@keyframes heroRingSpin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero-portrait .ring {
    animation: none;
  }
}
@media (max-width: 991.98px) {
  .about-hero {
    text-align: center;
    padding: 3.5rem 0 6rem;
  }
  .about-hero .lede {
    margin-left: auto;
    margin-right: auto;
  }
  .about-hero .crumbs {
    justify-content: center;
  }
  .hero-portrait {
    margin-top: 2.75rem;
  }
}

.fact-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.6rem 0 2rem;
}
.fact {
  background: #fff;
  border: 1px solid var(--bi-line);
  border-radius: 12px;
  padding: 0.6rem 0.95rem;
  min-width: 104px;
}
.fact .v {
  display: block;
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--bi-navy);
  letter-spacing: -0.02em;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}
.fact .k {
  font-size: 0.74rem;
  color: var(--bi-muted);
  font-weight: 600;
}
.fact-price {
  min-width: 150px;
  border-color: rgba(2, 144, 190, 0.25);
  background: var(--bi-pale);
}
.fact-price .row-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}
.fact-price .v {
  display: inline;
}
.fact-price .mini-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.83rem;
  font-weight: 800;
  color: var(--bi-muted);
  background: #fff;
  border: 1px solid rgba(2, 144, 190, 0.3);
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
}
.fact-price .mini-switch .on {
  color: var(--bi-primary-dark);
}
.fact-price .mini-switch .form-check-input {
  width: 1.3em;
  height: 1.3em;
  margin: 0;
  cursor: pointer;
}
.fact-price .mini-switch .form-check-input:checked {
  background-color: var(--bi-primary);
  border-color: var(--bi-primary);
}
.fact-price .k {
  display: block;
  margin-top: 0.2rem;
}

/* Formula panel — signature element for subjects */
.formula-panel {
  position: relative;
  overflow: hidden;
  background: var(--bi-grad-panel);
  color: #fff;
  border-radius: var(--bi-radius-lg);
  padding: 2rem;
  box-shadow: var(--bi-shadow-lg);
}
.formula-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(520px 240px at 90% 0%, rgba(255, 255, 255, 0.14), transparent 60%);
  pointer-events: none;
}
.formula-panel .code {
  font-size: clamp(4rem, 9vw, 6.2rem);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.05em;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.55);
}
.formula-panel .name {
  font-weight: 700;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.92);
  margin-top: 0.6rem;
}
.formula-panel ul {
  list-style: none;
  padding: 0;
  margin: 1.6rem 0 0;
  position: relative;
  z-index: 1;
}
.formula-panel li {
  font-family: var(--bi-math);
  font-style: italic;
  font-size: 1.12rem;
  padding: 0.7rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  color: #fff;
}
.formula-panel .exam-meta {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-top: 1.4rem;
}
.formula-panel .exam-meta div {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 0.7rem 0.85rem;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.8);
}
.formula-panel .exam-meta strong {
  display: block;
  color: #fff;
  font-size: 0.92rem;
}

/* Content blocks */
.content-block + .content-block {
  margin-top: 3.2rem;
}
.content-block h2 {
  font-size: 1.55rem;
  margin-bottom: 1rem;
}
.content-block p {
  max-width: 68ch;
}
.content-card {
  background: #fff;
  border: 1px solid var(--bi-line);
  border-radius: 20px;
  padding: clamp(1.5rem, 3vw, 2.2rem);
  box-shadow: var(--bi-shadow);
}
.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0;
  list-style: none;
  margin: 0;
}
.chip-list li {
  background: var(--bi-pale);
  border: 1px solid rgba(2, 144, 190, 0.12);
  color: var(--bi-navy);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
}
.paper-card {
  border: 1px solid var(--bi-line);
  border-radius: 16px;
  padding: 1.3rem;
  height: 100%;
  background: #fff;
}
.paper-card .k {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--bi-primary);
}
.paper-card h3 {
  font-size: 1.05rem;
  margin: 0.35rem 0;
}
.paper-card p {
  font-size: 0.87rem;
  margin: 0;
}

.sticky-card {
  position: sticky;
  top: 100px;
  background: #fff;
  border: 1px solid var(--bi-line);
  border-radius: 20px;
  padding: 1.6rem;
  box-shadow: var(--bi-shadow-lg);
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sticky-card .from {
  font-size: 0.78rem;
  color: var(--bi-muted);
  font-weight: 600;
}
.sticky-card .amount {
  font-size: 2rem;
  font-weight: 800;
  color: var(--bi-navy);
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.sticky-card .amount small {
  font-size: 0.8rem;
  color: var(--bi-muted);
  font-weight: 600;
  letter-spacing: 0;
}
.sticky-card hr {
  border-color: var(--bi-line);
  opacity: 1;
  margin: 1.3rem 0;
}
.cp-player {
  width: 100%;
}
/* ---------- Curriculum class preview: video + study notes ---------- */
.class-preview {
  scroll-margin-top: 100px;
}
.class-preview .cp-empty {
  text-align: center;
  padding: 2.5rem 1rem;
  color: var(--bi-muted);
  font-size: 0.9rem;
}
.class-preview .cp-empty i {
  display: block;
  font-size: 1.9rem;
  color: var(--bi-primary);
  margin-bottom: 0.7rem;
}
.cp-stage {
  position: relative;
  aspect-ratio: 16 / 9;
  max-height: 320px;
  background: #000;
  border-radius: 14px;
  overflow: hidden;
}
.cp-stage video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
  background: #000;
}
.cp-timer {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  z-index: 2;
  background: rgba(13, 35, 49, 0.75);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  font-variant-numeric: tabular-nums;
}
.cp-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 1.4rem;
  background:
    radial-gradient(500px 260px at 50% 0%, rgba(43, 179, 184, 0.28), transparent 60%),
    rgba(13, 35, 49, 0.96);
  opacity: 0;
  visibility: hidden;
  transform: scale(0.98);
  transition:
    opacity 300ms ease,
    transform 350ms var(--ease-out),
    visibility 0s linear 300ms;
}
.cp-overlay.show {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition:
    opacity 300ms ease,
    transform 350ms var(--ease-out),
    visibility 0s;
}
.cp-overlay .lock {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.1);
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  margin: 0 auto 0.75rem;
  color: #fff;
}
.cp-overlay h4 {
  color: #fff;
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
}
.cp-overlay p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.82rem;
  margin: 0 0 1rem;
}
.class-preview .cp-meta {
  margin-top: 1.3rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid var(--bi-line);
}
.class-preview .cp-meta .k {
  display: inline-flex;
  align-items: center;
  background: var(--bi-pale);
  color: var(--bi-primary-dark);
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.class-preview .cp-meta h3 {
  font-size: 1.18rem;
  margin: 0.65rem 0 0;
  color: var(--bi-navy);
  line-height: 1.35;
}
.class-preview .cp-notes {
  margin-top: 1.2rem;
  padding: 1.2rem 1.2rem 0.3rem;
  background: var(--bi-pale-2);
  border-radius: 16px;
}
.class-preview .cp-notes-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--bi-muted);
  font-weight: 800;
  margin-bottom: 0.9rem;
}
.class-preview .cp-notes-head i {
  color: var(--bi-primary);
  font-size: 1rem;
}
.notes-accordion .accordion-item {
  border: 1px solid var(--bi-line);
  border-radius: 12px !important;
  overflow: hidden;
  margin-bottom: 0.7rem;
  background: #fff;
  box-shadow: 0 1px 2px rgba(16, 45, 61, 0.04);
}
.notes-accordion .accordion-item:last-child {
  margin-bottom: 0;
}
.notes-accordion .accordion-button {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--bi-navy);
  background: #fff;
  padding: 0.75rem 0.9rem;
  box-shadow: none;
}
.notes-accordion .accordion-button:not(.collapsed) {
  color: var(--bi-primary-dark);
  background: var(--bi-pale);
}
.notes-accordion .note-ic {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: var(--bi-grad);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 0.78rem;
  flex: none;
}
.notes-accordion .accordion-button::after {
  background-image: none;
  content: "\F282";
  font-family: "bootstrap-icons";
  width: auto;
  height: auto;
  font-size: 0.7rem;
  transition: transform 250ms var(--ease-out);
}
.notes-accordion .accordion-button:not(.collapsed)::after {
  transform: rotate(180deg);
}
.notes-accordion .accordion-button:focus {
  box-shadow: inset 0 0 0 2px rgba(2, 144, 190, 0.3);
}
.notes-accordion .accordion-body {
  font-size: 0.85rem;
  color: var(--bi-muted);
  padding: 0 0.9rem 0.9rem 3.35rem;
}

.class-list li {
  cursor: pointer;
  border-radius: 10px;
  transition: background-color 150ms ease;
}
.class-list li:hover {
  background: var(--bi-pale);
}
.class-list li.active {
  background: var(--bi-pale-2);
}
.class-list li.active .no,
.class-list li.active .t {
  color: var(--bi-primary-dark);
  font-weight: 700;
}
.class-list li:focus-visible {
  outline: 2px solid var(--bi-primary);
  outline-offset: -2px;
}

/* Curriculum */
.curriculum-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 1.2rem;
}
.search-field {
  position: relative;
  flex: 1 1 260px;
}
.search-field .bi {
  position: absolute;
  left: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--bi-soft);
}
.search-field input {
  padding-left: 2.4rem;
}
.module-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.6rem;
  display: none;
}
.module-jump a {
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  border: 1px solid var(--bi-line-strong);
  color: var(--bi-navy);
  background: #fff;
}
.module-jump a:hover {
  border-color: var(--bi-primary);
  color: var(--bi-primary);
}
.module-accordion .module-block.accordion-item {
  scroll-margin-top: 110px;
  border: 1px solid var(--bi-line);
  border-radius: 16px !important;
  overflow: hidden;
  margin-bottom: 1rem;
  background: #fff;
  box-shadow: var(--bi-shadow);
}
.module-accordion .module-block.accordion-item:last-child {
  margin-bottom: 0;
}
.accordion-header {
  border-radius: 20px;
}
.module-head.accordion-button {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--bi-navy);
  background: #fff;
  padding: 1.15rem 1.4rem;
  box-shadow: none;
  border-radius: 20px;
  overflow: hidden;
}
.module-head.accordion-button:not(.collapsed) {
  color: var(--bi-primary-dark);
  background: var(--bi-pale-2);
}
.module-head .count {
  margin-left: auto;
  margin-right: 0.9rem;
  font-size: 0.8rem;
  color: var(--bi-muted);
  font-weight: 600;
  white-space: nowrap;
}
.module-head.accordion-button::after {
  background-image: none;
  content: "\F282";
  font-family: "bootstrap-icons";
  width: auto;
  height: auto;
  font-size: 1rem;
  color: var(--bi-primary);
  transition: transform 250ms var(--ease-out);
}
.module-head.accordion-button:not(.collapsed)::after {
  transform: rotate(180deg);
  border-radius: 20px;
}
.module-head.accordion-button:focus {
  box-shadow: inset 0 0 0 2px rgba(2, 144, 190, 0.35);
  border-radius: 20px;
}
.module-collapse > .accordion-body {
  padding: 0.3rem 1.4rem 1.4rem;
}
.bi-accordion .accordion-button {
  line-height: 1.4;
}
.bi-accordion .accordion-button::after {
  margin-left: 0;
}
.bi-accordion .accordion-button .chap-title {
  letter-spacing: -0.005em;
}
.bi-accordion .accordion-button .count {
  margin-left: auto;
  margin-right: 0.9rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--bi-muted);
  white-space: nowrap;
}
.bi-accordion .accordion-button .tag-free {
  font-size: 0.66rem;
  font-weight: 800;
  background: rgba(31, 157, 122, 0.12);
  color: var(--bi-success);
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  margin-left: 0.6rem;
}
.class-list {
  list-style: none;
  margin: 0;
  padding: 0 1.25rem 1rem;
  counter-reset: cls;
}
.class-list li {
  display: flex;
  gap: 0.75rem;
  align-items: baseline;
  padding: 0.7rem 0;
  border-top: 1px solid var(--bi-line);
  font-size: 0.92rem;
  line-height: 1.4;
  color: var(--bi-ink);
}
.class-list li .no {
  flex: none;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--bi-primary);
  min-width: 5.2rem;
  font-variant-numeric: tabular-nums;
}
.class-list li .t {
  font-weight: 600;
  color: var(--bi-navy);
}
.class-list li.is-hidden,
.accordion-item.is-hidden,
.module-block.is-hidden {
  display: none;
}
.class-list mark {
  background: rgba(43, 179, 184, 0.24);
  color: inherit;
  padding: 0 2px;
  border-radius: 3px;
}
.module-exam {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--bi-navy);
  background: var(--bi-pale);
  border-radius: 12px;
  padding: 0.8rem 1rem;
}
.module-exam .bi {
  color: var(--bi-primary);
}
.empty-state {
  display: none;
  text-align: center;
  padding: 2.5rem 1rem;
  border: 1px dashed var(--bi-line-strong);
  border-radius: 16px;
}
.empty-state.show {
  display: block;
  animation: fadeUp 250ms var(--ease-out);
}
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* Tabs as pills */
.bi-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  background: #fff;
  border: 1px solid var(--bi-line-strong);
  border-radius: 14px;
  padding: 0.3rem;
}
.bi-tabs .nav-link {
  background: none;
  border: 1px solid #ddd;
  border-radius: 10px;
  color: var(--bi-navy);
  font-weight: 700;
  font-size: 0.88rem;
  padding: 0.55rem 1.1rem;
  transition:
    background-color 200ms ease,
    color 200ms ease;
}
.bi-tabs .nav-link:hover {
  color: var(--bi-primary);
}
.bi-tabs .nav-link.active {
  background: var(--bi-grad);
  color: #fff;
  box-shadow: var(--bi-shadow-btn);
}
.tab-pane.fade {
  transition: opacity 200ms ease;
}

/* Currency switch */
.currency-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--bi-muted);
}
.currency-switch .form-check-input {
  width: 2.6em;
  height: 1.4em;
  cursor: pointer;
}
.currency-switch .form-check-input:checked {
  background-color: var(--bi-primary);
  border-color: var(--bi-primary);
}
.currency-switch .on {
  color: var(--bi-navy);
}
.price-val {
  display: inline-block;
  transition:
    opacity 180ms ease,
    transform 220ms var(--ease-out);
}
.price-val.swap {
  opacity: 0;
  transform: translateY(6px);
}

.tier-card {
  background: #fff;
  border: 1px solid var(--bi-line);
  border-radius: 20px;
  padding: 1.6rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: var(--bi-shadow);
  position: relative;
}
.tier-card.best {
  border: 2px solid var(--bi-primary);
  box-shadow: 0 24px 48px rgba(2, 144, 190, 0.14);
}
.tier-card .unit {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--bi-primary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.tier-card h3 {
  font-size: 1.08rem;
  margin: 0.4rem 0 1rem;
}
.tier-card .price {
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--bi-navy);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 0.35rem;
  font-variant-numeric: tabular-nums;
}
.tier-card .per {
  font-size: 0.8rem;
  color: var(--bi-muted);
  margin-bottom: 1.3rem;
}
.tier-card .ribbon {
  position: absolute;
  top: -0.8rem;
  left: 1.4rem;
  background: var(--bi-navy);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
}
.tier-card .offer {
  background: #fff7e6;
  color: #8a5a00;
  border-radius: 10px;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.55rem 0.7rem;
  margin-bottom: 1.1rem;
}
.tier-card .actions {
  margin-top: auto;
}

/* Video facade */
.video-card {
  background: #fff;
  border: 1px solid var(--bi-line);
  border-radius: 16px;
  overflow: hidden;
  height: 100%;
  box-shadow: var(--bi-shadow);
}
.video-facade {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  padding: 0;
  background: var(--bi-grad-panel) center / cover no-repeat;
  cursor: pointer;
  overflow: hidden;
}
.video-facade::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(13, 35, 49, 0.1), rgba(13, 35, 49, 0.55));
  transition: opacity 200ms ease;
}
.video-facade .play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 60px;
  height: 60px;
  margin: -30px 0 0 -30px;
  border-radius: 50%;
  background: #fff;
  color: var(--bi-primary);
  display: grid;
  place-items: center;
  font-size: 1.6rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  transition: transform 250ms var(--ease-out);
}
.video-facade:active .play {
  transform: scale(0.94);
}
@media (hover: hover) and (pointer: fine) {
  .video-facade:hover .play {
    transform: scale(1.06);
  }
}
.video-card iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
}
.video-card .cap {
  padding: 0.95rem 1.1rem 1.1rem;
}
.video-card .cap .k {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--bi-primary);
}
.video-card .cap strong {
  display: block;
  font-size: 0.93rem;
  color: var(--bi-navy);
  line-height: 1.4;
}

/* Preview modal */
.preview-modal .modal-content {
  border: 0;
  border-radius: 20px;
  overflow: hidden;
  background: var(--bi-navy-deep);
  color: #fff;
}
.preview-modal .modal-header {
  border: 0;
  padding: 1rem 1.25rem;
}
.preview-modal .modal-title {
  color: #fff;
  font-size: 1rem;
}
.preview-modal .modal-title small {
  display: block;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.64);
  font-size: 0.78rem;
}

/* Pricing modal */
.pricing-modal .modal-content {
  border: 0;
  border-radius: 20px;
}
.pricing-modal .modal-header {
  border-bottom: 1px solid var(--bi-line);
  padding: 1.3rem 1.6rem;
  flex-wrap: wrap;
  row-gap: 0.75rem;
}
.pricing-modal .modal-header .currency-switch {
  font-size: 0.78rem;
  gap: 0.5rem;
}
.pricing-modal .modal-title {
  font-size: 1.15rem;
  color: var(--bi-navy);
}
.pricing-modal .modal-title small {
  display: block;
  font-weight: 600;
  color: var(--bi-muted);
  font-size: 0.82rem;
  margin-top: 0.2rem;
}
.pricing-modal .modal-body {
  padding: 1.6rem;
}
.preview-modal .stage {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
}
.preview-modal .stage iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.preview-modal .timer {
  font-size: 0.78rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.1);
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  font-variant-numeric: tabular-nums;
  margin-right: 0.8rem;
}
.paywall {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 2rem;
  background:
    radial-gradient(600px 300px at 50% 0%, rgba(43, 179, 184, 0.28), transparent 60%),
    rgba(13, 35, 49, 0.96);
  opacity: 0;
  visibility: hidden;
  transform: scale(0.98);
  transition:
    opacity 300ms ease,
    transform 350ms var(--ease-out),
    visibility 0s linear 300ms;
}
.paywall.show {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition:
    opacity 300ms ease,
    transform 350ms var(--ease-out),
    visibility 0s;
}
.paywall h3 {
  color: #fff;
  font-size: 1.5rem;
}
.paywall p {
  color: rgba(255, 255, 255, 0.75);
  max-width: 44ch;
  margin: 0.5rem auto 1.4rem;
}
.paywall .lock {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.1);
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  margin: 0 auto 1rem;
}
.modal.fade .modal-dialog {
  transform: translateY(12px) scale(0.98);
  transition: transform 300ms var(--ease-out);
}
.modal.show .modal-dialog {
  transform: none;
}

/* About */
.mission-card {
  background: var(--bi-navy);
  color: #fff;
  border-radius: var(--bi-radius-lg);
  padding: 2.4rem;
  position: relative;
  overflow: hidden;
  height: 100%;
}
.mission-card .q {
  font-family: var(--bi-math);
  font-size: 6rem;
  line-height: 0.6;
  color: var(--bi-teal);
  display: block;
  height: 2.2rem;
}
.mission-card p {
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.12rem;
  line-height: 1.6;
}
.mission-card .eyebrow {
  color: var(--bi-teal);
}
.bento {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(12, 1fr);
}
.bento > * {
  grid-column: span 12;
}
@media (min-width: 768px) {
  .bento .b-wide {
    grid-column: span 7;
  }
  .bento .b-narrow {
    grid-column: span 5;
  }
}
.why-card {
  border-radius: 20px;
  padding: 1.8rem;
  border: 1px solid var(--bi-line);
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  min-height: 210px;
}
.why-card.tint {
  background: var(--bi-pale);
  border-color: transparent;
}
.why-card.dark {
  background: var(--bi-grad-panel);
  border: 0;
}
.why-card.dark h3,
.why-card.dark p {
  color: #fff;
}
.why-card.dark p {
  opacity: 0.82;
}
.why-card .ic {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--bi-grad);
  color: #fff;
  font-size: 1.2rem;
}
.why-card.dark .ic {
  background: rgba(255, 255, 255, 0.14);
}
.why-card h3 {
  font-size: 1.12rem;
  margin: auto 0 0;
}
.why-card p {
  font-size: 0.9rem;
  margin: 0;
}

/* ---------- Why choose us: compact pill grid ---------- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.9rem;
}
.why-pill {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  background: #fff;
  border: 1px solid var(--bi-line);
  border-radius: 16px;
  padding: 1.1rem 1.2rem;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--bi-navy);
  transition:
    transform 200ms var(--ease-out),
    box-shadow 200ms ease,
    border-color 200ms ease;
}
.why-pill:hover {
  transform: translateY(-3px);
  box-shadow: var(--bi-shadow);
  border-color: rgba(2, 144, 190, 0.3);
}
.why-pill .ic {
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--bi-grad);
  color: #fff;
  font-size: 1.1rem;
}
@media (max-width: 991.98px) {
  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 575.98px) {
  .why-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Student Corner: resource cards + horizontal scroll rows ---------- */
.resource-card {
  background: #fff;
  border: 1px solid var(--bi-line);
  border-radius: 20px;
  padding: 1.6rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.resource-card .ic {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--bi-grad);
  color: #fff;
  font-size: 1.15rem;
}
.resource-card h3 {
  font-size: 1.08rem;
  margin: 0;
}
.resource-card p {
  font-size: 0.88rem;
  margin: 0;
}
.resource-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.5rem;
}
.resource-card ul a {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--bi-navy);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.resource-card ul a:hover {
  color: var(--bi-primary);
}
.resource-card ul a .bi {
  color: var(--bi-primary);
}

.scroll-row {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding: 0.25rem 0.25rem 1rem;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}
.scroll-row::-webkit-scrollbar {
  height: 8px;
}
.scroll-row::-webkit-scrollbar-thumb {
  background: var(--bi-line-strong);
  border-radius: 99px;
}
.scroll-row > * {
  scroll-snap-align: start;
  flex: 0 0 auto;
}

.mini-testimonial {
  width: 280px;
  background: #fff;
  border: 1px solid var(--bi-line);
  border-radius: 16px;
  padding: 1.2rem;
  box-shadow: var(--bi-shadow);
}
.mini-testimonial .stars {
  color: #f5a623;
  font-size: 0.72rem;
  margin-bottom: 0.5rem;
}
.mini-testimonial p {
  font-size: 0.85rem;
  color: var(--bi-ink);
  margin: 0 0 0.8rem;
  line-height: 1.5;
}
.mini-testimonial .who {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.mini-testimonial .av {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bi-pale);
  color: var(--bi-primary-dark);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.72rem;
  flex: none;
}
.mini-testimonial .who strong {
  display: block;
  font-size: 0.82rem;
  color: var(--bi-navy);
}
.mini-testimonial .who span {
  font-size: 0.72rem;
  color: var(--bi-muted);
}

.mini-post {
  width: 240px;
  background: #fff;
  border: 1px solid var(--bi-line);
  border-radius: 14px;
  padding: 1rem 1.1rem;
  color: inherit;
}
.mini-post time {
  font-size: 0.7rem;
  color: var(--bi-muted);
  font-weight: 600;
  display: block;
  margin-bottom: 0.3rem;
}
.mini-post strong {
  display: block;
  font-size: 0.88rem;
  color: var(--bi-navy);
  line-height: 1.3;
}
.mini-post:hover strong {
  color: var(--bi-primary);
}

.video-strip-cap {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--bi-navy);
  margin-top: 0.5rem;
  min-height: 2.4em;
}
/* ---------- Head coach profile: panel, photo, stepper timeline ---------- */
.coach-panel {
  position: relative;
  background: linear-gradient(175deg, #eefbfc 0%, #f8feff 55%, #ffffff 100%);
  border: 1px solid var(--bi-line);
  border-radius: 32px;
  padding: clamp(1.75rem, 4vw, 3.25rem);
  overflow: hidden;
}
.coach-panel::before,
.coach-panel::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.coach-panel::before {
  width: 360px;
  height: 360px;
  border: 56px solid rgba(10, 166, 214, 0.07);
  right: -120px;
  top: -160px;
}
.coach-panel::after {
  width: 220px;
  height: 220px;
  border: 36px solid rgba(43, 179, 184, 0.09);
  left: -90px;
  bottom: -110px;
}
.coach-panel > * {
  position: relative;
  z-index: 1;
}

.badge-pill {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: -0.65rem;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: #fff;
  color: var(--bi-navy);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  padding: 0.34rem 0.8rem;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: var(--bi-shadow-lg);
}
.badge-pill i {
  color: var(--bi-primary);
}

.coach-intro {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 2rem;
}
.coach-intro h3 {
  font-size: 1.3rem;
  margin: 0 0 0.2rem;
  color: var(--bi-navy);
}
.coach-intro .role {
  color: var(--bi-primary);
  font-weight: 700;
  font-size: 0.86rem;
  letter-spacing: 0.01em;
  margin-bottom: 0.9rem;
}
.coach-intro p {
  margin: 0;
}

.profile-block + .profile-block {
  margin-top: 2.5rem;
}
.profile-block .block-head {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.2rem;
}
.profile-block .block-head .ic-sm {
  width: 40px;
  height: 40px;
  border-radius: 13px;
  background: var(--bi-grad);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 1.05rem;
  flex: none;
  box-shadow: 0 8px 16px rgba(2, 144, 190, 0.28);
}
.profile-block .block-head h3 {
  font-size: 1.15rem;
  margin: 0;
  color: var(--bi-navy);
}

.xp-list {
  position: relative;
  list-style: none;
  margin: 1.6rem 0 0;
  padding: 0;
}
.xp-list::before {
  content: "";
  position: absolute;
  left: 21px;
  top: 22px;
  bottom: 22px;
  width: 2px;
  background: linear-gradient(180deg, rgba(10, 166, 214, 0.55), rgba(10, 166, 214, 0.05));
  z-index: 0;
}
.xp-item {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 1.1rem;
  padding-bottom: 1.5rem;
}
.xp-item:last-child {
  padding-bottom: 0;
}
.xp-item .node {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--bi-grad);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 1.05rem;
  box-shadow: 0 10px 20px rgba(2, 144, 190, 0.3);
}
.xp-item .card {
  flex: 1;
  min-width: 0;
  background: #fff;
  border: 1px solid var(--bi-line);
  border-radius: 16px;
  padding: 1.1rem 1.3rem;
  box-shadow: var(--bi-shadow);
  transition:
    transform 220ms var(--ease-out),
    box-shadow 220ms var(--ease-out);
}
.xp-item .card:hover {
  transform: translateY(-4px);
  box-shadow: var(--bi-shadow-lg);
}
.xp-item .t-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.75rem;
  justify-content: space-between;
}
.xp-item .t-role {
  font-weight: 700;
  color: var(--bi-navy);
  font-size: 0.98rem;
}
.xp-item .t-years {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--bi-primary);
  background: var(--bi-pale);
  padding: 0.24rem 0.7rem;
  border-radius: 999px;
  white-space: nowrap;
}
.xp-item .t-org {
  display: block;
  font-size: 0.84rem;
  color: var(--bi-muted);
  font-weight: 600;
  margin-top: 0.25rem;
}
.xp-item .card p {
  margin: 0.6rem 0 0;
  font-size: 0.9rem;
}
.placeholder-copy {
  font-style: italic;
  opacity: 0.85;
}
@media (max-width: 575.98px) {
  .xp-item {
    gap: 0.8rem;
  }
  .xp-item .node {
    width: 38px;
    height: 38px;
    font-size: 0.92rem;
  }
  .xp-list::before {
    left: 18px;
  }
}
.testimonial {
  background: #fff;
  border: 1px solid var(--bi-line);
  border-radius: 20px;
  padding: 1.8rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: var(--bi-shadow);
}
.testimonial blockquote {
  font-size: 0.95rem;
  color: var(--bi-ink);
  line-height: 1.7;
  margin: 0 0 1.4rem;
}
.testimonial .who {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.testimonial .av {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--bi-pale);
  color: var(--bi-primary-dark);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.85rem;
}
.testimonial .who strong {
  color: var(--bi-navy);
  font-size: 0.92rem;
  display: block;
}
.testimonial .who span {
  font-size: 0.78rem;
  color: var(--bi-ink);
}
.testimonial .who > span {
  color: #ffffff;
}
/* Testimonial slider */
.t-section {
  position: relative;
  overflow: hidden;
}
.t-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(680px 340px at 12% 0%, rgba(43, 179, 184, 0.14), transparent 62%),
    radial-gradient(560px 320px at 100% 100%, rgba(2, 144, 190, 0.1), transparent 60%);
}
.t-slider {
  --t-ipv: 3;
  position: relative;
}
.t-viewport {
  overflow: hidden;
  margin: 0 -0.4rem;
  padding: 0.4rem;
}
.t-track {
  display: flex;
  will-change: transform;
  transition: transform 420ms var(--ease-out, ease);
  touch-action: pan-y;
  cursor: grab;
}
.t-track:active {
  cursor: grabbing;
}
.t-slide {
  flex: 0 0 calc((100% - (var(--t-ipv) - 1) * 1.5rem) / var(--t-ipv));
  margin-right: 1.5rem;
}
.t-slide:last-child {
  margin-right: 0;
}
@media (max-width: 991.98px) {
  .t-slider {
    --t-ipv: 2;
  }
}
@media (max-width: 767.98px) {
  .t-slider {
    --t-ipv: 1;
  }
}

.t-slide .testimonial {
  position: relative;
  height: 100%;
  overflow: hidden;
  border-radius: 22px;
  padding: 2.1rem 1.8rem 1.8rem;
  box-shadow:
    0 1px 2px rgba(16, 45, 61, 0.04),
    0 14px 34px rgba(16, 45, 61, 0.07);
  transition:
    transform 280ms var(--ease-out),
    box-shadow 280ms ease,
    border-color 280ms ease;
}
.t-slide .testimonial::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: var(--bi-grad);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 320ms var(--ease-out);
}
.t-slide .testimonial:hover::before {
  transform: scaleX(1);
}
.t-quote {
  position: absolute;
  top: 0.9rem;
  right: 1.1rem;
  font-size: 3.2rem;
  line-height: 1;
  color: var(--bi-pale);
  z-index: 0;
}
.t-slide .stars {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 0.15rem;
  color: #f5a623;
  font-size: 0.78rem;
  margin-bottom: 0.9rem;
}
.t-slide .testimonial blockquote {
  position: relative;
  z-index: 1;
}
.t-slide .testimonial .who {
  position: relative;
  z-index: 1;
}
.t-slide .av {
  background: var(--bi-grad-panel);
  color: #fff;
  box-shadow: 0 6px 16px rgba(10, 103, 136, 0.28);
}
@media (hover: hover) and (pointer: fine) {
  .t-slide .testimonial:hover {
    transform: translateY(-6px);
    box-shadow:
      0 2px 6px rgba(16, 45, 61, 0.05),
      0 26px 46px rgba(16, 45, 61, 0.12);
  }
}

.t-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2.25rem;
}
.t-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--bi-line-strong);
  background: #fff;
  color: var(--bi-navy);
  display: grid;
  place-items: center;
  font-size: 1rem;
  flex: none;
  box-shadow: var(--bi-shadow);
  transition:
    transform 160ms var(--ease-out, ease),
    box-shadow 200ms ease,
    border-color 200ms ease,
    color 200ms ease,
    background-color 200ms ease;
}
.t-btn:hover {
  border-color: transparent;
  color: #fff;
  background: var(--bi-grad);
  box-shadow: var(--bi-shadow-btn);
}
.t-btn:active {
  transform: scale(0.94);
}
.t-btn:disabled {
  opacity: 0.35;
  cursor: default;
  pointer-events: none;
  box-shadow: none;
}
.t-dots {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0.5rem;
}
.t-dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(16, 45, 61, 0.16);
  transition:
    background-color 200ms ease,
    transform 200ms ease,
    width 200ms ease;
}
.t-dots button.active {
  background: var(--bi-grad);
  width: 22px;
  border-radius: 4px;
}
.img-rounded {
  border-radius: var(--bi-radius-lg);
  box-shadow: var(--bi-shadow-lg);
  width: 100%;
  object-fit: cover;
}

/* Courses listing */
.subject-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--bi-line);
  border-radius: 20px;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: var(--bi-shadow);
  transition:
    transform 250ms var(--ease-out),
    box-shadow 250ms ease;
}
.subject-card .card-hit {
  display: block;
  color: inherit;
}
.subject-card .card-hit:hover,
.subject-card .card-hit:focus {
  color: inherit;
  text-decoration: none;
}
.subject-card .card-hit:hover h3,
.subject-card .card-hit:focus h3 {
  color: var(--bi-primary-dark);
}
.subject-card .panel {
  background: var(--bi-grad-panel);
  color: #fff;
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
  min-height: 150px;
}
.subject-card .panel .code {
  font-size: 3rem;
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 1.2px rgba(255, 255, 255, 0.6);
}
.subject-card .panel .math {
  position: absolute;
  right: 1.2rem;
  bottom: 1.1rem;
  font-size: 1rem;
  opacity: 0.9;
}
.subject-card .body {
  padding: 1.4rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.subject-card .card-info {
  padding: 1.4rem 1.5rem 0;
}
.subject-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.6rem;
  transition: color 200ms ease;
  min-height: 40px;
}
.subject-card p {
  font-size: 0.88rem;
  line-height: initial;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}
.subject-card .mini-facts {
  display: flex;
  gap: 1.2rem;
  font-size: 0.78rem;
  color: var(--bi-muted);
  font-weight: 600;
  margin: 0.2rem 0 1.2rem;
}
.subject-card .card-hit .mini-facts {
  margin-bottom: 0;
}
.subject-card .mini-facts b {
  display: block;
  color: var(--bi-navy);
  font-size: 1rem;
}
.subject-card .actions {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.subject-card .card-hit + .actions {
  padding: 0.9rem 1.5rem 1.5rem;
}
.subject-card.muted .panel {
  background: linear-gradient(135deg, #e3f4f8, #f3fbfd);
}
.subject-card.muted .panel .code {
  -webkit-text-stroke-color: rgba(2, 144, 190, 0.5);
}
@media (hover: hover) and (pointer: fine) {
  .subject-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--bi-shadow-lg);
  }
}

/* Forms */
.form-label {
  font-weight: 700;
  font-size: 0.84rem;
  color: var(--bi-navy);
  margin-bottom: 0.4rem;
}
.form-control,
.form-select {
  border: 1px solid var(--bi-line-strong);
  border-radius: 12px;
  padding: 0.75rem 0.95rem;
  font-size: 0.93rem;
  color: var(--bi-navy);
  transition:
    border-color 200ms ease,
    box-shadow 200ms ease;
}
.form-control:focus,
.form-select:focus {
  border-color: var(--bi-primary);
  box-shadow: 0 0 0 4px rgba(2, 144, 190, 0.14);
}
.form-control::placeholder {
  color: var(--bi-soft);
}
.form-check-input:checked {
  background-color: var(--bi-primary);
  border-color: var(--bi-primary);
}
.was-validated .form-control:invalid,
.form-control.is-invalid {
  border-color: #d64545;
}
.invalid-feedback {
  font-size: 0.78rem;
  font-weight: 600;
}
.pw-field {
  position: relative;
}
.pw-field .form-control {
  padding-right: 3rem;
}
.pw-toggle {
  position: absolute;
  right: 0.4rem;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: var(--bi-muted);
  width: 38px;
  height: 38px;
  border-radius: 8px;
}
.pw-toggle:hover {
  color: var(--bi-primary);
}
.form-card {
  background: #fff;
  border: 1px solid var(--bi-line);
  border-radius: var(--bi-radius-lg);
  padding: clamp(1.5rem, 3vw, 2.4rem);
  box-shadow: var(--bi-shadow-lg);
}
.btn[data-loading="true"] {
  pointer-events: none;
  opacity: 0.85;
}

/* ---------- Auth split page (login.html) ---------- */
.auth-page {
  padding: clamp(1.25rem, 4vw, 3rem) 0;
}
.auth-split {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--bi-shadow-lg);
  min-height: 680px;
}
.auth-visual {
  position: relative;
  flex: 1 1 44%;
  overflow: hidden;
  background: linear-gradient(135deg, #0a2436 0%, #0a4f68 42%, #0a7fa6 75%, #0aa6d6 100%);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2.5rem, 5vw, 4.5rem);
}
.auth-visual .glyph {
  position: absolute;
  left: -10%;
  bottom: -16%;
  font-family: var(--bi-math);
  font-style: italic;
  font-size: clamp(14rem, 30vw, 24rem);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.08);
  pointer-events: none;
  user-select: none;
}
.auth-visual .blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
}
.auth-visual .blob-1 {
  width: 300px;
  height: 300px;
  background: rgba(60, 196, 196, 0.3);
  top: -90px;
  right: -70px;
}
.auth-visual .blob-2 {
  width: 240px;
  height: 240px;
  background: rgba(10, 166, 214, 0.25);
  bottom: -70px;
  left: -70px;
}
.auth-visual > * {
  position: relative;
  z-index: 1;
}
.auth-visual .pill-tag {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.22);
  color: #fff;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  width: fit-content;
}
.auth-visual .pill-tag .dot {
  background: var(--bi-teal);
}
.auth-visual h1 {
  color: #fff;
  font-size: clamp(1.9rem, 3vw, 2.5rem);
  line-height: 1.18;
  letter-spacing: -0.02em;
  margin: 1.1rem 0 0.9rem;
}
.auth-visual .lede {
  color: rgba(255, 255, 255, 0.8);
  max-width: 40ch;
  margin: 0;
}
.auth-feature-list {
  list-style: none;
  padding: 0;
  margin: 2rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}
.auth-feature-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.92);
}
.auth-feature-list .ic {
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.14);
  display: grid;
  place-items: center;
  color: var(--bi-teal);
  font-size: 0.9rem;
}
.auth-stat-row {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 1.8rem;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}
.auth-stat-row .stat-chip {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  padding: 0.6rem 0.85rem;
}
.auth-stat-row .stat-chip .v {
  display: block;
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}
.auth-stat-row .stat-chip .k {
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.68);
  font-weight: 600;
}
.auth-form-side {
  flex: 1 1 56%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(2.5rem, 5vw, 4rem) 1.75rem;
  background: #fff;
}
.auth-form-side .form-card {
  width: 100%;
  max-width: 420px;
  border: 0;
  box-shadow: none;
  padding: 0;
}
@media (max-width: 991.98px) {
  .auth-split {
    flex-direction: column;
    min-height: 0;
  }
  .auth-visual {
    text-align: center;
    padding: 2.75rem 1.75rem;
  }
  .auth-visual .pill-tag {
    margin: 0 auto;
  }
  .auth-visual .lede {
    margin-left: auto;
    margin-right: auto;
  }
  .auth-feature-list,
  .auth-stat-row {
    display: none;
  }
  .auth-form-side {
    padding: 2.75rem 1.5rem;
  }
}

.contact-tile {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.2rem;
  border: 1px solid var(--bi-line);
  border-radius: 16px;
  background: #fff;
  height: 100%;
  color: var(--bi-ink);
}
.contact-tile .ic {
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 12px;
  background: var(--bi-pale);
  color: var(--bi-primary);
  display: grid;
  place-items: center;
  font-size: 1.15rem;
}
.contact-tile strong {
  display: block;
  color: var(--bi-navy);
  font-size: 0.95rem;
}
.contact-tile span {
  font-size: 0.86rem;
  color: var(--bi-muted);
  word-break: break-word;
}
.contact-tile .code-badge {
  color: #fff;
  font-size: 0.78rem;
}
a.contact-tile:hover {
  border-color: rgba(2, 144, 190, 0.4);
  color: var(--bi-ink);
}
.map-frame {
  border-radius: var(--bi-radius-lg);
  overflow: hidden;
  border: 1px solid var(--bi-line);
  box-shadow: var(--bi-shadow);
}
.map-frame iframe {
  display: block;
  width: 100%;
  height: 360px;
  border: 0;
  filter: saturate(0.85);
}

/* Auth */
.auth-wrap {
  min-height: calc(100vh - 120px);
  display: grid;
  align-items: center;
  padding: 3rem 0 4rem;
  background: linear-gradient(180deg, #f1fbfd, #fff);
}
.auth-side {
  position: relative;
  border-radius: var(--bi-radius-lg);
  overflow: hidden;
  min-height: 100%;
  background: var(--bi-grad-panel);
  color: #fff;
  padding: 2.4rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.auth-side img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.28;
  mix-blend-mode: luminosity;
}
.auth-side > * {
  position: relative;
}
.auth-side h2 {
  color: #fff;
  font-size: 1.8rem;
}
.auth-side p {
  color: rgba(255, 255, 255, 0.82);
}
.auth-side .math {
  font-size: 1.15rem;
  opacity: 0.9;
}

/* Prose (blog, legal) */
.prose {
  max-width: 72ch;
  font-size: 1.02rem;
}
.prose p,
.prose li {
  color: var(--bi-ink);
  line-height: 1.8;
}
.prose h2 {
  font-size: 1.35rem;
  margin: 2.4rem 0 0.8rem;
  scroll-margin-top: 110px;
}
.prose h3 {
  font-size: 1.08rem;
  margin: 1.6rem 0 0.6rem;
}
.prose ul,
.prose ol {
  padding-left: 1.2rem;
  margin-bottom: 1.2rem;
}
.prose li {
  margin-bottom: 0.4rem;
}
.prose .callout {
  background: var(--bi-pale);
  border-radius: 14px;
  padding: 1.1rem 1.25rem;
  margin: 1.6rem 0;
}
.prose .callout p:last-child {
  margin-bottom: 0;
}
.toc {
  position: sticky;
  top: 110px;
  font-size: 0.85rem;
}
.toc h4 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--bi-muted);
  margin-bottom: 0.8rem;
}
.toc a {
  display: block;
  padding: 0.35rem 0 0.35rem 0.85rem;
  color: var(--bi-muted);
  border-left: 2px solid var(--bi-line);
  font-weight: 600;
  transition:
    color 200ms ease,
    border-color 200ms ease;
}
.toc a:hover {
  color: var(--bi-navy);
}
.toc a.active {
  color: var(--bi-primary);
  border-left-color: var(--bi-primary);
}
.reading-progress {
  position: fixed;
  left: 0;
  top: 0;
  height: 3px;
  width: 100%;
  z-index: 1100;
  background: var(--bi-grad);
  transform-origin: 0 50%;
  transform: scaleX(0);
}

.post-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--bi-line);
  border-radius: 20px;
  overflow: hidden;
  height: 100%;
  box-shadow: var(--bi-shadow);
  color: inherit;
  transition:
    transform 250ms var(--ease-out),
    box-shadow 250ms ease;
}
.post-card .media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
}
.post-card .media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms var(--ease-out);
}
.post-card .body {
  padding: 1.4rem 1.5rem 1.6rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.post-card time {
  font-size: 0.78rem;
  color: var(--bi-muted);
  font-weight: 600;
}
.post-card h3 {
  font-size: 1.15rem;
  margin: 0.4rem 0 0.6rem;
}
.post-card p {
  font-size: 0.9rem;
}
.post-card .link-arrow {
  margin-top: auto;
}
@media (hover: hover) and (pointer: fine) {
  .post-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--bi-shadow-lg);
    color: inherit;
  }
  .post-card:hover .media img {
    transform: scale(1.04);
  }
}
.post-hero-img {
  border-radius: var(--bi-radius-lg);
  aspect-ratio: 21 / 9;
  object-fit: cover;
  width: 100%;
  box-shadow: var(--bi-shadow-lg);
  margin-top: -3rem;
  position: relative;
}

/* Our Faculty */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.faculty-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
  border: 1px solid var(--bi-line);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--bi-shadow);
  transition:
    transform 300ms var(--ease-out),
    box-shadow 300ms ease;
}
.faculty-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: var(--bi-grad);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 320ms var(--ease-out);
  z-index: 2;
}
.faculty-card:hover::before {
  transform: scaleX(1);
}
.faculty-card .media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--bi-pale);
}
.faculty-card .media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms var(--ease-out);
}
.faculty-card .subject-tag {
  position: absolute;
  left: 0.9rem;
  bottom: 0.9rem;
  background: rgba(13, 35, 49, 0.72);
  backdrop-filter: blur(4px);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 0.32rem 0.75rem;
  border-radius: 999px;
}
.faculty-card .body {
  padding: 1.4rem 1.5rem 1.6rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.faculty-card h3 {
  font-size: 1.15rem;
  margin: 0 0 0.2rem;
}
.faculty-card .role {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--bi-primary);
  margin-bottom: 0.7rem;
}
.faculty-card .bio {
  font-size: 0.88rem;
  color: var(--bi-muted);
  margin-bottom: 1.2rem;
}
.faculty-card .btn {
  margin-top: auto;
  align-self: flex-start;
}
@media (hover: hover) and (pointer: fine) {
  .faculty-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--bi-shadow-lg);
  }
  .faculty-card:hover .media img {
    transform: scale(1.06);
  }
}

.faculty-profile {
  position: relative;
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 2.5rem;
  align-items: start;
  background: #fff;
  border: 1px solid var(--bi-line);
  border-radius: var(--bi-radius-lg);
  padding: 2.5rem;
  box-shadow: var(--bi-shadow-lg);
  margin-top: -3rem;
}
.faculty-photo-wrap {
  position: relative;
}
.faculty-photo-wrap::before {
  content: "";
  position: absolute;
  inset: -16px;
  background: var(--bi-grad);
  border-radius: 26px;
  opacity: 0.2;
  filter: blur(20px);
  z-index: 0;
  animation: facultyBlobPulse 7s ease-in-out infinite alternate;
}
.faculty-photo {
  position: relative;
  z-index: 1;
  aspect-ratio: 4 / 5;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--bi-shadow);
}
.faculty-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.faculty-info .role {
  color: var(--bi-primary);
  font-weight: 700;
  margin: 0.2rem 0 1rem;
}
@keyframes facultyBlobPulse {
  from {
    transform: scale(1) rotate(0deg);
  }
  to {
    transform: scale(1.08) rotate(3deg);
  }
}
@media (max-width: 767.98px) {
  .faculty-profile {
    grid-template-columns: 1fr;
    padding: 1.9rem;
    text-align: center;
    margin-top: -2rem;
  }
  .faculty-photo-wrap {
    max-width: 220px;
    margin: 0 auto;
  }
  .faculty-info .chip-list {
    justify-content: center;
  }
  .faculty-info .d-flex {
    justify-content: center;
  }
}
@media (prefers-reduced-motion: reduce) {
  .faculty-photo-wrap::before {
    animation: none;
  }
}
.side-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.side-list a {
  display: block;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--bi-line);
  font-weight: 700;
  color: var(--bi-navy);
  font-size: 0.92rem;
}
.side-list a:hover,
.side-list a[aria-current] {
  color: var(--bi-primary);
}

/* Toast */
.toast-container {
  z-index: 1090;
}
.toast {
  border: 0;
  border-radius: 14px;
  box-shadow: var(--bi-shadow-lg);
  background: var(--bi-navy);
  color: #fff;
}
.toast:not(.show) {
  pointer-events: none;
}
.toast .toast-body {
  font-weight: 600;
  font-size: 0.9rem;
  display: flex;
  gap: 0.6rem;
  align-items: center;
}
.toast .bi {
  color: var(--bi-teal);
  font-size: 1.1rem;
}

/* 404 */
.nf {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 4rem 0;
}
.nf .big {
  font-size: clamp(6rem, 18vw, 11rem);
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 0.9;
  color: transparent;
  -webkit-text-stroke: 2px rgba(2, 144, 190, 0.4);
}

/* ---------- Scroll reveal ---------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 700ms var(--ease-out),
    transform 700ms var(--ease-out);
  transition-delay: var(--d, 0ms);
}
.js [data-reveal].in {
  opacity: 1;
  transform: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
  .section {
    padding: 4.5rem 0;
  }
  .hero {
    padding: 3rem 0 4rem;
  }
  .sticky-card,
  .toc {
    position: static;
  }
  .collage {
    margin: 0 auto 2.5rem;
  }
}
@media (max-width: 575.98px) {
  .brand-logo {
    height: 40px;
  }
  .cta-band {
    text-align: left;
  }
  .formula-panel {
    padding: 1.5rem;
  }
}

/* ---------- Reduced motion: gentler, not zero ---------- */
@media (prefers-reduced-motion: reduce) {
  .load-seq > *,
  .load-visual {
    animation: fadeOnly 300ms ease forwards;
    transform: none !important;
  }
  @keyframes fadeOnly {
    from {
      opacity: 0;
    }
    to {
      opacity: 1;
    }
  }
  .js [data-reveal] {
    transform: none;
    transition: opacity 300ms ease;
  }
  .feature-card,
  .lesson-card,
  .subject-card,
  .post-card,
  .faculty-card,
  .feature-card .media img,
  .post-card .media img,
  .faculty-card .media img,
  .t-slide .testimonial {
    transition: box-shadow 200ms ease;
    transform: none !important;
  }
  .t-track {
    transition: transform 200ms ease;
  }
  .dropdown-menu.show {
    animation: none;
  }
  .collapsing {
    transition: height 150ms ease;
  }
  .modal.fade .modal-dialog {
    transform: none;
  }
  html {
    scroll-behavior: auto !important;
  }
  .hero .pill-tag .dot::after {
    animation: none;
  }
}

/* Feedback for inputs wrapped in .pw-field */
.was-validated .pw-field:has(:invalid) ~ .invalid-feedback {
  display: block;
}
.was-validated .pw-field:has(:invalid) ~ .form-text {
  display: none;
}

/* Large gutters (g-5) are wider than container padding on phones: cap them */
@media (max-width: 767.98px) {
  .g-5,
  .gx-5 {
    --bs-gutter-x: 1.5rem;
  }
  .g-5,
  .gy-5 {
    --bs-gutter-y: 2.5rem;
  }
}
body {
  overflow-x: clip;
}
.library-row .row-head .link-arrow {
  white-space: nowrap;
}
@media (max-width: 575.98px) {
  .fact-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }
  .fact {
    min-width: 0;
  }
}

/* ==========================================================================
   Hero: course switcher (v7 redesign)
   Stacked crossfade slides + course rail with autoplay progress.
   Motion: transform/opacity only, ease-out entrances, reduced-motion safe.
   ========================================================================== */
.hero-slider-section {
  padding: clamp(1.75rem, 3vw, 2.5rem) 0 5.25rem;
  isolation: isolate;
}
.hero-slider-section::before {
  display: none;
}

/* Ambient background: graph paper + two slow orbs */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}
.hero-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(2, 144, 190, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(2, 144, 190, 0.07) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(60% 70% at 78% 40%, #000 0%, transparent 72%);
  mask-image: radial-gradient(60% 70% at 78% 40%, #000 0%, transparent 72%);
}
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.55;
  animation: heroOrb 18s ease-in-out infinite alternate;
}
.hero-orb.orb-1 {
  width: 420px;
  height: 420px;
  right: 6%;
  top: -12%;
  background: rgba(60, 196, 196, 0.38);
}
.hero-orb.orb-2 {
  width: 360px;
  height: 360px;
  left: -8%;
  bottom: -18%;
  background: rgba(10, 166, 214, 0.22);
  animation-duration: 22s;
  animation-direction: alternate-reverse;
}
@keyframes heroOrb {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(-40px, 30px, 0) scale(1.08);
  }
}

/* Stack slides in one grid cell: tallest slide sets the height, no layout jump */
.hero-slider {
  position: relative;
  z-index: 1;
}
.hero-slider-track {
  display: grid;
}
.hero-slide {
  grid-area: 1 / 1;
  min-width: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 260ms ease,
    visibility 0s linear 260ms;
}
.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: 1;
  transition: opacity 260ms ease;
}
.hero-slide-copy {
  max-width: 620px;
}

/* Title: per-word mask reveal */
.hero-title {
  font-size: clamp(2.3rem, 4.3vw, 3.6rem);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.04em;
  margin: 50px 0 1.35rem;
}
.hero-title--long {
  font-size: clamp(2.05rem, 3.5vw, 2.9rem);
}
.hero-title .hw {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding: 0 0.02em 0.1em;
  margin-bottom: -0.1em;
}
.hero-title .hw > span {
  display: inline-block;
}
.hero-code {
  color: var(--bi-navy);
}

/* One icon style for the whole hero: 38px tile, white, brand-blue glyph */
.hero-slider .hi {
  flex: none;
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border-radius: 11px;
  background: #fff;
  border: 1px solid var(--bi-line);
  box-shadow:
    0 1px 2px rgba(16, 45, 61, 0.05),
    0 4px 10px rgba(16, 45, 61, 0.05);
  color: var(--bi-primary);
  font-size: 1.05rem;
  line-height: 1;
}
.hero-slider .hi .bi {
  display: block;
  line-height: 1;
}

/* Feature grid */
.hero-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bi-primary);
  margin-bottom: 0.35rem;
}
.hero-label::after {
  content: "";
  flex: 1;
  max-width: 220px;
  height: 1px;
  background: linear-gradient(90deg, var(--bi-line-strong), transparent);
}
.hero-feats {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap:10px;
}
.hero-feats li {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--bi-line);
  min-width: 0;
}
.hero-feats strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.25;
  color: var(--bi-navy);
  letter-spacing: -0.005em;
}
.hero-feats small {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--bi-muted);
}

/* Actions */
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 0.7rem;
  margin-top: 1.6rem;
}
.hero-actions .btn {
  padding: 0.82rem 1.45rem;
  font-size: 0.94rem;
}
.hero-cta {
  position: relative;
  overflow: hidden;
}
.hero-cta::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -60%;
  width: 40%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: skewX(-18deg);
  transition: transform 700ms var(--ease-out);
  pointer-events: none;
}
@media (hover: hover) and (pointer: fine) {
  .hero-cta:hover::after {
    transform: skewX(-18deg) translateX(420%);
  }
}

/* Visual: dark "exam board" */
.hero-visual {
  position: relative;
  max-width: 410px;
  margin: 0 auto;
  isolation: isolate;
}
.hero-glyph {
  position: absolute;
  right: -22%;
  top: -30%;
  z-index: -1;
  font-family: var(--bi-math);
  font-style: italic;
  font-size: clamp(14rem, 24vw, 21rem);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(2, 144, 190, 0.13);
  pointer-events: none;
  user-select: none;
}
.hero-board {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  padding: 1.35rem;
  color: #fff;
  background:
    radial-gradient(420px 220px at 100% 0%, rgba(60, 196, 196, 0.28), transparent 65%),
    var(--bi-grad-panel);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.08),
    0 40px 80px -28px rgba(4, 30, 46, 0.55),
    0 12px 24px -12px rgba(4, 30, 46, 0.3);
  transform: perspective(1000px) rotateX(0deg) rotateY(0deg);
  transition: transform 600ms var(--ease-out);
  will-change: transform;
}
.hero-board::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 70%);
  mask-image: linear-gradient(180deg, #000, transparent 70%);
  pointer-events: none;
}
.hero-board > * {
  position: relative;
}
.hb-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}
.hb-code {
  font-size: clamp(3.2rem, 6vw, 4.2rem);
  font-weight: 800;
  line-height: 0.85;
  letter-spacing: -0.05em;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.6);
}
.hb-subject {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  max-width: 60%;
  font-weight: 700;
  font-size: 0.76rem;
  line-height: 1.3;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
}
.hb-chart {
  margin: 1rem 0 0.8rem;
  padding: 0.65rem 0.85rem 0.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
}
.hb-chart figcaption {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.35rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}
.hb-chart figcaption em {
  font-family: var(--bi-math);
  font-style: italic;
  font-size: 1rem;
  letter-spacing: 0;
  text-transform: none;
  color: #fff;
}
.hb-chart svg {
  display: block;
  width: 100%;
  height: 74px;
  overflow: visible;
}
.hb-grid line {
  stroke: rgba(255, 255, 255, 0.1);
  stroke-width: 1;
  stroke-dasharray: 3 5;
}
.hb-line {
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
}
.hb-bar {
  fill: rgba(255, 255, 255, 0.14);
  transform-box: fill-box;
  transform-origin: 50% 100%;
}
.hb-formulas {
  list-style: none;
  margin: 0 0 0.15rem;
  padding: 0;
  display: grid;
  gap: 0.38rem;
}
.hb-formulas li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--bi-math);
  font-style: italic;
  font-size: 1rem;
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 11px;
  padding: 0.4rem 0.7rem;
  transition: background-color 200ms ease;
}
.hb-formulas li:hover {
  background: rgba(255, 255, 255, 0.12);
}
.hb-formulas .fx {
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.14);
  font-style: normal;
  font-family: var(--bi-font);
  font-weight: 800;
  font-size: 0.66rem;
  color: #fff;
}

/* ---------- Entrance choreography (only when JS is running) ---------- */
.js .hero-slide [data-anim],
.js .hero-slide .hero-title .hw > span,
.js .hero-slide .hero-board,
.js .hero-slide .hero-glyph,
.js .hero-slide .hb-formulas li {
  opacity: 0;
  transition:
    opacity 220ms ease,
    translate 220ms ease,
    scale 220ms ease;
}
.js .hero-slide [data-anim] {
  translate: 0 16px;
}
.js .hero-slide .hero-title .hw > span {
  opacity: 1;
  translate: 0 110%;
}
.js .hero-slide .hero-board {
  translate: 0 24px;
  scale: 0.97;
}
.js .hero-slide .hero-glyph {
  translate: 30px 0;
}
.js .hero-slide .hb-formulas li {
  translate: -10px 0;
}
.js .hero-slide .hb-line {
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 200ms ease;
}
.js .hero-slide .hb-area {
  opacity: 0;
  transition: opacity 200ms ease;
}
.js .hero-slide .hb-bar {
  scale: 1 0;
  transition: scale 200ms ease;
}

.js .hero-slider.is-ready .hero-slide.is-active [data-anim],
.js .hero-slider.is-ready .hero-slide.is-active .hero-board,
.js .hero-slider.is-ready .hero-slide.is-active .hero-glyph,
.js .hero-slider.is-ready .hero-slide.is-active .hb-formulas li {
  opacity: 1;
  translate: 0 0;
  scale: 1;
}
.js .hero-slider.is-ready .hero-slide.is-active .hero-title .hw > span {
  translate: 0 0;
}
.js .hero-slider.is-ready .hero-slide.is-active [data-anim] {
  transition:
    opacity 500ms ease-out,
    translate 700ms var(--ease-out);
  transition-delay: calc(var(--i, 0) * 60ms + 80ms);
}
.js .hero-slider.is-ready .hero-slide.is-active .hero-title .hw > span {
  transition: translate 800ms var(--ease-out);
  transition-delay: calc(var(--w, 0) * 60ms + 120ms);
}
.js .hero-slider.is-ready .hero-slide.is-active .hero-board {
  transition:
    opacity 600ms ease-out 120ms,
    translate 900ms var(--ease-out) 120ms,
    scale 900ms var(--ease-out) 120ms;
}
.js .hero-slider.is-ready .hero-slide.is-active .hero-glyph {
  transition:
    opacity 900ms ease-out 200ms,
    translate 1200ms var(--ease-out) 200ms;
}
.js .hero-slider.is-ready .hero-slide.is-active .hb-formulas li {
  transition:
    opacity 450ms ease-out,
    translate 600ms var(--ease-out),
    background-color 200ms ease;
  transition-delay: calc(var(--i, 0) * 80ms + 520ms), calc(var(--i, 0) * 80ms + 520ms), 0ms;
}
.js .hero-slider.is-ready .hero-slide.is-active .hb-line {
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 1400ms var(--ease-out) 380ms;
}
.js .hero-slider.is-ready .hero-slide.is-active .hb-area {
  opacity: 1;
  transition: opacity 900ms ease-out 900ms;
}
.js .hero-slider.is-ready .hero-slide.is-active .hb-bar {
  scale: 1 1;
  transition: scale 600ms var(--ease-out);
  transition-delay: calc(var(--b, 0) * 45ms + 420ms);
}

/* ---------- Slider navigation: side arrows + progress dots ---------- */
.hero-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: clamp(1.75rem, 3vw, 2.5rem);
}
.hero-dots {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.hero-dot {
  position: relative;
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(16, 45, 61, 0.16);
  transition:
    width 450ms var(--ease-out),
    background-color 250ms ease;
}
.hero-dot::before {
  content: "";
  position: absolute;
  inset: -8px -4px;
} /* larger hit area */
@media (hover: hover) and (pointer: fine) {
  .hero-dot:not(.is-active):hover {
    background: rgba(2, 144, 190, 0.45);
  }
}
.hero-dot.is-active {
  width: 44px;
  background: rgba(2, 144, 190, 0.18);
}
.hero-dot .ht-progress {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  overflow: hidden;
}
.hero-dot .ht-progress span {
  display: block;
  height: 100%;
  background: var(--bi-grad);
  transform: scaleX(0);
  transform-origin: 0 50%;
}
.hero-dot.is-active .ht-progress span {
  animation: heroProgress var(--hero-dur, 6500ms) linear forwards;
}
.hero-slider.is-paused .hero-dot.is-active .ht-progress span {
  animation-play-state: paused;
}
@keyframes heroProgress {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

.hero-slider-arrow {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--bi-line-strong);
  background: rgba(255, 255, 255, 0.9);
  color: var(--bi-primary);
  font-size: 1rem;
  box-shadow: 0 6px 18px rgba(16, 45, 61, 0.08);
  transition:
    background-color 200ms ease,
    color 200ms ease,
    border-color 200ms ease,
    transform 160ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .hero-slider-arrow:hover {
    background: var(--bi-grad);
    color: #fff;
    border-color: transparent;
  }
}
.hero-slider-arrow:active {
  transform: scale(0.94);
}

/* Wide screens: arrows sit on the left/right edges of the slider, outside the content */
@media (min-width: 1320px) {
  .hero-nav-wrap,
  .hero-nav {
    position: static;
  }
  .hero-slider-arrow {
    position: absolute;
    top: calc(50% - 52px);
    width: 52px;
    height: 52px;
    font-size: 1.15rem;
    z-index: 3;
  }
  .hero-prev {
    left: max(16px, calc((100% - 1180px) / 2 - 76px));
  }
  .hero-next {
    right: max(16px, calc((100% - 1180px) / 2 - 76px));
  }
  .hero-slider-arrow:active {
    transform: scale(0.94);
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 1199.98px) {
  .hero-feats {
    column-gap: 1.25rem;
  }
}
@media (max-width: 991.98px) {
  .hero-slider-section {
    padding-bottom: 5rem;
  }
  .hero-slide-copy {
    max-width: none;
  }
  .hero-visual {
    max-width: 400px;
    margin-top: 0.5rem;
  }
  .hero-glyph {
    right: -12%;
    top: -22%;
    font-size: 15rem;
  }
}
@media (max-width: 575.98px) {
  .hero-feats {
    grid-template-columns: 1fr;
  }
  .hero-feats li {
    padding: 0.6rem 0;
  }
  .hero-actions .btn {
    flex: 1 1 auto;
  }
  .hero-board {
    padding: 1.15rem;
    border-radius: 22px;
  }
  .hb-subject {
    font-size: 0.7rem;
  }
  .hero-glyph {
    display: none;
  }
  .hero-slider-arrow {
    width: 38px;
    height: 38px;
    font-size: 0.95rem;
  }
}

/* Short laptop screens: keep everything above the fold */
@media (min-width: 992px) and (max-height: 820px) {
  .hero-slider-section {
    padding-top: 1.5rem;
  }
  .hero-title {
    font-size: clamp(2.1rem, 3.6vw, 3rem);
    margin-bottom: 1rem;
  }
  .hero-title--long {
    font-size: clamp(1.9rem, 3vw, 2.45rem);
  }
  .hero-feats li {
    padding: 1rem 0;
  }
  .hero-actions {
    margin-top: 1.2rem;
  }
  .hero-visual {
    max-width:100%;
  }
  .hero-board {
    padding: 1.15rem;
  }
  .hb-code {
    font-size: 3.4rem;
  }
  .hb-chart {
    margin: 0.8rem 0 0.65rem;
  }
  .hb-chart svg {
    height: 62px;
  }
  .hero-nav {
    margin-top: 1.4rem;
  }
}

/* ---------- Reduced motion: fades only ---------- */
@media (prefers-reduced-motion: reduce) {
  .hero-orb {
    animation: none !important;
  }
  .js .hero-slide [data-anim],
  .js .hero-slide .hero-title .hw > span,
  .js .hero-slide .hero-board,
  .js .hero-slide .hero-glyph,
  .js .hero-slide .hb-formulas li {
    translate: none !important;
    scale: none !important;
    transition-property: opacity !important;
    transition-duration: 250ms !important;
    transition-delay: 0ms !important;
  }
  .js .hero-slide .hb-line {
    stroke-dashoffset: 0;
    transition: none !important;
  }
  .js .hero-slide .hb-bar {
    scale: none;
  }
  .hero-board {
    transition: none;
  }
  .hero-dot {
    transition: background-color 200ms ease;
  }
}

/* ==========================================================================
   v10 final polish — document alignment, responsive cleanup and live-ready UI
   Keeps the existing Manrope typography and Briavel colour tokens unchanged.
   ========================================================================== */

/* Better anchor positioning below the sticky header. */
[id] {
  scroll-margin-top: 92px;
}

/* Prevent long course names, equations and contact details from forcing overflow. */
main,
.site-footer,
.offcanvas {
  overflow-wrap: anywhere;
}
.math,
.formula-panel li,
.hb-formulas li {
  overflow-wrap: normal;
  word-break: normal;
}

/* Consistent section rhythm without changing the visual system. */
.section {
  padding-block: clamp(4.25rem, 7vw, 6rem);
}
.section-sm {
  padding-block: clamp(3rem, 5vw, 4rem);
}
.section-head {
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

/* About Me refinements. */
.about-hero-refined {
  padding-block: clamp(3.75rem, 7vw, 6.25rem);
}
.about-hero-refined .about-portrait {
  width: min(410px, 90%);
}
.about-hero-refined .hero-portrait-photo {
  aspect-ratio: 4 / 5;
  border-radius: 28px;
}
.about-hero-refined .hero-portrait-photo img {
  object-fit: cover;
  object-position: 50% 14%;
}
.about-portrait-name {
  position: relative;
  z-index: 2;
  width: max-content;
  margin: 1rem auto 0;
  padding: 0.48rem 1.1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.24);
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.04em;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 12px 28px rgba(2, 15, 22, 0.18);
}
.about-stats-wrap {
  position: relative;
  z-index: 3;
  margin-top: -2.1rem;
}
.about-copy-panel {
  background: #fff;
  border: 1px solid var(--bi-line);
  border-radius: var(--bi-radius-lg);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  box-shadow: var(--bi-shadow);
}
.about-copy-panel p {
  font-size: clamp(1rem, 1.4vw, 1.08rem);
}
.vision-card-refined {
  min-height: 100%;
}

/* Student Corner: source-led cards with no visible placeholder copy. */
.student-resource-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.student-resource-grid .resource-card {
  position: relative;
  min-height: 180px;
  justify-content: flex-start;
  padding: clamp(1.25rem, 2.4vw, 1.65rem);
  transition:
    transform 260ms var(--ease-out),
    box-shadow 260ms ease,
    border-color 260ms ease;
}
.student-resource-grid .resource-card-wide {
  grid-column: span 3;
  min-height: auto;
}
.resource-card-link {
  color: inherit;
}
.resource-card-link:hover {
  color: inherit;
}
.resource-card-link .resource-arrow {
  position: absolute;
  right: 1.25rem;
  top: 1.25rem;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--bi-pale);
  color: var(--bi-primary);
  transition:
    transform 240ms var(--ease-out),
    background-color 240ms ease,
    color 240ms ease;
}
.useful-link-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.4rem 1rem;
  margin-top: 0.25rem;
}
.student-scroll-row {
  padding-bottom: 1.25rem;
  scrollbar-width: thin;
  scrollbar-color: var(--bi-line-strong) transparent;
}
.student-scroll-row .mini-testimonial {
  width: min(320px, calc(100vw - 3rem));
}
.student-scroll-row .mini-post {
  width: min(290px, calc(100vw - 3rem));
  min-height: 92px;
  display: flex;
  align-items: center;
}
.student-blog-strip .mini-post strong {
  font-size: 0.96rem;
  line-height: 1.42;
}

/* Locked notes replace unfinished placeholder accordions. */
.cp-notes-locked {
  margin-top: 0;
}
.notes-lock-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.9rem;
  padding: 1rem;
  border: 1px solid var(--bi-line);
  border-radius: 14px;
  background: var(--bi-pale-2);
}
.notes-lock-card .note-lock-icon {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: #fff;
  color: var(--bi-primary);
  border: 1px solid var(--bi-line);
  box-shadow: 0 4px 12px rgba(16, 45, 61, 0.06);
}
.notes-lock-card strong {
  display: block;
  color: var(--bi-navy);
  font-size: 0.9rem;
}
.notes-lock-card p {
  font-size: 0.8rem;
  margin-top: 0.1rem;
}

/* Make course cards and pricing cards feel deliberate on touch and pointer devices. */
.subject-card,
.plan-card,
.content-card,
.resource-card,
.mini-post,
.mini-testimonial {
  transform: translateZ(0);
}
@media (hover: hover) and (pointer: fine) {
  .student-resource-grid .resource-card-link:hover {
    transform: translateY(-5px);
    box-shadow: var(--bi-shadow-lg);
    border-color: rgba(2, 144, 190, 0.22);
  }
  .student-resource-grid .resource-card-link:hover .resource-arrow {
    transform: translate(2px, -2px);
    background: var(--bi-primary);
    color: #fff;
  }
  .mini-post {
    transition:
      transform 220ms var(--ease-out),
      box-shadow 220ms ease,
      border-color 220ms ease;
  }
  .mini-post:hover {
    transform: translateY(-4px);
    box-shadow: var(--bi-shadow);
    border-color: rgba(2, 144, 190, 0.22);
  }
}

/* Tap targets and form controls. */
@media (pointer: coarse) {
  .btn,
  .navbar-toggler,
  .t-btn,
  .hero-slider-arrow {
    min-height: 44px;
  }
  .offcanvas .mobile-nav a {
    min-height: 48px;
  }
}

/* Tablet and mobile. */
@media (max-width: 991.98px) {
  .student-resource-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .student-resource-grid .resource-card-wide {
    grid-column: span 2;
  }
  .useful-link-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .about-stats-wrap {
    margin-top: -1.5rem;
  }
  .about-hero-refined .about-portrait {
    margin-top: 1rem;
  }
}

@media (max-width: 767.98px) {
  .student-resource-grid {
    grid-template-columns: 1fr;
  }
  .student-resource-grid .resource-card-wide {
    grid-column: auto;
  }
  .student-resource-grid .resource-card {
    min-height: 138px;
  }
  .useful-link-grid {
    grid-template-columns: 1fr 1fr;
  }
  .notes-lock-card {
    grid-template-columns: auto minmax(0, 1fr);
  }
  .notes-lock-card .btn {
    grid-column: 1 / -1;
    width: 100%;
  }
  .about-stats-wrap .stats-bar .stat:last-child {
    border-top: 1px solid var(--bi-line);
  }
}

@media (max-width: 575.98px) {
  .section {
    padding-block: 3.75rem;
  }
  .section-sm {
    padding-block: 2.75rem;
  }
  .page-hero {
    padding-block: 3.25rem;
  }
  .display-title {
    font-size: clamp(1.8rem, 9vw, 2.35rem);
  }
  .page-title {
    font-size: clamp(2rem, 10vw, 2.75rem);
  }
  .about-hero-refined {
    text-align: left;
    padding-bottom: 4.75rem;
  }
  .about-hero-refined .crumbs {
    justify-content: flex-start;
  }
  .about-hero-refined .lede {
    margin-left: 0;
    margin-right: 0;
  }
  .about-hero-refined .about-portrait {
    width: min(330px, 86vw);
    margin-inline: auto;
  }
  .about-stats-wrap {
    margin-top: -1.15rem;
  }
  .useful-link-grid {
    grid-template-columns: 1fr;
  }
  .student-scroll-row {
    margin-inline: -1rem;
    padding-inline: 1rem;
    scroll-padding-inline: 1rem;
  }
  .hero-actions {
    width: 100%;
  }
  .hero-actions .btn {
    width: 100%;
  }
  .fact-row {
    gap: 0.55rem;
  }
  .fact {
    padding: 0.9rem 0.7rem;
  }
  .fact .v {
    font-size: 1.05rem;
  }
  .pricing-modal .modal-header {
    align-items: flex-start;
  }
}

/* Keep all new motion respectful of reduced-motion preferences. */
@media (prefers-reduced-motion: reduce) {
  .student-resource-grid .resource-card,
  .resource-card-link .resource-arrow,
  .mini-post {
    transition: none !important;
    transform: none !important;
  }
}

/* v10 production overflow safeguards */
html {
  overflow-x: hidden;
}
@media (max-width: 575.98px) {
  .student-scroll-row {
    margin-inline: 0;
    padding-inline: 0;
    scroll-padding-inline: 0;
  }
}

/* ========================================================================== 
   Student Corner — clean resource hub
   Scoped to .page-student-corner to keep all other pages unchanged.
   ========================================================================== */
.page-student-corner .sc-hero {
  padding-block: clamp(3.8rem, 7vw, 5.8rem);
  background:
    radial-gradient(680px 330px at 100% 0%, rgba(43, 179, 184, 0.12), transparent 67%),
    linear-gradient(180deg, #f4fcfe 0%, #fbfeff 100%);
}
.page-student-corner .sc-hero .glyph {
  opacity: 0.58;
}
.page-student-corner .sc-hero-eyebrow {
  margin-top: 0.35rem;
  margin-bottom: 0.65rem;
}
.page-student-corner .sc-hero .page-title {
  max-width: 780px;
}
.page-student-corner .sc-hero .lede {
  max-width: 70ch;
}

.page-student-corner .sc-hero-index {
  width: min(100%, 330px);
  margin-left: auto;
  border: 1px solid var(--bi-line-strong);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: var(--bi-shadow);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  overflow: hidden;
}
.page-student-corner .sc-hero-index > div {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 0.08rem 0.8rem;
  align-items: center;
  padding: 1rem 1.15rem;
}
.page-student-corner .sc-hero-index > div + div {
  border-top: 1px solid var(--bi-line);
}
.page-student-corner .sc-hero-index span {
  grid-row: 1 / 3;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  color: var(--bi-primary);
}
.page-student-corner .sc-hero-index strong {
  color: var(--bi-navy);
  font-size: 0.92rem;
}
.page-student-corner .sc-hero-index small {
  color: var(--bi-muted);
  font-size: 0.75rem;
}

.page-student-corner .sc-section-head {
  max-width: 760px;
}
.page-student-corner .sc-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-template-areas:
    "tips tips tips updates updates updates"
    "prep prep video video insights insights"
    "resources resources faq faq links links";
  gap: 1.75rem;
}
.page-student-corner .sc-grid-tips {
  grid-area: tips;
}
.page-student-corner .sc-grid-video {
  grid-area: video;
}
.page-student-corner .sc-grid-updates {
  grid-area: updates;
}
.page-student-corner .sc-grid-prep {
  grid-area: prep;
}
.page-student-corner .sc-grid-insights {
  grid-area: insights;
}
.page-student-corner .sc-grid-resources {
  grid-area: resources;
}
.page-student-corner .sc-grid-faq {
  grid-area: faq;
}
.page-student-corner .sc-grid-links {
  grid-area: links;
}
.page-student-corner .sc-grid-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--bi-line-strong);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(16, 45, 61, 0.09);
  overflow: hidden;
  padding: 1.5rem;
  transition: box-shadow 220ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .page-student-corner .sc-grid-card:hover {
    box-shadow: 0 14px 34px rgba(16, 45, 61, 0.14);
  }
}
.page-student-corner .sc-grid-video.sc-grid-card {
  padding: 0;
}
.page-student-corner .sc-grid-head {
  display: flex;
  gap: 0.85rem;
  align-items: center;
  margin-bottom: 1.1rem;
}
.page-student-corner .sc-panel-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  background: var(--bi-grad);
  color: #fff;
  font-size: 1.05rem;
}
.page-student-corner .sc-grid-head h3 {
  margin: 0;
  font-size: 1.1rem;
}
.page-student-corner .sc-grid-text {
  color: var(--bi-muted);
  font-size: 0.88rem;
  line-height: 1.55;
  margin-bottom: 1rem;
}
.page-student-corner .sc-grid-link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--bi-primary);
  font-size: 0.85rem;
  font-weight: 800;
}
.page-student-corner .sc-grid-video .video-card {
  border-radius: 0;
  box-shadow: none;
}
.page-student-corner .sc-video-slider {
  --t-ipv: 1;
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.page-student-corner .sc-video-slider .t-track {
  transition-duration: 480ms;
}
.page-student-corner .sc-video-arrows {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 0.65rem;
  pointer-events: none;
}
.page-student-corner .sc-video-arrow {
  pointer-events: auto;
  flex: none;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.05rem;
  color: #fff;
  background: rgba(13, 35, 49, 0.45);
  transition:
    background-color 200ms ease,
    transform 160ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .page-student-corner .sc-video-arrow:hover {
    background: var(--bi-primary);
  }
}
.page-student-corner .sc-video-arrow:active {
  transform: scale(0.92);
}
.page-student-corner .sc-video-arrow:disabled {
  opacity: 0.4;
  pointer-events: none;
}
.page-student-corner .sc-video-footer {
  margin-top: auto;
  padding: 0.75rem 1.5rem 1.5rem;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
}
.page-student-corner .sc-video-note {
  margin: 0;
  color: var(--bi-muted);
  font-size: 0.8rem;
  line-height: 1.5;
}
.page-student-corner .sc-video-note a {
  color: var(--bi-primary);
  font-weight: 700;
  white-space: nowrap;
}
.page-student-corner .sc-video-dots {
  margin: 0;
  flex: none;
}
.page-student-corner .sc-faq-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.42rem;
  margin-top: 0.45rem;
}
.page-student-corner .sc-faq-links a {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0.24rem 0.62rem;
  border: 1px solid var(--bi-line-strong);
  border-radius: 999px;
  background: #fff;
  color: var(--bi-navy);
  font-size: 0.72rem;
  font-weight: 800;
}
.page-student-corner .sc-faq-links a:hover {
  color: var(--bi-primary);
  border-color: rgba(2, 144, 190, 0.35);
}

@media (max-width: 991.98px) {
  .page-student-corner .sc-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-areas:
      "tips updates"
      "prep video"
      "insights resources"
      "faq links";
  }
}

@media (max-width: 575.98px) {
  .page-student-corner .sc-grid {
    grid-template-columns: 1fr;
    grid-template-areas: none;
  }
  .page-student-corner .sc-grid-card {
    grid-area: auto;
  }
}

.page-student-corner .sc-lessons-section {
  position: relative;
  overflow: hidden;
}
.page-student-corner .sc-lessons-section::before {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  right: -190px;
  top: -190px;
  border: 1px solid rgba(2, 144, 190, 0.1);
  box-shadow:
    0 0 0 44px rgba(2, 144, 190, 0.025),
    0 0 0 88px rgba(2, 144, 190, 0.018);
  pointer-events: none;
}
.page-student-corner .sc-lessons-section > .container {
  position: relative;
  z-index: 1;
}
.page-student-corner .sc-video-card {
  height: 100%;
}
.page-student-corner .sc-video-card .video-card {
  border-radius: 16px;
  box-shadow: 0 8px 26px rgba(16, 45, 61, 0.07);
}
.page-student-corner .sc-video-copy {
  padding: 0.9rem 0.15rem 0;
}
.page-student-corner .sc-video-copy span {
  display: block;
  color: var(--bi-primary);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.22rem;
}
.page-student-corner .sc-video-copy strong {
  display: block;
  color: var(--bi-navy);
  font-size: 0.88rem;
  line-height: 1.42;
}

.page-student-corner .sc-stories-section {
  background: #fff;
}
.page-student-corner .sc-testimonial-slider .testimonial {
  min-height: 260px;
}
.page-student-corner .sc-testimonial-slider blockquote {
  font-size: 0.9rem;
  line-height: 1.65;
}

.page-student-corner .sc-articles-section {
  background: #f8fcfd;
}
.page-student-corner .sc-article-list {
  border-top: 1px solid var(--bi-line-strong);
}
.page-student-corner .sc-article-row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  min-height: 82px;
  padding: 1rem 0.2rem;
  border-bottom: 1px solid var(--bi-line-strong);
  color: inherit;
  transition:
    padding 220ms var(--ease-out),
    background-color 200ms ease;
}
.page-student-corner .sc-article-row:hover {
  color: inherit;
}
.page-student-corner .sc-article-no {
  color: var(--bi-primary);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
}
.page-student-corner .sc-article-row strong {
  color: var(--bi-navy);
  font-size: clamp(0.95rem, 1.5vw, 1.08rem);
}
.page-student-corner .sc-article-action {
  color: var(--bi-navy);
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}
.page-student-corner .sc-article-action i {
  color: var(--bi-primary);
  margin-left: 0.25rem;
}
.video-card .cap{
  padding-bottom:0px;
}

@media (hover: hover) and (pointer: fine) {
  .page-student-corner .sc-article-row:hover {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
    background: rgba(255, 255, 255, 0.72);
  }
}

@media (max-width: 767.98px) {
  .page-student-corner .sc-grid-card {
    padding: 1.2rem;
  }
  .page-student-corner .sc-article-row {
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 0.65rem;
    min-height: 76px;
  }
  .page-student-corner .sc-article-action {
    display: none;
  }
}

@media (max-width: 575.98px) {
  .page-student-corner .sc-hero {
    padding-block: 3.1rem 3.6rem;
  }
  .page-student-corner .sc-hero .lede {
    font-size: 0.96rem;
  }
  .page-student-corner .sc-grid {
    gap: 1.1rem;
  }
  .page-student-corner .sc-video-copy {
    padding-top: 0.75rem;
  }
  .page-student-corner .sc-video-arrow {
    width: 34px;
    height: 34px;
    font-size: 0.95rem;
  }
  .page-student-corner .sc-video-footer {
    flex-wrap: wrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-student-corner .sc-article-row {
    transition: none !important;
    transform: none !important;
  }
}

/* Keep Student Corner video thumbnails at their natural 16:9 height.
   The global .video-card uses height:100% for other layouts, which would
   otherwise push these captions outside their Bootstrap columns. */
.page-student-corner .sc-video-card .video-card {
  height: auto;
}

/* ---------- Course curriculum: numbered modules and chapters ---------- */
.module-head.accordion-button { gap: 0.85rem; }
.module-head .mod-no {
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 0.95rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, var(--bi-primary), var(--bi-primary-dark));
  box-shadow: 0 6px 14px rgba(2, 144, 190, 0.25);
}
.module-head .mod-title { min-width: 0; }
.module-head .count,
.bi-accordion .chap-item .accordion-button .count {
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  background: var(--bi-pale-2);
  color: var(--bi-primary-dark);
  font-weight: 700;
}
.module-head.accordion-button:not(.collapsed) .count { background: #fff; }
.bi-accordion .chap-item .accordion-button {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
}
.bi-accordion .chap-item .chap-no {
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1;
  font-size: 1rem;
  font-weight: 800;
  color: var(--bi-primary-dark);
  background: var(--bi-pale-2);
  border: 1px solid var(--bi-line);
  font-variant-numeric: tabular-nums;
}
.bi-accordion .chap-item .chap-no small {
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--bi-muted);
  margin-bottom: 2px;
}
.bi-accordion .chap-item .accordion-button:not(.collapsed) .chap-no {
  color: #fff;
  background: var(--bi-primary);
  border-color: var(--bi-primary);
}
.bi-accordion .chap-item .accordion-button:not(.collapsed) .chap-no small { color: rgba(255, 255, 255, 0.8); }
.bi-accordion .chap-item .chap-title { flex: 1 1 auto; min-width: 0; font-weight: 700; }
.bi-accordion .chap-item .accordion-button .count { margin-left: 0; margin-right: 0.4rem; }
.bi-accordion .chap-item.chap-empty .accordion-button { cursor: default; opacity: 0.7; }
.bi-accordion .chap-item.chap-empty .accordion-button::after { display: none; }
.bi-accordion .chap-item.chap-empty .count { background: transparent; border: 1px dashed var(--bi-line-strong); color: var(--bi-muted); }
.chap-item .class-list { padding-left: calc(1.25rem + 42px + 0.85rem); }
@media (max-width: 575.98px) {
  .module-head.accordion-button { flex-wrap: wrap; }
  .module-head .count { order: 3; margin-left: calc(38px + 0.85rem); }
  .bi-accordion .chap-item .accordion-button { flex-wrap: wrap; row-gap: 0.4rem; }
  .bi-accordion .chap-item .chap-title { flex-basis: calc(100% - 42px - 2.5rem); }
  .bi-accordion .chap-item .accordion-button .count { margin-left: calc(42px + 0.85rem); }
  .chap-item .class-list { padding-left: 1.25rem; }
}

/* ---------- Course page: 15 second YouTube class preview ---------- */
.cp-stage { user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.cp-stage .cp-yt { position: absolute; inset: 0; overflow: hidden; background: #000; }
/* the frame is taller than the stage so YouTube's title bar and logo sit outside the visible area */
.cp-stage .cp-yt iframe { position: absolute; left: 0; top: -60px; width: 100%; height: calc(100% + 120px); border: 0; pointer-events: none; }
.cp-stage .cp-shield { position: absolute; inset: 0; z-index: 1; cursor: pointer; background: transparent; }
.cp-stage .cp-play {
  position: absolute; left: 50%; top: 50%; z-index: 2; transform: translate(-50%, -50%);
  width: 64px; height: 64px; border-radius: 50%; border: 0; display: grid; place-items: center;
  font-size: 2rem; color: #fff; background: rgba(2, 144, 190, 0.92); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  transition: opacity 200ms ease, transform 200ms ease;
}
.cp-stage .cp-play i { margin-left: 4px; }
.cp-stage.is-playing .cp-play { opacity: 0; pointer-events: none; transform: translate(-50%, -50%) scale(0.9); }
.cp-stage:not(.is-playing):hover .cp-play { transform: translate(-50%, -50%) scale(1.05); }
.cp-stage .cp-loading { position: absolute; inset: 0; z-index: 2; display: none; place-items: center; color: #fff; background: rgba(0, 0, 0, 0.35); }
.cp-stage.is-loading .cp-loading { display: grid; }
.cp-stage.is-loading .cp-play { opacity: 0; }
.cp-stage .cp-novideo {
  position: absolute; inset: 0; z-index: 3; display: none; place-items: center; text-align: center; padding: 1.4rem;
  color: rgba(255, 255, 255, 0.85); font-size: 0.88rem; background: rgba(13, 35, 49, 0.96);
}
.cp-stage .cp-novideo i { display: block; font-size: 1.6rem; margin-bottom: 0.5rem; color: #7fd6e6; }
.cp-stage .cp-novideo.show { display: grid; }
@media print { .class-preview, .cp-stage { display: none !important; } }
