/* ─── Campuses page — matches invento.uz/campuses ─────────────────────────── */

.campuses-page {
    --camp-teal: #00828e;
    --camp-teal-dark: #015d66;
    --camp-beet: #7e2f3d;
    --camp-beet-dark: #691726;
    --camp-orange: #ff9900;
    --camp-text: #474849;
    --camp-text-secondary: #959aa6;
    --camp-radius: 20px;
    --camp-grad-head: linear-gradient(281deg, #892436 11.88%, #02aaba 84.86%);
    width: 100%;
    color: var(--camp-text);
    padding-top: 20px;
    padding-bottom: clamp(3rem, 6vw, 5rem);
}

.campuses-page > .container > section {
    margin-top: clamp(2.5rem, 5vw, 5rem);
}
.campuses-page > .container > section:first-child {
    margin-top: 0;
}

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

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

.campuses-page .m-t-xxl { margin-top: 40px !important; }
.campuses-page .m-t-xxxl { margin-top: 60px !important; }
.campuses-page .m-b-m { margin-bottom: 24px !important; }
.campuses-page .m-b-xxl { margin-bottom: 40px !important; }
.campuses-page .m-t-m { margin-top: 24px !important; }

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

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

/* ── 1. Page banner ── */
.camp-banner {
    padding-top: 20px;
}
.camp-banner__card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: var(--camp-radius);
    box-shadow: 0 4px 32px rgba(130, 130, 130, 0.2);
    overflow: hidden;
    min-height: 102px;
}
.camp-banner__text {
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-self: stretch;
    min-height: 102px;
}
.camp-banner__breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 14px;
    font-weight: 500;
    color: var(--camp-text-secondary);
    flex-shrink: 0;
}
.camp-banner__breadcrumb a {
    color: var(--camp-text-secondary);
    text-decoration: none;
}
.camp-banner__breadcrumb a:hover {
    color: var(--camp-teal);
}
.camp-banner__title {
    margin: 0;
    margin-top: auto;
    font-weight: 700;
    font-size: clamp(1.75rem, 5vw, 3.25rem);
    line-height: 1.1;
    background: var(--camp-grad-head);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    display: inline-block;
}
.camp-banner__media {
    display: none;
}
@media (min-width: 768px) {
    .camp-banner__card {
        flex-direction: row;
        align-items: stretch;
        min-height: 200px;
    }
    .camp-banner__text {
        flex: 0 0 50%;
        padding: 32px 40px;
        min-height: 200px;
    }
    .camp-banner__media {
        display: block;
        flex: 1;
        position: relative;
        background: url("../img/pattern_min.3455eee9d12e.svg") no-repeat -35px center;
        background-size: 400px 400px;
    }
    .camp-banner__img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 0 var(--camp-radius) var(--camp-radius) 0;
        clip-path: ellipse(80% 121% at 87% 82%);
    }
}
@media (min-width: 1200px) {
    .camp-banner__card {
        min-height: 280px;
    }
    .camp-banner__text {
        padding: 40px 60px;
        min-height: 280px;
    }
    .camp-banner__media {
        background-size: 450px 450px;
    }
    .camp-banner__img {
        clip-path: ellipse(75% 125% at 87% 95%);
    }
}

/* ── 2. Intro ── */
.camp-intro .fs-18 p {
    margin-bottom: 1rem;
}
.camp-intro .fs-18 p:last-child {
    margin-bottom: 0;
}

/* Keep intro on the same left/right edges as the page-title card (not past it) */
.campuses-page .camp-intro > .row {
    --bs-gutter-x: 1.5rem;
    margin-left: 0;
    margin-right: 0;
}

.campuses-page .camp-intro > .row > [class*="col-"] {
    padding-left: calc(var(--bs-gutter-x) * 0.5);
    padding-right: calc(var(--bs-gutter-x) * 0.5);
}

.campuses-page .camp-intro > .row > [class*="col-"]:first-child {
    padding-left: 0;
}

.campuses-page .camp-intro > .row > [class*="col-"]:last-child {
    padding-right: 0;
}

