/* Home-page learning paths: a distinct, high-contrast discovery section. */
.learning-paths-section {
  margin: clamp(3rem, 7vw, 7rem) 0 0;
  padding: clamp(2.25rem, 5vw, 4.5rem) clamp(1.25rem, 3vw, 2.5rem);
  border-radius: 2rem;
  background: #f6f6f1;
}

.learning-paths-heading {
  display: grid;
  margin-bottom: clamp(2rem, 5vw, 4.5rem);
  grid-template-columns: minmax(0, 1fr) minmax(250px, .42fr);
  align-items: end;
  gap: clamp(1.5rem, 5vw, 6rem);
}

.learning-paths-kicker {
  display: inline-block;
  color: #ff694b;
  font-size: .7rem;
  font-weight: 850;
  letter-spacing: .21em;
  text-transform: uppercase;
}

.learning-paths-heading h2 {
  max-width: 850px;
  margin: .85rem 0 0;
  color: #14201e;
  font-size: clamp(2.55rem, 5.2vw, 5rem);
  font-weight: 800;
  line-height: .98;
  letter-spacing: -.065em;
}

.learning-paths-heading h2 span {
  display: block;
  color: #ff694b;
}

.learning-paths-heading p {
  max-width: 420px;
  margin: 0 0 .15rem;
  color: #4b6261;
  font-size: clamp(.98rem, 1.25vw, 1.12rem);
  line-height: 1.65;
}

.learning-paths-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(.85rem, 1.6vw, 1.4rem);
}

.learning-path-card {
  position: relative;
  display: flex;
  min-height: 430px;
  padding: clamp(1.45rem, 2.5vw, 2rem);
  flex-direction: column;
  overflow: hidden;
  border-radius: 1.45rem;
  color: #14201e;
  text-decoration: none;
  isolation: isolate;
  transition: transform .22s ease, box-shadow .22s ease;
}

.learning-path-card::after {
  position: absolute;
  z-index: -1;
  right: -22%;
  bottom: -45%;
  width: 78%;
  aspect-ratio: 1;
  border: 1px solid currentColor;
  border-radius: 50%;
  opacity: .12;
  content: "";
  transition: transform .3s ease;
}

.learning-path-card:hover {
  color: inherit;
  transform: translateY(-7px);
  box-shadow: 0 22px 40px rgba(15, 23, 42, .16);
}

.learning-path-card:hover::after {
  transform: scale(1.18);
}

