.course-page {
  --course-primary: #4b86c6;
  --course-primary-dark: #263766;
  --course-accent: #ea68a8;
  --course-glow: rgba(75, 134, 198, 0.18);
  color: #2f3442;
  background: #fff;
}

/* Program story and separated social-proof sections */
.course-program-story {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 8% 18%, rgba(255, 205, 73, 0.2), transparent 24%),
    linear-gradient(145deg, #073f49 0%, #075e63 52%, #0d8074 100%);
  color: #fff;
}

.course-program-story::after {
  content: "";
  position: absolute;
  right: -120px;
  bottom: -180px;
  width: 420px;
  height: 420px;
  border: 70px solid rgba(255, 255, 255, 0.06);
  border-radius: 50%;
}

.course-story-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(480px, 1.1fr);
  align-items: center;
  gap: 70px;
}

.course-story-copy .course-kicker {
  color: #ffe183;
}

.course-story-copy h2 {
  max-width: 650px;
  margin: 8px 0 16px;
  color: #fff;
  font-size: clamp(35px, 4vw, 57px);
  line-height: 1.08;
}

.course-story-copy > p:not(.course-kicker) {
  max-width: 620px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 16px;
  line-height: 1.75;
}

.course-story-copy ul {
  display: grid;
  gap: 12px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.course-story-copy li {
  display: grid;
  grid-template-columns: 10px 1fr;
  column-gap: 13px;
}

.course-story-copy li::before {
  content: "";
  width: 9px;
  height: 9px;
  margin-top: 8px;
  border-radius: 50%;
  background: #ffd455;
  box-shadow: 0 0 0 5px rgba(255, 212, 85, 0.15);
}

.course-story-copy li strong,
.course-story-copy li span {
  grid-column: 2;
}

.course-story-copy li strong {
  color: #fff;
  font-size: 14px;
}

.course-story-copy li span {
  color: rgba(255, 255, 255, 0.66);
  font-size: 12px;
}

.course-story-video {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 30px 70px rgba(0, 24, 31, 0.38);
  backdrop-filter: blur(8px);
}

.course-story-video iframe {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 18px;
}

.course-video-placeholder {
  display: grid;
  min-height: 330px;
  place-content: center;
  padding: 45px;
  text-align: center;
}

.course-video-placeholder > span,
.course-review-empty > span {
  display: grid;
  width: 68px;
  height: 68px;
  margin: 0 auto 15px;
  place-items: center;
  border-radius: 50%;
  color: #0a6467;
  background: #ffd65a;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.16);
  font-size: 25px;
}

.course-video-placeholder strong {
  color: #fff;
  font-family: "Salsa", cursive;
  font-size: 25px;
}

.course-video-placeholder p {
  max-width: 470px;
  margin: 8px auto 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
  line-height: 1.6;
}

.course-video-reviews {
  background: #f5f8fb;
}

.course-heading > span {
  display: block;
  max-width: 720px;
  margin: 12px auto 0;
  color: #71788a;
  font-size: 14px;
  line-height: 1.65;
  text-align: center;
}

.course-video-reviews .course-quote-grid {
  display: none;
}

.course-video-reviews .course-video-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.course-video-reviews .course-review-video {
  overflow: hidden;
  border: 1px solid #dae4e8;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 16px 40px rgba(7, 73, 81, 0.09);
}

.course-video-reviews .course-review-video iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
}

.course-video-reviews .course-review-video > div {
  display: grid;
  gap: 4px;
  padding: 17px 18px 20px;
}

.course-video-reviews .course-review-video span {
  color: #0b8b7c;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.course-video-reviews .course-review-video strong {
  color: #173a48;
  font-size: 13px;
}

.course-review-empty {
  max-width: 700px;
  margin: 36px auto 0;
  padding: 48px 30px;
  border: 2px dashed #bbd5d3;
  border-radius: 20px;
  color: #6e7f84;
  background: rgba(255, 255, 255, 0.7);
  text-align: center;
}

.course-review-empty > span {
  width: 56px;
  height: 56px;
  font-size: 19px;
}

.course-review-empty strong {
  display: block;
  color: #0a5961;
  font-family: "Salsa", cursive;
  font-size: 23px;
  font-weight: 400;
}

.course-review-empty p {
  margin: 8px 0 0;
  font-size: 12px;
}

.course-text-reviews {
  background:
    radial-gradient(circle at 90% 12%, rgba(255, 198, 61, 0.22), transparent 25%),
    #fffaf0;
}

.course-text-reviews .course-quote-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.course-text-reviews blockquote {
  position: relative;
  display: flex;
  min-height: 270px;
  flex-direction: column;
  margin: 0;
  padding: 32px;
  overflow: hidden;
  border: 1px solid #eadfc8;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 15px 38px rgba(102, 75, 30, 0.08);
}

.course-text-reviews blockquote::after {
  content: "";
  position: absolute;
  right: -36px;
  bottom: -42px;
  width: 120px;
  height: 120px;
  border: 22px solid rgba(18, 145, 130, 0.08);
  border-radius: 50%;
}

.review-quote-mark {
  color: #ffb629;
  font-family: Georgia, serif;
  font-size: 70px;
  line-height: 0.7;
}

.course-text-reviews blockquote > p {
  position: relative;
  z-index: 1;
  flex: 1;
  margin: 18px 0 25px;
  color: #3c4654;
  font-size: 15px;
  line-height: 1.75;
}

.course-text-reviews blockquote footer {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 11px;
}