/* ── 3. Campus cards ── */
.camp-list {
    margin-top: 0;
}
.camp-card {
    display: block;
    position: relative;
    border-radius: var(--camp-radius);
    color: #fff;
    font-size: 14px;
    text-decoration: none;
    overflow: hidden;
    background: linear-gradient(81deg, #00828e 2.33%, #015d66 98.33%);
    transition: filter 0.15s ease;
}
.camp-card--spaced {
    margin-top: clamp(1.5rem, 3vw, 2.5rem);
}
.camp-card--ashgabat {
    background: linear-gradient(81deg, #7e2f3d 2.33%, #691726 98.33%);
}
.camp-card:hover .camp-card__title {
    color: var(--camp-orange);
}
.camp-card:hover .camp-card__img {
    transform: scale(1.1);
}
.camp-card__bg {
    background-image: url("../img/campus-flower-rotated_min.17985a28ebfe.svg");
    background-repeat: no-repeat;
    background-size: 100px 100px;
    background-position: 20px calc(100% - 20px);
    height: 100%;
}
.camp-card--ashgabat .camp-card__bg {
    background-image: url("../img/campus-star-rotated_min.6301aac6780a.svg");
}
.camp-card__inner {
    display: grid;
    gap: 0;
    padding: 24px 24px 0;
}
@media (min-width: 768px) {
    .camp-card__inner {
        padding: 32px 32px 0;
        font-size: 16px;
    }
    .camp-card__bg {
        background-size: 220px 220px;
        background-position: 50px calc(100% - 50px);
    }
}
@media (min-width: 992px) {
    .camp-card__inner {
        padding: 40px 40px 0;
    }
    .camp-card__bg {
        background-position: 275px calc(100% - 50px);
    }
}
@media (min-width: 1200px) {
    .camp-card__inner {
        grid-template-columns: 7fr 5fr;
        align-items: end;
        padding: 20px 40px 40px;
    }
    .camp-card__bg {
        background-position: calc(100% - 315px) 110px;
    }
}
.camp-card__title {
    margin: 0 0 8px;
    font-size: clamp(1.35rem, 2.5vw, 2rem);
    font-weight: 700;
    color: #fff;
    transition: color 0.15s ease;
}
@media (min-width: 768px) {
    .camp-card__title {
        margin-bottom: 18px;
    }
}
@media (min-width: 992px) {
    .camp-card__title {
        margin-bottom: 12px;
    }
}
.camp-card__desc {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
}
.camp-card__desc p {
    margin-bottom: 0.5rem;
}
.camp-card__desc b,
.camp-card__desc strong {
    color: #fff;
}
.camp-card__specs {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem 2rem;
    margin-top: 1.25rem;
}
@media (min-width: 768px) {
    .camp-card__specs {
        gap: 2rem 5.5rem;
    }
}
@media (min-width: 1200px) {
    .camp-card__specs {
        margin-top: 50px;
        gap: 2rem 6rem;
    }
}
.camp-card__spec-caption {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 4px;
    font-size: 14px;
}
.camp-card__spec-value {
    font-size: clamp(1rem, 1.5vw, 1.125rem);
    font-weight: 700;
    line-height: 1.3;
    margin: 0;
}
.camp-card__media {
    position: relative;
    min-height: 200px;
}
@media (min-width: 376px) {
    .camp-card__media {
        min-height: 250px;
    }
}
@media (min-width: 576px) {
    .camp-card__media {
        min-height: 320px;
    }
}
.camp-card__img-wrap {
    position: absolute;
    right: 0;
    bottom: 0;
    height: 155px;
    width: 248px;
    clip-path: ellipse(155px 155px at 89% 100%);
    overflow: hidden;
}
@media (min-width: 376px) {
    .camp-card__img-wrap {
        height: 185px;
        width: 250px;
        clip-path: ellipse(180px 185px at 73% 101%);
    }
}
@media (min-width: 576px) {
    .camp-card__img-wrap {
        height: 280px;
        width: auto;
        clip-path: ellipse(75% 294px at 76% 105%);
    }
}
@media (min-width: 1200px) {
    .camp-card__img-wrap {
        height: 320px;
        clip-path: ellipse(290px 290px at 68% 91%);
    }
}
.camp-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
    position: absolute;
    right: -25px;
}
@media (min-width: 376px) {
    .camp-card__img {
        right: 0;
    }
}
@media (min-width: 576px) {
    .camp-card__img {
        position: static;
        right: auto;
    }
}

/* Mobile: keep both campus cards readable without filling a full screen each */
@media (max-width: 767.98px) {
    .camp-card {
        font-size: 13px;
        border-radius: 16px;
    }

    .camp-card--spaced {
        margin-top: 1rem;
    }

    .camp-card__bg,
    .camp-card--ashgabat .camp-card__bg {
        background-image: none;
    }

    .camp-card__inner {
        padding: 16px 16px 16px;
    }

    .camp-card__title {
        margin: 0 0 6px;
        font-size: 1.2rem;
        line-height: 1.2;
    }

    .camp-card__desc {
        line-height: 1.4;
    }

    .camp-card__desc p {
        margin-bottom: 0.35rem;
    }

    .camp-card__desc p:last-child {
        margin-bottom: 0;
    }

    .camp-card__specs {
        gap: 0.75rem 1.25rem;
        margin-top: 0.75rem;
        margin-bottom: 0.85rem;
    }

    .camp-card__spec-caption {
        margin-bottom: 2px;
        font-size: 12px;
    }

    .camp-card__spec-value {
        font-size: 0.95rem;
        line-height: 1.25;
    }

    .camp-card__media {
        position: relative;
        min-height: 0;
        margin: 0;
    }

    .camp-card__img-wrap {
        position: relative;
        right: auto;
        bottom: auto;
        height: 160px;
        width: 100%;
        clip-path: none;
        border-radius: 12px;
        overflow: hidden;
    }

    .camp-card__img {
        position: static;
        right: auto;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
        display: block;
    }
}

/* ── 4. CTA banner ── */
.camp-cta__banner {
    border-radius: var(--camp-radius);
    background: var(--camp-teal);
    color: #fff;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 24px 20px 30px;
}
.camp-cta__content {
    flex: 1 1 auto;
    min-width: 0;
}
.camp-cta__heading {
    margin: 0 0 1rem;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;
    color: #fff;
}
.camp-cta__heading-suffix {
    white-space: normal;
}
.camp-cta__decor {
    flex-shrink: 0;
    text-align: center;
    margin: 0 auto;
    perspective: 600px;
}
.camp-cta__decor img {
    max-width: 120px;
    height: auto;
    display: block;
    transform-origin: center center;
    backface-visibility: hidden;
    animation: camp-cta-logo-wiggle 0.75s ease-in-out infinite alternate;
}
.camp-cta__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border: 2px solid #fff;
    border-radius: 30px;
    background: transparent;
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
}
.camp-cta__btn:hover {
    background: #fff;
    color: var(--camp-teal);
}

