.medical-page--courses .medical-shell {
    width: min(100%, 1140px);
}

.medical-page--courses {
    background: #ededed;
}

.course-topbar {
    padding: 8px 0;
    background: #1d72d8;
}

.course-topbar .medical-topbar-inner {
    min-height: 24px;
    background: transparent;
    border-radius: 0;
    color: #fff;
}

.course-topbar .medical-shell,
.course-header .medical-shell,
.course-intro-shell,
.course-sections-wrap .medical-shell,
.course-footer .medical-shell {
    padding-left: 16px;
    padding-right: 16px;
}


.course-header {
    padding: 14px 0 8px;
}

.course-header .medical-navbar {
    min-height: auto;
    padding-bottom: 8px;
    border-bottom: 1px solid #d7d7da;
}

.course-header .medical-brand {
    gap: 10px;
}

.course-header .medical-brand img {
    max-height: 66px;
}

.course-header .medical-brand-text {
    font-size: 22px;
    line-height: 1.2;
    font-weight: 700;
    color: #181818;
}

.course-nav-list {
    gap: 10px;
}

.course-nav-list .nav-link {
    color: #262626;
    padding: 10px 16px !important;
    border-radius: 12px;
    font-size: 15px;
    line-height: 1.45;
    font-weight: 500;
}

.course-nav-list .nav-link.active,
.course-nav-list .nav-link:hover {
    background: rgba(255, 255, 255, 0.66);
    color: #262626;
}

.course-header-actions {
    gap: 12px;
}

.course-header-actions .medical-link-btn {
    font-size: 15px;
    line-height: 1.45;
    font-weight: 600;
    color: #262626;
}

.course-header-actions .header-signup-btn {
    min-width: 128px;
    padding: 11px 18px;
    background: #1d72d8;
    border-color: #1d72d8;
    border-radius: 10px;
    font-size: 15px;
    line-height: 1.45;
    font-weight: 600;
}

.courses-page-main {
    padding-bottom: 48px;
}

.course-intro-section {
    padding: 12px 0 0;
}

.course-intro-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 40px;
    align-items: start;
    padding: 0 0 34px;
    border-bottom: 1px solid #d7d7da;
}

.course-intro-grid h1 {
    margin: 0;
    max-width: 560px;
    font-size: clamp(30px, 4vw, 50px);
    line-height: 1.18;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: #262626;
}

.course-intro-grid p {
    margin: 0;
    max-width: 520px;
    font-size: 15px;
    line-height: 1.85;
    color: #59595a;
}

.course-sections-wrap {
    padding-top: 36px;
}

.course-search-row {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    margin-bottom: 18px;
}

.course-search-box {
    width: 360px;
    max-width: 100%;
    height: 44px;
    border-radius: 999px;
    background: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 16px;
    color: #959595;
    border: 1px solid #e2e2e2;
    box-shadow: none;
}

.course-search-box i {
    font-size: 14px;
}

.course-search-box input {
    border: 0;
    outline: 0;
    flex: 1;
    background: transparent;
    color: #59595a;
    font-size: 14px;
}

.course-search-box input::placeholder {
    color: rgba(89, 89, 90, 0.62);
}

.course-category-section {
    margin-bottom: 54px;
}

.course-category-section.is-hidden,
.course-page-card.is-hidden {
    display: none !important;
}

.course-category-head {
    margin-bottom: 18px;
}

.course-category-head h2 {
    margin: 0 0 10px;
    font-size: 28px;
    line-height: 1.25;
    font-weight: 700;
    color: #262626;
}

.course-category-head p {
    margin: 0;
    max-width: 960px;
    font-size: 14px;
    line-height: 1.7;
    color: #59595a;
}

.course-slider-area {
    position: relative;
    padding: 0 30px;
}

.course-track {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.course-page-card {
    min-width: 0;
}

.course-page-image-wrap {
    border-radius: 8px;
    overflow: hidden;
    background: #f7f7f7;
}

.course-page-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.course-page-card h3 {
    margin: 10px 0 10px;
    font-size: 14px;
    line-height: 1.4;
    font-weight: 600;
    color: #434343;
    min-height: 40px;
}

.course-price-rating-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 8px;
    border-bottom: 1px dotted #c9c9c9;
}