.review-avatar {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(145deg, #0a877b, #075861);
  font-weight: 800;
}

.course-text-reviews cite {
  color: #163e4b;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

@media (max-width: 980px) {
  .course-story-layout {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .course-story-video {
    width: min(100%, 760px);
  }

  .course-video-reviews .course-video-grid,
  .course-text-reviews .course-quote-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .course-story-layout {
    gap: 28px;
  }

  .course-story-copy h2 {
    font-size: 34px;
  }

  .course-story-video {
    padding: 6px;
    border-radius: 18px;
  }

  .course-video-reviews .course-video-grid,
  .course-text-reviews .course-quote-grid {
    grid-template-columns: 1fr;
  }

  .course-text-reviews blockquote {
    min-height: 0;
    padding: 26px 22px;
  }
}

.course-page.theme-maths {
  --course-primary: #4b86c6;
  --course-primary-dark: #263766;
  --course-accent: #f2bd3e;
  --course-glow: rgba(75, 134, 198, 0.18);
}

.course-nav {
  position: sticky;
  z-index: 90;
  top: 0;
  border-bottom: 1px solid rgba(44, 64, 115, 0.1);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 7px 24px rgba(44, 64, 115, 0.06);
  backdrop-filter: blur(14px);
}

.course-nav-inner {
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.course-brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  text-decoration: none;
}

.course-brand .brand-logo {
  width: 218px;
}

.course-brand strong {
  color: var(--course-primary-dark);
  font-family: "Salsa", cursive;
  font-size: 24px;
  font-weight: 400;
  line-height: 1.1;
}

.course-brand span {
  color: #777d8f;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.course-nav nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.course-nav nav a {
  color: #54596a;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

.course-nav nav a:hover {
  color: var(--course-primary);
}

.course-nav .course-nav-cta {
  padding: 10px 16px;
  border-radius: 8px;
  color: #fff;
  background: var(--course-primary);
}

.course-nav .course-nav-cta:hover {
  color: #fff;
  background: var(--course-primary-dark);
}

/* Brand palette alignment for shared course pages */
.course-page .course-program-story {
  background: #263766;
}

.course-page .course-nav-cta,
.course-page .button-primary {
  background: #4b86c6;
}

.course-page .course-nav-cta:hover,
.course-page .button-primary:hover {
  background: #365f98;
}

.course-page .course-heading h2,
.course-page .course-hero h1,
.course-page .course-included-layout h2 {
  color: #263766;
  text-wrap: balance;
}

.course-page .course-heading > p,
.course-page .course-eyebrow,
.course-page .course-kicker {
  color: #d94c91;
}

.course-footer .brand-logo-footer {
  width: 210px;
}

.course-hero {
  position: relative;
  overflow: hidden;
  padding: 92px 0 0;
  background:
    radial-gradient(circle at 85% 10%, var(--course-glow), transparent 24%),
    radial-gradient(circle at 4% 88%, rgba(250, 179, 25, 0.12), transparent 20%),
    linear-gradient(180deg, #fff, #fafaff);
}

.course-hero::before {
  content: "";
  position: absolute;
  top: 70px;
  left: -80px;
  width: 210px;
  height: 210px;
  border: 38px solid var(--course-glow);
  border-radius: 50%;
}

.course-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(380px, 0.98fr);
  align-items: center;
  gap: 72px;
}

.course-eyebrow,
.course-kicker,
.course-heading > p {
  margin: 0 0 10px;
  color: var(--course-primary);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.course-hero h1 {
  max-width: 690px;
  margin: 0;
  color: var(--course-primary-dark);
  font-size: clamp(43px, 5vw, 72px);
  line-height: 1.02;
}

.course-highlight {
  width: fit-content;
  margin: 14px 0 24px;
  padding: 8px 14px;
  border-radius: 8px;
  color: #1f2840;
  background: #ffe17a;
  font-family: "Salsa", cursive;
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1.2;
  transform: rotate(-1deg);
}

.course-lead {
  max-width: 650px;
  margin: 0;
  color: #616779;
  font-size: 17px;
  line-height: 1.75;
}

.course-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
  margin-top: 30px;
}

.course-page .button-primary {
  background: var(--course-primary);
}

.course-page .button-primary:hover {
  background: var(--course-primary-dark);
}

.course-price-line {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
}

.course-current-price {
  color: var(--course-primary-dark);
  font-family: "Salsa", cursive;
  font-size: 31px;
}

.course-price-line del {
  color: #9296a3;
  font-size: 17px;
}

.course-price-line b {
  padding: 5px 9px;
  border-radius: 999px;
  color: #0d6449;
  background: #dbf7ed;
  font-size: 10px;
  text-transform: uppercase;
}

.course-hero-media {
  min-width: 0;
}

.course-visual-card {
  position: relative;
  display: grid;
  min-height: 470px;
  place-items: center;
  overflow: hidden;
  padding: 45px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 34px 90px 34px 34px;
  color: #fff;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.12), transparent 38%),
    linear-gradient(145deg, var(--course-primary-dark), var(--course-primary));
  box-shadow: 0 36px 90px var(--course-glow);
  text-align: center;
}

.course-visual-card::before,
.course-visual-card::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
}

.course-visual-card::before {
  top: -70px;
  right: -30px;
  width: 220px;
  height: 220px;
}

.course-visual-card::after {
  bottom: -90px;
  left: -50px;
  width: 260px;
  height: 260px;
}

.course-symbol {
  position: relative;
  z-index: 1;
  display: grid;
  width: 170px;
  height: 170px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 42px;
  color: #fff5a8;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 0 50px rgba(255, 255, 255, 0.08);
  font-family: "Salsa", cursive;
  font-size: 68px;
  transform: rotate(-5deg);
}

.course-visual-card > strong {
  position: relative;
  z-index: 1;
  display: block;
  max-width: 360px;
  font-family: "Salsa", cursive;
  font-size: 29px;
  font-weight: 400;
  line-height: 1.25;
}

.course-chip-list {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.course-chip-list span {
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.09);
  font-size: 10px;
  font-weight: 800;
}

.course-explainer,
.course-review-video {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 24px;
  background: #12152a;
  box-shadow: 0 30px 75px var(--course-glow);
}

.course-explainer iframe,
.course-review-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.course-stat-bar {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 78px;
  overflow: hidden;
  border-radius: 18px 18px 0 0;
  color: #fff;
  background: var(--course-primary-dark);
  box-shadow: 0 18px 48px var(--course-glow);
}

.course-stat-bar > div {
  padding: 23px 25px;
  border-right: 1px solid rgba(255, 255, 255, 0.14);
}

.course-stat-bar > div:last-child {
  border-right: 0;
}

.course-stat-bar span,
.course-stat-bar strong {
  display: block;
}

.course-stat-bar span {
  color: rgba(255, 255, 255, 0.62);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.course-stat-bar strong {
  margin-top: 2px;
  color: #fff;
  font-size: 14px;
}

.course-section {
  padding: 94px 0;
}

.course-soft {
  background: #f7f8fc;
}

.course-heading {
  max-width: 710px;
  margin: 0 auto 44px;
  text-align: center;
}

.course-heading h2,
.course-included-layout h2,
.course-offer-card h2 {
  margin: 0;
  color: var(--course-primary-dark);
  font-size: clamp(34px, 4vw, 51px);
  line-height: 1.15;
}

.course-benefit-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.course-benefit-grid article {
  padding: 28px 25px;
  border: 1px solid #e9eaf0;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 15px 40px rgba(44, 64, 115, 0.07);
}

.course-benefit-grid article > span,
.course-module-grid article > span {
  color: var(--course-primary);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.course-benefit-grid h3,
.course-module-grid h3 {
  margin: 10px 0 8px;
  color: #293451;
  font-size: 23px;
  line-height: 1.25;
}

.course-benefit-grid p,
.course-module-grid p {
  margin: 0;
  color: #6c7180;
  font-size: 13px;
  line-height: 1.65;
}

.maths-benefits-section {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 8% 18%, rgba(245, 184, 27, 0.16), transparent 23%),
    radial-gradient(circle at 94% 82%, rgba(37, 140, 38, 0.12), transparent 24%),
    #fffaf0;
}

.maths-benefits-section::before,
.maths-benefits-section::after {
  position: absolute;
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.maths-benefits-section::before {
  top: -105px;
  right: -90px;
  width: 230px;
  height: 230px;
  border: 30px solid rgba(52, 32, 139, 0.045);
}

.maths-benefits-section::after {
  bottom: -95px;
  left: -65px;
  width: 190px;
  height: 190px;
  border: 24px solid rgba(37, 140, 38, 0.045);
}

.maths-benefits-section .container {
  position: relative;
  z-index: 1;
}

.maths-benefits-section .course-heading {
  max-width: 800px;
  margin-bottom: 30px;
}

.benefit-focus-path {
  display: flex;
  width: fit-content;
  max-width: 100%;
  align-items: center;
  justify-content: center;
  gap: 11px;
  margin: 0 auto 25px;
  padding: 11px 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(110deg, #34208b, #0b285d);
  box-shadow: 0 14px 30px rgba(11, 40, 93, 0.18);
}

.benefit-focus-path span {
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.benefit-focus-path i {
  color: #ffcf65;
  font-size: 14px;
  font-style: normal;
}

.maths-benefit-focus-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 17px;
}

.maths-benefit-focus-grid article {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 310px;
  flex-direction: column;
  padding: 24px;
  overflow: hidden;
  border: 1px solid #dfe5dc;
  border-top: 5px solid #258c26;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 45px rgba(11, 40, 93, 0.09);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.maths-benefit-focus-grid article:nth-child(2) {
  border-top-color: #34208b;
}

.maths-benefit-focus-grid article:nth-child(3) {
  border-top-color: #e88718;
}

.maths-benefit-focus-grid article:nth-child(4) {
  border-top-color: #0b285d;
}

.maths-benefit-focus-grid article:hover {
  box-shadow: 0 23px 52px rgba(11, 40, 93, 0.15);
  transform: translateY(-6px);
}

.maths-benefit-focus-grid article::after {
  position: absolute;
  top: -29px;
  right: -30px;
  width: 100px;
  height: 100px;
  border: 18px solid rgba(37, 140, 38, 0.05);
  border-radius: 50%;
  content: "";
}

.benefit-focus-top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.benefit-focus-top b {
  display: grid;
  width: 48px;
  height: 48px;
  border-radius: 15px;
  color: #fff;
  background: #258c26;
  font-size: 23px;
  box-shadow: 0 9px 20px rgba(37, 140, 38, 0.2);
  place-items: center;
}

.maths-benefit-focus-grid article:nth-child(2) .benefit-focus-top b {
  background: #34208b;
  box-shadow: 0 9px 20px rgba(52, 32, 139, 0.2);
}

.maths-benefit-focus-grid article:nth-child(3) .benefit-focus-top b {
  background: #e88718;
  box-shadow: 0 9px 20px rgba(232, 135, 24, 0.22);
}

.maths-benefit-focus-grid article:nth-child(4) .benefit-focus-top b {
  background: #0b285d;
  box-shadow: 0 9px 20px rgba(11, 40, 93, 0.22);
}

.benefit-focus-top > span {
  color: #258c26;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.maths-benefit-focus-grid h3 {
  position: relative;
  z-index: 1;
  margin: 20px 0 9px;
  color: #0b285d;
  font-size: 23px;
  line-height: 1.2;
}

.maths-benefit-focus-grid p {
  position: relative;
  z-index: 1;
  margin: 0 0 20px;
  color: #626a78;
  font-size: 11px;
  line-height: 1.65;
}

.maths-benefit-focus-grid article > strong {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 3px;
  margin-top: auto;
  padding: 12px 14px;
  border-left: 4px solid #f5b81b;
  border-radius: 0 10px 10px 0;
  color: #0b285d;
  background: #fff5d8;
  font-size: 11px;
}

.maths-benefit-focus-grid article > strong small {
  color: #8f6a0d;
  font-size: 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.benefit-result-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 22px;
  padding: 17px 21px;
  border-radius: 16px;
  color: #0b285d;
  background: #fff;
  box-shadow: 0 14px 34px rgba(11, 40, 93, 0.08);
}

.benefit-result-bar span,
.benefit-result-bar strong {
  font-size: 10px;
  font-weight: 900;
  text-align: center;
}

.benefit-result-bar i {
  color: #258c26;
  font-size: 17px;
  font-style: normal;
}

.benefit-result-bar strong {
  padding: 8px 11px;
  border-radius: 999px;
  color: #fff;
  background: #258c26;
}

.course-module-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.course-module-grid article {
  position: relative;
  padding: 29px 30px 29px 106px;
  overflow: hidden;
  border: 1px solid #e5e8ef;
  border-radius: 18px;
  background: #fff;
}

.course-module-grid article::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 76px;
  background: linear-gradient(180deg, var(--course-primary), var(--course-primary-dark));
}

.course-module-grid article::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 28px;
  width: 19px;
  height: 19px;
  border: 3px solid #fff;
  border-radius: 50%;
  transform: translateY(-50%);
}

.course-included-section {
  color: #fff;
  background: linear-gradient(145deg, var(--course-primary-dark), var(--course-primary));
}

.course-included-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: center;
  gap: 75px;
}

.course-included-layout .course-kicker {
  color: #ffe37c;
}

.course-included-layout h2 {
  color: #fff;
}

.course-included-layout > div > p:not(.course-kicker) {
  color: rgba(255, 255, 255, 0.75);
}

.course-included-layout ul {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.course-included-layout li {
  position: relative;
  padding: 15px 17px 15px 48px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 13px;
  font-weight: 700;
}

.course-included-layout li::before {
  content: "✓";
  position: absolute;
  top: 50%;
  left: 17px;
  display: grid;
  width: 21px;
  height: 21px;
  place-items: center;
  border-radius: 50%;
  color: var(--course-primary-dark);
  background: #ffe37c;
  font-size: 11px;
  transform: translateY(-50%);
}

.course-skill-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.course-skill-cloud span {
  padding: 6px 10px;
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  font-size: 10px;
  font-weight: 800;
}

.course-reviews {
  background: #fff;
}

.course-video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 20px;
}

.course-review-video {
  border-radius: 16px;
  box-shadow: 0 15px 40px rgba(44, 64, 115, 0.12);
}

.course-quote-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 25px;
}

.course-quote-grid blockquote {
  margin: 0;
  padding: 25px;
  border: 1px solid #e7e9ef;
  border-radius: 17px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(44, 64, 115, 0.08);
}

.course-quote-grid p {
  margin: 0 0 16px;
  color: #414858;
  font-family: "Salsa", cursive;
  font-size: 18px;
  line-height: 1.55;
}

.course-quote-grid cite {
  color: #727785;
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
}

.course-enroll {
  background:
    radial-gradient(circle at 8% 12%, var(--course-glow), transparent 23%),
    #fafbff;
}

.course-enroll-grid {
  display: grid;
  max-width: 1040px;
  grid-template-columns: 0.86fr 1.14fr;
  align-items: start;
  gap: 34px;
}

.course-offer-card,
.course-enrollment-form {
  border: 1px solid #e7e9f0;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 22px 60px rgba(44, 64, 115, 0.11);
}

.course-offer-card {
  position: sticky;
  top: 100px;
  padding: 34px;
}

.course-offer-card h2 {
  font-size: 34px;
}

.course-offer-price {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-top: 20px;
}

.course-offer-price strong {
  color: var(--course-primary);
  font-family: "Salsa", cursive;
  font-size: 48px;
  font-weight: 400;
}

.course-offer-price del {
  color: #979aa5;
  font-size: 17px;
}

.course-saving {
  width: fit-content;
  margin: 0 0 23px;
  padding: 5px 9px;
  border-radius: 999px;
  color: #176047;
  background: #def7ed;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.course-offer-card ul {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.course-offer-card li {
  position: relative;
  padding-left: 23px;
  color: #5e6473;
  font-size: 13px;
}

.course-offer-card li::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 2px;
  width: 9px;
  height: 5px;
  border-bottom: 2px solid var(--course-primary);
  border-left: 2px solid var(--course-primary);
  transform: rotate(-45deg);
}

.course-source-link {
  display: inline-block;
  margin-top: 20px;
  color: var(--course-primary);
  font-size: 10px;
  font-weight: 800;
}

.course-enrollment-form {
  display: grid;
  gap: 15px;
  padding: 35px;
}

.course-form-step {
  margin: 0 0 2px;
  color: var(--course-primary-dark);
  font-family: "Salsa", cursive;
  font-size: 24px;
}

.course-form-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 5px;
  padding: 16px 18px;
  border-radius: 12px;
  color: #5f6473;
  background: #f4f5fa;
  font-size: 13px;
}

