:root {
    --ter-page-max: 1380px;
    --ter-bg: #050d18;
    --ter-panel: rgba(9, 20, 34, 0.92);
    --ter-panel-2: rgba(13, 28, 46, 0.88);
    --ter-border: rgba(255, 255, 255, 0.12);
    --ter-border-strong: rgba(216, 180, 106, 0.34);
    --ter-text: #f5f1e8;
    --ter-muted: rgba(245, 241, 232, 0.72);
    --ter-soft: rgba(245, 241, 232, 0.50);
    --ter-gold: #f2c95f;
    --ter-gold-2: #d8a83d;
    --ter-green: #53d879;
    --ter-blue: #4fb7ff;
    --ter-purple: #b06cff;
    --ter-shadow: 0 24px 70px rgba(0, 0, 0, 0.36), inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

.roadmap-preview-body {
    margin: 0;
    min-height: auto;
    background:
        radial-gradient(circle at 90% 12%, rgba(216, 180, 106, 0.08), transparent 28%),
        linear-gradient(180deg, #14191d 0%, #050d18 100%);
    color: var(--ter-text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.ter-page {
    width: 100%;
    max-width: var(--ter-page-max);
    margin-left: 0;
    margin-right: auto;
    padding: 0;
    color: var(--ter-text);
}

.ter-hero,
.ter-level-card,
.ter-journey-panel,
.ter-lifelong-card {
    border: 1px solid var(--ter-border);
    box-shadow: var(--ter-shadow);
}

.ter-hero {
    position: relative;
    min-height: 460px;
    border-radius: 24px;
    overflow: hidden;
    background:
        var(--ter-hero-image) center center / cover no-repeat,
        linear-gradient(135deg, rgba(13, 28, 44, 0.88), rgba(5, 12, 22, 0.94));
}

.ter-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 74% 14%, rgba(242, 201, 95, 0.12), transparent 24%),
        linear-gradient(180deg, transparent 0%, rgba(2, 7, 15, 0.22) 100%);
    pointer-events: none;
}

.ter-hero__content {
    position: relative;
    z-index: 2;
    width: min(760px, 100%);
    max-width: 760px;
    padding: 50px 54px 42px;
}

.ter-eyebrow {
    color: var(--ter-gold);
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-weight: 900;
    margin-bottom: 0.75rem;
}

.ter-hero h1,
.ter-level-card h2,
.ter-journey-panel h2 {
    font-family: Georgia, "Times New Roman", serif;
    color: #fff8e8;
    letter-spacing: -0.055em;
}

.ter-hero h1 {
    margin: 0;
    font-size: clamp(3.1rem, 5vw, 5.1rem);
    line-height: 0.92;
    font-weight: 520;
    max-width: 720px;
    white-space: nowrap;
}

.ter-hero__content > p {
    margin: 1.05rem 0 0;
    max-width: 650px;
    color: rgba(245, 241, 232, 0.82);
    font-size: 1.03rem;
    line-height: 1.52;
}

.ter-hero-points {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    max-width: 650px;
    margin-top: 28px;
    margin-bottom: 28px;
}

.ter-hero-point {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    min-height: 58px;
    padding-right: 18px;
}

.ter-hero-point + .ter-hero-point {
    border-left: 1px solid rgba(255, 255, 255, 0.11);
    padding-left: 18px;
}

.ter-hero-point img {
    width: 38px;
    height: 38px;
    object-fit: contain;
    filter: drop-shadow(0 0 12px rgba(242, 201, 95, 0.30));
}

.ter-hero-point span {
    color: rgba(245, 241, 232, 0.86);
    font-size: 0.88rem;
    font-weight: 760;
    line-height: 1.25;
}

.ter-hero-actions {
    display: grid;
    gap: 12px;
    justify-items: start;
}

.ter-primary-btn,
.ter-card-btn,
.ter-small-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 44px;
    padding: 0.68rem 1rem;
    border-radius: 10px;
    text-decoration: none !important;
    font-weight: 900;
}

.ter-primary-btn {
    width: 220px;
    min-height: 50px;
    justify-content: space-between;
    padding-inline: 1.35rem;
    color: #120c02;
    background: linear-gradient(180deg, #ffd96f 0%, #efb535 100%);
    box-shadow: 0 10px 24px rgba(242, 201, 95, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.38);
}

.ter-primary-btn:hover {
    color: #070400;
    transform: translateY(-1px);
}

.ter-hero-actions p {
    margin: 0;
    color: rgba(245, 241, 232, 0.78);
    font-size: 0.88rem;
}

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

.ter-level-card {
    position: relative;
    overflow: hidden;
    min-height: 455px;
    display: flex;
    flex-direction: column;
    border-radius: 18px;
    padding: 25px 24px 22px;
    background:
        linear-gradient(180deg, rgba(9, 20, 34, 0.52), rgba(4, 10, 18, 0.78)),
        var(--ter-card-bg) center center / cover no-repeat,
        linear-gradient(180deg, rgba(9, 20, 34, 0.9), rgba(4, 10, 18, 0.96));
}

.ter-level-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 12%, var(--ter-accent-soft), transparent 24%),
        linear-gradient(180deg, rgba(0, 0, 0, 0.03), rgba(0, 0, 0, 0.20));
    pointer-events: none;
}