.course-page-price {
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    line-height: 1.3;
    font-weight: 600;
    color: #f37737;
}

.course-rating-stars {
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

.course-rating-stars i {
    color: #ffa135;
    font-size: 12px;
}

.course-rating-stars .muted {
    color: #f9d4ab;
}

.course-meta-stats {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 8px;
    color: #8d8d8d;
    font-family: 'Poppins', sans-serif;
    font-size: 11px;
    font-weight: 500;
}

.course-meta-stats span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.course-meta-stats i {
    color: #262626;
    font-size: 11px;
}

.course-page-btn {
    width: 118px;
    max-width: 100%;
    height: 34px;
    margin: 12px auto 0;
    border-radius: 4px;
    background: #f37737;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 12px;
    line-height: 1.3;
    font-weight: 600;
}

.course-page-btn:hover {
    color: #fff;
    background: #e46828;
}

.course-arrow {
    position: absolute;
    top: 36%;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid #d9d9d9;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    color: #000;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    font-size: 12px;
}

.course-arrow-left {
    left: -2px;
}

.course-arrow-right {
    right: -2px;
}

.course-arrow:hover {
    color: #1777cd;
}

.course-view-more-wrap {
    text-align: center;
    margin-top: 0;
}

.course-view-more-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 108px;
    height: 40px;
    padding: 10px 18px;
    border-radius: 8px;
    background: #fcfcfd;
    border: 1px solid #dbdbdb;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
    font-size: 14px;
    font-weight: 500;
    color: #262626;
}

.course-view-more-btn:hover {
    color: #1777cd;
}

.course-footer {
    padding-top: 26px;
}

.course-footer .footer-grid {
    grid-template-columns: 1.35fr 1fr 1fr 1fr;
}

.course-footer-contact {
    gap: 20px;
}

.course-footer .footer-grid h4 {
    margin-bottom: 18px;
}

@media (max-width: 991.98px) {
    .course-topbar {
        padding-top: 6px;
    }

    .course-topbar-inner {
        font-size: 12px;
        gap: 8px;
        padding: 0 12px;
        text-align: center;
        flex-wrap: wrap;
    }

    .course-header .medical-navbar {
        padding-bottom: 12px;
    }

    .course-search-row,
    .course-footer .footer-grid,
    .course-intro-grid {
        grid-template-columns: 1fr;
    }

    .course-intro-grid {
        gap: 18px;
        padding-bottom: 24px;
    }

    .course-search-row {
        gap: 12px;
    }

    .course-search-box {
        width: 100%;
    }

    .course-track {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        padding-bottom: 8px;
        gap: 14px;
    }

    .course-page-card {
        min-width: min(280px, calc(100vw - 96px));
        scroll-snap-align: start;
        flex: 0 0 auto;
    }

    .course-arrow {
        top: 32%;
    }
}

@media (max-width: 767.98px) {
    .course-header .medical-brand img {
        max-height: 60px;
    }

    .course-header .medical-brand-text {
        font-size: 20px;
    }

    .course-nav-list .nav-link,
    .course-header-actions .medical-link-btn,
    .course-header-actions .header-signup-btn {
        font-size: 15px;
    }

    .course-intro-grid h1 {
        font-size: 34px;
    }

    .course-category-head h2 {
        font-size: 24px;
    }

    .course-slider-area {
        padding: 0 22px;
    }

    .course-arrow {
        width: 32px;
        height: 32px;
        top: 30%;
    }

    .course-arrow-left {
        left: -8px;
    }

    .course-arrow-right {
        right: -8px;
    }
}

.exam-catalog-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.exam-catalog-card,
.exam-catalog-card:visited,
.exam-catalog-card:hover {
    color: inherit;
}

.exam-catalog-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 22px;
    background: #fff;
    border: 1px solid #d8e1ef;
    border-radius: 24px;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 16px 32px rgba(18, 34, 66, 0.04);
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.exam-catalog-card:hover,
.exam-catalog-card.is-selected {
    transform: translateY(-2px);
    border-color: #2d7ef7;
    box-shadow: 0 18px 34px rgba(45, 126, 247, 0.12);
}