.course-form-total strong {
  color: var(--course-primary);
  font-family: "Salsa", cursive;
  font-size: 26px;
  font-weight: 400;
}

.course-enrollment-form .button {
  width: 100%;
}

.course-form-note {
  margin: -5px 0 0;
  color: #868a96;
  font-size: 10px;
  text-align: center;
}

.course-footer {
  padding-top: 48px;
}

@media (max-width: 1024px) {
  .course-hero-grid {
    gap: 42px;
  }

  .course-benefit-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .maths-benefit-focus-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .course-nav nav a:not(.course-nav-cta) {
    display: none;
  }
}

@media (max-width: 820px) {
  .course-nav nav a:not(.course-nav-cta) {
    display: none;
  }

  .course-hero {
    padding-top: 62px;
  }

  .course-hero-grid,
  .course-included-layout,
  .course-enroll-grid {
    grid-template-columns: 1fr;
  }

  .course-hero-copy {
    text-align: center;
  }

  .course-highlight {
    margin-inline: auto;
  }

  .course-lead {
    margin-inline: auto;
  }

  .course-hero-actions,
  .course-price-line {
    justify-content: center;
  }

  .course-hero-media {
    width: min(100%, 600px);
    margin-inline: auto;
  }

  .course-stat-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .course-stat-bar > div:nth-child(2) {
    border-right: 0;
  }

  .course-stat-bar > div:nth-child(-n + 2) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  }

  .course-module-grid {
    grid-template-columns: 1fr;
  }

  .course-included-layout {
    gap: 35px;
  }

  .course-quote-grid {
    grid-template-columns: 1fr;
  }

  .course-offer-card {
    position: static;
  }
}

@media (max-width: 680px) {
  .course-nav-inner {
    min-height: 66px;
  }

  .course-brand strong {
    font-size: 21px;
  }

  .course-brand .brand-logo {
    width: 178px;
  }

  .course-nav .course-nav-cta {
    padding: 9px 13px;
  }

  .course-hero {
    padding-top: 46px;
  }

  .course-hero h1 {
    font-size: 39px;
  }

  .course-highlight {
    font-size: 25px;
  }

  .course-lead {
    font-size: 14px;
  }

  .course-hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .course-hero-actions .button {
    width: 100%;
  }

  .course-visual-card {
    min-height: 390px;
    padding: 30px 22px;
    border-radius: 26px 62px 26px 26px;
  }

  .course-symbol {
    width: 130px;
    height: 130px;
    border-radius: 32px;
    font-size: 52px;
  }

  .course-visual-card > strong {
    font-size: 25px;
  }

  .course-stat-bar {
    margin-top: 48px;
  }

  .course-stat-bar > div {
    padding: 17px 15px;
  }

  .course-stat-bar strong {
    font-size: 12px;
  }

  .course-section {
    padding: 66px 0;
  }

  .course-heading {
    margin-bottom: 32px;
  }

  .course-heading h2,
  .course-included-layout h2 {
    font-size: 34px;
  }

  .course-benefit-grid {
    grid-template-columns: 1fr;
  }

  .maths-benefit-focus-grid {
    grid-template-columns: 1fr;
  }

  .maths-benefit-focus-grid article {
    min-height: 0;
  }

  .benefit-result-bar {
    display: grid;
    grid-template-columns: 1fr;
  }

  .benefit-result-bar i {
    justify-self: center;
    transform: rotate(90deg);
  }

  .course-benefit-grid article {
    padding: 24px 21px;
  }

  .course-module-grid article {
    padding: 24px 20px 24px 84px;
  }

  .course-module-grid article::before {
    width: 62px;
  }

  .course-module-grid article::after {
    left: 20px;
  }

  .course-video-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .course-offer-card,
  .course-enrollment-form {
    padding: 25px 19px;
    border-radius: 17px;
  }

  .course-offer-card h2 {
    font-size: 30px;
  }

  .course-offer-price strong {
    font-size: 43px;
  }
}

@media (max-width: 420px) {
  .course-page {
    min-width: 320px;
  }

  .course-brand span {
    display: none;
  }

  .course-brand .brand-logo {
    width: 150px;
  }

  .course-hero h1 {
    font-size: 34px;
  }

  .course-highlight {
    font-size: 22px;
  }

  .course-price-line {
    flex-wrap: wrap;
  }

  .course-stat-bar {
    border-radius: 14px 14px 0 0;
  }

  .course-stat-bar strong {
    overflow-wrap: anywhere;
  }

  .course-included-layout li {
    padding-right: 12px;
  }

  .course-form-total {
    align-items: flex-start;
  }
}

/* Maths Mastery: Classes 1–7 */
.maths-mastery-page .course-hero {
  background:
    radial-gradient(circle at 86% 9%, rgba(255, 179, 31, 0.24), transparent 25%),
    radial-gradient(circle at 4% 88%, rgba(10, 140, 128, 0.13), transparent 22%),
    linear-gradient(180deg, #fff, #f4fbfa);
}

.course-heading > span {
  display: block;
  max-width: 620px;
  margin: 12px auto 0;
  color: #686e7c;
  font-size: 14px;
  line-height: 1.65;
}

.maths-entry-offer {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 24px;
}

.maths-entry-offer span,
.maths-entry-offer strong {
  padding: 7px 11px;
  border: 1px solid rgba(10, 140, 128, 0.16);
  border-radius: 999px;
  color: #43505c;
  background: #fff;
  font-size: 11px;
  font-weight: 800;
}

.maths-entry-offer strong {
  color: #fff;
  border-color: var(--course-primary);
  background: var(--course-primary);
}

.maths-track-grid,
.maths-plan-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.maths-track-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.maths-track-grid article {
  padding: 28px;
  border: 1px solid #dfecea;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 14px 40px rgba(7, 86, 92, 0.08);
}

.maths-track-grid article > span,
.maths-week-grid article > span,
.annual-roadmap span,
.plan-type {
  color: var(--course-primary);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.maths-track-grid h3,
.maths-week-grid h3,
.maths-plan-card h3 {
  margin: 10px 0;
  color: var(--course-primary-dark);
  font-size: 24px;
}

.maths-track-grid p,
.maths-week-grid p,
.annual-roadmap p,
.maths-plan-card li,
.plan-service-note {
  color: #626a78;
  font-size: 13px;
  line-height: 1.65;
}

.maths-track-grid article > strong {
  display: inline-block;
  margin-top: 12px;
  padding: 6px 9px;
  border-radius: 8px;
  color: #6d4a00;
  background: #fff0c9;
  font-size: 10px;
}

.board-coverage {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 28px;
  padding: 20px;
  border-radius: 16px;
  color: #fff;
  background: var(--course-primary-dark);
}

.board-coverage strong {
  margin-right: 8px;
  font-family: "Salsa", cursive;
  font-size: 19px;
  font-weight: 400;
}

.board-coverage span {
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  font-size: 10px;
  font-weight: 800;
}

.maths-method .course-module-grid article {
  border-color: #dceae8;
}

.maths-method {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 5% 22%, rgba(37, 140, 38, 0.1), transparent 22%),
    radial-gradient(circle at 95% 76%, rgba(52, 32, 139, 0.1), transparent 24%),
    #fff;
}

.maths-method .course-heading {
  max-width: 850px;
}

.program-vision-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
}

.program-vision-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 2px solid #d8e7e2;
  border-radius: 25px;
  background: #fff;
  box-shadow: 0 22px 60px rgba(11, 40, 93, 0.11);
}

.program-vision-card > header {
  display: flex;
  min-height: 218px;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 27px 28px;
  color: #fff;
  background:
    radial-gradient(circle at 90% 15%, rgba(255, 207, 101, 0.18), transparent 25%),
    linear-gradient(125deg, #087f73, #07565c);
}

.mastery-vision > header {
  background:
    radial-gradient(circle at 90% 15%, rgba(255, 207, 101, 0.18), transparent 25%),
    linear-gradient(125deg, #34208b, #0b285d);
}

.program-vision-card > header span {
  color: #ffcf65;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.program-vision-card > header h3 {
  margin: 7px 0 9px;
  color: #fff;
  font-size: 28px;
  line-height: 1.15;
}

.program-vision-card > header p {
  max-width: 470px;
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 11px;
  line-height: 1.6;
}

.program-vision-card > header > b {
  flex: 0 0 auto;
  padding: 9px 11px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  color: #0b285d;
  background: #ffcf65;
  font-size: 8px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.program-best-for {
  display: grid;
  gap: 4px;
  margin: -22px 28px 0;
  padding: 15px 17px;
  border: 1px solid #efd793;
  border-radius: 14px;
  background: #fff6d9;
  box-shadow: 0 11px 26px rgba(11, 40, 93, 0.1);
  transform: translateY(22px);
}

.program-best-for span,
.program-parent-view span {
  color: #8a6510;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.program-best-for strong {
  color: #0b285d;
  font-size: 11px;
  line-height: 1.5;
}

.everything-badge {
  margin: 35px 28px -19px;
  padding: 9px 13px;
  border-radius: 10px;
  color: #fff;
  background: #258c26;
  font-size: 9px;
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
}

.program-vision-steps {
  display: grid;
  gap: 0;
  margin: 43px 28px 22px;
  padding: 0;
  list-style: none;
}

.mastery-vision .program-vision-steps {
  margin-top: 42px;
}

.program-vision-steps li {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  padding: 0 0 20px;
}

.program-vision-steps li:not(:last-child)::before {
  position: absolute;
  top: 34px;
  bottom: 2px;
  left: 16px;
  width: 2px;
  background: #d8e7e2;
  content: "";
}

.program-vision-steps li > b {
  position: relative;
  z-index: 1;
  display: grid;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: #fff;
  background: #087f73;
  font-size: 9px;
  place-items: center;
}

.mastery-vision .program-vision-steps li > b {
  background: #34208b;
}

.program-vision-steps strong {
  display: block;
  margin: 1px 0 3px;
  color: #0b285d;
  font-size: 13px;
}

.program-vision-steps p {
  margin: 0;
  color: #626a78;
  font-size: 10px;
  line-height: 1.55;
}

.program-parent-view {
  display: grid;
  gap: 4px;
  margin: auto 28px 18px;
  padding: 13px 15px;
  border-left: 4px solid #258c26;
  border-radius: 0 11px 11px 0;
  background: #eff8f0;
}

.mastery-vision .program-parent-view {
  border-left-color: #34208b;
  background: #f4f1ff;
}

.program-parent-view strong {
  color: #0b285d;
  font-size: 10px;
  line-height: 1.45;
}

.program-vision-card > .button {
  margin: 0 28px 28px;
}

.program-decision-strip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  margin-top: 28px;
  padding: 22px;
  border-radius: 20px;
  color: #fff;
  background: #0b285d;
  box-shadow: 0 18px 42px rgba(11, 40, 93, 0.17);
}

.program-decision-strip > div {
  display: grid;
  gap: 4px;
  padding: 2px 8px;
  text-align: center;
}

.program-decision-strip span {
  color: #ffcf65;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.program-decision-strip strong {
  font-size: 12px;
  line-height: 1.45;
}

.program-decision-strip b {
  color: #8df09a;
  font-size: 10px;
}

.program-decision-strip i {
  display: grid;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 50%;
  color: #0b285d;
  background: #ffcf65;
  font-size: 9px;
  font-style: normal;
  font-weight: 900;
  place-items: center;
}

@media (max-width: 960px) {
  .program-vision-grid {
    grid-template-columns: 1fr;
  }

  .program-vision-card > header {
    min-height: 0;
  }
}

@media (max-width: 580px) {
  .program-vision-card {
    border-radius: 20px;
  }

  .program-vision-card > header {
    align-items: flex-start;
    flex-direction: column;
    padding: 24px 20px 42px;
  }

  .program-vision-card > header h3 {
    font-size: 25px;
  }

  .program-best-for {
    margin-right: 20px;
    margin-left: 20px;
  }

  .everything-badge,
  .program-vision-steps {
    margin-right: 20px;
    margin-left: 20px;
  }

  .program-parent-view,
  .program-vision-card > .button {
    margin-right: 20px;
    margin-left: 20px;
  }

  .program-decision-strip {
    grid-template-columns: 1fr;
  }

  .program-decision-strip i {
    justify-self: center;
  }
}

.maths-week-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
}

.maths-week-grid article {
  padding: 23px;
  border: 1px solid #e1ebe9;
  border-radius: 16px;
  background: #fff;
}

.maths-week-grid h3 {
  font-size: 20px;
}

.annual-roadmap {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2px;
  margin-top: 30px;
  overflow: hidden;
  border-radius: 18px;
  background: #d9e9e7;
}

.annual-roadmap > div {
  min-height: 174px;
  padding: 24px;
  background: var(--course-primary-dark);
}

.annual-roadmap span {
  color: #ffcf65;
}

.annual-roadmap strong {
  display: block;
  margin: 9px 0;
  color: #fff;
  font-family: "Salsa", cursive;
  font-size: 19px;
  font-weight: 400;
}

.annual-roadmap p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
}

