/* The member-course covers give each level a recognizable, single-row pathway. */
.legacy-path {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 96px 0 108px;
  background: #1a3e74;
  color: #f8f8f8;
}
.legacy-path .legacy-section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, .7fr);
  column-gap: clamp(42px, 5vw, 104px);
  align-items: end;
  text-align: left;
}
.legacy-path .legacy-red-rule {
  grid-column: 1;
  margin: 0 0 22px;
  width: 72px;
  height: 6px;
}
.legacy-path .legacy-section-heading > p {
  grid-column: 1;
  color: #c6dae8;
  font: 700 12px/1.35 Montserrat, Arial, sans-serif;
  letter-spacing: .21em;
}
.legacy-path .legacy-section-heading h2 {
  grid-column: 1;
  margin: 15px 0 0;
  max-width: 860px;
  color: #f8f8f8;
  font: 700 clamp(43px, 4.25vw, 76px)/1.06 Montserrat, Arial, sans-serif;
  letter-spacing: -.052em;
}
.legacy-path .legacy-section-heading h2 span { color: #f9c21f; }
.legacy-path .legacy-heading-copy {
  grid-column: 2;
  grid-row: 3;
  max-width: 450px;
  margin: 0 0 7px;
  padding: 5px 0 5px 25px;
  border-left: 4px solid #f9c21f;
  color: #c6dae8;
  font: 400 15px/1.7 Poppins, Arial, sans-serif;
}
.legacy-path .legacy-heading-copy strong {
  margin-bottom: 12px;
  color: #f8f8f8;
  font: 700 17px/1.45 Montserrat, Arial, sans-serif;
}
.legacy-path-tools {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  min-height: 40px;
  margin-top: 18px;
}
.legacy-path-tools[hidden] { display: none; }
.legacy-path-scroll {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid #c6dae8;
  border-radius: 12px 4px 12px 4px;
  background: transparent;
  color: #f9c21f;
  font: 700 22px/1 Montserrat, Arial, sans-serif;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}
.legacy-path-scroll:hover:not(:disabled),
.legacy-path-scroll:focus-visible:not(:disabled) {
  transform: translateY(-2px);
  background: #f9c21f;
  color: #1a3e74;
}
.legacy-path-scroll:focus-visible { outline: 2px solid #f9c21f; outline-offset: 3px; }
.legacy-path-scroll:disabled { opacity: .4; cursor: default; }
.legacy-path-grid {
  display: grid;
  grid-template-columns: none;
  grid-auto-flow: column;
  grid-auto-columns: minmax(250px, calc((100% - 75px) / 6));
  gap: 15px;
  margin: 22px 0 0;
  padding: 2px 2px 21px;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scroll-behavior: smooth;
  scroll-padding-inline: 2px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  list-style: none;
}
.legacy-path-grid::-webkit-scrollbar { display: none; }
.legacy-path-grid::before,
.legacy-path-grid::after,
.legacy-path-grid li::before,
.legacy-path-grid li::after { display: none !important; }
.legacy-path-grid li {
  display: flex;
  min-width: 0;
  scroll-snap-align: start;
}
.legacy-path-card {
  --path-surface: #f8f8f8;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  box-sizing: border-box;
  width: 100%;
  min-height: 505px;
  padding: 24px 20px 0;
  overflow: hidden;
  border: 1px solid #c6dae8;
  border-radius: 11px 64px 11px 39px / 11px 47px 13px 33px;
  background: var(--path-surface);
  box-shadow: 0 18px 34px #090f1240;
  color: #1a3e74;
  text-align: left;
  text-decoration: none;
  transition: transform .36s ease, box-shadow .36s ease;
}
.legacy-path-grid li:nth-child(1) .legacy-path-card,
.legacy-path-grid li:nth-child(6) .legacy-path-card {
  --path-surface: #f9c21f;
  border-color: #f9c21f;
}
.legacy-path-grid li:nth-child(2) .legacy-path-card,
.legacy-path-grid li:nth-child(4) .legacy-path-card { --path-surface: #c6dae8; }
.legacy-path-grid li:nth-child(3) .legacy-path-card { --path-surface: #ffdcd4; }
.legacy-path-grid li:nth-child(5) .legacy-path-card { --path-surface: #f8f8f8; }
.legacy-path-grid li:nth-child(even) .legacy-path-card {
  border-radius: 50px 9px 38px 11px / 37px 10px 30px 12px;
}
.legacy-path-card:hover,
.legacy-path-card:focus-visible {
  transform: translateY(-8px);
  box-shadow: 0 27px 43px #090f1257;
}
.legacy-path-card:focus-visible { outline: 3px solid #f9c21f; outline-offset: 4px; }
.legacy-path-connector {
  display: grid;
  place-items: center;
  flex: none;
  width: 53px;
  height: 53px;
  margin: 0 0 23px;
  border: 0;
  border-radius: 17px 4px 17px 7px;
  background: #1a3e74;
  color: #f9c21f;
  transition: transform .36s ease;
}
.legacy-path-connector .icon { width: 28px; height: 28px; }
.legacy-path-card:hover .legacy-path-connector,
.legacy-path-card:focus-visible .legacy-path-connector { transform: rotate(-5deg) scale(1.06); }
.legacy-path-card h3 {
  margin: 0;
  color: #1a3e74;
  font: 700 clamp(18px, 1.4vw, 22px)/1.15 Montserrat, Arial, sans-serif;
  letter-spacing: -.035em;
  white-space: nowrap;
}
.legacy-path-card strong {
  margin: 11px 0 0;
  color: #1a3e74;
  font: 700 13px/1.45 Montserrat, Arial, sans-serif;
}
.legacy-path-card p {
  flex: 1;
  margin: 14px 0 16px;
  color: #2d3049;
  font: 400 12px/1.58 Poppins, Arial, sans-serif;
}
.legacy-card-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  min-height: 42px;
  margin: auto 0 14px;
  padding: 9px 10px;
  border-radius: 10px 4px 10px 5px;
  background: #1a3e74;
  color: #f8f8f8;
  font: 700 10px/1.3 Montserrat, Arial, sans-serif;
  text-transform: uppercase;
}
.legacy-card-link span { flex: none; color: #f9c21f; font-size: 18px; transition: transform .36s ease; }
.legacy-path-card:hover .legacy-card-link span,
.legacy-path-card:focus-visible .legacy-card-link span { transform: translateX(4px); }
.legacy-path-photo {
  position: relative;
  display: block;
  flex: none;
  width: calc(100% + 40px);
  height: 190px;
  margin: 0 -20px;
  overflow: hidden;
}
.legacy-path-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: bottom center;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, transparent 33%, #090f12 81%);
  mask-image: linear-gradient(to bottom, transparent 0%, transparent 33%, #090f12 81%);
  transition: transform .5s ease;
}
.legacy-path-grid li:nth-child(1) .legacy-path-photo img,
.legacy-path-grid li:nth-child(4) .legacy-path-photo img { filter: brightness(1.04) saturate(1.06); }
.legacy-path-grid li:nth-child(2) .legacy-path-photo img,
.legacy-path-grid li:nth-child(6) .legacy-path-photo img { filter: brightness(1.1); }
.legacy-path-grid li:nth-child(3) .legacy-path-photo img { filter: brightness(1.18) saturate(.9); }
.legacy-path-grid li:nth-child(5) .legacy-path-photo img { filter: brightness(1.01); }
.legacy-path-card:hover .legacy-path-photo img,
.legacy-path-card:focus-visible .legacy-path-photo img { transform: scale(1.05); }
@media (max-width: 980px) {
  .legacy-path { padding: 77px 0 85px; }
  .legacy-path .legacy-section-heading { grid-template-columns: 1fr; }
  .legacy-path .legacy-heading-copy { grid-column: 1; grid-row: auto; max-width: 650px; margin: 29px 0 0; }
}
@media (max-width: 620px) {
  .legacy-path { padding: 62px 0 70px; }
  .legacy-path .legacy-section-heading h2 { font-size: clamp(34px, 9.5vw, 47px); }
  .legacy-path .legacy-section-heading > p { font-size: 11px; }
  .legacy-path .legacy-heading-copy { margin-top: 26px; padding-left: 17px; font-size: 13px; }
  .legacy-path .legacy-heading-copy strong { font-size: 15px; }
  .legacy-path-grid { grid-auto-columns: min(82vw, 288px); gap: 13px; }
  .legacy-path-card { min-height: 485px; }
}
@media (prefers-reduced-motion: reduce) {
  .legacy-path-grid { scroll-behavior: auto; }
  .legacy-path-card,.legacy-path-connector,.legacy-card-link span,.legacy-path-photo img,.legacy-path-scroll { transition: none; }
}
