.non_degree_overview { color: var(--num-heading-text); background: #fff; }
.non_degree_overview_layout { min-height: calc(100vh - 68px); }

.non_degree_sidebar .non_degree_sidebar_root:not(.is-active) {
    background: #eef2f7;
    color: var(--num-primary);
    font-weight: 600;
}
.non_degree_sidebar .admission_sidebar_symbol {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    font-size: 18px;
    line-height: 1;
}
.non_degree_sidebar img.admission_sidebar_symbol {
    object-fit: contain;
}
.non_degree_sidebar .admission_sidebar_link.is-active img.admission_sidebar_symbol,
.non_degree_sidebar .admission_sidebar_link:hover img.admission_sidebar_symbol {
    filter: brightness(0) saturate(100%) invert(23%) sepia(37%) saturate(2811%) hue-rotate(188deg) brightness(88%) contrast(96%);
}
.non_degree_sidebar .non_degree_sidebar_root:not(.is-active) .admission_sidebar_symbol { color: var(--num-muted-text); }
.non_degree_sidebar .non_degree_sidebar_root::after {
    display: block;
    right: -12px;
    bottom: -12px;
    left: -12px;
    width: auto;
    height: 1px;
    background: #fff;
    pointer-events: none;
}
.non_degree_sidebar .admission_sidebar_children { padding-top: 18px; }
.non_degree_sidebar .non_degree_sidebar_child { margin-right: 0; }

.non_degree_intro {
    position: relative; overflow: hidden;
    padding: clamp(28px, 4vw, 48px);
/*    border: 1px solid #dce7f5; */
    border-radius: 22px;
    background: linear-gradient(135deg, #f7faff 0%, #eef5ff 58%, #e5efff 100%);
}
.non_degree_intro::after {
    content: ""; position: absolute; right: -90px; bottom: -140px; width: 340px; height: 340px;
    border: 54px solid rgba(16, 66, 140, .055); border-radius: 50%;
}

.non_degree_intro h1 { margin: 0 0 18px; color: var(--num-primary); font-size: var(--num-font-size-page-title); font-weight: 600; letter-spacing: -.025em; }
.non_degree_intro p { max-width: 900px; margin: 0; color: var(--num-body-text); font-size: 14px; line-height: 1.85; text-align: justify; }

.non_degree_section, .non_degree_catalog { padding-top: 52px; }
.non_degree_section_heading, .non_degree_catalog_heading { display: flex; align-items: center; gap: 13px; margin-bottom: 22px; }
.non_degree_section_icon {
    display: grid; place-items: center; width: 42px; height: 42px; flex: 0 0 42px;
    border-radius: 12px; background: #edf4ff; color: var(--num-primary); font-size: 19px;
}
.non_degree_section_icon img {
    width: 22px;
    height: 22px;
    object-fit: contain;
    filter: brightness(0) saturate(100%) invert(23%) sepia(37%) saturate(2811%) hue-rotate(188deg) brightness(88%) contrast(96%);
}
.non_degree_section h2,
.non_degree_catalog h2,
.non_degree_catalog h3 {
    margin: 2px 0 0; color: var(--num-heading-text); font-size: clamp(16px, 2vw, 16px); font-weight: 600;
}

.non_degree_type_grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.non_degree_type_card {
    display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 20px; align-items: center;
    overflow: hidden; min-height: 190px; padding: 28px;
    border: 0; border-radius: 14px; background: #f4f7fb;
    box-shadow: 0 8px 20px rgba(20, 50, 91, .045);
}
.non_degree_type_number {
    color: var(--num-decoration-number-color);
    font-size: clamp(76px, 5.2vw, 108px); font-weight: 800; letter-spacing: -.08em; line-height: 1;
    user-select: none;
}
.non_degree_type_card h3, .non_degree_benefit_card h3 { margin: 0 0 9px; color: var(--num-content-text); font-size: 14px; font-weight: 600; line-height: 1.45; }
.non_degree_type_card p { margin: 0; color: var(--num-body-text); font-size: 14px; font-weight: 600; line-height: 1.65; }
.non_degree_benefit_card p { margin: 0; color: var(--num-content-label); font-size: 14px; line-height: 1.65; }

.non_degree_benefit_grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.non_degree_benefit_card {
    display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 16px; align-items: start;
    padding: 22px; border: 1px solid #e0e7f0; border-radius: 15px; background: #fff;
}
.non_degree_benefit_card > i {
    display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px;
    background: #eef5ff; color: #1d5cac; font-size: 20px;
}

.non_degree_info_grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(300px, .75fr); gap: 20px; margin-top: 20px; }
.non_degree_info_grid .admission_info_section { margin: 0; }
.non_degree_programs_page .admission_registration_info { display: flow-root; }
.non_degree_programs_page .non_degree_info_grid { margin-top: 34px; }
.non_degree_attention { --section-accent: #b97813 !important; }
.non_degree_attention .admission_info_icon { background: #fff5df; }
.non_degree_info_grid ul { display: grid; gap: 9px; }
.non_degree_info_grid li, .non_degree_info_grid p { color: var(--num-body-text); font-size: 14px; line-height: 1.65; text-align: left; }
.non_degree_side_info { display: grid; gap: 20px; align-content: start; }

.non_degree_catalog {
    container: non-degree-catalog / inline-size;
    margin-top: 52px;
    padding: 35px 0 20px;
    border-top: 1px solid #dce4ee;
}
.non_degree_catalog_heading { justify-content: flex-start; align-items: center; gap: 10px; }
.non_degree_catalog_heading h2 { margin: 0; }
.non_degree_catalog_heading p { margin: 7px 0 0; color: var(--num-content-label); font-size: 14px; }
.non_degree_catalog_filters {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: end;
    gap: 12px;
    margin-left: auto;
    width: min(100%, 390px);
}
.non_degree_catalog_filters > label { display: block; min-width: 0; margin: 0; }
.non_degree_catalog_filters > label:has([data-program-sort]) {
    display: flex;
    align-items: center;
    gap: 12px;
}
.non_degree_catalog_filters > label:has([data-program-sort]) > span {
    flex: 0 0 auto;
}
.non_degree_catalog_filters [data-program-sort] {
    flex: 1 1 auto;
    min-width: 0;
}
[data-program-card][hidden], [data-program-filter-empty][hidden] { display: none; }
[data-program-filter-empty] { grid-column: 1 / -1; }
@media (max-width: 1199.98px) {
    .non_degree_catalog_heading { flex-wrap: wrap; }
    .non_degree_catalog_filters { flex-basis: 100%; width: 100%; margin-left: 0; }
}
@media (max-width: 640px) {
    .non_degree_catalog_filters { grid-template-columns: 1fr; }
}
.non_degree_program_count { padding: 7px 12px; border-radius: 999px; background: #eef4ff; color: var(--num-primary); font-size: 12px; font-weight: 500; }
.non_degree_overview .non_degree_program_grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: start;
    justify-content: start;
    gap: 20px;
}
.non_degree_overview .non_degree_program_grid.is-single { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.non_degree_overview .non_degree_program_card {
    container: non-degree-card / inline-size;
    position: relative; height: var(--non-degree-collapsed-card-height, auto); min-height: 0; padding: 0; overflow: hidden; border-color: #dfe6ef; border-radius: 16px;
    box-shadow: 0 12px 34px rgba(26, 56, 97, .07); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.non_degree_overview .non_degree_program_card:has(.non_degree_card_description.is-expanded) {
    height: auto;
}
.non_degree_overview .non_degree_program_grid.is-measuring-program-cards .non_degree_program_card {
    height: auto;
}
.non_degree_overview .non_degree_program_grid.is-measuring-program-cards .non_degree_card_description.is-expanded .non_degree_card_copy {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    overflow: hidden;
}
.non_degree_overview .non_degree_program_card:hover { transform: translateY(-3px); border-color: #bfcfe4; box-shadow: 0 20px 42px rgba(26, 56, 97, .11); }

.non_degree_program_card_badges {
    position: absolute;
    top: 18px;
    right: 20px;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.non_degree_program_type {
    display: inline-flex;
    min-height: 27px;
    align-items: center;
    gap: 6px;
    padding: 5px 9px;
    border: 1px solid #dbe8fb;
    border-radius: 999px;
    background: #eef5ff;
    color: #315896;
    font-size: 12px;
    font-weight: 500;
    line-height: 1;
}

.non_degree_program_type.is-classroom {
    border-color: var(--num-mode-classroom-border);
    background: var(--num-mode-classroom-bg);
    color: var(--num-mode-classroom-color);
}

.non_degree_program_type.is-online {
    border-color: var(--num-mode-online-border);
    background: var(--num-mode-online-bg);
    color: var(--num-mode-online-color);
}


.non_degree_program_card_body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    padding: 18px 20px 20px;
}
.non_degree_overview .non_degree_program_card h3 { min-height: auto; margin: 0 0 18px; padding-right: 125px; color: var(--num-heading-text); font-size: 16px; line-height: 1.4; }
.non_degree_overview .non_degree_card_description { margin-bottom: 14px; }
.non_degree_overview .non_degree_card_copy { min-height: 0; margin: 0; color: var(--num-content-label); font-size: 14px; line-height: 1.55; }
.non_degree_overview .non_degree_card_description.is-expanded .non_degree_card_copy {
    display: block;
    -webkit-line-clamp: unset;
    line-clamp: unset;
    overflow: visible;
}
.non_degree_description_toggle {
    display: none;
    margin-top: 5px;
}
.non_degree_description_toggle.is-visible { display: inline-flex; }
.non_degree_program_metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 16px;
}
.non_degree_program_metric {
    display: grid;
    grid-template-columns: 34px auto minmax(0, 1fr);
    gap: 8px;
    align-items: center;
    min-height: 54px;
    padding: 9px 11px;
    border: 1px solid #e5ecf7;
    border-radius: 10px;
    background: #f7f9fd;
}
.non_degree_program_metric > span {
    display: grid;
    width: 32px;
    height: 32px;
    place-items: center;
    border-radius: 9px;
    background: #e7efff;
    color: #1764df;
    font-size: 14px;
}
.non_degree_program_metric strong { align-self: center; font-size: 16px; line-height: 1; }
.non_degree_program_metric small { align-self: center; font-size: 14px; line-height: 1.1; }
.non_degree_program_info_list { display: grid; gap: 12px; margin-bottom: 18px; }
.non_degree_program_info_row {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 9px;
    align-items: start;
}
.non_degree_program_info_icon {
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    border: 1px solid #e3e9f2;
    border-radius: 8px;
    background: #fbfcfe;
    color: var(--num-content-label);
    font-size: 14px;
}
.non_degree_program_info_row > div > span:not(.num-program-copy) {
    display: block;
    margin: 0 0 8px;
    color: var(--num-content-label);
    font-size: 14px;
    line-height: 1.15;
}
.non_degree_overview .non_degree_card_actions {
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid #edf1f6;
}
.non_degree_overview .non_degree_card_actions .non_degree_primary_btn { gap: 8px;
}
.non_degree_overview .non_degree_detail_link {
    gap: 0;
    padding-left: 0;
    font-size: 14px;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

@media (max-width: 1800px) {
    .non_degree_overview .non_degree_program_grid,
    .non_degree_overview .non_degree_program_grid.is-single {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 1300px) {
    .non_degree_overview .non_degree_program_grid,
    .non_degree_overview .non_degree_program_grid.is-single {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .non_degree_overview .non_degree_program_grid,
    .non_degree_overview .non_degree_program_grid.is-single {
        grid-template-columns: minmax(0, 1fr);
    }

    .non_degree_overview .non_degree_program_card,
    .non_degree_overview .non_degree_program_card:has(.non_degree_card_description.is-expanded) {
        height: auto;
        min-height: 0;
    }
}

@media (max-width: 575px) {
    .non_degree_program_card_badges { align-items: flex-start; flex-direction: column; }
}

/* Sidebar болон browser zoom-оос үл хамааран бодит агуулгын өргөнөөр баганын тоог сонгоно. */
@container non-degree-catalog (max-width: 1479px) {
    .non_degree_overview .non_degree_program_grid,
    .non_degree_overview .non_degree_program_grid.is-single {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@container non-degree-catalog (max-width: 1080px) {
    .non_degree_overview .non_degree_program_grid,
    .non_degree_overview .non_degree_program_grid.is-single {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@container non-degree-catalog (max-width: 720px) {
    .non_degree_overview .non_degree_program_grid,
    .non_degree_overview .non_degree_program_grid.is-single {
        grid-template-columns: minmax(0, 1fr);
    }
}

@container non-degree-card (max-width: 380px) {

    .non_degree_overview .non_degree_card_actions {
        gap: 12px;
    }

}

.non_degree_audience_modal .non_degree_modal_window {
    width: min(100%, 520px);
    overflow: hidden;
    border: 1px solid #e4eaf2;
    border-radius: 18px;
    box-shadow: 0 28px 70px rgba(15, 35, 65, .2);
}
.non_degree_audience_modal_header {
    position: relative;
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr) 46px;
    gap: 14px;
    align-items: center;
    padding: 24px;
    border-bottom: 1px solid #e8edf4;
}
.non_degree_audience_modal_header h2 {
    margin: 0;
    color: var(--num-heading-text);
    font-size: 16px;
    font-weight: 600;
}
.non_degree_audience_modal_header p {
    margin: 0;
    color: var(--num-content-label);
    font-size: 14px;
}
.non_degree_audience_close {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: var(--num-content-label);
    cursor: pointer;
    justify-self: end;
}
.non_degree_audience_close:hover { background: #f1f5f9; color: var(--num-heading-text); }
.non_degree_audience_body { padding: 22px 24px 26px; }
.non_degree_audience_choices { display: grid; gap: 12px; }
.non_degree_audience_choice,
.non_degree_organization_option {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    gap: 13px;
    align-items: center;
    width: 100%;
    padding: 15px;
    border: 1px solid #dce5f0;
    border-radius: 13px;
    background: #fff;
    color: var(--num-content-text);
    text-align: left;
    cursor: pointer;
    transition: border-color .16s ease, background-color .16s ease, box-shadow .16s ease;
}
.non_degree_audience_choice:hover,
.non_degree_organization_option:hover {
    border-color: #9bb7df;
    background: #f8fbff;
    box-shadow: 0 3px 10px rgba(16, 66, 140, .07);
}
.non_degree_audience_choice_icon,
.non_degree_organization_option_icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 11px;
    background: #edf4ff;
    color: var(--num-primary);
    font-size: 18px;
}
.non_degree_audience_choice > span:nth-child(2) { display: grid; gap: 3px; }
.non_degree_audience_choice strong,
.non_degree_organization_option_label strong {
    color: var(--num-content-text);
    font-size: 14px;
    font-weight: 600;
    line-height: normal;
}

.non_degree_organization_option_label strong {
    color: var(--num-content-text);

}
.non_degree_audience_choice small,
.non_degree_organization_option_label small {
    color: var(--num-content-label);
    font-size: 12px;
    font-weight: 400;
    line-height: normal;
}
.non_degree_audience_choice > .bi-arrow-right,
.non_degree_organization_option > .bi-arrow-right { color: var(--num-muted-text); font-size: 15px; }


.non_degree_organization_list {
    display: grid;
    gap: 9px;
    max-height: min(360px, 48vh);
    overflow-y: auto;
    padding-right: 0;
}
.non_degree_organization_option_label { display: grid; gap: 3px; min-width: 0; }
.non_degree_organization_option_label strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.non_degree_organization_option_label small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.non_degree_detail_course_table tbody td:first-child strong { color: var(--num-content-text); font-weight: 600; }
.non_degree_detail_equivalence {
    display: inline-flex;
    gap: 4px;
    align-items: center;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 12px;
}
.non_degree_detail_equivalence.is-yes { background: #eaf7ef; color: #21864a; }
.non_degree_detail_equivalence.is-no { background: #f1f4f8; color: var(--num-content-label); }

@media (max-width: 1199.98px) {
    .non_degree_overview_layout { display: block; }
}

@media (max-width: 575.98px) {
    .non_degree_audience_modal { padding: 14px; }
    .non_degree_audience_modal_header { grid-template-columns: 40px minmax(0, 1fr) 40px; gap: 11px; padding: 18px; }
    .non_degree_audience_body { padding: 18px; }
    .non_degree_modal_window.is-detail {
        width: calc(100vw - 24px);
        max-height: calc(100vh - 24px);
        border-radius: 15px;
    }
    .non_degree_detail_course_table { min-width: 620px; }
}
@media (max-width: 900px) {
    .non_degree_type_grid, .non_degree_benefit_grid, .non_degree_info_grid { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
    .non_degree_intro { padding: 25px 20px; border-radius: 16px; }
    .non_degree_intro p { font-size: 14px; line-height: 1.7; text-align: left; }
    .non_degree_section, .non_degree_catalog { padding-top: 38px; }
    .non_degree_program_count { align-self: flex-start; }
}

/* Program detail modal: split summary and content layout */
.non_degree_detail_close {
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 5;
    display: inline-flex;
    place-items: center;
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid #dce5f1;
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--num-content-label);
    font-size: 17px;
    cursor: pointer;
    transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.non_degree_detail_close:hover,
.non_degree_detail_close:focus-visible {
    border-color: #aebfda;
    background: #f0f4f9;
    color: #174a9b;
    outline: none;
    transform: translateY(-1px);
}
.non_degree_detail_status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #c9f7dc;
    font-size: 12px;
}

.non_degree_detail_status::before {
    width: 7px;
    height: 7px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: #4cdb88;
    box-shadow: 0 0 0 3px rgba(76, 219, 136, 0.14);
    content: "";
}
.non_degree_detail_registration {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    margin-bottom: 18px;
    padding: 13px 16px;
    border: 1px solid #e2eaf5;
    border-radius: 14px;
    background: #f8faff;
}

.non_degree_detail_date_item {
    display: grid;
    min-width: 0;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
}

.non_degree_detail_date_item.is-study {
    margin-left: 18px;
    padding-left: 18px;
    border-left: 1px solid #dce5f1;
}

.non_degree_detail_date_item > span {
    display: inline-flex;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #e7f0ff;
    color: #235db5;
    font-size: 20px;
}

.non_degree_detail_date_item.is-study > span {
    background: #e8f6ee;
    color: #218b4f;
}

.non_degree_detail_registration small {
    display: block;
    margin-bottom: 3px;
    color: var(--num-muted-text);
    font-size: 12px;
}

.non_degree_detail_date_label {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 5px 10px;
    margin-bottom: 3px;
}

.non_degree_detail_date_label small {
    margin-bottom: 0;
}

.non_degree_detail_registration .non_degree_detail_status {
    color: var(--num-success);
    font-size: 12px;
}

.non_degree_detail_registration .non_degree_detail_status::before {
    background: #35b66f;
    box-shadow: none;
}

.non_degree_detail_registration .non_degree_detail_status.is-warning {
    color: var(--num-warning);
}

.non_degree_detail_registration .non_degree_detail_status.is-warning::before {
    background: var(--num-warning);
}

.non_degree_detail_registration .non_degree_detail_status.is-danger {
    color: var(--num-danger);
}

.non_degree_detail_registration .non_degree_detail_status.is-danger::before {
    background: var(--num-danger);
}

.non_degree_detail_registration strong {
    display: block;
    color: var(--num-content-text);
    font-size: 14px;
    font-weight: 600;
}

.non_degree_detail_courses {
    min-width: 0;
}
.non_degree_detail_courses > .non_degree_table_scroll {
    border: 1px solid #dde6f2;
    border-radius: 10px;
    background: var(--num-white);
}

.non_degree_modal_window.is-detail .non_degree_table_scroll {
    max-height: 288px;
    overflow: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
}

.non_degree_detail_course_table {
    width: 100%;
    margin: 0;
    border-collapse: collapse;
}

.non_degree_detail_course_table thead th {
    position: sticky;
    top: 0;
    z-index: 1;
    padding: 11px 13px;
    border: 0;
    border-bottom: 1px solid #e7edf5;
    background: #f6f8fc;
    color: var(--num-heading-text);
    font-size: 12px;
    font-weight: var(--num-font-weight-table-heading);
    text-align: left;
    text-transform: none;
}

.non_degree_detail_course_table tbody td {
    padding: 13px;
    border: 0;
    border-bottom: 1px solid #edf1f6;
    color: var(--num-content-text);
    font-size: 12px;
    vertical-align: middle;
}

.non_degree_detail_course_table tbody tr:last-child td { border-bottom: 0; }
.non_degree_detail_course_table th:first-child,
.non_degree_detail_course_table td:first-child { width: 52px; text-align: center; }
.non_degree_detail_course_table th:nth-child(2) { width: 125px; }
.non_degree_detail_course_table th:nth-child(4) { width: 110px; }
.non_degree_detail_course_table th:nth-child(5) { width: 190px; }
.non_degree_detail_course_table th:nth-child(6) { width: 175px; }
.non_degree_detail_course_table tbody td:nth-child(2) strong { color: var(--num-content-text); font-weight: 600; }

.non_degree_detail_footer {
    display: flex;
    justify-content: flex-end;
    margin-top: auto;
    padding-top: 20px;
}

.non_degree_detail_footer .non_degree_soft_btn {
    justify-content: center;
}

@media (max-width: 960px) {
    .non_degree_modal[data-non-degree-modal="detail"] { padding: 18px; }
    .non_degree_modal_window.is-detail {
        width: min(760px, calc(100vw - 36px));
        height: auto;
        max-height: calc(100vh - 36px);
        overflow-y: auto;
    }
}

@media (max-width: 640px) {
    .non_degree_detail_close { top: 13px; right: 13px; }
    .non_degree_detail_registration { grid-template-columns: 1fr; gap: 12px; }
    .non_degree_detail_date_item.is-study {
        margin-left: 0;
        padding-top: 12px;
        padding-left: 0;
        border-top: 1px solid #dce5f1;
        border-left: 0;
    }
    .non_degree_detail_course_table { min-width: 820px; }
}

/* Program detail modal: clean summary card */
.non_degree_modal[data-non-degree-modal="detail"] {
    padding: 20px;
}

.non_degree_modal[data-non-degree-modal="detail"] .non_degree_modal_backdrop {
    background: rgba(15, 30, 52, 0.48);
    backdrop-filter: none;
}

.non_degree_modal_window.is-detail {
    position: relative;
    display: block;
    flex-direction: column;
    width: min(920px, calc(100vw - 40px));
    height: auto;
    max-height: calc(100vh - 40px);
    overflow-x: hidden;
    overflow-y: auto;
    border: 1px solid #d8e4f3;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 24px 60px rgba(15, 31, 55, 0.22);
}

.non_degree_modal_window.is-detail .non_degree_detail_close {
    top: 18px;
    right: 18px;
    width: 36px;
    height: 36px;
    border: 1px solid #d8e4f3;
    border-radius: 10px;
    background: #ffffff;
    color: var(--num-content-label);
    box-shadow: none;
}

.non_degree_modal_window.is-detail .non_degree_detail_close:hover,
.non_degree_modal_window.is-detail .non_degree_detail_close:focus-visible {
    border-color: #aac0df;
    background: #f5f8fd;
    color: var(--num-primary);
    transform: none;
}

.non_degree_detail_clean {
    padding: 24px;
}

.non_degree_detail_clean h2 {
    margin: 0 52px 0 0;
    color: var(--num-heading-text);
    font-size: 20px;
    font-weight: 700;
    line-height: 1.35;
}

.non_degree_detail_clean_description {
    margin: 0 0 14px;
    color: var(--num-content-label);
    font-size: 14px;
    line-height: 1.6;
}

.non_degree_detail_clean_description p {
    display: -webkit-box;
    overflow: hidden;
    margin: 0;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.non_degree_detail_clean_description.is-expanded p {
    display: block;
    overflow: visible;
    -webkit-line-clamp: unset;
}

.non_degree_detail_clean .non_degree_description_toggle {
    margin-top: 5px;
    color: var(--num-content-label);
}

.non_degree_detail_clean .non_degree_description_toggle:hover {
    color: var(--num-primary);
}

.non_degree_detail_clean .non_degree_description_toggle:focus-visible {
    outline-color: var(--num-primary);
}

.non_degree_detail_clean_metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin: 10px 0;
}

.non_degree_detail_clean_metric {
    display: grid;
    min-width: 0;
    min-height: var(--num-program-metric-min-height);
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    padding: 12px;
    border: 1px solid #dbe5f2;
    border-radius: 12px;
    background: #f5f8ff;
}

.non_degree_detail_clean_metric.is-type {
    border-color: var(--num-mode-classroom-border);
    background: var(--num-mode-classroom-bg);
}

.non_degree_detail_clean_metric.is-type.is-online {
    border-color: var(--num-mode-online-border);
    background: var(--num-mode-online-bg);
}

.non_degree_detail_clean_metric.is-credit {
    background: #f3fbf7;
}

.non_degree_detail_clean_icon {
    display: inline-flex;
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: #e4edff;
    color: #356ee8;
    font-size: 17px;
}

.non_degree_detail_clean_metric.is-type .non_degree_detail_clean_icon {
    background: var(--num-mode-classroom-icon-bg);
    color: var(--num-mode-classroom-color);
}

.non_degree_detail_clean_metric.is-type.is-online .non_degree_detail_clean_icon {
    background: var(--num-mode-online-icon-bg);
    color: var(--num-mode-online-color);
}

.non_degree_detail_clean_metric.is-credit .non_degree_detail_clean_icon {
    background: #def5e8;
    color: #25a55c;
}

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

.non_degree_detail_clean .non_degree_detail_registration {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    margin: 0 0 10px;
    padding: 0;
    border: 0;
    background: transparent;
}

.non_degree_detail_clean .non_degree_detail_date_item {
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 8px;
    align-items: start;
}

.non_degree_detail_clean .non_degree_detail_date_item.is-study {
    margin-left: 0;
    padding-left: 0;
    border-left: 0;
}

.non_degree_detail_clean .non_degree_detail_date_item > span {
    width: 30px;
    height: 30px;
    border: 1px solid #dce5f1;
    border-radius: 9px;
    background: #f8faff;
    color: #5479b3;
    font-size: 14px;
}

.non_degree_detail_clean .non_degree_detail_date_item.is-study > span {
    background: #f8faff;
    color: #5479b3;
}

.non_degree_detail_clean .non_degree_detail_date_label {
    margin-bottom: 4px;
}

.non_degree_detail_clean .non_degree_detail_registration small {
    margin-bottom: 4px;
    color: var(--num-content-label);
    font-size: var(--num-font-size-body);
}


.non_degree_detail_clean .non_degree_detail_footer {
    padding-top: 14px;
}

.non_degree_detail_clean_metric dt {
    margin: 0 0 3px;
    font-size: var(--num-font-size-status);
    font-weight: 500;
}

.non_degree_detail_clean_metric dd {
    margin: 0;
    overflow-wrap: anywhere;
    font-size: var(--num-font-size-body);

    line-height: 1.35;
}

@media (max-width: 640px) {
    .non_degree_modal[data-non-degree-modal="detail"] { padding: 12px; }
    .non_degree_modal_window.is-detail {
        width: calc(100vw - 24px);
        max-height: calc(100vh - 24px);
        border-radius: 15px;
    }
    .non_degree_modal_window.is-detail .non_degree_detail_close { top: 14px; right: 14px; }
    .non_degree_detail_clean { padding: 20px 16px 16px; }
    .non_degree_detail_clean h2 { margin-top: 10px; font-size: 18px; }
    .non_degree_detail_clean_description { font-size: 14px; }
    .non_degree_detail_clean_metrics { grid-template-columns: 1fr; }
    .non_degree_detail_clean .non_degree_detail_registration { grid-template-columns: 1fr; gap: 12px; }
    .non_degree_detail_clean .non_degree_detail_date_item.is-study {
        margin-left: 0;
        padding-top: 12px;
        padding-left: 0;
        border-top: 1px solid #dce5f1;
        border-left: 0;
    }
    .non_degree_detail_clean .non_degree_detail_course_table { min-width: 860px; }
}