.maths-schedule-section {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 8% 10%, rgba(245, 184, 27, 0.18), transparent 24%),
    radial-gradient(circle at 92% 70%, rgba(37, 140, 38, 0.13), transparent 28%),
    #f7faf4;
}

.maths-schedule-section::before {
  position: absolute;
  top: 120px;
  left: -85px;
  width: 190px;
  height: 190px;
  border: 24px solid rgba(52, 32, 139, 0.05);
  border-radius: 50%;
  content: "";
}

.maths-schedule-section .container {
  position: relative;
}

.program-schedule-card {
  margin-top: 34px;
  overflow: hidden;
  border: 1px solid #d9e4d6;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(11, 40, 93, 0.12);
}

.program-schedule-card + .program-schedule-card {
  margin-top: 42px;
}

.program-schedule-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 30px 34px;
  color: #fff;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.08), transparent 45%),
    #0b285d;
}

.program-schedule-header > div > span {
  display: inline-block;
  margin-bottom: 7px;
  color: #ffcf65;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.program-schedule-header h3 {
  margin: 0;
  color: #fff;
  font-size: 30px;
  line-height: 1.15;
}

.program-schedule-header p {
  max-width: 760px;
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 12px;
  line-height: 1.6;
}

.program-schedule-header > strong {
  flex: 0 0 auto;
  padding: 11px 15px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 999px;
  color: #0b285d;
  background: #ffcf65;
  font-size: 10px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.mentorship-schedule .program-schedule-header {
  background:
    radial-gradient(circle at 86% 25%, rgba(255, 207, 101, 0.18), transparent 24%),
    linear-gradient(125deg, #34208b, #0b285d 72%);
}

.practice-perfect-panel {
  display: grid;
  grid-template-columns: minmax(220px, 0.7fr) minmax(0, 1.7fr);
  gap: 28px;
  padding: 30px 34px;
  border-bottom: 1px solid #e5eadf;
  background: #fffaf0;
}

.practice-perfect-copy {
  align-self: center;
}

.practice-perfect-copy > span {
  color: #258c26;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.practice-perfect-copy h4 {
  margin: 6px 0 8px;
  color: #0b285d;
  font-family: "Salsa", cursive;
  font-size: 27px;
  font-weight: 400;
}

.practice-perfect-copy p,
.chapter-test-cycle small,
.month-roadmap p,
.mentorship-week p,
.teacher-followup-flow p,
.schedule-scope-note {
  color: #626a78;
  font-size: 11px;
  line-height: 1.55;
}

.practice-perfect-copy p {
  margin: 0;
}

.chapter-test-cycle {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.chapter-test-cycle li {
  position: relative;
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
  padding: 14px;
  border: 1px solid #e0e6d6;
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(11, 40, 93, 0.06);
}

.chapter-test-cycle li::after {
  position: absolute;
  top: 50%;
  right: -9px;
  z-index: 2;
  color: #258c26;
  content: "›";
  font-size: 22px;
  transform: translateY(-50%);
}

.chapter-test-cycle li:nth-child(3)::after,
.chapter-test-cycle li:last-child::after {
  content: none;
}

.chapter-test-cycle b {
  display: grid;
  width: 31px;
  height: 31px;
  flex: 0 0 auto;
  border-radius: 50%;
  color: #fff;
  background: #258c26;
  font-size: 9px;
  place-items: center;
}

.chapter-test-cycle span {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.chapter-test-cycle strong {
  color: #0b285d;
  font-size: 10px;
}

.chapter-test-cycle small {
  font-size: 8px;
}

.month-roadmap {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 13px;
  padding: 32px 34px 22px;
}

.month-roadmap article {
  position: relative;
  min-height: 174px;
  padding: 20px;
  overflow: hidden;
  border: 1px solid #dfe8dd;
  border-radius: 17px;
  background: #f7fbf7;
}

.month-roadmap article::after {
  position: absolute;
  right: -24px;
  bottom: -29px;
  width: 84px;
  height: 84px;
  border: 16px solid rgba(37, 140, 38, 0.06);
  border-radius: 50%;
  content: "";
}

.month-roadmap span,
.mentorship-week span {
  color: #258c26;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.month-roadmap h4,
.mentorship-week h4 {
  position: relative;
  z-index: 1;
  margin: 8px 0;
  color: #0b285d;
  font-size: 16px;
}

.month-roadmap p,
.mentorship-week p {
  position: relative;
  z-index: 1;
  margin: 0;
}

.month-roadmap .highlight-month {
  border-color: #f5b81b;
  background: #fff2c8;
  box-shadow: 0 13px 28px rgba(245, 184, 27, 0.16);
}

.month-roadmap .highlight-month span {
  color: #986600;
}

.schedule-scope-note {
  margin: 0 34px 20px;
  padding: 11px 15px;
  border-radius: 10px;
  background: #eef7f0;
  text-align: center;
}

.schedule-cta {
  width: fit-content;
  min-width: 240px;
  margin: 0 34px 32px;
}

.mentorship-promise {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 30px 34px 16px;
}

.mentorship-promise > div {
  display: grid;
  gap: 6px;
  padding: 18px;
  border: 1px solid #ddd7f1;
  border-radius: 16px;
  background: #f7f4ff;
}

.mentorship-promise b {
  color: #34208b;
  font-family: "Salsa", cursive;
  font-size: 24px;
  font-weight: 400;
}

.mentorship-promise span {
  color: #4f5664;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.45;
}

.mentorship-week {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 13px;
  padding: 14px 34px 26px;
}

.mentorship-week article {
  padding: 20px;
  border: 1px solid #dfe5e1;
  border-radius: 17px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(11, 40, 93, 0.06);
}

.mentorship-week .mentor-touchpoint {
  border-color: #f5b81b;
  background: #fff9e8;
}

.mentorship-week .mentor-touchpoint span {
  color: #986600;
}

.teacher-followup-flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  margin: 0 34px 24px;
  padding: 20px;
  border-radius: 18px;
  color: #fff;
  background: linear-gradient(120deg, #34208b, #0b285d);
}

.teacher-followup-flow > div {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 10px;
  align-items: center;
}

.teacher-followup-flow span {
  display: grid;
  width: 31px;
  height: 31px;
  grid-row: 1 / 3;
  border-radius: 50%;
  color: #0b285d;
  background: #ffcf65;
  font-size: 10px;
  font-weight: 900;
  place-items: center;
}

.teacher-followup-flow strong {
  color: #fff;
  font-size: 11px;
}

.teacher-followup-flow p {
  margin: 3px 0 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 9px;
}

.teacher-followup-flow i {
  color: #ffcf65;
  font-size: 20px;
  font-style: normal;
}

.maths-plan-section {
  background:
    radial-gradient(circle at 12% 12%, rgba(255, 179, 31, 0.16), transparent 24%),
    #fff;
}

.program-choice-guide {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 0 0 24px;
}

.program-choice-guide article {
  display: grid;
  gap: 7px;
  padding: 18px 20px;
  border: 1px solid #d9dfbf;
  border-radius: 15px;
  background: #fffaf0;
}

.program-choice-guide article:nth-child(1) {
  border-top: 4px solid #258c26;
}

.program-choice-guide article:nth-child(2) {
  border-top: 4px solid #f5b81b;
  background: #0b285d;
}

.program-choice-guide span {
  color: #258c26;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.program-choice-guide article:nth-child(2) span {
  color: #ffcf65;
}

.program-choice-guide strong {
  color: #0b285d;
  font-size: 13px;
  line-height: 1.5;
}

.program-choice-guide article:nth-child(2) strong {
  color: #fff;
}

.maths-plan-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 29px;
  border: 1px solid #dfe9e7;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(7, 86, 92, 0.09);
}

.plan-number {
  align-self: flex-start;
  margin-bottom: 10px;
  padding: 5px 9px;
  border-radius: 999px;
  color: #fff;
  background: #34208b;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.maths-plan-card.featured .plan-number {
  background: #258c26;
}

.maths-plan-card.premium .plan-number {
  color: #0b285d;
  background: #ffcf65;
}

.plan-clear-summary {
  display: grid;
  gap: 5px;
  min-height: 126px;
  margin: 18px 0 4px;
  padding: 15px;
  border-left: 4px solid #f5b81b;
  border-radius: 0 12px 12px 0;
  background: #fffaf0;
}

.plan-clear-summary strong {
  color: #0b285d;
  font-size: 13px;
  line-height: 1.45;
}

.plan-clear-summary p {
  margin: 0;
  color: #626a78;
  font-size: 11px;
  line-height: 1.55;
}

.maths-plan-card.premium .plan-clear-summary {
  background: rgba(255, 255, 255, 0.09);
}

.maths-plan-card.premium .plan-clear-summary strong {
  color: #fff;
}

.maths-plan-card.premium .plan-clear-summary p {
  color: rgba(255, 255, 255, 0.76);
}

.plan-includes-title {
  margin: 23px 0 0;
  color: #258c26;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.maths-plan-card.premium .plan-includes-title {
  color: #ffcf65;
}

.maths-plan-card.featured {
  border: 2px solid var(--course-primary);
  box-shadow: 0 23px 55px rgba(10, 140, 128, 0.18);
}

.maths-plan-card.premium {
  color: #fff;
  border-color: var(--course-primary-dark);
  background: var(--course-primary-dark);
}

.maths-plan-card.premium h3,
.maths-plan-card.premium .plan-price {
  color: #fff;
}

.maths-plan-card.premium .plan-type {
  color: #ffcf65;
}

.maths-plan-card.premium li {
  color: rgba(255, 255, 255, 0.78);
}

.maths-plan-card.premium li strong {
  color: #fff;
}

.plan-price {
  margin: 8px 0 0;
  color: var(--course-primary);
  font-family: "Salsa", cursive;
  font-size: 42px;
  line-height: 1;
}

.plan-price small {
  color: inherit;
  font-family: "Mulish", sans-serif;
  font-size: 11px;
  font-weight: 800;
}

.maths-plan-card del {
  margin-top: 8px;
  color: #989da8;
  font-size: 13px;
}

.maths-plan-card ul {
  display: grid;
  flex: 1;
  gap: 9px;
  margin: 22px 0 25px;
  padding: 0;
  list-style: none;
}

.maths-plan-card li {
  position: relative;
  padding-left: 21px;
}

.maths-plan-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--course-accent);
  font-weight: 800;
}

.plan-service-note {
  max-width: 820px;
  margin: 24px auto 0;
  padding: 14px 18px;
  border-radius: 12px;
  background: #eff8f6;
  text-align: center;
}

.course-form-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.course-enrollment-form select {
  width: 100%;
  min-height: 48px;
  padding: 0 13px;
  border: 1px solid #dfe2ea;
  border-radius: 9px;
  color: #303747;
  background: #fff;
  font: inherit;
}

.maths-plan-choice {
  display: grid;
  gap: 9px;
  margin: 3px 0;
  padding: 0;
  border: 0;
}

.maths-plan-choice legend {
  margin-bottom: 8px;
  color: #414858;
  font-size: 12px;
  font-weight: 800;
}

.maths-plan-choice label {
  cursor: pointer;
}

.maths-plan-choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.maths-plan-choice label > span {
  display: flex;
  min-height: 57px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  border: 1px solid #dfe4e9;
  border-radius: 11px;
  transition: 160ms ease;
}

.plan-choice-copy {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.maths-plan-choice .plan-choice-copy small {
  color: #6a7280;
  font-size: 10px;
  line-height: 1.35;
}

.maths-plan-choice label.selected > span,
.maths-plan-choice input:checked + span {
  border-color: var(--course-primary);
  background: #edf8f6;
  box-shadow: 0 0 0 3px rgba(10, 140, 128, 0.1);
}

.maths-plan-choice input:focus-visible + span {
  outline: 3px solid rgba(10, 140, 128, 0.28);
  outline-offset: 2px;
}

.maths-plan-choice strong {
  color: var(--course-primary-dark);
  font-size: 12px;
}

.maths-plan-choice b {
  color: var(--course-primary);
  font-family: "Salsa", cursive;
  font-size: 19px;
  font-weight: 400;
  white-space: nowrap;
}

@media (max-width: 1024px) {
  .program-choice-guide {
    grid-template-columns: 1fr;
  }

  .maths-plan-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .maths-plan-card.premium {
    grid-column: auto;
  }

  .annual-roadmap {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .month-roadmap {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .mentorship-promise {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .maths-track-grid,
  .maths-plan-grid {
    grid-template-columns: 1fr;
  }

  .maths-plan-card.premium {
    grid-column: auto;
  }

  .maths-week-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .maths-entry-offer {
    justify-content: center;
  }

  .program-schedule-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .practice-perfect-panel {
    grid-template-columns: 1fr;
  }

  .month-roadmap,
  .mentorship-week {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .teacher-followup-flow {
    grid-template-columns: 1fr;
  }

  .teacher-followup-flow i {
    justify-self: center;
    transform: rotate(90deg);
  }
}

@media (max-width: 580px) {
  .program-choice-guide article {
    padding: 16px;
  }

  .plan-clear-summary {
    min-height: 0;
  }

  .maths-week-grid,
  .annual-roadmap,
  .course-form-pair {
    grid-template-columns: 1fr;
  }

  .annual-roadmap > div {
    min-height: 0;
  }

  .program-schedule-card {
    border-radius: 20px;
  }

  .program-schedule-header,
  .practice-perfect-panel {
    padding: 24px 20px;
  }

  .program-schedule-header h3 {
    font-size: 25px;
  }

  .chapter-test-cycle,
  .month-roadmap,
  .mentorship-promise,
  .mentorship-week {
    grid-template-columns: 1fr;
  }

  .chapter-test-cycle li::after {
    content: none;
  }

  .month-roadmap,
  .mentorship-promise,
  .mentorship-week {
    padding-right: 20px;
    padding-left: 20px;
  }

  .month-roadmap article {
    min-height: 0;
  }

  .schedule-scope-note,
  .teacher-followup-flow {
    margin-right: 20px;
    margin-left: 20px;
  }

  .schedule-cta {
    width: calc(100% - 40px);
    min-width: 0;
    margin-right: 20px;
    margin-left: 20px;
  }

  .maths-plan-card,
  .maths-track-grid article {
    padding: 24px 20px;
  }

  .board-coverage {
    align-items: stretch;
    flex-direction: column;
    text-align: center;
  }

  .board-coverage strong {
    margin-right: 0;
  }
}

/* Ramanujan Math Mastery: playful course-platform theme */
.maths-mastery-page {
  --course-primary: #34208b;
  --course-primary-dark: #0b285d;
  --course-accent: #6bbd15;
  --math-cream: #fffaf0;
  --math-green: #258c26;
  color: #172142;
  background: var(--math-cream);
}

.maths-mastery-page .course-nav {
  border-bottom-color: #d8dec0;
  background: rgba(255, 250, 240, 0.96);
}

.maths-mastery-page .course-hero,
.maths-mastery-page .maths-plan-section,
.maths-mastery-page .maths-samples-section {
  background: var(--math-cream);
}

.maths-mastery-page .course-hero::before {
  display: none;
}

.maths-mastery-page .course-highlight {
  color: #0b285d;
  background: #ffd94d;
}

.maths-mastery-page .maths-entry-offer span,
.maths-mastery-page .maths-entry-offer strong {
  border-color: #b7cc95;
  background: #fffdf8;
}

.maths-mastery-page .maths-entry-offer strong {
  color: #fff;
  border-color: #258c26;
  background: #258c26;
}

.maths-mastery-page section[id] {
  scroll-margin-top: 82px;
}

.maths-parent-solution {
  position: relative;
  overflow: hidden;
  padding-top: 88px;
  background: #fffaf0;
}

.maths-parent-solution::before {
  position: absolute;
  top: -130px;
  right: -110px;
  width: 360px;
  height: 360px;
  border: 70px solid rgba(245, 184, 27, 0.16);
  border-radius: 50%;
  content: "";
}

.parent-solution-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(440px, 1.1fr);
  align-items: center;
  gap: 54px;
}

.parent-solution-copy h2 {
  max-width: 690px;
  margin: 0 0 20px;
  color: #0b285d;
  font-size: clamp(38px, 4.8vw, 63px);
  line-height: 1.04;
}

.parent-solution-copy > p:not(.course-kicker) {
  max-width: 620px;
  margin: 0;
  color: #525d6f;
  font-size: 17px;
  line-height: 1.75;
}

.parent-solution-promise {
  display: grid;
  gap: 6px;
  margin: 26px 0;
  padding: 18px 20px;
  border-left: 5px solid #f5b81b;
  border-radius: 0 15px 15px 0;
  background: #fff;
  box-shadow: 0 12px 30px rgba(11, 40, 93, 0.08);
}

.parent-solution-promise span {
  color: #258c26;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.parent-solution-promise strong {
  color: #0b285d;
  font-size: 15px;
  line-height: 1.5;
}

.parent-solution-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.parent-solution-link {
  color: #0b285d;
  font-size: 13px;
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 5px;
}

.parent-solution-visual {
  position: relative;
  margin: 0;
  padding: 10px;
  border: 3px solid #258c26;
  border-radius: 30px;
  background: #fff;
  box-shadow: 0 24px 55px rgba(11, 40, 93, 0.16);
  transform: rotate(1deg);
}

.parent-solution-visual img {
  display: block;
  width: 100%;
  aspect-ratio: 1.5;
  border-radius: 20px;
  object-fit: cover;
}

.parent-solution-visual figcaption {
  position: absolute;
  right: 28px;
  bottom: -28px;
  left: 28px;
  display: grid;
  gap: 4px;
  padding: 15px 18px;
  border: 3px solid #f5b81b;
  border-radius: 15px;
  color: #fff;
  background: #0b285d;
  box-shadow: 0 12px 26px rgba(11, 40, 93, 0.2);
}

.parent-solution-visual figcaption strong {
  font-size: 14px;
}

.parent-solution-visual figcaption span {
  color: rgba(255, 255, 255, 0.76);
  font-size: 10px;
  line-height: 1.4;
}

.parent-creative-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 86px;
}

.parent-creative-grid article {
  padding: 25px;
  border: 1px solid #d9dfbf;
  border-radius: 19px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(11, 40, 93, 0.06);
}

.parent-creative-grid article:nth-child(2) {
  border-top: 5px solid #f5b81b;
}

.parent-creative-grid article:nth-child(1) {
  border-top: 5px solid #34208b;
}

.parent-creative-grid article:nth-child(3) {
  border-top: 5px solid #258c26;
}

.parent-creative-grid span {
  color: #258c26;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.parent-creative-grid h3 {
  margin: 9px 0 10px;
  color: #0b285d;
  font-size: 20px;
  line-height: 1.25;
}

.parent-creative-grid p {
  margin: 0;
  color: #626a78;
  font-size: 12px;
  line-height: 1.65;
}

.parent-routine-strip {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 18px;
  margin-top: 24px;
  padding: 22px 26px;
  border-radius: 18px;
  color: #fff;
  background: #07565c;
}

.parent-routine-strip > div:not(.parent-routine-arrow) {
  display: grid;
  gap: 5px;
}

.parent-routine-strip span {
  color: #ffcf65;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.parent-routine-strip strong {
  font-size: 13px;
  line-height: 1.45;
}

.parent-routine-arrow {
  color: #ffcf65;
  font-size: 24px;
  font-weight: 900;
}

.maths-table-program {
  background: #fff;
}

.maths-table-program-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(350px, 0.85fr);
  align-items: center;
  gap: 42px;
}

.maths-table-program-copy h2 {
  margin: 0 0 18px;
  color: #0b285d;
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.08;
}

.maths-table-program-copy > p:last-of-type {
  color: #555d69;
  font-size: 16px;
  line-height: 1.75;
}

.table-program-includes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 26px;
}

.table-program-includes article {
  padding: 17px;
  border: 1px solid #d9dfbf;
  border-radius: 15px;
  background: #fffaf0;
}

.table-program-includes h3 {
  margin: 0 0 7px;
  color: #34208b;
  font-size: 15px;
}

.table-program-includes p {
  margin: 0;
  color: #626a78;
  font-size: 11px;
  line-height: 1.55;
}

.table-level-card {
  padding: 26px;
  border: 3px solid #258c26;
  border-radius: 23px;
  background: #fffaf0;
  box-shadow: 0 18px 42px rgba(11, 40, 93, 0.11);
}

.table-level-heading {
  display: grid;
  grid-template-columns: 106px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
}

.table-level-heading img {
  width: 106px;
  height: 106px;
  object-fit: cover;
}

.table-level-heading span {
  color: #db194a;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.table-level-heading h3 {
  margin: 4px 0;
  color: #0b285d;
  font-size: 25px;
}

.table-level-heading p {
  margin: 0;
  color: #258c26;
  font-size: 11px;
  font-weight: 800;
}

.table-level-card ol {
  display: grid;
  gap: 9px;
  margin: 20px 0 22px;
  padding: 0;
  list-style: none;
}

.table-level-card li {
  display: grid;
  gap: 3px;
  padding: 12px 14px;
  border-left: 4px solid #f5b81b;
  background: #fff;
}

.table-level-card li:nth-child(2) {
  border-left-color: #6bbd15;
}

.table-level-card li:nth-child(3) {
  border-left-color: #ec4b12;
}

.table-level-card strong {
  color: #34208b;
  font-size: 13px;
}

.table-level-card li span {
  color: #626a78;
  font-size: 11px;
}

.maths-mastery-page .maths-plan-card {
  border: 2px solid #d9dfbf;
  border-radius: 20px;
  background: #fffaf0;
}

.maths-mastery-page .maths-plan-card.featured {
  border-color: #258c26;
}

.maths-mastery-page .maths-plan-card.premium {
  border-color: #0b285d;
  background: #0b285d;
}

.maths-mastery-page .maths-plan-card ul {
  padding-left: 18px;
  list-style: disc;
}

.maths-mastery-page .maths-plan-card li {
  padding-left: 2px;
}

.maths-mastery-page .maths-plan-card li::before {
  content: none;
}

.maths-mastery-page .note-paper {
  background: #fffdf8;
}

.sample-resource-pending {
  display: block;
  margin-top: auto;
  padding: 14px;
  border: 1px dashed #aeb4a1;
  border-radius: 10px;
  color: #626a78;
  background: #fffaf0;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}

@media (max-width: 900px) {
  .parent-solution-hero {
    grid-template-columns: 1fr;
  }

  .parent-solution-visual {
    max-width: 760px;
    transform: none;
  }

  .parent-creative-grid {
    grid-template-columns: 1fr;
  }

  .parent-routine-strip {
    grid-template-columns: 1fr;
  }

  .parent-routine-arrow {
    transform: rotate(90deg);
  }

  .maths-table-program-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .maths-parent-solution {
    padding-top: 64px;
  }

  .parent-solution-copy h2 {
    font-size: 39px;
  }

  .parent-solution-copy > p:not(.course-kicker) {
    font-size: 15px;
  }

  .parent-solution-visual {
    padding: 7px;
    border-radius: 21px;
  }

  .parent-solution-visual img {
    border-radius: 14px;
  }

  .parent-solution-visual figcaption {
    right: 14px;
    bottom: -36px;
    left: 14px;
  }

  .parent-creative-grid {
    margin-top: 78px;
  }

  .parent-creative-grid article,
  .parent-routine-strip {
    padding: 20px;
  }

  .table-program-includes {
    grid-template-columns: 1fr;
  }

  .table-level-card {
    padding: 20px 16px;
  }

  .table-level-heading {
    grid-template-columns: 82px minmax(0, 1fr);
  }

  .table-level-heading img {
    width: 82px;
    height: 82px;
  }
}

.maths-coupon-section {
  padding: 22px 0;
  background: #07565c;
}

.maths-coupon-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 24px;
}

.coupon-auto-label {
  display: inline-block;
  margin-bottom: 7px;
  padding: 4px 8px;
  border-radius: 999px;
  color: #07565c;
  background: #ffcf65;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.maths-coupon-card h2 {
  margin: 0;
  color: #fff;
  font-size: 26px;
}

.maths-coupon-card p {
  margin: 6px 0 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 11px;
}

.maths-coupon-code,
.maths-coupon-timer {
  display: grid;
  gap: 5px;
  min-width: 150px;
  padding: 14px 17px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
}

.maths-coupon-code span,
.maths-coupon-timer span {
  color: rgba(255, 255, 255, 0.62);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.maths-coupon-code code,
.maths-coupon-timer strong {
  color: #fff;
  font-family: "Salsa", cursive;
  font-size: 21px;
  font-weight: 400;
  white-space: nowrap;
}

.maths-coupon-timer strong {
  color: #ffcf65;
  font-size: 28px;
}

.maths-samples-section {
  background: #fffaf0;
}

.our-notes-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 22px;
  padding: 22px 25px;
  border-left: 5px solid #f5b81b;
  border-radius: 0 16px 16px 0;
  background: #fff;
}

.our-notes-heading span,
.math-note-album-header span {
  color: #258c26;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.our-notes-heading h3 {
  margin: 6px 0;
  color: #0b285d;
  font-size: 27px;
}

.our-notes-heading p {
  max-width: 760px;
  margin: 0;
  color: #626a78;
  font-size: 12px;
  line-height: 1.6;
}

.our-notes-heading > strong {
  flex: 0 0 auto;
  padding: 9px 12px;
  border-radius: 999px;
  color: #0b285d;
  background: #ffcf65;
  font-size: 10px;
}

.math-note-albums {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-bottom: 22px;
}

.math-note-album {
  min-width: 0;
  padding: 22px;
  border: 2px solid #258c26;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 16px 42px rgba(11, 40, 93, 0.09);
}

.math-note-album.handwritten {
  border-color: #34208b;
}

.math-note-album-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 17px;
}

.math-note-album-header h3 {
  margin: 5px 0;
  color: #0b285d;
  font-size: 25px;
}

.math-note-album-header p {
  max-width: 520px;
  margin: 0;
  color: #626a78;
  font-size: 11px;
  line-height: 1.55;
}

.math-note-album-header > button {
  flex: 0 0 auto;
  padding: 8px 10px;
  border: 1px solid #d9dfbf;
  border-radius: 9px;
  color: #0b285d;
  background: #fffaf0;
  font-size: 9px;
  font-weight: 900;
  cursor: pointer;
}

.math-note-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.math-note-gallery button {
  position: relative;
  display: grid;
  min-width: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid #d8ded4;
  border-radius: 13px;
  color: #fff;
  background: #f5f1e8;
  cursor: pointer;
  font: inherit;
  box-shadow: 0 8px 18px rgba(11, 40, 93, 0.08);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.math-note-gallery button:hover,
.math-note-gallery button:focus-visible {
  box-shadow: 0 13px 25px rgba(11, 40, 93, 0.16);
  transform: translateY(-3px);
}

.math-note-gallery img {
  display: block;
  width: 100%;
  aspect-ratio: 1.45;
  object-fit: contain;
  background: #fff;
}

.math-note-gallery button > span {
  position: absolute;
  right: 8px;
  bottom: 8px;
  left: 8px;
  padding: 7px 9px;
  border-radius: 8px;
  background: rgba(11, 40, 93, 0.9);
  font-size: 9px;
  font-weight: 900;
  text-align: center;
}

.math-note-disclaimer {
  margin: 0 0 34px;
  padding: 13px 16px;
  border-radius: 11px;
  color: #53606d;
  background: #eef7f0;
  font-size: 10px;
  line-height: 1.55;
  text-align: center;
}

.math-sample-resource-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 24px;
  border: 1px solid #d8e3d4;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(11, 40, 93, 0.08);
}

.math-sample-resource-bar > div:first-child {
  display: grid;
  gap: 5px;
}

.math-sample-resource-bar span {
  color: #258c26;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.math-sample-resource-bar strong {
  color: #0b285d;
  font-size: 16px;
}

.math-sample-resource-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 10px;
}

.math-sample-resource-actions .button {
  min-width: 180px;
  cursor: pointer;
}

.sample-viewer-dialog {
  width: min(1120px, calc(100vw - 30px));
  max-width: none;
  height: min(88vh, 900px);
  max-height: none;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 28px 90px rgba(2, 13, 38, 0.38);
}

.sample-viewer-dialog::backdrop {
  background: rgba(5, 18, 43, 0.76);
  backdrop-filter: blur(4px);
}

.sample-viewer-shell {
  display: grid;
  height: 100%;
  grid-template-rows: auto auto minmax(0, 1fr);
}

.sample-viewer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 20px;
  color: #fff;
  background: #0b285d;
}