.ter-level-card--beginner {
    --ter-accent: var(--ter-green);
    --ter-accent-soft: rgba(83, 216, 121, 0.22);
    border-color: rgba(83, 216, 121, 0.32);
}

.ter-level-card--intermediate {
    --ter-accent: var(--ter-blue);
    --ter-accent-soft: rgba(79, 183, 255, 0.22);
    border-color: rgba(79, 183, 255, 0.32);
}

.ter-level-card--pro {
    --ter-accent: var(--ter-purple);
    --ter-accent-soft: rgba(176, 108, 255, 0.22);
    border-color: rgba(176, 108, 255, 0.32);
}

.ter-level-card > * {
    position: relative;
    z-index: 1;
}

.ter-level-card__head {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    align-items: center;
    gap: 18px;
    margin-bottom: 22px;
}

.ter-level-card__head img {
    width: 88px;
    height: 88px;
    object-fit: contain;
    filter: drop-shadow(0 10px 22px rgba(0, 0, 0, 0.30));
}

.ter-level-card__head span {
    display: block;
    margin-bottom: 4px;
    color: var(--ter-accent);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-weight: 950;
}

.ter-level-card h2 {
    margin: 0;
    font-size: 2.05rem;
    line-height: 0.98;
    font-weight: 500;
}

.ter-level-card__head p {
    margin: 6px 0 0;
    color: var(--ter-accent);
    font-size: 1rem;
    font-weight: 800;
}

.ter-level-card__copy {
    margin: 0 0 20px;
    color: rgba(245, 241, 232, 0.80);
    font-size: 0.98rem;
    line-height: 1.55;
}

.ter-check-list {
    display: grid;
    gap: 9px;
    margin: 0 0 24px;
    padding: 0;
    list-style: none;
}

.ter-check-list li {
    position: relative;
    padding-left: 31px;
    color: rgba(245, 241, 232, 0.86);
    font-size: 0.95rem;
    line-height: 1.35;
}

.ter-check-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0.05rem;
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--ter-accent);
    color: #07101a;
    font-size: 0.72rem;
    font-weight: 950;
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--ter-accent) 16%, transparent);
}

.ter-card-btn {
    width: 100%;
    margin-top: auto;
    justify-content: space-between;
    border: 1px solid color-mix(in srgb, var(--ter-accent) 64%, rgba(255,255,255,0.18));
    background: color-mix(in srgb, var(--ter-accent) 12%, rgba(2,7,15,0.42));
    color: #f8fbff;
}

.ter-card-btn:hover {
    background: color-mix(in srgb, var(--ter-accent) 20%, rgba(2,7,15,0.46));
    color: #ffffff;
}

.ter-journey-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 270px;
    align-items: center;
    gap: 22px;
    margin-top: 16px;
    padding: 26px;
    border-radius: 18px;
    background:
        radial-gradient(circle at 92% 0%, rgba(216, 180, 106, 0.08), transparent 28%),
        linear-gradient(180deg, rgba(10, 23, 39, 0.92), rgba(4, 10, 18, 0.94));
}

.ter-journey-panel h2 {
    margin: 0 0 24px;
    font-size: 2rem;
    line-height: 1;
    font-weight: 500;
}

.ter-journey-steps {
    display: grid;
    grid-template-columns: auto minmax(60px, 1fr) auto minmax(60px, 1fr) auto;
    align-items: center;
    gap: 20px;
}

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

