.section-page { background: #f4f7f8; }

.section-hero {
  position: relative;
  overflow: hidden;
  min-height: 430px;
  padding: clamp(58px, 8vw, 104px) clamp(20px, 8vw, 118px);
  color: white;
  background: var(--midnight);
}
.section-hero::after {
  content: "";
  position: absolute;
  right: -110px;
  top: -150px;
  width: 500px;
  height: 500px;
  border: 74px solid transparent;
  border-radius: 50%;
  background: conic-gradient(var(--fit-blue), var(--fit-pink), var(--fit-red), var(--fit-orange), var(--fit-yellow), var(--fit-green), var(--fit-blue)) border-box;
  opacity: 0.2;
  mask: linear-gradient(#000 0 0) padding-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
}
.section-hero-inner { position: relative; z-index: 1; max-width: 850px; }
.back-link { display: inline-block; margin-bottom: 50px; color: #c8d9e5; text-decoration: none; font-size: 0.88rem; font-weight: 750; }
.back-link:hover { color: white; }
.section-hero h1 { margin: 0; font-size: clamp(3rem, 7vw, 6.2rem); font-weight: 420; line-height: 0.98; letter-spacing: -0.05em; }
.section-summary { max-width: 680px; margin: 24px 0 0; color: #d4e2eb; font-size: clamp(1.06rem, 1.8vw, 1.28rem); }
.route-purpose { display: inline-flex; align-items: center; gap: 9px; margin-top: 30px; padding: 9px 14px; color: white; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.18); border-radius: 999px; font-size: 0.8rem; font-weight: 750; }
.route-purpose::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--route-color, var(--fit-blue)); }

.route-tabs { display: grid; grid-template-columns: repeat(3, 1fr); padding: 0 clamp(20px, 8vw, 118px); background: white; border-bottom: 1px solid var(--line); }
.route-tabs a { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 76px; padding: 18px; color: var(--muted); border-bottom: 4px solid transparent; text-decoration: none; font-weight: 800; text-align: center; }
.route-tabs a span { color: var(--coral); font-size: 0.72rem; letter-spacing: 0.08em; }
.route-tabs a[aria-current="page"] { color: var(--navy); border-color: var(--route-color, var(--fit-blue)); }

.route-content { padding: clamp(64px, 8vw, 108px) clamp(20px, 8vw, 118px); }
.route-intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 0.75fr); gap: 64px; align-items: end; margin-bottom: 38px; }
.route-intro h2, .how-it-works h2, .other-routes h2 { margin: 0; color: var(--navy); font-size: clamp(2rem, 4vw, 3.4rem); line-height: 1.05; letter-spacing: -0.04em; }
.route-intro > div > p:last-child { max-width: 680px; margin: 16px 0 0; color: var(--muted); }
.section-search label { display: block; margin-bottom: 9px; color: var(--navy); font-size: 0.82rem; font-weight: 800; }

.path-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.path-card {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 22px;
  min-height: 320px;
  padding: clamp(24px, 3.2vw, 38px);
  overflow: hidden;
  background: white;
  border: 1px solid var(--line);
  border-top: 5px solid var(--card-color, var(--fit-blue));
  border-radius: 18px;
  transition: transform 180ms ease, box-shadow 180ms ease;
}
.path-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.path-number { display: grid; place-items: center; width: 44px; height: 44px; color: var(--navy); background: color-mix(in srgb, var(--card-color, var(--fit-blue)) 14%, white); border-radius: 50%; font-size: 0.8rem; font-weight: 900; }
.path-card-main { display: flex; min-width: 0; flex-direction: column; }
.path-card .resource-icon { margin-bottom: 30px; }
.path-label { margin: 0 0 7px; color: var(--card-color, var(--fit-blue)); font-size: 0.74rem; font-weight: 900; letter-spacing: 0.1em; text-transform: uppercase; }
.path-card h3 { margin: 0; color: var(--navy); font-size: clamp(1.35rem, 2vw, 1.75rem); line-height: 1.12; letter-spacing: -0.025em; }
.path-card > .path-card-main > p { margin: 13px 0 20px; color: var(--muted); }
.path-card .resource-meta { margin-top: 0; }
.path-card button { align-self: flex-start; margin-top: auto; padding: 0; color: var(--navy); background: transparent; border: 0; font-weight: 850; cursor: pointer; }
.path-card button span { display: inline-block; margin-left: 5px; transition: transform 160ms ease; }
.path-card button:hover span { transform: translateX(4px); }

.empty-state a { display: inline-block; margin-top: 12px; padding: 10px 16px; color: white; background: var(--navy); border-radius: 999px; text-decoration: none; font-weight: 800; }

.how-it-works { display: grid; grid-template-columns: 0.7fr 1.3fr; gap: 70px; padding: clamp(62px, 8vw, 98px) clamp(20px, 8vw, 118px); background: white; }
.how-it-works ol { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.how-it-works li { display: grid; grid-template-columns: 38px 1fr; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.how-it-works li > span { display: grid; place-items: center; width: 32px; height: 32px; color: var(--navy); background: var(--blue-soft); border-radius: 50%; font-size: 0.78rem; font-weight: 900; }
.how-it-works strong { color: var(--navy); }
.how-it-works li p { margin: 4px 0 0; color: var(--muted); font-size: 0.9rem; }

.other-routes { padding: clamp(62px, 8vw, 98px) clamp(20px, 8vw, 118px); background: #eaf0f3; }
.other-route-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 30px; }
.other-route-card { min-height: 180px; padding: 26px; color: var(--navy); background: white; border: 1px solid var(--line); border-top: 5px solid var(--other-color); border-radius: 15px; text-decoration: none; }
.other-route-card span { color: var(--other-color); font-size: 0.72rem; font-weight: 900; letter-spacing: 0.1em; }
.other-route-card h3 { margin: 30px 0 7px; font-size: 1.35rem; }
.other-route-card p { margin: 0; color: var(--muted); }
.footer-home { padding: 10px 16px; color: var(--midnight); background: var(--fit-orange); border-radius: 999px; text-decoration: none; font-weight: 800; }

.section-know { --route-color: var(--fit-blue); }
.section-do { --route-color: var(--fit-red); }
.section-reference { --route-color: var(--fit-green); }

@media (max-width: 860px) {
  .route-intro, .how-it-works { grid-template-columns: 1fr; gap: 34px; }
  .path-grid { grid-template-columns: 1fr; }
}
@media (max-width: 650px) {
  .section-hero { min-height: 430px; padding: 46px 18px 64px; }
  .back-link { margin-bottom: 42px; }
  .section-hero h1 { font-size: clamp(2.7rem, 14vw, 4rem); }
  .route-tabs { grid-template-columns: 1fr; padding: 0 18px; }
  .route-tabs a { justify-content: flex-start; min-height: 58px; border-bottom-width: 1px; border-left: 4px solid transparent; }
  .route-tabs a[aria-current="page"] { border-left-color: var(--route-color); border-bottom-color: var(--line); }
  .route-content, .how-it-works, .other-routes { padding-left: 18px; padding-right: 18px; }
  .path-card { grid-template-columns: 1fr; gap: 14px; min-height: 340px; }
  .path-card .resource-icon { margin-bottom: 20px; }
  .other-route-grid { grid-template-columns: 1fr; }
}
