.test-prep-page > header {
    position: sticky;
}

.prep-hero {
    background: linear-gradient(125deg, #f0f6fc 4%, #e9f6f0 100%);
    color: #172c46;
    padding-block: clamp(1.75rem, 4vw, 3.5rem);
}

.prep-hero h1 {
    color: #132b49;
    font-size: clamp(2.1rem, 4.5vw, 3.65rem);
    font-weight: 800;
    letter-spacing: -.045em;
    line-height: 1.08;
    margin-bottom: .75rem;
}

.prep-lead {
    color: #324960;
    font-size: clamp(1.05rem, 2vw, 1.2rem);
    line-height: 1.55;
    margin-bottom: 1.45rem;
    max-width: 60ch;
}

.prep-video-samples {
    margin-bottom: 1.5rem;
}

.prep-video-heading {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: .75rem 1rem;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.prep-video-heading h2 {
    color: #132b49;
    font-size: clamp(1.35rem, 2.5vw, 2rem);
    font-weight: 800;
    margin-bottom: 0;
}

.prep-video-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: minmax(0, 1fr);
}

.prep-video {
    align-content: start;
    background: #fff;
    border: 1px solid #cfdee6;
    border-radius: 1rem;
    display: grid;
    gap: .75rem;
    padding: .75rem;
    scroll-margin-top: 5.5rem;
}

.prep-video h3 {
    color: #132b49;
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: .25rem;
}

.prep-video p {
    color: #324960;
    margin-bottom: 0;
}

.prep-video video {
    aspect-ratio: 16 / 9;
    background: #eaf4f1;
    border-radius: .65rem;
    display: block;
    height: auto;
    width: 100%;
}

.prep-video video::cue {
    background: #142d4a;
    color: #fff;
}

.prep-video .btn {
    justify-self: start;
}

@media (min-width: 768px) {
    .prep-video-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1200px) {
    .prep-video-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.prep-exams {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    scroll-margin-top: 5.5rem;
}

.prep-exam,
.prep-samples {
    background: #fff;
    border: 1px solid #cfdee6;
    border-radius: 1rem;
    box-shadow: 0 12px 30px #24415712;
    color: #26405a;
    padding: clamp(1rem, 2vw, 1.5rem);
}

.prep-exam h2 {
    color: #132b49;
    font-size: 1.7rem;
    font-weight: 800;
    margin-bottom: .65rem;
    scroll-margin-top: 5.5rem;
}

@supports (grid-template-rows: subgrid) {
    @media (min-width: 992px) {
        .prep-exam {
            display: grid;
            grid-row: span 3;
            grid-template-rows: subgrid;
            row-gap: 0;
        }

        .prep-teacher-led:nth-child(2) {
            grid-row: span 2;
        }
    }
}

.prep-method {
    color: #245a64;
    font-weight: 700;
    margin-bottom: .35rem;
}

.prep-price {
    color: #132b49;
    font-weight: 700;
    margin-bottom: .65rem;
}

.prep-actions,
.prep-tutoring-links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .65rem;
}

.prep-actions {
    margin-block: .9rem;
}

.prep-tutoring-links {
    column-gap: .45rem;
}

.prep-tutoring-links > a:not(.btn) {
    color: #125684;
    font-size: .95rem;
    font-weight: 700;
}

.test-prep-page main .btn {
    border-color: #125684;
    border-radius: .55rem;
    color: #125684;
    font-weight: 700;
    min-height: 44px;
    padding: .55rem .85rem;
}

.test-prep-page .prep-tutoring-links .btn {
    font-size: .95rem;
    padding-inline: .45rem;
}

.test-prep-page main .btn-primary {
    background: #125684;
    color: #fff;
}

.test-prep-page main .btn:hover,
.test-prep-page main .btn:focus-visible {
    background: #0d3d60;
    color: #fff;
}

.prep-trial-terms,
.prep-booking {
    color: #344c61;
    font-size: .93rem;
    line-height: 1.5;
    margin-bottom: 0;
}

.prep-trial-terms strong {
    display: block;
    color: #132b49;
    margin-bottom: .25rem;
}

.prep-booking {
    margin-top: 1rem;
}

.prep-details {
    color: #344c61;
    padding-block: clamp(1.8rem, 4vw, 3rem);
}

.prep-details h2,
.prep-samples h3 {
    color: #132b49;
}

.prep-details-grid {
    display: grid;
    gap: clamp(1rem, 4vw, 3rem);
    grid-template-columns: 1.1fr 1fr;
}

.prep-details li + li {
    margin-top: .45rem;
}

.prep-samples h3 {
    font-size: 1.25rem;
    margin-bottom: .85rem;
}

.prep-sample {
    background: #edf5fc;
    border-radius: .7rem;
    padding: .75rem 1rem;
}

.prep-sample-reading {
    background: #edf7f1;
    margin-top: .65rem;
}

.prep-sample h4 {
    color: #284b6a;
    font-size: .93rem;
    margin-bottom: .22rem;
}

.prep-sample p {
    font-size: .93rem;
    margin-bottom: 0;
}

.prep-sample .prep-example {
    color: #183758;
    font-size: 1.45rem;
    font-weight: 750;
    margin-bottom: .25rem;
}

.prep-math {
    background: #f6f9fb;
}

@media (max-width: 991px) {
    .prep-exams {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    .prep-details-grid {
        grid-template-columns: 1fr;
    }
}

.prep-lesson-previews .card {
    min-width: 0;
}

.prep-lesson-previews audio {
    width: 100%;
    max-width: 100%;
}
