.prep-page {
    background: #f5f7fb;
    color: #17243a;
    min-height: 55vh;
    padding: 32px 0 72px;
}

.prep-container {
    max-width: 1320px;
}

.prep-subject-hero {
    background-color: #102f56;
    background-image:
        linear-gradient(105deg, rgba(9, 30, 57, .88), rgba(16, 47, 86, .58)),
        var(--prep-subject-hero-image, linear-gradient(120deg, #102f56, #285482 58%, #b3832d));
    background-position: center;
    background-size: cover;
    color: #fff;
    min-height: 190px;
    padding: 28px 0 30px;
    position: relative;
}

.prep-subject-hero .prep-breadcrumb {
    color: rgba(255, 255, 255, .76);
    font-size: .88rem;
    margin-bottom: 24px;
}

.prep-subject-hero .prep-breadcrumb a {
    color: #fff;
}

.prep-subject-hero .prep-breadcrumb a:hover,
.prep-subject-hero .prep-breadcrumb a:focus-visible {
    color: #f4d28c;
}

.prep-subject-hero-label {
    align-items: center;
    color: #f4d28c;
    display: inline-flex;
    font-size: .78rem;
    font-weight: 700;
    gap: 8px;
    letter-spacing: .1em;
    margin-bottom: 7px;
    text-transform: uppercase;
}

.prep-subject-hero h1 {
    color: #fff;
    font-family: Manrope, sans-serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    margin: 0;
}

.prep-subject-hero-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 11px;
    margin-top: 19px;
}

.prep-hero-demo-button,
.prep-hero-explore-button {
    align-items: center;
    border: 1px solid transparent;
    border-radius: 8px;
    display: inline-flex;
    font-size: .9rem;
    font-weight: 700;
    gap: 9px;
    justify-content: center;
    min-height: 42px;
    padding: 9px 15px;
    text-decoration: none;
    transition: background-color .18s ease, border-color .18s ease, transform .18s ease;
}

.prep-hero-demo-button {
    background: #ed6b25;
    color: #fff;
}

.prep-hero-demo-button:hover,
.prep-hero-demo-button:focus-visible {
    background: #d95815;
    color: #fff;
    transform: translateY(-1px);
}

.prep-hero-explore-button {
    background: rgba(255, 255, 255, .1);
    border-color: rgba(255, 255, 255, .52);
    color: #fff;
}

.prep-hero-explore-button:hover,
.prep-hero-explore-button:focus-visible {
    background: rgba(255, 255, 255, .2);
    border-color: #fff;
    color: #fff;
}

.prep-subject-detail {
    scroll-margin-top: 28px;
}

.prep-breadcrumb {
    align-items: center;
    color: #6a778b;
    display: flex;
    flex-wrap: wrap;
    font-size: .9rem;
    gap: 10px;
    margin-bottom: 28px;
}

.prep-breadcrumb a {
    color: #183b68;
    text-decoration: none;
}

.prep-breadcrumb a:hover,
.prep-breadcrumb a:focus-visible {
    color: #bf8d32;
    text-decoration: underline;
}

.prep-page-header {
    margin-bottom: 30px;
}

.prep-eyebrow {
    align-items: center;
    color: #b3832d;
    display: inline-flex;
    font-size: .8rem;
    font-weight: 700;
    gap: 8px;
    letter-spacing: .09em;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.prep-page-header h1 {
    color: #102f56;
    font-family: Manrope, sans-serif;
    font-size: clamp(2rem, 4vw, 3.1rem);
    font-weight: 800;
    margin: 0 0 12px;
}

.prep-page-header p,
.prep-card-body p {
    color: #66748a;
    line-height: 1.7;
    margin: 0;
}

.prep-card-grid {
    display: grid;
    gap: 22px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.prep-card {
    background: #fff;
    border: 1px solid #e7ebf2;
    border-radius: 14px;
    box-shadow: 0 8px 25px rgba(16, 47, 86, .06);
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    transition: box-shadow .2s ease, transform .2s ease;
}

.prep-card:hover {
    box-shadow: 0 14px 34px rgba(16, 47, 86, .12);
    transform: translateY(-3px);
}

.prep-card-image {
    align-items: center;
    background: #eaf0f8;
    color: #1b4778;
    display: flex;
    height: 180px;
    justify-content: center;
    overflow: hidden;
    text-decoration: none;
}

.prep-card-image img {
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.prep-image-placeholder {
    align-items: center;
    color: #1b4778;
    display: flex;
    font-size: 2.5rem;
    height: 100%;
    justify-content: center;
    width: 100%;
}

.prep-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 20px;
}

.prep-card-body h2 {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0 0 10px;
}

.prep-card-body h2 a {
    color: #17385f;
    text-decoration: none;
}

.prep-card-body p {
    font-size: .95rem;
}

.prep-card-link {
    align-items: center;
    color: #174678;
    display: inline-flex;
    font-size: .93rem;
    font-weight: 700;
    gap: 8px;
    margin-top: auto;
    padding-top: 18px;
    text-decoration: none;
}

.prep-card-link:hover,
.prep-card-link:focus-visible {
    color: #b3832d;
}

.prep-layout {
    align-items: start;
    display: grid;
    gap: 30px;
    grid-template-columns: minmax(250px, 310px) minmax(0, 1fr);
}

.prep-subject-page {
    padding-top: 34px;
}

.prep-purchase-cta {
    align-items: center;
    background: linear-gradient(115deg, #102f56, #1c4c7c);
    border-radius: 16px;
    box-shadow: 0 12px 30px rgba(16, 47, 86, .12);
    color: #fff;
    display: flex;
    gap: 24px;
    justify-content: space-between;
    margin-top: 38px;
    padding: 26px 30px;
}

.prep-purchase-cta-eyebrow {
    color: #f4d28c;
    display: block;
    font-size: .75rem;
    font-weight: 800;
    letter-spacing: .1em;
    margin-bottom: 7px;
    text-transform: uppercase;
}

.prep-purchase-cta h2 {
    color: #fff;
    font-family: Manrope, sans-serif;
    font-size: clamp(1.25rem, 2.5vw, 1.7rem);
    font-weight: 800;
    margin: 0 0 6px;
}

.prep-purchase-cta p {
    color: rgba(255, 255, 255, .78);
    line-height: 1.6;
    margin: 0;
}

.prep-purchase-cta > a {
    align-items: center;
    background: #ed6b25;
    border-radius: 9px;
    color: #fff;
    display: inline-flex;
    flex: 0 0 auto;
    font-weight: 800;
    gap: 12px;
    justify-content: center;
    min-height: 48px;
    padding: 12px 19px;
    text-decoration: none;
    transition: background-color .18s ease, transform .18s ease;
}

.prep-purchase-cta > a:hover,
.prep-purchase-cta > a:focus-visible {
    background: #d95815;
    color: #fff;
    transform: translateY(-1px);
}

.prep-subject-layout {
    align-items: start;
    display: grid;
    gap: clamp(24px, 3vw, 36px);
    grid-template-columns: minmax(0, 1.8fr) minmax(300px, 1fr);
}

.prep-aside {
    min-width: 0;
}

.prep-contact-aside {
    min-width: 0;
    position: sticky;
    top: 24px;
}

.prep-contact-card {
    background: #fff;
    border: 1px solid #e4e9f0;
    border-radius: 16px;
    box-shadow: 0 14px 38px rgba(16, 47, 86, .09);
    overflow: hidden;
}

.prep-contact-aside > .prep-sidebar-toggle {
    margin-top: 18px;
    position: static;
}

.prep-contact-card {
    padding: 24px;
}

.prep-contact-card-heading {
    padding-bottom: 18px;
}

.prep-contact-icon {
    align-items: center;
    background: linear-gradient(135deg, #eaf1fa, #f7f0df);
    border-radius: 13px;
    color: #173f6b;
    display: flex;
    font-size: 1.4rem;
    height: 48px;
    justify-content: center;
    margin-bottom: 18px;
    width: 48px;
}

.prep-contact-card-heading .prep-eyebrow {
    margin-bottom: 8px;
}

.prep-contact-card-heading h2 {
    color: #102f56;
    font-family: Manrope, sans-serif;
    font-size: 1.3rem;
    font-weight: 800;
    line-height: 1.35;
    margin: 0 0 9px;
}

.prep-contact-card-heading p {
    color: #6a778b;
    font-size: .92rem;
    line-height: 1.65;
    margin: 0;
}

.course-sales-meta {
    background: #f6f9fd;
    border: 1px solid #e7edf6;
    border-radius: 12px;
    margin: 18px 0 16px;
    overflow: hidden;
}

.course-sales-item {
    align-items: center;
    border-bottom: 1px solid #e7edf6;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
}

.course-sales-item:last-child {
    border-bottom: 0;
}

.course-sales-label {
    align-items: center;
    color: #5b6f8d;
    display: inline-flex;
    font-size: .78rem;
    font-weight: 700;
    gap: 7px;
    letter-spacing: .02em;
    text-transform: uppercase;
}

.course-sales-item strong {
    color: #153d67;
    font-size: .96rem;
    font-weight: 800;
}

.course-sales-mode {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0 14px 14px;
}

.course-sales-mode-badge {
    border-radius: 999px;
    display: inline-flex;
    font-size: .72rem;
    font-weight: 700;
    padding: 6px 10px;
}

.course-sales-mode-badge.online {
    background: rgba(31, 160, 98, .12);
    color: #127a4f;
}

.course-sales-mode-badge.offline {
    background: rgba(237, 107, 37, .12);
    color: #b55a17;
}

.prep-contact-links {
    border-bottom: 1px solid #edf0f5;
    border-top: 1px solid #edf0f5;
    margin-bottom: 18px;
    padding: 7px 0;
}

.prep-contact-links > a {
    align-items: center;
    border-radius: 9px;
    color: #17385f;
    display: flex;
    gap: 11px;
    min-width: 0;
    padding: 10px 7px;
    text-decoration: none;
}

.prep-contact-links > a:hover,
.prep-contact-links > a:focus-visible {
    background: #f5f7fb;
}

.prep-contact-links > a > i:first-child {
    align-items: center;
    background: #f0f4f9;
    border-radius: 9px;
    color: #244d78;
    display: flex;
    flex: 0 0 36px;
    height: 36px;
    justify-content: center;
}

.prep-contact-links > a > span {
    flex: 1;
    font-size: .88rem;
    font-weight: 700;
    min-width: 0;
    overflow-wrap: anywhere;
}

.prep-contact-links small {
    color: #8190a4;
    display: block;
    font-size: .72rem;
    font-weight: 600;
    margin-bottom: 2px;
    text-transform: uppercase;
}

.prep-contact-links > a > i:last-child {
    color: #97a4b4;
    font-size: .8rem;
}

.prep-demo-button,
.prep-contact-button {
    align-items: center;
    border-radius: 9px;
    display: flex;
    font-size: .94rem;
    font-weight: 700;
    justify-content: space-between;
    padding: 13px 15px;
    text-decoration: none;
    transition: background-color .18s ease, transform .18s ease;
}

.prep-demo-button {
    background: #ed6b25;
    box-shadow: 0 8px 18px rgba(237, 107, 37, .2);
    color: #fff;
}

.prep-demo-button:hover,
.prep-demo-button:focus-visible {
    background: #d95815;
    color: #fff;
    transform: translateY(-1px);
}

.prep-contact-button {
    border: 1px solid #dce4ee;
    color: #17385f;
    justify-content: center;
    margin-top: 10px;
}

.prep-contact-button:hover,
.prep-contact-button:focus-visible {
    background: #f5f7fb;
    color: #102f56;
}

.prep-sidebar-toggle {
    background: #fff;
    border: 1px solid #e4e9f0;
    border-radius: 14px;
    box-shadow: 0 8px 25px rgba(16, 47, 86, .06);
    overflow: hidden;
    position: sticky;
    top: 24px;
}

.prep-sidebar-toggle-label {
    align-items: center;
    color: #fff;
    cursor: pointer;
    display: flex;
    font-weight: 700;
    justify-content: space-between;
    list-style: none;
    padding: 15px 18px;
}

.prep-sidebar-toggle-label::-webkit-details-marker,
.prep-sidebar-section > summary::-webkit-details-marker {
    display: none;
}

.prep-sidebar-toggle-label {
    background: #102f56;
}

.prep-sidebar-toggle-label span {
    align-items: center;
    display: flex;
    gap: 9px;
}

.prep-sidebar-toggle:not([open]) > .prep-sidebar-toggle-label > .bi-chevron-down {
    transform: rotate(-90deg);
}

.prep-sidebar {
    padding: 18px;
}

.prep-sidebar > h2 {
    color: #102f56;
    font-size: 1.1rem;
    font-weight: 800;
    margin: 0 0 14px;
}

.prep-sidebar-section {
    border-top: 1px solid #edf0f5;
    padding: 13px 0;
}

.prep-sidebar-section > summary {
    color: #273c59;
    cursor: pointer;
    font-size: .95rem;
    font-weight: 700;
    list-style: none;
}

.prep-nav-list,
.prep-nav-list ul,
.prep-resource-list {
    list-style: none;
    margin: 10px 0 0;
    padding: 0;
}

.prep-nav-list ul {
    border-left: 1px solid #e5eaf1;
    margin: 4px 0 5px 12px;
    padding-left: 10px;
}

.prep-nav-list li + li,
.prep-resource-list li + li {
    margin-top: 3px;
}

.prep-nav-list a,
.prep-resource-list a {
    align-items: flex-start;
    border-radius: 7px;
    color: #5b6a80;
    display: flex;
    font-size: .89rem;
    gap: 8px;
    line-height: 1.45;
    padding: 7px 8px;
    text-decoration: none;
}

.prep-nav-branch > summary {
    align-items: center;
    border-radius: 7px;
    color: #263e5e;
    cursor: pointer;
    display: flex;
    font-size: .9rem;
    font-weight: 700;
    justify-content: space-between;
    list-style: none;
    padding: 8px;
}

.prep-nav-branch > summary::-webkit-details-marker {
    display: none;
}

.prep-nav-branch > summary span {
    align-items: flex-start;
    display: inline-flex;
    gap: 8px;
}

.prep-nav-branch > summary:hover,
.prep-nav-branch > summary:focus-visible {
    background: #f0f4f9;
    color: #102f56;
}

.prep-nav-branch > summary.is-active {
    background: #eaf1fa;
    color: #102f56;
}

.prep-nav-category-branch > summary {
    font-size: .91rem;
    padding: 9px 8px;
}

.prep-nav-branch[open] > summary .prep-nav-chevron {
    transform: rotate(180deg);
}

.prep-nav-chevron {
    flex: 0 0 auto;
    transition: transform .18s ease;
}

.prep-nav-open-link {
    color: #174678 !important;
    font-size: .82rem !important;
    font-weight: 700;
    margin: 3px 0 5px 8px;
    padding: 5px 8px !important;
}

.prep-nav-open-link:hover,
.prep-nav-open-link:focus-visible {
    color: #b3832d !important;
}

.prep-nav-list a:hover,
.prep-nav-list a:focus-visible,
.prep-resource-list a:hover,
.prep-resource-list a:focus-visible {
    background: #f0f4f9;
    color: #102f56;
}

.prep-nav-list a.is-active {
    background: #eaf1fa;
    color: #102f56;
    font-weight: 700;
}

.prep-resource-list a {
    align-items: center;
}

.prep-resource-list a span {
    flex: 1;
}

.prep-sidebar-empty {
    color: #718096;
    font-size: .9rem;
    margin: 10px 0 0;
}

.prep-main-content {
    min-width: 0;
}

.prep-browser-panel[hidden] {
    display: none !important;
}

.prep-browser-panel > .prep-page-header h2 {
    color: #102f56;
    font-family: Manrope, sans-serif;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    margin: 0 0 10px;
}

.prep-main-content .prep-page-header {
    margin-bottom: 24px;
}

.prep-subject-intro {
    color: #66748a;
    line-height: 1.75;
    margin: 0 0 20px;
}

.prep-featured-media {
    background: #eaf0f8;
    border-radius: 16px;
    margin: 0 0 26px;
    overflow: hidden;
}

.prep-featured-media .prep-detail-image {
    margin-bottom: 0;
    max-height: none;
}

.prep-description {
    background: #fff;
    border: 1px solid #e7ebf2;
    border-radius: 12px;
    color: #43536a;
    line-height: 1.8;
    margin-bottom: 26px;
    overflow-wrap: anywhere;
    padding: 20px;
}

.prep-description > :first-child {
    margin-top: 0;
}

.prep-description > :last-child {
    margin-bottom: 0;
}

.prep-description img,
.prep-description video,
.prep-description iframe {
    height: auto;
    max-width: 100%;
}

.prep-description table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
}

.prep-subject-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.prep-related-courses .prep-card-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.prep-related-courses {
    margin-top: 18px;
}

.prep-related-header {
    align-items: center;
    display: flex;
    gap: 20px;
    justify-content: space-between;
}

.prep-related-header .prep-eyebrow {
    margin-bottom: 8px;
}

.prep-related-header h2 {
    color: #102f56;
    font-family: Manrope, sans-serif;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    margin: 0 0 8px;
}

.prep-related-view-all {
    align-items: center;
    border: 1px solid #174678;
    border-radius: 8px;
    color: #174678;
    display: inline-flex;
    flex: 0 0 auto;
    font-size: .93rem;
    font-weight: 700;
    gap: 8px;
    padding: 10px 14px;
    text-decoration: none;
    transition: background-color .2s ease, color .2s ease;
}

.prep-related-view-all:hover,
.prep-related-view-all:focus-visible {
    background: #174678;
    color: #fff;
}

.prep-subject-card .prep-card-image {
    height: 250px;
}

.prep-subject-card .prep-card-body {
    min-height: 190px;
}

.prep-detail-image {
    border-radius: 14px;
    display: block;
    height: auto;
    margin: 0 0 24px;
    max-height: none;
    width: 100%;
}

.prep-empty-state {
    background: #fff;
    border: 1px dashed #ccd5e2;
    border-radius: 14px;
    color: #68778d;
    padding: 44px 24px;
    text-align: center;
}

.prep-empty-state > i {
    color: #365c87;
    display: block;
    font-size: 2.2rem;
    margin-bottom: 12px;
}

.prep-empty-state h2 {
    color: #17385f;
    font-size: 1.25rem;
    font-weight: 700;
}

.prep-empty-state p {
    margin: 0;
}

.prep-empty-compact {
    padding: 24px;
}

.prep-empty-compact > i {
    font-size: 1.5rem;
}

@media (max-width: 991.98px) {
    .prep-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .prep-related-courses .prep-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .prep-layout {
        gap: 20px;
        grid-template-columns: minmax(220px, 270px) minmax(0, 1fr);
    }

    .prep-subject-layout {
        grid-template-columns: minmax(0, 1.55fr) minmax(270px, 1fr);
    }

    .prep-contact-card {
        padding: 20px;
    }
}

@media (max-width: 767.98px) {
    .prep-page {
        padding: 24px 0 50px;
    }

    .prep-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .prep-subject-hero {
        min-height: 170px;
        padding: 22px 0 26px;
    }

    .prep-subject-hero .prep-breadcrumb {
        margin-bottom: 19px;
    }

    .prep-subject-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .prep-contact-aside {
        position: static;
    }

    .prep-sidebar-toggle {
        position: static;
    }

    .prep-sidebar-toggle-label {
        padding: 13px 16px;
    }

    .prep-sidebar {
        padding: 14px 16px 18px;
    }
}

@media (max-width: 575.98px) {
    .prep-related-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .prep-subject-hero {
        min-height: 155px;
    }

    .prep-purchase-cta {
        align-items: stretch;
        flex-direction: column;
        padding: 22px;
    }

    .prep-purchase-cta > a {
        width: 100%;
    }

    .prep-subject-page {
        padding-top: 24px;
    }

    .prep-card-grid,
    .prep-subject-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .prep-related-courses .prep-card-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .prep-card-image,
    .prep-subject-card .prep-card-image {
        height: 190px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .prep-card,
    .prep-nav-chevron,
    .prep-nav-branch-icon {
        transition: none;
    }
}
