/* ─── Programme detail pages — invento.uz/programms/* ───────────────────── */

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

.programme-detail-page > .container > section,
.programme-detail-page > .container > .pd-back {
    margin-top: clamp(2.5rem, 5vw, 5rem);
}

.programme-detail-page > .container > section:first-child {
    margin-top: 0;
}

/* Banner */
.pd-banner__card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: var(--pd-radius);
    box-shadow: 0 4px 32px rgba(130, 130, 130, 0.2);
    overflow: hidden;
    min-height: 102px;
}

.pd-banner__text {
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1;
    min-height: 102px;
}

.pd-banner__text .site-bc {
    color: var(--pd-text-secondary);
}
.pd-banner__text .site-bc__item a:hover {
    color: var(--pd-teal);
}

.pd-banner__title {
    margin: 0;
    margin-top: auto;
    font-size: clamp(1.5rem, 4vw, 2.25rem);
    font-weight: 700;
    line-height: 1.15;
    background: var(--pd-grad-head);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.pd-banner__media {
    display: none;
}

@media (min-width: 768px) {
    .pd-banner__card {
        flex-direction: row;
        min-height: 150px;
    }

    .pd-banner__text {
        flex: 0 0 50%;
        padding: 32px 40px;
        min-height: 150px;
    }

    .pd-banner__breadcrumb {
        font-size: 14px;
    }

    .pd-banner__media {
        display: block;
        flex: 1;
        position: relative;
        background: url("../img/pattern_min.3455eee9d12e.svg") no-repeat -35px center;
        background-size: 400px 400px;
        border-radius: 0 var(--pd-radius) var(--pd-radius) 0;
        clip-path: ellipse(60% 135% at 60% 36%);
    }

    .pd-banner__img {
        width: 100%;
        height: 150px;
        object-fit: cover;
        border-radius: 0 var(--pd-radius) var(--pd-radius) 0;
        clip-path: ellipse(80% 121% at 87% 82%);
    }
}

@media (min-width: 1400px) {
    .pd-banner__card,
    .pd-banner__text {
        min-height: 280px;
    }

    .pd-banner__text {
        padding: 40px 60px;
    }

    .pd-banner__media {
        background-size: 587px 587px;
        clip-path: ellipse(55% 132% at 57% 40%);
    }

    .pd-banner__img {
        height: 280px;
        clip-path: ellipse(79% 122% at 87% 91%);
    }
}

/* Intro */
.pd-intro__heading {
    font-size: clamp(1.125rem, 2.5vw, 1.5rem);
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 1rem;
}

.pd-intro__badge {
    max-width: 220px;
    height: auto;
    margin-top: 0.5rem;
}

.pd-intro__body {
    font-size: 1.125rem;
    line-height: 1.6;
}

/* Rows */
.pd-row h3,
.pd-row h4 {
    font-weight: 700;
    margin-bottom: 1rem;
}

.pd-row__body {
    font-size: 1rem;
    line-height: 1.6;
}

.pd-row__body p,
.pd-intro__body p {
    margin-bottom: 1rem;
}

.pd-row__body .fs-18,
.pd-row__body p.fs-18 {
    font-size: 1.125rem;
}

@media (min-width: 992px) {
    .pd-row__body,
    .pd-intro__body {
        font-size: 1.125rem;
    }
}

.pd-row__body ul,
.pd-row__body ol {
    padding-left: 1.25rem;
    margin-bottom: 1rem;
}

.pd-row__body li {
    margin-bottom: 0.5rem;
}

.pd-row__img {
    width: 100%;
    height: auto;
    border-radius: var(--pd-radius);
    display: block;
}

.pd-row__img-wrap {
    padding-left: 36px;
    position: relative;
}

.pd-row__img-wrap::before {
    content: "";
    background: url("../img/campus-flower-rotated-opacity-100_min.dade206592a8.svg") no-repeat center;
    position: absolute;
    width: 165px;
    height: 165px;
    top: 58%;
    transform: translateY(-50%);
    margin-left: -110px;
    z-index: -1;
}

@media (min-width: 1200px) {
    .pd-row__img-wrap::before {
        width: 240px;
        height: 240px;
        margin-left: -145px;
    }
}

.pd-row--center .row {
    align-items: center;
}

.pd-row__media-col--first {
    margin-bottom: 1.5rem;
}

@media (min-width: 992px) {
    .pd-row__media-col--first {
        margin-bottom: 0;
    }
}

/* Why section */
.pd-why h4 {
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.pd-why__sub {
    font-size: 1.125rem;
    margin-bottom: 1rem;
}

.pd-why__list {
    list-style: none;
    padding-left: 48px;
    margin: 0;
    line-height: 1.5;
    font-size: 1.125rem;
}

.pd-why__list li {
    position: relative;
    margin-bottom: 1.25rem;
}

.pd-why__list li::before {
    content: "";
    border-radius: 10px;
    background: url("../img/icons/check.5e6503a06127.svg") no-repeat center, var(--pd-grad-num);
    width: 32px;
    height: 32px;
    display: block;
    position: absolute;
    margin-left: -48px;
}

@media (min-width: 768px) {
    .pd-why__list {
        padding-left: 68px;
    }

    .pd-why__list li::before {
        border-radius: 12px;
        width: 44px;
        height: 44px;
        margin-left: -68px;
    }
}

/* Cards */
.pd-cards__intro {
    margin-bottom: clamp(2rem, 4vw, 3.5rem);
    font-size: 1.125rem;
    line-height: 1.6;
}

.pd-cards .row {
    row-gap: 1.5rem;
}

/* Numbered programme cards (PYP / MYP / DP) — invento .card-item markup */
.card-item {
    padding: 27px 24px 26px;
    border-radius: var(--pd-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(--pd-bg-secondary, #F2F9F9);
    color: var(--pd-text, #474849);
}

.card-item--light p {
    opacity: 1;
    line-height: 1.5;
    color: var(--pd-text, #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);
}

/* CTA — match programmes/admission sizing + 3D logo wiggle */
.pd-cta__banner {
    border-radius: var(--pd-radius);
    background: linear-gradient(90deg, #7e2f3d -0.89%, #691726 49.98%);
    color: #fff;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 24px 20px 30px;
}

.pd-cta__content {
    flex: 1 1 auto;
    min-width: 0;
    text-align: center;
}

.pd-cta__heading {
    margin: 0 0 1rem;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;
    color: #fff;
}

.pd-cta__decor {
    flex-shrink: 0;
    text-align: center;
    margin: 0 auto;
    perspective: 600px;
}

.pd-cta__decor img {
    max-width: 120px;
    height: auto;
    transform-origin: center center;
    backface-visibility: hidden;
    animation: pd-cta-logo-wiggle 0.75s ease-in-out infinite alternate;
}

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

.pd-cta__btn {
    display: inline-flex;
    align-items: 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;
}

.pd-cta__btn:hover {
    background: #fff;
    color: #7e2f3d;
}

@media (max-width: 767.98px) {
    .pd-cta__banner {
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: center;
        gap: 12px;
        padding: 14px 14px 14px 16px;
        overflow: hidden;
    }
    .pd-cta__content {
        flex: 1 1 auto;
        min-width: 0;
        text-align: left;
    }
    .pd-cta__heading {
        margin-bottom: 0.7rem;
        font-size: 1.05rem;
        line-height: 1.25;
        overflow-wrap: break-word;
    }
    .pd-cta__btn {
        padding: 9px 16px;
    }
    .pd-cta__decor {
        flex: 0 0 64px;
        width: 64px;
        margin: 0;
    }
    .pd-cta__decor img {
        width: 64px;
        max-width: 64px;
    }
}

@media (min-width: 768px) {
    .pd-cta__banner {
        padding: 20px 32px;
    }
    .pd-cta__content {
        flex: 1 1 75%;
        max-width: 75%;
        text-align: left;
    }
    .pd-cta__heading {
        font-size: 28px;
    }
    .pd-cta__decor {
        margin: 0;
    }
    .pd-cta__decor img {
        max-width: 140px;
    }
}

@media (min-width: 992px) {
    .pd-cta__banner {
        padding: 20px 60px;
    }
    .pd-cta__heading {
        font-size: 40px;
    }
    .pd-cta__decor img {
        max-width: 160px;
    }
}

/* Back link */
.pd-back .btn-outline-primary {
    display: inline-flex;
    align-items: center;
}

.pd-back img {
    width: 20px;
    height: 20px;
}