.sample-viewer-header span {
  color: #ffcf65;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.sample-viewer-header h3 {
  margin: 3px 0 0;
  color: #fff;
  font-size: 20px;
}

.sample-viewer-close {
  display: grid;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  cursor: pointer;
  font-size: 28px;
  line-height: 1;
  place-items: center;
}

.sample-viewer-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 18px;
  border-bottom: 1px solid #dfe5e1;
  color: #53606d;
  background: #f4f8f5;
  font-size: 10px;
}

.sample-viewer-toolbar > div {
  display: flex;
  gap: 7px;
}

.sample-viewer-toolbar button {
  min-width: 36px;
  padding: 7px 10px;
  border: 1px solid #cdd8d0;
  border-radius: 8px;
  color: #0b285d;
  background: #fff;
  cursor: pointer;
  font-size: 11px;
  font-weight: 900;
}

.sample-viewer-toolbar[hidden],
.sample-image-stage[hidden],
.sample-html-stage[hidden],
.sample-viewer-body iframe[hidden] {
  display: none;
}

.sample-viewer-body,
.sample-image-stage,
.sample-html-stage,
.sample-viewer-body iframe {
  min-width: 0;
  min-height: 0;
  width: 100%;
  height: 100%;
}

.sample-viewer-body {
  overflow: hidden;
  background: #e7ece9;
}