.exam-catalog-card.is-upcoming {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.exam-catalog-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.exam-catalog-chip,
.course-section-chip,
.exam-catalog-badge,
.course-section-status {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .06em;
}

.exam-catalog-chip,
.course-section-chip {
    background: #edf4ff;
    color: #2d7ef7;
}

.exam-catalog-badge,
.course-section-status {
    background: #fff5ea;
    color: #f37737;
}

.exam-catalog-card h3 {
    margin: 0;
    font-size: 24px;
    line-height: 1.2;
    font-weight: 700;
    color: #262626;
}

.exam-catalog-card p {
    margin: 0;
    color: #59595a;
    line-height: 1.7;
}

.exam-catalog-count {
    margin-top: auto;
    color: #262626;
    font-weight: 700;
}

.course-section-topline {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

@media (max-width: 991.98px) {
    .exam-catalog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    .exam-catalog-grid {
        grid-template-columns: 1fr;
    }
}

/* Final course-card polish */
.course-slider-area {
    padding: 0 34px;
}

.course-track {
    gap: 22px;
    align-items: stretch;
}

.course-page-card {
    min-width: 0;
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #ffffff;
    border: 1px solid #dde6f2;
    border-radius: 24px;
    padding: 16px 16px 18px;
    box-shadow: 0 14px 30px rgba(17, 24, 39, 0.05);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.course-page-card:hover {
    transform: translateY(-4px);
    border-color: rgba(36, 120, 214, 0.25);
    box-shadow: 0 18px 36px rgba(36, 120, 214, 0.12);
}

.course-page-image-wrap {
    border-radius: 18px;
    overflow: hidden;
    background: #f5f7fb;
    margin-bottom: 14px;
}

.course-page-image {
    aspect-ratio: 1 / 0.86;
}

.course-page-card h3 {
    margin: 0 0 14px;
    font-size: 20px;
    line-height: 1.3;
    font-weight: 700;
    color: #1f2937;
    min-height: 52px;
}

.course-price-rating-row {
    padding: 0 0 12px;
    margin-bottom: 10px;
    border-bottom: 1px dashed #d7deea;
}

.course-page-price {
    font-size: 22px;
    font-weight: 700;
}

.course-page-price small {
    font-size: 14px;
    font-weight: 600;
}

.course-rating-stars i {
    font-size: 13px;
}

.course-meta-stats {
    gap: 12px;
    padding-top: 0;
    margin-top: auto;
    min-height: 44px;
    color: #7b8797;
    font-size: 12px;
}

.course-meta-stats i {
    color: #4b5563;
}

.course-page-btn {
    width: 100%;
    height: 44px;
    margin: 16px 0 0;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    box-shadow: 0 10px 20px rgba(243, 119, 55, 0.22);
}

.course-arrow {
    top: 34%;
    width: 40px;
    height: 40px;
    border: 1px solid #dbe4f0;
    box-shadow: 0 12px 22px rgba(17, 24, 39, 0.10);
    font-size: 13px;
}

.course-arrow-left {
    left: -6px;
}

.course-arrow-right {
    right: -6px;
}

@media (max-width: 991.98px) {
    .course-track {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    .course-slider-area {
        padding: 0 22px;
    }

    .course-track {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .course-page-card {
        border-radius: 20px;
        padding: 14px;
    }

    .course-page-card h3 {
        font-size: 18px;
        min-height: 0;
    }

    .course-arrow {
        top: 28%;
        width: 34px;
        height: 34px;
    }
}

/* Final course card polish */
.course-slider-area {
    padding: 0 36px;
}

.course-track {
    align-items: stretch;
    gap: 22px;
}

.course-page-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: #ffffff;
    border: 1px solid rgba(33, 53, 85, 0.08);
    border-radius: 28px;
    box-shadow: 0 18px 42px rgba(18, 34, 66, 0.06);
    padding: 16px 16px 18px;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.course-page-card:hover {
    transform: translateY(-3px);
    border-color: rgba(29, 114, 216, 0.2);
    box-shadow: 0 24px 48px rgba(29, 114, 216, 0.12);
}

.course-page-image-wrap {
    border-radius: 22px;
    overflow: hidden;
    background: #f3f6fb;
    margin-bottom: 14px;
}

.course-page-image {
    aspect-ratio: 1.05 / 1;
}

.course-page-card h3 {
    margin: 0 0 12px;
    min-height: 54px;
    font-size: 21px;
    line-height: 1.35;
    font-weight: 700;
    color: #1c2430;
}

.course-price-rating-row {
    padding: 0 0 12px;
    margin-bottom: 12px;
    border-bottom: 1px solid #eceff4;
}

.course-page-price {
    font-size: 24px;
    font-weight: 700;
    color: #f37737;
}

.course-meta-stats {
    gap: 14px;
    padding-top: 0;
    font-size: 12px;
    line-height: 1.4;
    color: #718097;
}

.course-meta-stats i {
    color: #2a3b52;
}

.course-page-btn {
    width: 100%;
    height: 46px;
    margin-top: auto;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0;
    box-shadow: 0 10px 24px rgba(243, 119, 55, 0.18);
}

.course-arrow {
    top: 42%;
    width: 42px;
    height: 42px;
    font-size: 14px;
    border-color: rgba(33, 53, 85, 0.08);
    box-shadow: 0 16px 28px rgba(18, 34, 66, 0.12);
}

.course-arrow-left {
    left: -8px;
}

.course-arrow-right {
    right: -8px;
}

@media (max-width: 991.98px) {
    .course-page-card {
        min-width: min(320px, calc(100vw - 88px));
        padding: 14px 14px 16px;
    }

    .course-page-card h3 {
        font-size: 18px;
        min-height: 48px;
    }

    .course-page-price {
        font-size: 21px;
    }
}

@media (max-width: 767.98px) {
    .course-slider-area {
        padding: 0 20px;
    }

    .course-page-card {
        min-width: min(286px, calc(100vw - 76px));
        border-radius: 22px;
    }

    .course-page-image-wrap {
        border-radius: 18px;
    }

    .course-arrow {
        width: 36px;
        height: 36px;
        top: 38%;
    }
}

/* 2026-04 compact refinement */
.course-header {
    padding: 10px 0 6px;
}

.courses-page-main {
    padding-bottom: 36px;
}

.course-intro-section {
    padding-top: 8px;
}

.course-intro-grid {
    gap: 24px;
    padding-bottom: 24px;
}

.course-intro-grid h1 {
    font-size: clamp(28px, 3.4vw, 42px);
    max-width: 500px;
}

.course-intro-grid p {
    font-size: 14px;
    line-height: 1.72;
}

.exam-catalog-grid {
    gap: 12px;
}

.exam-catalog-card {
    border-radius: 18px;
    padding: 16px;
}

.course-sections-wrap {
    padding-top: 26px;
}

.course-search-row {
    margin-bottom: 14px;
}

.course-category-section {
    margin-bottom: 36px;
}

.course-category-head {
    margin-bottom: 14px;
}

.course-category-head h2 {
    margin-bottom: 6px;
    font-size: 24px;
}

.course-category-head p {
    font-size: 13.5px;
    line-height: 1.65;
}

.course-slider-area {
    padding: 0 20px;
}

.course-track {
    gap: 12px;
}

.course-page-card {
    padding: 10px;
    border-radius: 18px;
    border: 1px solid rgba(148, 163, 184, 0.14);
    background: rgba(255,255,255,.9);
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.05);
}

.course-page-image-wrap {
    border-radius: 12px;
}

.course-page-image {
    aspect-ratio: 1.18 / 1;
}

.course-page-card h3 {
    margin: 10px 0 8px;
    font-size: 15px;
    min-height: 42px;
    color: #172033;
}

.course-price-rating-row {
    padding-bottom: 6px;
}

.course-meta-stats {
    gap: 8px;
    padding-top: 6px;
    font-size: 10.5px;
}

.course-page-btn {
    width: 100%;
    height: 38px;
    margin-top: 10px;
    border-radius: 10px;
    font-size: 12px;
}

.course-arrow {
    top: 40%;
}

@media (max-width: 991.98px) {
    .course-intro-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .course-track {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    .course-track {
        grid-template-columns: 1fr;
    }

    .course-slider-area {
        padding: 0;
    }
}
