/* Campus detail page — invento.uz parity */

.template-campus-detail-page {
    color: var(--text-primary, #474849);
}

.campus-detail-page {
    --pd-teal: #00828e;
    --pd-text: #474849;
    --pd-text-secondary: #959aa6;
    --pd-bg-secondary: #f2f9f9;
    --pd-radius: 20px;
    --pd-grad-num: linear-gradient(60deg, #892436 27.04%, #02aaba 93.86%);
    --content-border-radius: 20px;
    padding-top: 20px;
    padding-bottom: clamp(3rem, 6vw, 5rem);
    color: var(--pd-text);
}

.lh-1_5 {
    line-height: 1.5;
}

.campus-detail-page h2,
.campus-detail-page .h2 {
    font-weight: 700;
    font-size: 22px;
    line-height: 1.3;
    margin-bottom: 28px;
    color: var(--text-primary, #474849);
}

@media (min-width: 768px) {
    .campus-detail-page h2,
    .campus-detail-page .h2 {
        font-size: 28px;
    }
}

@media (min-width: 992px) {
    .campus-detail-page h2,
    .campus-detail-page .h2 {
        font-size: 40px;
        margin-bottom: 32px;
    }
}

.campus-detail-page h3,
.campus-detail-page .h3 {
    font-weight: 700;
    font-size: 16px;
    line-height: 1.4;
    margin-bottom: 20px;
}

@media (min-width: 768px) {
    .campus-detail-page h3,
    .campus-detail-page .h3 {
        font-size: 18px;
    }
}

@media (min-width: 992px) {
    .campus-detail-page h3,
    .campus-detail-page .h3 {
        font-size: 20px;
        margin-bottom: 24px;
    }
}

/* Card titles: invento uses global h3 scale + card-item margins */
.campus-detail-page .card-item h3 {
    margin-bottom: 7px;
}

@media (min-width: 768px) {
    .campus-detail-page .card-item h3 {
        font-size: 22px;
        line-height: 1.3;
        margin-bottom: 11px;
    }
}

@media (min-width: 992px) {
    .campus-detail-page .card-item h3 {
        margin-bottom: 16px;
    }
}

@media (min-width: 1200px) {
    .campus-detail-page .card-item h3 {
        font-size: 22px; /* slightly tighter than page h3 — matches invento card density */
    }
}

/* ── Spacing utilities (invento) ── */
.campus-detail-page .m-t-m { margin-top: 24px !important; }
.campus-detail-page .m-b-m { margin-bottom: 24px !important; }
.campus-detail-page .m-b-xxs { margin-bottom: 8px !important; }
.campus-detail-page .m-b-xs { margin-bottom: 16px !important; }
.campus-detail-page .m-b-xxl { margin-bottom: 40px !important; }
.campus-detail-page .m-t-xxl { margin-top: 40px !important; }
.campus-detail-page .m-t-xxxl { margin-top: 60px !important; }

@media (min-width: 768px) {
    .campus-detail-page .m-t-xxl { margin-top: 48px !important; }
    .campus-detail-page .m-t-xxxl { margin-top: 80px !important; }
}

@media (min-width: 1200px) {
    .campus-detail-page .m-t-xxxl { margin-top: 100px !important; }
}

@media (min-width: 1400px) {
    .campus-detail-page .m-t-xxxl { margin-top: 120px !important; }
}

.fs-18 {
    font-size: 1.125rem;
    line-height: 1.6;
}

@media (min-width: 992px) {
    .fs-lg-18 {
        font-size: 18px;
        line-height: 1.6;
    }
}

.border-20 {
    border-radius: 20px;
}

.display-6 {
    font-size: 28px;
    font-weight: 700;
    line-height: 130%;
}

.display-6 p {
    margin: 0;
    font: inherit;
    color: inherit;
}

.display-6 p + p {
    margin-top: 0.75rem;
}

/* ── Invento page-title (colored campus banner) ── */
.page-title {
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 4px 32px 0 rgba(130, 130, 130, 0.2);
    min-height: 102px;
    overflow: hidden;
}

.page-title > .row {
    --bs-gutter-x: 0;
    min-height: inherit;
    align-items: stretch;
    margin-left: 0;
    margin-right: 0;
}

.page-title > .row > [class*="col-"] {
    padding-left: 0;
    padding-right: 0;
}


@media (min-width: 768px) {
    .page-title { min-height: 150px; }
}

@media (min-width: 1400px) {
    .page-title { min-height: 280px; }
}

.page-title--color-beet {
    background: linear-gradient(90deg, #7E2F3D -0.89%, #691726 49.98%);
    color: #fff;
}

.page-title--color-green {
    background: linear-gradient(90deg, #00828E -0.89%, #015D66 49.98%);
    color: #fff;
}

/* Campuses index — invento gradient title on white card */
.page-title--color-gradient {
    background: #fff;
    color: var(--text-primary, #474849);
    overflow: hidden;
}

.page-title--color-gradient .page-title__heading,
.page-title--color-gradient h1,
.page-title--color-gradient h1.h2 {
    background-image: linear-gradient(281deg, #892436 11.88%, #02AABA 84.86%);
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent !important;
}

.page-title--color-gradient a {
    color: var(--text-secondary, #959AA6);
    text-decoration: none;
}

.page-title--color-gradient a:hover {
    color: var(--bs-link-hover-color, #036E78);
}

.page-title--color-gradient .page-title__breadcrumb .breadcrumb-item::after {
    background: var(--text-secondary, #959AA6);
}

.page-title--color-gradient .page-title__breadcrumb .breadcrumb-item:last-child::after {
    filter: var(--filter-text-secondary);
    background-color: transparent;
}

/* Keep banner card flush with Bootstrap container columns */
.campuses-page .page-title,
.campus-detail-page .page-title {
    overflow: hidden;
}

.page-title--color-beet a,
.page-title--color-green a {
    color: #fff;
    text-decoration: none;
}

.page-title--color-beet a:hover,
.page-title--color-green a:hover {
    color: var(--orange, #FF9900);
}

.page-title__text {
    padding: 20px 24px;
    min-height: 102px;
}

@media (min-width: 768px) {
    .page-title__text { min-height: 150px; }
}

@media (min-width: 1400px) {
    .page-title__text {
        padding: 40px 60px;
        min-height: 280px;
    }
}

/* Invento: image column has no extra left padding on large screens */
@media (min-width: 1400px) {
    .page-title .ps-xxl-0 {
        padding-left: 0 !important;
    }
}

.page-title__breadcrumb .breadcrumb {
    --bs-breadcrumb-divider: "";
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0;
    font-size: 12px;
    font-weight: 500;
    background: transparent;
    padding: 0;
    margin: 0 0 1rem;
    list-style: none;
}

@media (min-width: 768px) {
    .page-title__breadcrumb .breadcrumb { font-size: 14px; }
}

@media (min-width: 992px) {
    .page-title__breadcrumb .breadcrumb { font-size: 16px; }
}

.page-title__breadcrumb .breadcrumb-item {
    display: inline-flex;
    align-items: center;
}

.page-title__breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    display: none;
}

.page-title__breadcrumb .breadcrumb-item::after {
    content: "";
    height: 4px;
    width: 4px;
    background: #fff;
    border-radius: 50%;
    margin-left: 5px;
    margin-right: 8px;
    display: inline-block;
    vertical-align: middle;
}

@media (min-width: 768px) {
    .page-title__breadcrumb .breadcrumb-item::after {
        margin-left: 8px;
    }
}

.page-title__breadcrumb .breadcrumb-item:last-child::after {
    background: url("../img/icons/corner-right-down.76aa67371c4f.svg") no-repeat center / contain;
    height: 16px;
    width: 16px;
    border-radius: 0;
    filter: var(--filter-white);
    background-color: transparent;
}

.page-title__heading,
.page-title h1,
.page-title h1.h2,
.page-title .h2 {
    margin: 0;
    display: inline-block;
    font-weight: 700;
    font-size: 22px;
    line-height: 1.3;
    color: #fff;
}

@media (min-width: 768px) {
    .page-title__heading,
    .page-title h1,
    .page-title h1.h2,
    .page-title .h2 {
        font-size: 28px;
    }
}

@media (min-width: 992px) {
    .page-title__heading,
    .page-title h1,
    .page-title h1.h2,
    .page-title .h2 {
        font-size: 40px;
    }
}

.page-title__address,
.page-title p {
    color: var(--extra-white-50, rgba(255, 255, 255, 0.5));
    font-size: 14px;
    font-weight: 500;
    margin: 10px 0 0;
}

.page-title__image {
    height: 100%;
    background: url("../img/pattern_min.3455eee9d12e.svg") no-repeat;
    background-position: -35px center;
    background-size: 314px 314px;
    border-radius: 0 20px 20px 0;
    clip-path: ellipse(60% 135% at 60% 36%);
}

@media (min-width: 768px) {
    .page-title__image { background-size: 400px 400px; }
}

@media (min-width: 1200px) {
    .page-title__image { background-size: 450px 450px; }
}

@media (min-width: 1400px) {
    .page-title__image {
        background-size: 587px 587px;
        clip-path: ellipse(55% 132% at 57% 40%);
        background-position: -45px center;
    }
}

.page-title__image img {
    object-fit: cover;
    min-height: 100%;
    width: 100%;
    border-radius: 0 20px 20px 0;
    height: 102px;
    display: block;
}

@media (min-width: 768px) {
    .page-title__image img {
        height: 150px;
        clip-path: ellipse(80% 121% at 87% 82%);
    }
}

@media (min-width: 992px) {
    .page-title__image img {
        clip-path: ellipse(75% 125% at 87% 95%);
    }
}

@media (min-width: 1400px) {
    .page-title__image img {
        height: 280px;
        clip-path: ellipse(79% 122% at 87% 91%);
    }
}

/* Hide legacy standalone address when banner already shows it */
.page-title--color-green + .cd-address,
.page-title--color-beet + .cd-address {
    display: none;
}

/* ── Video modal (play overlay) ── */
.video-modal {
    display: inline-block;
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    width: 100%;
}

.video-modal::before {
    border-radius: 20px;
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
    pointer-events: none;
}

.video-modal::after {
    --size: 30px;
    content: "";
    background: url("../img/icons/play-with-padding_min.69d508839a74.svg") center / cover no-repeat;
    background-color: var(--bs-link-color, #00828E);
    width: var(--size);
    height: var(--size);
    display: block;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    pointer-events: none;
    transition: background-color 0.15s ease-in-out;
}

@media (min-width: 576px) {
    .video-modal::after { --size: 40px; }
}

@media (min-width: 768px) {
    .video-modal::after { --size: 60px; }
}

@media (min-width: 1400px) {
    .video-modal::after { --size: 80px; }
}

.video-modal:hover::after {
    background-color: var(--bs-link-hover-color, #036E78);
}

.video-modal img {
    width: 100%;
    display: block;
    border-radius: 20px;
}

.cd-video .text-secondary {
    color: var(--text-secondary, #959AA6);
    margin-top: 0.35rem;
}

/* ── Lists (ul.list / ol.gradient) ── */
.campus-detail-page ul.list,
.campus-detail-page .cd-rich__body ul,
.campus-detail-page .pd-row__body ul,
.campus-detail-page .richtext-content ul {
    list-style: none;
    padding-left: 20px;
    position: relative;
    margin-bottom: 1rem;
}

.campus-detail-page ul.list li,
.campus-detail-page .cd-rich__body ul li,
.campus-detail-page .pd-row__body ul li,
.campus-detail-page .richtext-content ul li {
    position: relative;
    margin-bottom: 8px;
}

@media (min-width: 768px) {
    .campus-detail-page ul.list li,
    .campus-detail-page .cd-rich__body ul li,
    .campus-detail-page .pd-row__body ul li,
    .campus-detail-page .richtext-content ul li {
        margin-bottom: 10px;
    }
}

.campus-detail-page ul.list li::before,
.campus-detail-page .cd-rich__body ul li::before,
.campus-detail-page .pd-row__body ul li::before,
.campus-detail-page .richtext-content ul li::before {
    content: "";
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--bs-body-color, #474849);
    position: absolute;
    left: -12px;
    top: 0.55em;
}

@media (min-width: 768px) {
    .campus-detail-page ul.list li::before,
    .campus-detail-page .cd-rich__body ul li::before,
    .campus-detail-page .pd-row__body ul li::before,
    .campus-detail-page .richtext-content ul li::before {
        width: 4px;
        height: 4px;
    }
}

.campus-detail-page ol.gradient,
.campus-detail-page ol.tashkent,
.campus-detail-page ol.ashgabat,
.campus-detail-page .pd-row__body ol,
.campus-detail-page .cd-rich__body ol,
.campus-detail-page .richtext-content ol {
    list-style: none;
    line-height: 1.5;
    padding-left: 48px;
    margin-bottom: 30px;
    counter-reset: none;
}

@media (min-width: 768px) {
    .campus-detail-page ol.gradient,
    .campus-detail-page ol.tashkent,
    .campus-detail-page ol.ashgabat,
    .campus-detail-page .pd-row__body ol,
    .campus-detail-page .cd-rich__body ol,
    .campus-detail-page .richtext-content ol {
        padding-left: 68px;
    }
}

.campus-detail-page ol.gradient li,
.campus-detail-page ol.tashkent li,
.campus-detail-page ol.ashgabat li,
.campus-detail-page .pd-row__body ol li,
.campus-detail-page .cd-rich__body ol li,
.campus-detail-page .richtext-content ol li {
    position: relative;
    margin-bottom: 20px;
}

.campus-detail-page ol.gradient li::before,
.campus-detail-page ol.tashkent li::before,
.campus-detail-page .pd-row__body ol li::before,
.campus-detail-page .cd-rich__body ol li::before,
.campus-detail-page .richtext-content ol li::before {
    content: "" !important;
    border-radius: 10px;
    background-color: var(--bs-link-color, #00828E);
    background-image: url("../img/icons/check.5e6503a06127.svg");
    background-repeat: no-repeat;
    background-position: center;
    width: 32px;
    height: 32px;
    display: block;
    position: absolute;
    left: -48px;
    top: 0;
}

.page-title--color-beet ~ .pd-row .pd-row__body ol li::before,
.page-title--color-beet ~ .cd-rich .cd-rich__body ol li::before,
.campus-detail-page.theme-beet .pd-row__body ol li::before,
.campus-detail-page ol.ashgabat li::before {
    background-color: var(--beet, #7E2F3D) !important;
    background-image: url("../img/icons/check.5e6503a06127.svg");
    background-repeat: no-repeat;
    background-position: center;
}

@media (min-width: 768px) {
    .campus-detail-page ol.gradient li::before,
    .campus-detail-page ol.tashkent li::before,
    .campus-detail-page .pd-row__body ol li::before,
    .campus-detail-page .cd-rich__body ol li::before,
    .campus-detail-page .richtext-content ol li::before {
        border-radius: 12px;
        width: 44px;
        height: 44px;
        left: -68px;
    }
}

/* ── Document links ── */
.link-w-100 {
    background: var(--bg-secondary, #F2F9F9);
    border-radius: 12px;
    font-size: 16px;
    padding: 12px 20px;
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out;
    display: flex;
    align-items: center;
    color: var(--text-primary, #474849);
    text-decoration: none;
    width: 100%;
}

@media (min-width: 768px) {
    .link-w-100 { padding: 20px 24px; }
}

@media (min-width: 992px) {
    .link-w-100 { padding: 24px 40px; }
}

.link-w-100::after {
    display: block;
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    margin-left: auto;
    content: "";
    background: url("../img/icons/arrow-small-right.ce1a0e425b39.svg") no-repeat center / cover;
    filter: var(--bs-link-hover-color-filter);
}

@media (min-width: 992px) {
    .link-w-100::after {
        width: 32px;
        height: 32px;
    }
}

.link-w-100--accent,
.link-w-100--tashkent,
.campus-detail-page--green .link-w-100--accent,
.page-title--color-green ~ .cd-docs .link-w-100--accent {
    color: #fff;
    background: var(--bs-link-color, #00828E);
}

.link-w-100--accent::after,
.link-w-100--tashkent::after,
.campus-detail-page--green .link-w-100--accent::after {
    filter: var(--filter-white);
}

.link-w-100--ashgabat,
.campus-detail-page--beet .link-w-100--accent,
.campus-theme-beet .link-w-100--accent,
.page-title--color-beet ~ .cd-docs .link-w-100--accent {
    color: #fff;
    background: var(--beet, #7E2F3D);
}

.link-w-100--ashgabat::after,
.campus-detail-page--beet .link-w-100--accent::after,
.campus-theme-beet .link-w-100--accent::after {
    filter: var(--filter-white);
}

.link-w-100:hover {
    color: #fff;
    background: var(--bs-link-hover-color, #036E78);
    text-decoration: none;
}

.link-w-100:hover::after {
    filter: var(--filter-white);
}

/* Ashgabat docs: all beet, turquoise on hover */
.campus-detail-page--beet .cd-docs .link-w-100,
.campus-theme-beet .cd-docs .link-w-100 {
    color: #fff;
    background: var(--beet, #7E2F3D);
}

.campus-detail-page--beet .cd-docs .link-w-100::after,
.campus-theme-beet .cd-docs .link-w-100::after {
    filter: var(--filter-white);
}

.campus-detail-page--beet .cd-docs .link-w-100:hover,
.campus-theme-beet .cd-docs .link-w-100:hover {
    color: #fff;
    background: var(--bs-link-color, #00828E);
}

.campus-detail-page--beet .cd-docs .link-w-100:hover::after,
.campus-theme-beet .cd-docs .link-w-100:hover::after {
    filter: var(--filter-white);
}

.cd-docs__heading,
.cd-docs h2 {
    font-weight: 700;
    margin-bottom: 1rem;
}

.cd-docs__links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* ── Gallery swiper ── */
.cd-gallery .swiper-container,
.campus-detail-page .swiper-container {
    position: relative;
}

.cd-gallery .swiper-default img,
.cd-gallery .border-20 {
    border-radius: 20px;
    width: 100%;
    height: auto;
    display: block;
}

.cd-gallery .swiper-controls {
    display: flex;
    gap: 16px;
    text-align: center;
    margin: 16px auto 0;
    height: 44px;
    user-select: none;
    justify-content: center;
}

.cd-gallery .swiper-button-prev,
.cd-gallery .swiper-button-next {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--bs-link-color, #00828E);
    background-color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    left: auto;
    right: auto;
    top: auto;
    margin: 0;
    cursor: pointer;
    padding: 0;
}

.cd-gallery .swiper-button-prev::after,
.cd-gallery .swiper-button-next::after {
    content: none;
}

.cd-gallery .swiper-button-prev img,
.cd-gallery .swiper-button-next img {
    width: 24px;
    height: 24px;
    filter: var(--bs-link-color-filter);
}

.cd-gallery .swiper-button-prev:hover,
.cd-gallery .swiper-button-next:hover {
    background-color: var(--bs-link-hover-color, #036E78);
    border-color: var(--bs-link-hover-color, #036E78);
}

.cd-gallery .swiper-button-prev:hover img,
.cd-gallery .swiper-button-next:hover img {
    filter: var(--filter-white);
}

@media (min-width: 768px) {
    .cd-gallery .swiper-controls {
        justify-content: flex-end;
        margin-right: 0;
        position: absolute;
        right: 0;
        margin-top: -25px;
        top: auto;
        bottom: -8px;
    }

    .cd-gallery .swiper-button-prev,
    .cd-gallery .swiper-button-next {
        width: 48px;
        height: 48px;
    }
}

@media (min-width: 1400px) {
    .cd-gallery .swiper-controls {
        position: absolute;
        width: 100%;
        height: 100%;
        top: 0;
        right: auto;
        bottom: auto;
        margin-top: 0;
        pointer-events: none;
        justify-content: unset;
    }

    .cd-gallery .swiper-button-prev,
    .cd-gallery .swiper-button-next {
        pointer-events: auto;
        margin-top: 0;
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
    }

    .cd-gallery .swiper-button-prev {
        left: calc(-24px - var(--swiper-navigation-size, 48px));
        right: auto;
    }

    .cd-gallery .swiper-button-next {
        left: auto;
        right: calc(-24px - var(--swiper-navigation-size, 48px));
    }
}

/* ── Content rows on campus ── */
.campus-detail-page .pd-row {
    margin-top: 60px;
}

@media (min-width: 768px) {
    .campus-detail-page .pd-row { margin-top: 80px; }
}

@media (min-width: 1400px) {
    .campus-detail-page .pd-row { margin-top: 120px; }
}

.campus-detail-page .pd-row h2,
.campus-detail-page .pd-row h3,
.campus-detail-page .pd-row h4 {
    font-weight: 700;
    margin-bottom: 1rem;
}

.campus-detail-page .pd-row__img {
    border-radius: 20px;
    width: 100%;
    height: auto;
    display: block;
}

/* Nutrition-style row: taller photo + footer link flush with image bottom */
.campus-detail-page .pd-row--with-footer .row {
    align-items: stretch;
}

.campus-detail-page .pd-row--with-footer .pd-row__text-col {
    display: flex;
    flex-direction: column;
}

.campus-detail-page .pd-row--with-footer .pd-row__text-inner {
    flex: 0 1 auto;
}

.campus-detail-page .pd-row--with-footer .pd-row__footer {
    margin-top: 1.25rem;
    padding-top: 0;
}

.campus-detail-page .pd-row--with-footer .pd-row__footer-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: left;
    white-space: normal;
    max-width: 100%;
}

.campus-detail-page .pd-row--with-footer .pd-row__media-col {
    display: flex;
}

.campus-detail-page .pd-row--with-footer .pd-row__media {
    width: 100%;
    height: 100%;
    min-height: 220px;
}

/* Stacked layout: keep space between the CTA and the photo */
@media (max-width: 991.98px) {
    .campus-detail-page .pd-row--with-footer .pd-row__footer {
        margin-top: 1.25rem;
        margin-bottom: 1.5rem;
    }

    .campus-detail-page .pd-row--with-footer .pd-row__media-col--first {
        margin-bottom: 1.5rem;
    }
}

@media (min-width: 992px) {
    .campus-detail-page .pd-row--with-footer .pd-row__footer {
        margin-top: auto;
        margin-bottom: 0;
        padding-top: 1.5rem;
    }

    .campus-detail-page .pd-row--with-footer .pd-row__media {
        min-height: 460px;
    }
}

@media (min-width: 1200px) {
    .campus-detail-page .pd-row--with-footer .pd-row__media {
        min-height: 520px;
    }
}

.campus-detail-page .pd-row--with-footer .pd-row__img {
    width: 100%;
    height: 100%;
    min-height: inherit;
    object-fit: cover;
    object-position: center;
}

.campus-detail-page .pd-row__body p {
    margin-bottom: 1rem;
}

.cd-rich {
    margin-top: 2rem;
}

.cd-rich__heading {
    font-weight: 700;
    margin-bottom: 1rem;
}

.cd-rich__body p {
    margin-bottom: 1rem;
}

.cd-rich__body p:last-child {
    margin-bottom: 0;
}

/* ── CTA page-banner ── */
.campus-detail-page .page-banner,
.campus-detail-page .pd-cta.page-banner {
    color: #fff;
    border-radius: 20px;
    background: var(--beet, #7E2F3D);
    padding: 24px 20px 30px;
    margin-top: 60px;
}

@media (min-width: 768px) {
    .campus-detail-page .page-banner,
    .campus-detail-page .pd-cta.page-banner {
        padding: 20px 32px;
        margin-top: 80px;
    }
}

@media (min-width: 992px) {
    .campus-detail-page .page-banner,
    .campus-detail-page .pd-cta.page-banner {
        padding: 20px 60px;
    }
}

@media (min-width: 1400px) {
    .campus-detail-page .page-banner,
    .campus-detail-page .pd-cta.page-banner {
        margin-top: 120px;
    }
}

.campus-detail-page .pd-cta__banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    background: transparent;
    box-shadow: none;
    padding: 0;
    border-radius: 0;
}

.campus-detail-page .pd-cta__content {
    flex: 1;
    text-align: center;
}

@media (min-width: 768px) {
    .campus-detail-page .pd-cta__content {
        text-align: left;
    }
}

.campus-detail-page .pd-cta__heading {
    color: #fff;
    font-weight: 700;
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    margin: 0 0 1rem;
}

.campus-detail-page .pd-cta__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.65rem 1.25rem;
    border: 1px solid #fff;
    border-radius: 8px;
    color: #fff;
    background: transparent;
    text-decoration: none;
    font-weight: 500;
}

.campus-detail-page .pd-cta__btn:hover {
    background: #fff;
    color: var(--text-primary, #474849);
}

.campus-detail-page .pd-cta__decor {
    flex-shrink: 0;
    width: 64px;
    text-align: center;
}
@media (max-width: 767.98px) {
    .campus-detail-page .pd-cta__decor {
        flex: 0 0 64px;
        width: 64px;
        margin: 0;
    }
    .campus-detail-page .pd-cta__decor img {
        width: 64px;
        max-width: 64px;
    }
}

@media (min-width: 768px) {
    .campus-detail-page .pd-cta__decor { width: 100px; }
}

@media (min-width: 992px) {
    .campus-detail-page .pd-cta__decor { width: 120px; }
}

.campus-detail-page .pd-cta__decor img {
    max-width: 100%;
    height: auto;
}

.campus-detail-page .pd-back {
    margin-top: 40px;
}

/* ── Invento card-item (numbered programme cards) ── */
.card-item {
    padding: 27px 24px 26px;
    border-radius: var(--content-border-radius, 20px);
    background: linear-gradient(231deg, #015E66 0%, #02AABA 100%);
    color: #fff;
    display: block;
}

@media (min-width: 768px) {
    .card-item { padding: 32px; }
}

@media (min-width: 992px) {
    .card-item { padding: 40px; }
}

.card-item h3 {
    font-weight: 700;
    margin-bottom: 7px;
    line-height: 1.3;
}

@media (min-width: 768px) {
    .card-item h3 { margin-bottom: 11px; }
}

@media (min-width: 992px) {
    .card-item h3 { margin-bottom: 16px; }
}

.card-item p {
    opacity: 0.6;
    margin: 0;
}

@media (min-width: 992px) {
    .card-item p { font-size: 18px; }
}

.card-item--light {
    background: var(--bg-secondary, #F2F9F9);
    color: var(--text-primary, #474849);
}

.card-item--light p {
    opacity: 1;
    line-height: 1.5;
    color: var(--text-primary, #474849);
}

.card-item__number {
    display: flex;
    width: 36px;
    height: 36px;
    justify-content: center;
    align-items: center;
    color: #fff;
    border-radius: 10px;
    background: linear-gradient(60deg, #892436 27.04%, #02AABA 93.86%), #FF7C1E;
    font-size: 18px;
    font-weight: 700;
    line-height: 150%;
}

@media (min-width: 768px) {
    .card-item__number {
        width: 44px;
        height: 44px;
    }
}

.card-item__number--tashkent {
    background: var(--bs-link-color, #00828E);
}

.card-item__number--ashgabat {
    background: var(--beet, #7E2F3D);
}

/* Theme: Ashgabat (beet) accents across the page */
.campus-theme-beet .card-item__number:not(.card-item__number--tashkent) {
    background: var(--beet, #7E2F3D);
}

.campus-theme-beet .pd-cards .color-beet,
.campus-detail-page--beet .pd-cards h3.color-beet {
    color: var(--beet, #7E2F3D);
}

.campus-theme-beet .pd-row__body ol li::before,
.campus-detail-page--beet .pd-row__body ol li::before {
    background-color: var(--beet, #7E2F3D) !important;
}

.campus-theme-beet .link-w-100--accent,
.campus-detail-page--beet .link-w-100--accent {
    background: var(--beet, #7E2F3D);
    color: #fff;
}

.campus-theme-beet .cd-gallery .swiper-button-prev,
.campus-theme-beet .cd-gallery .swiper-button-next {
    border-color: var(--beet, #7E2F3D);
}

.campus-theme-beet .cd-gallery .swiper-button-prev img,
.campus-theme-beet .cd-gallery .swiper-button-next img {
    filter: var(--filter-beet);
}

.campus-theme-beet .cd-gallery .swiper-button-prev:hover,
.campus-theme-beet .cd-gallery .swiper-button-next:hover {
    background-color: var(--beet, #7E2F3D);
    border-color: var(--beet, #7E2F3D);
}

.campus-theme-beet .cd-gallery .swiper-button-prev:hover img,
.campus-theme-beet .cd-gallery .swiper-button-next:hover img {
    filter: var(--filter-white);
}

/* Ensure legacy pd-cards styles also work if used */
.campus-detail-page .pd-cards__item {
    padding: 27px 24px 26px;
    border-radius: 20px;
    background: var(--bg-secondary, #F2F9F9);
    height: 100%;
}

.campus-detail-page .pd-cards__number {
    display: flex;
    width: 36px;
    height: 36px;
    justify-content: center;
    align-items: center;
    color: #fff;
    border-radius: 10px;
    background: var(--pd-grad-num);
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.campus-detail-page--beet .pd-cards__number {
    background: var(--beet, #7E2F3D);
}

.campus-detail-page--green .pd-cards__number {
    background: var(--bs-link-color, #00828E);
}