.sample-viewer-body iframe {
  display: block;
  border: 0;
  background: #fff;
}

.sample-image-stage {
  overflow: auto;
  padding: 18px;
  text-align: center;
}

.sample-html-stage {
  overflow: auto;
  padding: 4px 18px 20px;
  background: #eaf5f3;
}

.sample-html-stage .sample-document {
  margin: 20px auto;
}

.sample-viewer-loading,
.sample-viewer-error {
  width: min(560px, calc(100% - 28px));
  margin: 60px auto;
  padding: 22px;
  border-radius: 14px;
  color: #53606d;
  background: #fff;
  box-shadow: 0 14px 35px rgba(11, 40, 93, 0.1);
  font-size: 12px;
  line-height: 1.6;
  text-align: center;
}

.sample-viewer-error {
  color: #8b2635;
}

.sample-image-stage img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 auto;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 28px rgba(11, 40, 93, 0.14);
}

.maths-sample-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.maths-note-preview,
.maths-test-preview {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 26px;
  border: 1px solid #dfe9e7;
  border-radius: 21px;
  background: #fff;
  box-shadow: 0 18px 50px rgba(7, 86, 92, 0.09);
}

.sample-preview-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 17px;
}

.sample-preview-heading span {
  color: var(--course-primary);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sample-preview-heading strong {
  color: #626a78;
  font-size: 10px;
}

.note-paper {
  flex: 1;
  padding: 25px 24px 22px 52px;
  border: 1px solid #d9eaf3;
  border-radius: 12px;
  background: #fffdf8;
}

.note-paper h3 {
  margin: 0 0 12px;
  color: var(--course-primary-dark);
  font-family: "Salsa", cursive;
  font-size: 25px;
}

.note-paper p,
.note-paper li,
.sample-question-list li,
.sample-answer-key p {
  color: #53606d;
  font-size: 12px;
  line-height: 1.75;
}

.worked-equation {
  margin: 17px 0;
  color: var(--course-primary);
  font-family: "Salsa", cursive;
  font-size: 27px;
  text-align: center;
}

.note-tip {
  padding: 9px 11px;
  border-radius: 8px;
  background: #fff2c9;
}

.maths-note-preview .button,
.maths-test-preview .button {
  width: 100%;
  margin-top: 18px;
}

.sample-question-list {
  display: grid;
  flex: 1;
  gap: 9px;
  margin: 0;
  padding: 20px 20px 20px 42px;
  border-radius: 12px;
  background: #f4f8f7;
}

.sample-question-list li {
  padding-bottom: 8px;
  border-bottom: 1px dotted #c8d5d3;
}

.sample-answer-key {
  margin-top: 14px;
  padding: 13px 15px;
  border: 1px solid #e1e8e7;
  border-radius: 10px;
}

.sample-answer-key summary {
  color: var(--course-primary-dark);
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

.maths-form-coupon {
  margin: -2px 0 0;
  padding: 10px 12px;
  border-radius: 9px;
  color: #16604f;
  background: #e4f7f1;
  font-size: 10px;
  text-align: center;
}

.maths-form-coupon strong {
  font-family: monospace;
  font-size: 11px;
}

.maths-submit-button {
  display: grid;
  gap: 8px;
  min-height: 76px;
  padding: 13px 16px 11px;
  line-height: 1.25;
  text-align: center;
}

.maths-submit-button > [data-program-submit-label] {
  font-size: 15px;
}

.maths-submit-coupon {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 6px 9px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  color: #fff;
  background: rgba(255, 255, 255, 0.13);
  font-family: "Mulish", sans-serif;
  line-height: 1;
}

.maths-submit-coupon small {
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.maths-submit-coupon code {
  color: #fff2a8;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 12px;
  font-weight: 900;
}

.maths-submit-coupon b {
  padding: 3px 6px;
  border-radius: 999px;
  color: #0b285d;
  background: #ffd047;
  font-size: 8px;
  font-weight: 900;
  text-transform: uppercase;
}

@media (max-width: 900px) {
  .math-note-albums {
    grid-template-columns: 1fr;
  }

  .maths-coupon-card {
    grid-template-columns: 1fr 1fr;
  }

  .maths-coupon-card > div:first-child {
    grid-column: 1 / -1;
    text-align: center;
  }
}

@media (max-width: 760px) {
  .maths-sample-grid {
    grid-template-columns: 1fr;
  }

  .math-sample-resource-bar {
    align-items: stretch;
    flex-direction: column;
  }

  .math-sample-resource-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .math-sample-resource-actions .button {
    min-width: 0;
  }
}

@media (max-width: 520px) {
  .our-notes-heading,
  .math-note-album-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .our-notes-heading,
  .math-note-album {
    padding: 18px;
  }

  .math-note-gallery {
    grid-template-columns: 1fr;
  }

  .math-sample-resource-bar {
    padding: 18px;
  }

  .math-sample-resource-actions {
    grid-template-columns: 1fr;
  }

  .sample-viewer-dialog {
    width: calc(100vw - 16px);
    height: calc(100dvh - 16px);
    border-radius: 16px;
  }

  .sample-viewer-header {
    padding: 13px 14px;
  }

  .sample-viewer-header h3 {
    font-size: 16px;
  }

  .sample-viewer-toolbar {
    align-items: flex-start;
    flex-direction: column;
    padding: 8px 12px;
  }

  .sample-image-stage {
    padding: 10px;
  }

  .sample-html-stage {
    padding: 0 6px 12px;
  }

  .sample-html-stage .sample-document {
    width: calc(100% - 12px);
    margin: 8px auto;
  }

  .maths-coupon-card {
    grid-template-columns: 1fr;
  }

  .maths-coupon-code,
  .maths-coupon-timer {
    min-width: 0;
    text-align: center;
  }

  .sample-preview-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .maths-note-preview,
  .maths-test-preview {
    padding: 20px 17px;
  }

  .note-paper {
    padding-left: 41px;
  }

  .maths-submit-coupon {
    flex-wrap: wrap;
  }
}

/* Ramanujan Maths hero: two-program parent decision */
.maths-mastery-page .course-hero {
  padding-top: 68px;
  background: #fffaf0;
}

.maths-mastery-page .course-hero-grid {
  grid-template-columns: minmax(0, 0.76fr) minmax(510px, 1.24fr);
  align-items: center;
  gap: 34px;
}

.maths-mastery-page .course-hero-copy {
  align-self: center;
}

.maths-mastery-page .course-eyebrow {
  margin-bottom: 16px;
  color: #087b73;
  font-family: "Salsa", cursive;
  font-size: clamp(21px, 2.2vw, 30px);
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.2;
  text-transform: none;
}

.maths-mastery-page .course-hero h1 {
  max-width: 540px;
  color: #0b285d;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(47px, 5.25vw, 69px);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.03;
}

.maths-mastery-page .course-highlight {
  max-width: 510px;
  margin: 26px 0 20px;
  padding: 0;
  color: #eba800;
  background: transparent;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(27px, 3vw, 39px);
  font-weight: 700;
  line-height: 1.24;
  transform: none;
}

.maths-mastery-page .course-lead {
  max-width: 500px;
  color: #4d5869;
  font-size: 16px;
  line-height: 1.65;
}

.maths-parent-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
  padding: 11px 17px;
  border: 1px solid #d6e6dd;
  border-radius: 999px;
  color: #0b285d;
  background: #e8f2ec;
  font-size: 13px;
  font-weight: 800;
}

.maths-parent-badge i {
  color: #087b73;
  font-size: 19px;
}

.maths-mastery-page .maths-hero-actions {
  align-items: flex-start;
  flex-direction: column;
  gap: 13px;
  margin-top: 24px;
}

.maths-mastery-page .maths-hero-actions .button {
  min-width: 310px;
  padding: 15px 26px;
  border-radius: 10px;
  background: #087b73;
  font-size: 17px;
  text-align: center;
}

.maths-mastery-page .maths-hero-actions .button:hover {
  background: #075b58;
}

.maths-hero-text-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-left: 94px;
  color: #0b285d;
  font-size: 14px;
  font-weight: 900;
  text-decoration: none;
}

.maths-hero-text-link:hover {
  color: #087b73;
}

.maths-hero-showcase {
  position: relative;
  min-width: 0;
  padding: 70px 20px 18px;
  border-radius: 28px;
  background: #066b68;
  box-shadow: 0 24px 58px rgba(11, 40, 93, 0.18);
}

.maths-showcase-mark {
  position: absolute;
  top: 0;
  left: 50%;
  display: grid;
  width: 76px;
  height: 76px;
  border: 6px solid #fffaf0;
  border-radius: 50%;
  place-items: center;
  color: #087b73;
  background: #fffaf0;
  box-shadow: 0 8px 22px rgba(11, 40, 93, 0.16);
  font-size: 30px;
  transform: translate(-50%, -24px);
}

.maths-showcase-programs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: 14px;
}