.ter-journey-step strong {
    width: 54px;
    height: 54px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    border: 2px solid var(--ter-accent);
    background: color-mix(in srgb, var(--ter-accent) 16%, rgba(2,7,15,0.62));
    font-size: 1.22rem;
    box-shadow: 0 0 0 5px color-mix(in srgb, var(--ter-accent) 10%, transparent);
}

.ter-journey-step--beginner { --ter-accent: var(--ter-green); }
.ter-journey-step--intermediate { --ter-accent: var(--ter-blue); }
.ter-journey-step--pro { --ter-accent: var(--ter-purple); }

.ter-journey-step h3 {
    margin: 0 0 4px;
    color: #fff8e8;
    font-size: 1rem;
    font-weight: 900;
}

.ter-journey-step p {
    margin: 0;
    color: rgba(245, 241, 232, 0.70);
    font-size: 0.88rem;
    line-height: 1.32;
}

.ter-journey-line {
    height: 1px;
    background:
        linear-gradient(90deg, rgba(255,255,255,0.12), rgba(242,201,95,0.90));
    position: relative;
}

.ter-journey-line::after {
    content: "→";
    position: absolute;
    right: -7px;
    top: 50%;
    transform: translateY(-52%);
    color: var(--ter-gold);
    font-size: 1.35rem;
}

.ter-lifelong-card {
    min-height: 150px;
    border-radius: 16px;
    padding: 20px;
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 16px;
    align-items: center;
    border-color: rgba(242, 201, 95, 0.42);
    background:
        radial-gradient(circle at 100% 0%, rgba(242, 201, 95, 0.10), transparent 30%),
        rgba(2, 7, 15, 0.32);
}

.ter-star-icon {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--ter-gold);
    font-size: 2rem;
    text-shadow: 0 0 18px rgba(242, 201, 95, 0.28);
}

.ter-lifelong-card h3 {
    margin: 0 0 8px;
    color: var(--ter-gold);
    font-size: 1rem;
    font-weight: 950;
}

.ter-lifelong-card p {
    margin: 0;
    color: rgba(245, 241, 232, 0.72);
    font-size: 0.9rem;
    line-height: 1.45;
}

@media (max-width: 1199.98px) {
    .ter-resource-panel {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1199.98px) {
    .ter-hero {
        min-height: 420px;
    }

    .ter-level-grid {
        grid-template-columns: 1fr;
    }

    .ter-level-card {
        min-height: auto;
    }

    .ter-journey-panel {
        grid-template-columns: 1fr;
    }

    .ter-lifelong-card {
        max-width: 360px;
    }
}

@media (max-width: 767.98px) {
    .ter-resource-panel {
        padding: 20px;
    }

    .ter-resource-grid {
        grid-template-columns: 1fr;
    }

    .ter-resource-card {
        grid-template-columns: 48px minmax(0, 1fr) 20px;
        padding: 16px;
    }

    .ter-resource-card__icon {
        width: 44px;
        height: 44px;
    }
}

@media (max-width: 767.98px) {
    .ter-page {
        padding: 0 12px;
    }

    .ter-hero {
        min-height: auto;
        border-radius: 18px;
    }

    .ter-hero__content {
        padding: 30px 22px;
    }

    .ter-hero h1 {
        font-size: clamp(2.4rem, 12vw, 3.35rem);
        white-space: normal;
        max-width: 100%;
    }

    .ter-hero-points {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .ter-hero-point {
        padding: 0;
        min-height: auto;
    }

    .ter-hero-point + .ter-hero-point {
        border-left: 0;
        padding-left: 0;
    }

    .ter-primary-btn {
        width: 100%;
    }

    .ter-level-card {
        padding: 22px 18px;
    }

    .ter-level-card__head {
        grid-template-columns: 76px minmax(0, 1fr);
        gap: 14px;
    }

    .ter-level-card__head img {
        width: 72px;
        height: 72px;
    }

    .ter-journey-panel {
        padding: 20px;
    }

    .ter-journey-steps {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .ter-journey-line {
        display: none;
    }

    .ter-lifelong-card {
        max-width: none;
    }
}


/* More education resource links */
.ter-resource-panel {
    display: grid;
    grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
    gap: 22px;
    align-items: stretch;
    margin-top: 18px;
    padding: 24px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    background:
        radial-gradient(circle at 84% 12%, rgba(242, 201, 95, 0.09), transparent 30%),
        linear-gradient(180deg, rgba(10, 23, 39, 0.92), rgba(4, 10, 18, 0.94));
    box-shadow: var(--ter-shadow);
}

.ter-resource-intro h2 {
    margin: 4px 0 8px;
    color: #fff8e8;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.65rem, 2.4vw, 2.25rem);
    line-height: 1.05;
    letter-spacing: -0.045em;
    font-weight: 520;
}

.ter-resource-intro p {
    margin: 0;
    max-width: 460px;
    color: rgba(245, 241, 232, 0.68);
    font-size: 0.96rem;
    line-height: 1.55;
}

.ter-resource-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.ter-resource-card {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    min-height: 148px;
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr) 24px;
    gap: 14px;
    align-items: start;
    padding: 18px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.11);
    background:
        linear-gradient(180deg, rgba(15, 32, 52, 0.92), rgba(7, 17, 30, 0.96));
    color: rgba(245, 241, 232, 0.72);
    text-decoration: none !important;
    box-shadow:
        0 18px 42px rgba(0, 0, 0, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
    transition:
        transform 180ms ease,
        border-color 180ms ease,
        box-shadow 180ms ease,
        background 180ms ease;
}

.ter-resource-card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    opacity: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 20% 0%, rgba(79, 183, 255, 0.16), transparent 34%),
        radial-gradient(circle at 100% 100%, rgba(242, 201, 95, 0.10), transparent 38%);
    transition: opacity 180ms ease;
}