/* Mobile: compact CTA — no overflow, no giant empty decor */
@media (max-width: 767.98px) {
    .camp-cta.m-t-xxxl {
        margin-top: 1.5rem !important;
    }

    .camp-cta__banner {
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: center;
        gap: 12px;
        padding: 14px 14px 14px 16px;
        border-radius: 16px;
        overflow: hidden;
    }

    .camp-cta__content {
        flex: 1 1 auto;
        min-width: 0;
    }

    .camp-cta__heading {
        margin: 0 0 0.7rem;
        font-size: 1.05rem;
        line-height: 1.25;
        overflow-wrap: break-word;
    }

    .camp-cta__heading-suffix {
        white-space: normal;
    }

    .camp-cta__btn {
        width: auto;
        padding: 9px 16px;
    }

    .camp-cta__decor {
        display: block;
        flex: 0 0 64px;
        width: 64px;
        margin: 0;
    }

    .camp-cta__decor img {
        width: 64px;
        max-width: 64px;
    }
}

@media (min-width: 768px) {
    .camp-cta__heading-suffix {
        white-space: nowrap;
    }

    .camp-cta__banner {
        padding: 20px 32px;
        text-align: left;
    }

    .camp-cta__content {
        flex: 1 1 75%;
        max-width: 75%;
    }

    .camp-cta__heading {
        font-size: 28px;
    }

    .camp-cta__decor {
        margin: 0;
    }

    .camp-cta__decor img {
        max-width: 140px;
    }
}

@keyframes camp-cta-logo-wiggle {
    from {
        transform: rotateY(-18deg);
    }
    to {
        transform: rotateY(18deg);
    }
}

@media (min-width: 992px) {
    .camp-cta__banner {
        padding: 20px 60px;
    }

    .camp-cta__heading {
        font-size: 40px;
    }

    .camp-cta__decor img {
        max-width: 160px;
    }
}