.maths-showcase-card {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: center;
  padding: 22px 17px 17px;
  border: 1px solid rgba(255, 255, 255, 0.66);
  border-radius: 22px;
  color: #16213d;
  background: #fffdf7;
  box-shadow: 0 13px 26px rgba(0, 41, 54, 0.2);
  text-align: center;
}

.maths-showcase-icon {
  display: grid;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  place-items: center;
  color: #087b73;
  background: #e7f1eb;
  font-size: 30px;
}

.maths-showcase-mentorship .maths-showcase-icon {
  background: #fff0b8;
}

.maths-showcase-card h2 {
  margin: 13px 0 0;
  color: #0b285d;
  font-family: "Mulish", sans-serif;
  font-size: clamp(20px, 2vw, 27px);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.08;
  text-transform: uppercase;
}

.maths-showcase-price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 5px;
  margin: 13px 0 6px;
  color: #087b73;
}

.maths-showcase-price strong {
  font-size: clamp(26px, 2.8vw, 38px);
  letter-spacing: -0.035em;
  line-height: 1;
}

.maths-showcase-price span {
  font-size: 12px;
  font-weight: 900;
}

.maths-showcase-summary {
  min-height: 40px;
  margin: 4px 0 13px;
  color: #4c5562;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
}

.maths-showcase-card ul {
  width: 100%;
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
  text-align: left;
}

.maths-showcase-card li {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-height: 45px;
  padding: 7px 0;
  border-bottom: 1px solid #e1e3df;
  color: #25304a;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.35;
}

.maths-showcase-card li:last-child {
  border-bottom: 0;
}

.maths-showcase-card li i {
  display: grid;
  width: 29px;
  height: 29px;
  border-radius: 50%;
  place-items: center;
  color: #087b73;
  background: #e7f1eb;
  font-size: 12px;
}

.maths-showcase-mentorship li i {
  color: #0b285d;
  background: #fff0b8;
}

.maths-showcase-card .button {
  width: 100%;
  margin-top: auto;
  padding: 12px 10px;
  border-radius: 9px;
  font-size: 13px;
}

.maths-showcase-premium-button {
  color: #0b285d;
  background: #ffd047;
}

.maths-showcase-premium-button:hover {
  color: #0b285d;
  background: #f1b819;
}

.maths-showcase-badge {
  position: absolute;
  top: 14px;
  right: 10px;
  padding: 5px 8px;
  border-radius: 999px;
  color: #0b285d;
  background: #ffd047;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.maths-showcase-decision {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 15px;
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 14px;
  color: #fff;
}

.maths-showcase-decision > i {
  color: #ffd047;
  font-size: 25px;
}

.maths-showcase-decision p {
  margin: 0;
  font-size: 11px;
  line-height: 1.45;
}

.maths-showcase-decision strong {
  color: #ffd047;
}

.maths-mastery-page .course-stat-bar {
  margin-top: 58px;
}

@media (max-width: 1024px) {
  .maths-mastery-page .course-hero-grid {
    grid-template-columns: minmax(0, 0.72fr) minmax(500px, 1.28fr);
    gap: 26px;
  }

  .maths-mastery-page .course-hero h1 {
    font-size: clamp(43px, 5vw, 57px);
  }

  .maths-mastery-page .course-highlight {
    font-size: clamp(25px, 3vw, 33px);
  }
}