.ter-resource-card:hover,
.ter-resource-card:focus-visible {
    transform: translateY(-3px);
    border-color: rgba(242, 201, 95, 0.34);
    color: rgba(245, 241, 232, 0.78);
    box-shadow:
        0 24px 54px rgba(0, 0, 0, 0.36),
        0 0 0 1px rgba(242, 201, 95, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.ter-resource-card:hover::before,
.ter-resource-card:focus-visible::before {
    opacity: 1;
}

.ter-resource-card__icon {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #8fd8ff;
    border: 1px solid rgba(79, 183, 255, 0.32);
    background: rgba(79, 183, 255, 0.08);
    font-size: 1.25rem;
    line-height: 1;
    font-weight: 950;
    box-shadow: 0 0 24px rgba(79, 183, 255, 0.09);
}

.ter-resource-card--x .ter-resource-card__icon {
    color: var(--ter-gold);
    border-color: rgba(242, 201, 95, 0.34);
    background: rgba(242, 201, 95, 0.08);
    box-shadow: 0 0 24px rgba(242, 201, 95, 0.08);
}

.ter-resource-card span {
    display: block;
    color: rgba(242, 201, 95, 0.84);
    font-size: 0.68rem;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: 0.10em;
    margin-bottom: 6px;
}

.ter-resource-card h3 {
    margin: 0;
    color: #fff8e8;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.22rem;
    line-height: 1.08;
    letter-spacing: -0.035em;
    font-weight: 520;
}

.ter-resource-card p {
    margin: 8px 0 0;
    color: rgba(245, 241, 232, 0.66);
    font-size: 0.86rem;
    line-height: 1.45;
}

.ter-resource-card > strong {
    justify-self: end;
    color: var(--ter-gold);
    font-size: 1.15rem;
    line-height: 1;
    transition: transform 180ms ease;
}

.ter-resource-card:hover > strong,
.ter-resource-card:focus-visible > strong {
    transform: translateX(3px);
}


/* Mobile fix for the More Education Resources cards.
   This must live after the base resource-card styles so the mobile layout is not overridden. */
@media (max-width: 767.98px) {
    .ter-resource-panel {
        grid-template-columns: 1fr;
        gap: 18px;
        padding: 20px;
    }

    .ter-resource-grid {
        grid-template-columns: 1fr;
    }

    .ter-resource-card {
        width: 100%;
        min-height: auto;
        grid-template-columns: 48px minmax(0, 1fr) 20px;
        gap: 12px;
        padding: 16px;
    }

    .ter-resource-card__icon {
        width: 44px;
        height: 44px;
    }

    .ter-resource-card h3,
    .ter-resource-card p,
    .ter-resource-card span {
        overflow: visible;
    }
}
