.main-nav [aria-current] { color: var(--navy); text-decoration: underline; text-underline-offset: .4em; }
.course-page h1, .course-page h2 { font-family: inherit; font-weight: 750; }
.catalog-hero { background: linear-gradient(112deg, #eaf0ff, #f7f9ff 70%); border-bottom: 1px solid var(--line); }
.catalog-intro { padding-block: clamp(2rem, 5vw, 4.25rem) clamp(3.2rem, 7vw, 5.65rem); }
.catalog-intro h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); letter-spacing: -.065em; }
.catalog-intro > p:last-child { max-width: 60ch; margin-top: .85rem; color: var(--muted); line-height: 1.6; }
.course-catalog { position: relative; margin-top: -1.5rem; padding-bottom: clamp(2.6rem, 6vw, 5rem); }
.course-options { display: grid; grid-template-columns: 1.12fr 1fr; gap: clamp(.85rem, 2vw, 1.4rem); }
.course-option { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 18px; background: var(--light); box-shadow: 0 12px 28px #203d7710; }
.course-option-visual { position: relative; isolation: isolate; display: flex; min-height: clamp(9.5rem, 17vw, 12.5rem); flex-direction: column; justify-content: space-between; align-items: flex-start; gap: 1.1rem; overflow: hidden; padding: clamp(1rem, 3vw, 1.65rem); border-radius: 17px 17px 0 0; color: white; }
.free-visual { background: linear-gradient(120deg, #1c3274, #294eb1); }
.paid-visual { background: linear-gradient(120deg, #211b43, #504080); }
.option-status { border: 1px solid #ffffff52; border-radius: 999px; padding: .28rem .62rem; background: #ffffff17; font-size: .73rem; font-weight: 700; }
.course-math { position: absolute; z-index: -1; right: .07em; bottom: -.26em; color: #ffffff1f; font: italic 700 clamp(7rem, 17vw, 13rem)/1 Georgia, serif; user-select: none; }
.course-option-visual p { margin-bottom: .38rem; color: #e3edff; font-size: .87rem; font-weight: 650; }
.course-option-visual h2 { font-size: clamp(1.48rem, 3.5vw, 2.35rem); letter-spacing: -.047em; }
.course-option-body { display: flex; flex: 1; flex-direction: column; align-items: flex-start; gap: 1rem; padding: clamp(1rem, 3vw, 1.65rem); }
.course-option-body > p { color: var(--muted); line-height: 1.6; }
.course-facts { display: flex; flex-wrap: wrap; gap: .6rem; padding: 0; margin: 0; list-style: none; color: var(--navy); font-size: .8rem; }
.course-facts li { padding: .3rem .55rem; border-radius: 5px; background: #eef3ff; }
.course-option-body .button { margin-top: auto; }
.catalog-primary { background: #294eb1; color: white; }
.catalog-primary:hover { background: #203d90; }
.catalog-secondary { border-color: #c8c0e0; color: #463576; }
.catalog-secondary:hover { background: #f2eefb; }
.catalog-curriculum { margin-top: clamp(2.2rem, 5vw, 3.5rem); }
.catalog-curriculum h2 { font-size: clamp(1.5rem, 3.3vw, 2.1rem); }
.curriculum-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .85rem; list-style: none; padding: 0; margin: 1rem 0 0; }
.curriculum-grid a { position: relative; display: grid; align-content: start; gap: .47rem; height: 100%; padding: 1rem 2.2rem 1rem 1rem; border: 1px solid var(--line); border-radius: 11px; background: var(--light); text-decoration: none; }
.curriculum-grid a:hover { border-color: #8299d0; background: #edf2ff; }
.chapter-symbol { color: #3855a9; font: italic 700 1.22rem Georgia, serif; }
.curriculum-grid small { color: var(--muted); }
.chapter-link-arrow { position: absolute; top: .9rem; right: .9rem; color: var(--navy); }

.paid-page { padding-block: clamp(2rem, 5vw, 4.7rem) clamp(3rem, 8vw, 7rem); }
.paid-back { display: inline-block; margin-bottom: clamp(1.45rem, 4vw, 3rem); }
.paid-layout { display: grid; grid-template-columns: 1fr .9fr; gap: clamp(1.4rem, 6vw, 5rem); align-items: center; }
.paid-layout h1 { font-size: clamp(2.75rem, 7vw, 5rem); }
.paid-status { border-top: 1px solid var(--line); margin-top: 1.45rem; padding-top: 1.1rem; }
.paid-status h2 { font-size: clamp(1.4rem, 3.2vw, 1.9rem); color: var(--navy); }
.paid-status p { color: var(--muted); margin-top: .7rem; max-width: 43ch; line-height: 1.6; }
.paid-photo img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; }
.paid-photo figcaption { color: var(--muted); font-size: .8rem; margin-top: .55rem; }
@media (max-width: 710px) {
  .course-options, .curriculum-grid, .paid-layout { grid-template-columns: 1fr; }
}