@media (max-width: 820px) {
  .maths-mastery-page .course-hero-grid {
    grid-template-columns: 1fr;
    gap: 56px;
  }

  .maths-mastery-page .course-hero-copy {
    text-align: center;
  }

  .maths-mastery-page .course-hero h1,
  .maths-mastery-page .course-highlight,
  .maths-mastery-page .course-lead {
    margin-inline: auto;
  }

  .maths-mastery-page .maths-hero-actions {
    align-items: center;
  }

  .maths-hero-text-link {
    margin-left: 0;
  }

  .maths-mastery-page .course-hero-media {
    width: min(100%, 690px);
  }
}

@media (max-width: 580px) {
  .maths-mastery-page .course-hero {
    padding-top: 42px;
  }

  .maths-mastery-page .course-hero h1 {
    font-size: 43px;
  }

  .maths-mastery-page .course-eyebrow {
    font-size: 21px;
  }

  .maths-mastery-page .course-highlight {
    font-size: 27px;
  }

  .maths-mastery-page .maths-hero-actions .button {
    min-width: 0;
    width: 100%;
  }

  .maths-hero-showcase {
    padding: 62px 13px 14px;
    border-radius: 23px;
  }

  .maths-showcase-programs {
    grid-template-columns: 1fr;
  }

  .maths-showcase-card {
    padding: 23px 20px 19px;
  }

  .maths-showcase-card h2 {
    font-size: 25px;
  }

  .maths-showcase-price strong {
    font-size: 35px;
  }

  .maths-showcase-card li {
    font-size: 12px;
  }

  .maths-showcase-decision {
    align-items: flex-start;
    padding-inline: 13px;
    text-align: left;
  }
}

@media (max-width: 380px) {
  .maths-mastery-page .course-hero h1 {
    font-size: 38px;
  }

  .maths-mastery-page .course-highlight {
    font-size: 24px;
  }
}

/* Maths class and board learning-path redesign */
.maths-class-path-section {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 8% 18%, rgba(8, 123, 115, 0.1), transparent 23%),
    radial-gradient(circle at 92% 84%, rgba(255, 208, 71, 0.17), transparent 25%),
    linear-gradient(180deg, #f7fbfa 0%, #fffaf0 100%);
}

.maths-class-path-section::before,
.maths-class-path-section::after {
  position: absolute;
  border: 1px solid rgba(8, 123, 115, 0.13);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.maths-class-path-section::before {
  top: 72px;
  left: -110px;
  width: 260px;
  height: 260px;
}

.maths-class-path-section::after {
  right: -150px;
  bottom: 62px;
  width: 360px;
  height: 360px;
}

.maths-class-path-section > .container {
  position: relative;
  z-index: 1;
}

.maths-class-heading {
  max-width: 820px;
  margin-bottom: 50px;
}

.maths-class-heading > p {
  display: inline-flex;
  margin-bottom: 16px;
  padding: 7px 12px;
  border: 1px solid rgba(8, 123, 115, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
}

.maths-class-heading h2 {
  color: #0b285d;
  font-size: clamp(40px, 4.6vw, 58px);
  line-height: 1.04;
}

.maths-class-heading > span {
  max-width: 690px;
  color: #556172;
  font-size: 15px;
}

.maths-class-path-section .maths-track-grid {
  position: relative;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.maths-class-path-section .maths-track-grid::before {
  position: absolute;
  top: 42px;
  right: 12%;
  left: 12%;
  z-index: -1;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, #0b8e84, #ffd047, #34208b);
  content: "";
}

.maths-class-path-section .maths-class-card {
  position: relative;
  display: flex;
  min-height: 390px;
  flex-direction: column;
  overflow: hidden;
  padding: 26px 25px 24px;
  border: 1px solid rgba(8, 123, 115, 0.15);
  border-radius: 25px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 22px 52px rgba(11, 40, 93, 0.1);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.maths-class-path-section .maths-class-card::after {
  position: absolute;
  right: -35px;
  bottom: -42px;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: rgba(8, 123, 115, 0.055);
  content: "";
}

.maths-class-path-section .maths-class-card:hover {
  z-index: 1;
  box-shadow: 0 28px 64px rgba(11, 40, 93, 0.16);
  transform: translateY(-7px);
}

.maths-class-card.stage-2 {
  border-color: rgba(235, 168, 0, 0.34);
  transform: translateY(-10px);
}

.maths-class-card.stage-2:hover {
  transform: translateY(-16px);
}

.maths-class-card.stage-3 {
  border-color: rgba(52, 32, 139, 0.21);
}

.maths-class-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.maths-class-card-top > span {
  color: #087b73;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.maths-class-card-top > i {
  display: grid;
  width: 55px;
  height: 55px;
  border-radius: 17px;
  place-items: center;
  color: #fff;
  background: linear-gradient(145deg, #0a9286, #056763);
  box-shadow: 0 12px 24px rgba(8, 123, 115, 0.2);
  font-size: 23px;
}

.maths-class-card.stage-2 .maths-class-card-top > i {
  color: #0b285d;
  background: linear-gradient(145deg, #ffe382, #ffc72e);
  box-shadow: 0 12px 24px rgba(235, 168, 0, 0.22);
}

.maths-class-card.stage-3 .maths-class-card-top > i {
  background: linear-gradient(145deg, #4c36aa, #29186f);
  box-shadow: 0 12px 24px rgba(52, 32, 139, 0.2);
}

.maths-class-range {
  width: fit-content;
  margin-bottom: 12px;
  padding: 6px 10px;
  border-radius: 8px;
  color: #087b73;
  background: #e8f5f1;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.maths-class-card.stage-2 .maths-class-range {
  color: #785500;
  background: #fff2c6;
}

.maths-class-card.stage-3 .maths-class-range {
  color: #34208b;
  background: #efebff;
}

.maths-class-path-section .maths-class-card h3 {
  margin: 0 0 13px;
  color: #0b285d;
  font-size: 27px;
  line-height: 1.12;
}

.maths-class-path-section .maths-class-card > p {
  flex: 1;
  margin: 0;
  color: #596476;
  font-size: 13px;
  line-height: 1.7;
}

.maths-class-result {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 18px 0 14px;
  padding-top: 15px;
  border-top: 1px solid #e7ece9;
  color: #0b285d;
  font-size: 11px;
  font-weight: 900;
}

.maths-class-result i {
  color: #0a9286;
}

.maths-class-path-section .maths-class-card > strong {
  position: relative;
  z-index: 1;
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 7px;
  margin-top: 0;
  padding: 8px 11px;
  color: #6d4a00;
  background: #fff0c9;
  font-size: 10px;
}

.maths-class-path-section .board-coverage {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(330px, 0.85fr) auto;
  align-items: center;
  gap: 24px;
  margin-top: 34px;
  padding: 26px 28px;
  border: 1px solid rgba(255, 255, 255, 0.23);
  border-radius: 23px;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.07), transparent 42%),
    #075f60;
  box-shadow: 0 20px 45px rgba(7, 95, 96, 0.18);
}

.board-coverage-copy {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  align-items: center;
  gap: 15px;
}

.board-coverage-copy > i {
  display: grid;
  width: 58px;
  height: 58px;
  border-radius: 17px;
  place-items: center;
  color: #0b285d;
  background: #ffd047;
  font-size: 23px;
}

.board-coverage-copy span,
.board-coverage-copy strong,
.board-coverage-copy p {
  display: block;
}

.board-coverage-copy span {
  color: #9ee0d6;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.board-coverage-copy strong {
  margin: 3px 0 4px;
  color: #fff;
  font-family: "Salsa", cursive;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.2;
}

.board-coverage-copy p {
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 10px;
  line-height: 1.5;
}

.board-coverage-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.maths-class-path-section .board-coverage-options span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.19);
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  font-size: 9px;
  font-weight: 900;
}

.board-coverage-options i {
  color: #ffd047;
}

.board-coverage-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-width: 180px;
  padding: 13px 16px;
  border-radius: 11px;
  color: #0b285d;
  background: #ffd047;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.14);
  font-size: 13px;
}

.board-coverage-cta:hover {
  color: #0b285d;
  background: #ffe07a;
  transform: translateY(-2px);
}

@media (max-width: 1024px) {
  .maths-class-path-section .board-coverage {
    grid-template-columns: 1fr auto;
  }

  .board-coverage-options {
    grid-column: 1 / -1;
    grid-row: 2;
  }
}

@media (max-width: 820px) {
  .maths-class-path-section .maths-track-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .maths-class-path-section .maths-track-grid::before {
    display: none;
  }

  .maths-class-card.stage-2,
  .maths-class-card.stage-2:hover {
    transform: none;
  }

  .maths-class-path-section .maths-class-card {
    min-height: 0;
  }

  .maths-class-path-section .board-coverage {
    grid-template-columns: 1fr;
  }

  .board-coverage-options,
  .board-coverage-cta {
    grid-column: auto;
    grid-row: auto;
  }

  .board-coverage-cta {
    width: 100%;
  }
}

@media (max-width: 520px) {
  .maths-class-heading {
    margin-bottom: 34px;
  }

  .maths-class-heading h2 {
    font-size: 37px;
  }

  .maths-class-heading > span {
    font-size: 13px;
  }

  .maths-class-path-section .maths-class-card {
    padding: 22px 20px;
    border-radius: 21px;
  }

  .maths-class-path-section .board-coverage {
    padding: 22px 18px;
    border-radius: 20px;
  }

  .board-coverage-copy {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .board-coverage-copy > i {
    width: 48px;
    height: 48px;
    border-radius: 14px;
  }

  .board-coverage-copy strong {
    font-size: 18px;
  }

  .board-coverage-options {
    display: grid;
    grid-template-columns: 1fr;
  }

  .maths-class-path-section .board-coverage-options span {
    justify-content: center;
  }
}

/* Final BrainUpKids palette pass for the Maths experience */
.maths-mastery-page {
  --course-primary: #4b86c6;
  --course-primary-dark: #263766;
  --course-accent: #f2bd3e;
  --math-green: #4b86c6;
  color: #26304d;
}

.maths-mastery-page .course-eyebrow,
.maths-mastery-page .maths-parent-badge,
.maths-mastery-page .maths-hero-text-link,
.maths-mastery-page .maths-class-card-top > span,
.maths-mastery-page .maths-class-range {
  color: #31588f;
}

.maths-mastery-page .maths-hero-showcase {
  background: #31588f;
}

.maths-mastery-page .maths-showcase-mark,
.maths-mastery-page .maths-showcase-icon,
.maths-mastery-page .maths-showcase-price,
.maths-mastery-page .maths-showcase-card li i {
  color: #31588f;
}

.maths-mastery-page .maths-showcase-icon,
.maths-mastery-page .maths-showcase-card li i,
.maths-mastery-page .maths-class-range {
  background: #e7f0fb;
}

.maths-mastery-page .maths-class-card-top > i {
  background: #4b86c6;
  box-shadow: 0 12px 24px rgba(75, 134, 198, 0.22);
}

.maths-mastery-page .maths-class-card,
.maths-mastery-page .maths-showcase-card {
  border-color: rgba(75, 134, 198, 0.22);
}