.learning-path-card--mathematics { background: #9bbdf1; }
.learning-path-card--computer-science { background: #ff694b; color: #fff; }
.learning-path-card--ai { background: #b39af0; }

.learning-path-number {
  font-size: .78rem;
  font-weight: 850;
  letter-spacing: .04em;
}

.learning-path-arrow {
  position: absolute;
  top: clamp(1.4rem, 2.5vw, 2rem);
  right: clamp(1.4rem, 2.5vw, 2rem);
  font-size: 1.7rem;
  font-weight: 500;
  line-height: 1;
  transition: transform .2s ease;
}

.learning-path-card:hover .learning-path-arrow {
  transform: translate(4px, -4px);
}

.learning-path-icon {
  display: block;
  margin-top: auto;
  margin-bottom: 2.4rem;
  font-size: 3rem;
  font-weight: 600;
  line-height: 1;
}

.learning-path-code-icon {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 2.8rem;
  letter-spacing: -.16em;
}

.learning-path-content {
  display: grid;
  gap: .8rem;
}

.learning-path-content strong {
  font-size: clamp(1.5rem, 2.2vw, 2rem);
  font-weight: 800;
  letter-spacing: -.045em;
}

.learning-path-content small {
  max-width: 350px;
  font-size: .96rem;
  line-height: 1.65;
}

.learning-path-cta {
  display: flex;
  margin-top: clamp(1.7rem, 3vw, 2.8rem);
  align-items: center;
  gap: .9rem;
  font-size: .83rem;
  font-weight: 850;
}

.learning-path-cta b {
  font-size: 1.2rem;
  font-weight: 500;
  transition: transform .2s ease;
}

.learning-path-card:hover .learning-path-cta b {
  transform: translateX(5px);
}

/* ASCII/HTML-safe symbol rendering keeps these visual marks stable even if a
   deployment tool changes template-file character encoding. */
.learning-path-arrow,
.learning-path-cta b {
  font-size: 0;
}

.learning-path-arrow::after {
  content: "\2197";
  font-size: 1.7rem;
}

.learning-path-cta b::after {
  content: "\2192";
  font-size: 1.2rem;
}

.learning-path-card--mathematics .learning-path-icon,
.learning-path-card--ai .learning-path-icon {
  font-size: 0;
}

.learning-path-card--mathematics .learning-path-icon::after {
  content: "\223F";
  font-size: 3rem;
}

.learning-path-card--ai .learning-path-icon::after {
  content: "\2726";
  font-size: 3rem;
}

/* Dark mode retains the subject colours but reduces brightness and lifts text
   contrast for comfortable night reading. */
.dark-mode .learning-paths-section { background: #0d1623; }
.dark-mode .learning-paths-heading h2 { color: #f8fafc; }
.dark-mode .learning-paths-heading h2 span,
.dark-mode .learning-paths-kicker { color: #ff8b73; }
.dark-mode .learning-paths-heading p { color: #c4d0dc; }
.dark-mode .learning-path-card { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07); }
.dark-mode .learning-path-card:hover {
  box-shadow: 0 24px 42px rgba(0, 0, 0, .3), inset 0 0 0 1px rgba(255, 255, 255, .13);
}
.dark-mode .learning-path-card--mathematics { background: #274d7a; color: #f3f8ff; }
.dark-mode .learning-path-card--computer-science { background: #b94c3a; color: #fff8f5; }
.dark-mode .learning-path-card--ai { background: #584586; color: #f7f2ff; }

@media (max-width: 1100px) {
  .learning-paths-heading { grid-template-columns: 1fr; }
  .learning-paths-heading p { max-width: 620px; }
  .learning-paths-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .learning-path-card:last-child { grid-column: 1 / -1; }
}

@media (max-width: 767.98px) {
  .learning-paths-section {
    margin-top: 2rem;
    padding: 1.25rem;
    border-radius: 1.4rem;
  }

  .learning-paths-heading {
    margin-bottom: 2rem;
    gap: 1rem;
  }

  .learning-paths-heading h2 { font-size: clamp(2.45rem, 12vw, 3.5rem); }
  .learning-paths-heading p { font-size: .96rem; }
  .learning-paths-grid { grid-template-columns: 1fr; }
  .learning-path-card,
  .learning-path-card:last-child {
    min-height: 330px;
    grid-column: auto;
  }
  .learning-path-icon { margin-bottom: 1.7rem; }
  .learning-path-content small { font-size: .9rem; }
}

/* Home-page palette: a warm canvas, deep ink and coral accents carry the
   same visual language from the hero through the final call to action. */
.home-page {
  --home-ink: #14201e;
  --home-muted: #4b6261;
  --home-coral: #ff694b;
  --home-canvas: #f6f6f1;
}

.home-page .home-hero {
  background: linear-gradient(135deg, #f6f6f1, #edf1e7 60%, #f7eee8);
}

.home-page .section-kicker { color: var(--home-coral); }
.home-page .home-hero h1 { color: var(--home-ink); }
.home-page .home-hero-copy > p { color: var(--home-muted); }
.home-page .hero-search { border-color: rgba(20, 32, 30, .14); }
.home-page .hero-search input { color: var(--home-ink); }
.home-page .trust-row span {
  border-color: rgba(20, 32, 30, .13);
  background: rgba(255, 255, 255, .68);
  color: var(--home-muted);
}
.home-page .trust-row strong { color: var(--home-ink); }
.home-page .home-hero-media::after {
  background: linear-gradient(90deg, #f6f6f1 0%, rgba(246, 246, 241, .78) 20%, transparent 44%);
}
.home-page .home-hero-3d {
  background: radial-gradient(circle at 62% 42%, rgba(255, 105, 75, .18), transparent 34%), linear-gradient(135deg, #edf3e7, #e6f1ed 52%, #f8efe5);
}
.home-page .home-hero-3d::before {
  background: linear-gradient(120deg, rgba(20, 32, 30, .07), transparent 42%), radial-gradient(circle at 72% 18%, rgba(212, 240, 86, .34), transparent 26%);
}
.home-page .home-hero .btn-primary,
.mentor-cta {
  border-color: var(--home-ink);
  background: var(--home-ink);
  color: #fff;
}
.home-page .home-hero .btn-primary:hover,
.mentor-cta:hover {
  border-color: #263832;
  background: #263832;
  color: #fff;
}
.home-page .home-hero .btn-ghost {
  border-color: rgba(20, 32, 30, .25);
  color: #263832;
}
.home-page .home-hero .btn-ghost:hover {
  border-color: rgba(20, 32, 30, .45);
  background: rgba(20, 32, 30, .07);
  color: var(--home-ink);
}

/* Mentor */
.mentor-section {
  display: grid;
  margin-top: clamp(3.5rem, 8vw, 8rem);
  grid-template-columns: minmax(300px, .88fr) minmax(0, 1.12fr);
  align-items: stretch;
  gap: clamp(2rem, 7vw, 7rem);
}

.mentor-visual {
  position: relative;
  min-height: 530px;
  overflow: hidden;
  border-radius: 1.7rem;
  background: linear-gradient(140deg, #dce4d6, #e9e7d9);
  isolation: isolate;
}

.mentor-coral-shape {
  position: absolute;
  top: -5%;
  right: -4%;
  width: 48%;
  height: 51%;
  border-radius: 45% 0 48% 52%;
  background: #ff7d5a;
}

.mentor-monogram {
  position: absolute;
  z-index: 1;
  top: 27%;
  left: 30%;
  display: grid;
  width: 240px;
  aspect-ratio: 1;
  place-items: center;
  border-radius: 50%;
  background: var(--home-ink);
  color: #d8fa4d;
  box-shadow: 16px 16px 0 rgba(20, 32, 30, .14);
}

.mentor-monogram span {
  padding-left: .18em;
  border-left: 1px solid currentColor;
  font-size: clamp(3.1rem, 5vw, 4rem);
  font-weight: 850;
  letter-spacing: -.1em;
}

.mentor-subjects {
  position: absolute;
  bottom: 1.5rem;
  left: 1.7rem;
  color: var(--home-ink);
  font-size: .7rem;
  font-weight: 850;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.mentor-subjects b { color: var(--home-coral); }

.mentor-copy {
  display: flex;
  padding: clamp(.5rem, 3vw, 2rem) 0;
  flex-direction: column;
  justify-content: center;
}

.mentor-copy h2 {
  max-width: 780px;
  margin: .8rem 0 1.5rem;
  color: var(--home-ink);
  font-size: clamp(2.65rem, 5.1vw, 5rem);
  font-weight: 850;
  line-height: 1;
  letter-spacing: -.06em;
}

.mentor-copy h2 span {
  display: block;
  color: var(--home-coral);
}

.mentor-copy > p {
  max-width: 700px;
  margin: 0;
  color: var(--home-muted);
  font-size: clamp(1rem, 1.35vw, 1.14rem);
  line-height: 1.65;
}

.mentor-highlights {
  display: grid;
  margin: 2rem 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.mentor-highlights div { padding-right: 1rem; }
.mentor-highlights dt { color: var(--home-ink); font-size: 1.25rem; font-weight: 850; }
.mentor-highlights dd { margin: .3rem 0 0; color: var(--home-muted); font-size: .83rem; line-height: 1.45; }

.mentor-cta {
  display: inline-flex;
  width: fit-content;
  min-height: 54px;
  padding: .75rem 1.2rem;
  align-items: center;
  gap: 1rem;
  border: 1px solid;
  border-radius: 999px;
  font-size: .86rem;
  font-weight: 800;
  text-decoration: none;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}

.mentor-cta:hover { transform: translateY(-2px); }
.mentor-cta b { font-size: 1.2rem; font-weight: 500; }

/* Final invitation closes the page in the same ink-and-coral treatment. */
.home-page .home-cta {
  background: linear-gradient(135deg, #14201e, #263832 62%, #344b40);
  color: #d9e6df;
}
.home-page .home-cta .section-kicker { color: #ff9a85; }
.home-page .home-cta h2 { color: #fff; }
.home-page .home-cta p { color: #c4d0c8; }
.home-page .home-cta .btn-light {
  border-color: var(--home-coral);
  background: var(--home-coral);
  color: #fff;
}
.home-page .home-cta .btn-light:hover { border-color: #ff8068; background: #ff8068; color: #fff; }
.home-page .home-cta .btn-outline-light { border-color: rgba(255, 255, 255, .42); color: #fff; }
.home-page .home-cta .btn-outline-light:hover { border-color: #fff; background: rgba(255, 255, 255, .12); color: #fff; }

/* The same relationships are preserved in night mode, with higher contrast. */
.home-page.dark-mode .home-hero { background: linear-gradient(135deg, #0d1623, #14231f 60%, #211a22); }
.home-page.dark-mode .section-kicker { color: #ff9a85; }
.home-page.dark-mode .home-hero h1,
.dark-mode .mentor-copy h2,
.dark-mode .mentor-highlights dt { color: #f8fafc; }
.home-page.dark-mode .home-hero-copy > p,
.dark-mode .mentor-copy > p,
.dark-mode .mentor-highlights dd { color: #c4d0dc; }
.home-page.dark-mode .hero-search { border-color: rgba(255, 255, 255, .12); background: rgba(15, 23, 42, .62); }
.home-page.dark-mode .hero-search input { color: #f8fafc; }
.home-page.dark-mode .trust-row span { border-color: rgba(255, 255, 255, .1); background: rgba(15, 23, 42, .55); color: #c4d0dc; }
.home-page.dark-mode .trust-row strong { color: #f8fafc; }
.home-page.dark-mode .home-hero-media::after { background: linear-gradient(90deg, #0d1623 0%, rgba(13, 22, 35, .8) 20%, transparent 44%); }
.home-page.dark-mode .home-hero-3d { background: radial-gradient(circle at 62% 42%, rgba(255, 121, 93, .22), transparent 34%), linear-gradient(135deg, #13251f, #122a29 52%, #211c2a); }
.home-page.dark-mode .home-hero .btn-primary,
.dark-mode .mentor-cta { border-color: #ff8b73; background: #ff8b73; color: #171c23; }
.home-page.dark-mode .home-hero .btn-primary:hover,
.dark-mode .mentor-cta:hover { border-color: #ffab99; background: #ffab99; color: #171c23; }
.home-page.dark-mode .home-hero .btn-ghost { border-color: rgba(255, 255, 255, .3); color: #f8fafc; }
.home-page.dark-mode .home-hero .btn-ghost:hover { border-color: rgba(255, 255, 255, .6); background: rgba(255, 255, 255, .1); color: #fff; }
.dark-mode .mentor-visual { background: linear-gradient(140deg, #24352f, #2d322c); }
.dark-mode .mentor-coral-shape { background: #be5b47; }
.dark-mode .mentor-monogram { background: #101c1a; color: #dcfa5a; box-shadow: 16px 16px 0 rgba(0, 0, 0, .24); }
.dark-mode .mentor-subjects { color: #eef4ef; }
.home-page.dark-mode .home-cta { background: linear-gradient(135deg, #101c1a, #1d302a 62%, #273c35); }

@media (max-width: 991.98px) {
  .mentor-section { grid-template-columns: 1fr; }
  .mentor-visual { min-height: 430px; }
  .mentor-copy { padding: 0; }
}

@media (max-width: 767.98px) {
  .home-page .home-hero-media::after { background: linear-gradient(0deg, #f6f6f1, transparent 37%); }
  .home-page.dark-mode .home-hero-media::after { background: linear-gradient(0deg, #0d1623, transparent 37%); }
  .mentor-section { margin-top: 3.5rem; gap: 1.75rem; }
  .mentor-visual { min-height: 365px; border-radius: 1.35rem; }
  .mentor-coral-shape { width: 52%; height: 53%; }
  .mentor-monogram { top: 23%; left: 20%; width: 170px; }
  .mentor-subjects { bottom: 1.2rem; left: 1.25rem; font-size: .61rem; }
  .mentor-copy h2 { font-size: clamp(2.5rem, 12vw, 3.45rem); }
  .mentor-highlights { margin: 1.6rem 0; gap: .75rem; }
  .mentor-highlights dt { font-size: 1.1rem; }
  .mentor-highlights dd { font-size: .75rem; }
}
