/* ─── About School page — matches invento.uz/about reference ──────────────── */

.about-page {
    --ab-teal: #00828e;
    --ab-beet: #7e2f3d;
    --ab-orange: #ff9900;
    --ab-bg-secondary: #f2f9f9;
    --ab-text: #474849;
    --ab-text-secondary: #959aa6;
    --ab-radius: 20px;
    --ab-grad-head: linear-gradient(281deg, #892436 11.88%, #02aaba 84.86%);
    --ab-grad-check: linear-gradient(60deg, #892436 27.04%, #02aaba 93.86%);
    width: 100%;
    color: var(--ab-text);
}

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

/* Gradient text utility (beet → teal) */
.about-page .font-gradient {
    background: var(--ab-grad-head);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

/* Play button (teal circle + white triangle) */
.ab-play-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--ab-teal);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.25s ease, background 0.25s ease;
}
.ab-play-icon::before {
    content: "";
    border-style: solid;
    border-width: 9px 0 9px 15px;
    border-color: transparent transparent transparent #fff;
    margin-left: 3px;
}
.ab-play-icon--lg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 72px;
    height: 72px;
}

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

/* ── 2. Info (stylised card: lead + video left, body right) ── */
.ab-info__card {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    padding: clamp(1.75rem, 4vw, 3.75rem);
    background:
        radial-gradient(120% 140% at 100% 0%, rgba(0, 130, 142, 0.08) 0%, rgba(0, 130, 142, 0) 45%),
        radial-gradient(120% 140% at 0% 100%, rgba(137, 36, 54, 0.06) 0%, rgba(137, 36, 54, 0) 45%),
        var(--ab-bg-secondary);
}
.ab-info__grid {
    display: grid;
    gap: 2rem 3rem;
}
@media (min-width: 992px) {
    .ab-info__grid {
        grid-template-columns: 5fr 7fr;
        align-items: stretch;
    }
}
.ab-info__lead-col {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.ab-info__lead {
    font-size: clamp(1.3rem, 2.4vw, 1.9rem);
    font-weight: 700;
    line-height: 1.35;
    margin: 0;
    letter-spacing: -0.01em;
}
.ab-info__lead::before {
    content: "";
    display: block;
    width: 56px;
    height: 5px;
    border-radius: 3px;
    background: var(--ab-grad-check);
    margin-bottom: 1.5rem;
}
.ab-info__heading {
    font-size: clamp(1.4rem, 2.5vw, 1.9rem);
    font-weight: 700;
    margin: 0 0 1rem;
}
.ab-info__text {
    font-size: 1.0625rem;
    line-height: 1.75;
    color: #56585b;
}
.ab-info__text p {
    margin-bottom: 1.1rem;
}
.ab-info__text p:last-child {
    margin-bottom: 0;
}
.ab-info__text b,
.ab-info__text strong {
    color: var(--ab-text);
}
@media (min-width: 992px) {
    .ab-info__body-col {
        padding-left: 3rem;
        border-left: 1px solid rgba(0, 130, 142, 0.14);
    }
}
/* Video call-to-action pill */
.ab-info__video {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    margin-top: auto;
    align-self: flex-start;
    max-width: 100%;
    padding: 8px 22px 8px 8px;
    background: #fff;
    border: none;
    border-radius: 999px;
    text-align: left;
    cursor: pointer;
    box-shadow: 0 8px 26px rgba(0, 130, 142, 0.12);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.ab-info__video:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 32px rgba(0, 130, 142, 0.22);
}
.ab-info__video-thumb {
    position: relative;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}
.ab-info__video-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.ab-info__video-thumb .ab-play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 34px;
    height: 34px;
}
.ab-info__video-thumb .ab-play-icon::before {
    border-width: 5px 0 5px 9px;
    margin-left: 2px;
}
.ab-info__video-caption {
    font-weight: 700;
    line-height: 1.3;
    color: var(--ab-text);
    padding-right: 0.5rem;
}
.ab-info__video:hover .ab-play-icon {
    transform: translate(-50%, -50%) scale(1.08);
    background: var(--ab-beet);
}

/* ── 3. History / timeline ── */
.ab-history__card {
    max-width: 1000px;
    margin: 0 auto;
}
.ab-history__head {
    text-align: center;
    margin-bottom: 2rem;
}
.ab-history__heading {
    display: inline-block;
    font-size: clamp(1.6rem, 3vw, 2.25rem);
    font-weight: 700;
    margin: 0;
}
.ab-history__intro {
    margin-bottom: 2rem;
    text-align: center;
}
.ab-stages {
    font-size: 1rem;
}
.ab-stages__item {
    position: relative;
    padding: 0 0 24px 33px;
}
.ab-stages__item::before {
    content: "";
    position: absolute;
    top: 4px;
    left: 0;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--ab-orange);
}
.ab-stages__item::after {
    content: "";
    position: absolute;
    top: 28px;
    left: 8px;
    width: 1px;
    height: calc(100% - 32px);
    background: var(--ab-orange);
}
.ab-stages__item:last-child {
    padding-bottom: 0;
}
.ab-stages__item:last-child::after {
    display: none;
}
.ab-stages__year {
    font-size: 20px;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 6px;
}
.ab-stages__event {
    line-height: 1.5;
}
@media (min-width: 576px) {
    .ab-stages {
        font-size: 1.125rem;
    }
    .ab-stages__item {
        display: flex;
        gap: 88px;
        padding: 0 0 24px 0;
        min-height: 92px;
    }
    .ab-stages__item::before {
        left: 135px;
    }
    .ab-stages__item::after {
        left: 143px;
    }
    .ab-stages__year {
        min-width: 102px;
        margin-bottom: 0;
    }
}

/* ── 4/5/7/8/9. Image + text ── */
.ab-imgtext__inner {
    display: grid;
    gap: 1.5rem 2.5rem;
    align-items: center;
}
@media (min-width: 768px) {
    .ab-imgtext__inner {
        grid-template-columns: 1fr 1fr;
    }
    .ab-imgtext--wide-media .ab-imgtext__inner {
        grid-template-columns: 5fr 7fr;
    }
    .ab-imgtext--wide-text .ab-imgtext__inner {
        grid-template-columns: 1fr 2fr;
    }
    .ab-imgtext--wide-text .ab-imgtext__text {
        padding-left: 0;
    }
    @media (min-width: 992px) {
        .ab-imgtext--wide-text.ab-imgtext--left .ab-imgtext__text {
            padding-left: 3rem;
        }
    }
    .ab-imgtext--left .ab-imgtext__media {
        order: -1;
    }
    .ab-imgtext--right .ab-imgtext__media {
        order: 1;
    }
}
.ab-imgtext__img {
    width: 100%;
    height: auto;
    border-radius: var(--ab-radius);
    display: block;
}

/* Equal columns: photo height matches text (crop with object-fit) */
@media (min-width: 768px) {
    .ab-imgtext--equal .ab-imgtext__inner {
        align-items: stretch;
    }
    .ab-imgtext--equal .ab-imgtext__media {
        position: relative;
        overflow: hidden;
        border-radius: var(--ab-radius);
        /* Intrinsic image height must not stretch the row */
        min-height: 0;
        align-self: stretch;
    }
    .ab-imgtext--equal .ab-imgtext__img {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }
}
.ab-imgtext__heading {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    margin: 0 0 1.25rem;
    color: var(--ab-text);
}
.ab-imgtext__rich {
    font-size: 1.0625rem;
    line-height: 1.6;
}
.ab-imgtext__rich p {
    margin-bottom: 1rem;
}
.ab-imgtext__rich p:last-child {
    margin-bottom: 0;
}
/* Ordered list → gradient rounded check badges */
.ab-imgtext__rich ol {
    list-style: none;
    padding-left: 48px;
    margin: 0;
}
.ab-imgtext__rich ol li {
    position: relative;
    margin-bottom: 20px;
    line-height: 1.5;
}
.ab-imgtext__rich ol li:last-child {
    margin-bottom: 0;
}
.ab-imgtext__rich ol li::before {
    content: "";
    position: absolute;
    left: -48px;
    top: 0;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: url("../img/icons/check.5e6503a06127.svg") no-repeat center,
        var(--ab-grad-check);
    background-size: 18px, cover;
}
/* Bullet list → small dots */
.ab-imgtext__rich ul {
    list-style: none;
    padding-left: 20px;
    margin: 0.75rem 0 0;
}
.ab-imgtext__rich ul li {
    position: relative;
    margin-bottom: 0.5rem;
    line-height: 1.5;
}
.ab-imgtext__rich ul li::before {
    content: "";
    position: absolute;
    left: -12px;
    top: 0.65em;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--ab-text);
}
@media (min-width: 768px) {
    .ab-imgtext__rich ol {
        padding-left: 68px;
    }
    .ab-imgtext__rich ol li::before {
        left: -68px;
        width: 44px;
        height: 44px;
        border-radius: 12px;
        background-size: 24px, cover;
    }
}

/* Parents section — match invento.uz reference */
.ab-imgtext--our_parents .ab-imgtext__heading {
    font-size: 22px;
    line-height: 1.3;
    margin-bottom: 24px;
}
@media (min-width: 768px) {
    .ab-imgtext--our_parents .ab-imgtext__heading {
        font-size: 28px;
        margin-bottom: 28px;
    }
}
@media (min-width: 992px) {
    .ab-imgtext--our_parents .ab-imgtext__heading {
        font-size: 40px;
        margin-bottom: 32px;
    }
}
.ab-imgtext--our_parents .ab-imgtext__rich {
    font-size: 16px;
    line-height: 1.5;
}
.ab-imgtext--our_parents .ab-imgtext__rich p {
    margin-bottom: 10px;
}
.ab-imgtext--our_parents .ab-imgtext__rich ul {
    padding-left: 20px;
    margin-top: 0;
}
.ab-imgtext--our_parents .ab-imgtext__rich ul li {
    margin-bottom: 10px;
}
.ab-imgtext--our_parents .ab-imgtext__rich ul li::before {
    left: 8px;
    width: 3px;
    height: 3px;
    top: 0.65em;
}
@media (min-width: 768px) {
    .ab-imgtext--our_parents .ab-imgtext__rich ul li::before {
        width: 4px;
        height: 4px;
        margin-top: 9px;
    }
}

/* Decorative flower pattern behind parents photo */
.ab-imgtext__pattern-wrap {
    position: relative;
    padding-left: 36px;
}
.ab-imgtext__pattern-wrap::before {
    content: "";
    position: absolute;
    top: 58%;
    left: 0;
    transform: translateY(-50%);
    margin-left: -74px;
    width: 165px;
    height: 165px;
    z-index: 0;
    background: url("../img/campus-flower-rotated-opacity-100_min.dade206592a8.svg") no-repeat center;
    background-size: contain;
    pointer-events: none;
}
@media (min-width: 1200px) {
    .ab-imgtext__pattern-wrap::before {
        width: 240px;
        height: 240px;
        margin-left: -109px;
    }
}
.ab-imgtext__pattern-wrap .ab-imgtext__img {
    position: relative;
    z-index: 1;
}

/* ── 6. Goal banner (flower gradient) ── */
.ab-goal__banner {
    border-radius: var(--ab-radius);
    color: #fff;
    text-align: center;
    padding: clamp(2rem, 4vw, 3rem) clamp(1.5rem, 4vw, 4rem);
    background: no-repeat 30px calc(100% + 135px) / 620px
            url("../img/flower-2_min.8e9948fdb4b4.svg"),
        linear-gradient(84deg, #892436 -2.75%, #02aaba 100%);
}
.ab-goal__text {
    margin: 0;
    font-size: clamp(1.15rem, 2.2vw, 1.6rem);
    font-weight: 600;
    line-height: 1.5;
}

/* ── 10. Video (thumbnail + play + caption) ── */
.ab-video__heading {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    margin: 0 0 1.25rem;
}
.ab-video__frame {
    position: relative;
    border-radius: var(--ab-radius);
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 16 / 9;
    background: #000;
}
.ab-video__thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.ab-video__frame:hover .ab-play-icon {
    transform: translate(-50%, -50%) scale(1.08);
    background: var(--ab-beet);
}
.ab-video__caption {
    margin: 0.75rem 0 0;
    color: var(--ab-text-secondary);
}
.ab-video__frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* ── 11. CTA banner (teal + flower pattern) ── */
.ab-cta__banner {
    border-radius: var(--ab-radius);
    color: #fff;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 25px 30px 30px;
    background: no-repeat calc(100% + 155px) -295px / 440px 450px
            url("../img/pattern-0.03_min.5c9cfe03541a.svg"),
        var(--ab-teal);
}
.ab-cta__heading {
    margin: 0;
    color: #fff;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
}
.ab-cta__btn {
    background: #fff;
    color: var(--ab-teal);
    border: none;
    font-weight: 600;
    padding: 0.75rem 1.75rem;
    border-radius: 30px;
    white-space: nowrap;
    flex-shrink: 0;
    transition: color 0.2s ease, background 0.2s ease;
}
.ab-cta__btn:hover {
    background: var(--ab-beet);
    color: #fff;
}
@media (min-width: 768px) {
    .ab-cta__banner {
        justify-content: space-between;
        text-align: left;
        padding: 30px 40px;
        background-position: 260px -335px;
        background-size: 590px 600px;
    }
}
@media (min-width: 992px) {
    .ab-cta__banner {
        padding: 40px 60px;
        background-position: calc(100% + 255px) -495px;
        background-size: 970px 945px;
    }
}

/* ── Video lightbox overlay (info mini-video) ── */
.ab-video-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.ab-video-overlay__inner {
    position: relative;
    width: min(960px, 100%);
}
.ab-video-overlay__frame {
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: var(--ab-radius);
    overflow: hidden;
    background: #000;
}
.ab-video-overlay__frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}
.ab-video-overlay__close {
    position: absolute;
    top: -2.75rem;
    right: 0;
    width: 2.25rem;
    height: 2.25rem;
    border: none;
    border-radius: 50%;
    background: #fff;
    color: var(--ab-text);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
}

/* ── Feedback / consultation modal ── */
.feedback-modal {
    position: fixed;
    inset: 0;
    z-index: 12000;
    display: flex;
    align-items: stretch;
    justify-content: center;
}
.feedback-modal[hidden] {
    display: none !important;
}
.feedback-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
}
.feedback-modal__dialog {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 100%;
    margin: 0;
    background-color: #00828e;
    color: #fff;
    overflow: auto;
    min-height: 100vh;
    background-image: url("../img/pattern-0.03_min.5c9cfe03541a.svg");
    background-repeat: no-repeat;
    background-position: center -80px;
    background-size: 120% auto;
}
@media (min-width: 768px) {
    .feedback-modal {
        align-items: center;
        padding: 24px;
    }
    .feedback-modal__dialog {
        max-width: 576px;
        min-height: auto;
        border-radius: 20px;
        background-position: -260px -605px;
        background-size: 1815px 1790px;
    }
}
@media (min-width: 992px) {
    .feedback-modal__dialog {
        max-width: 636px;
    }
}
.feedback-modal__close {
    position: absolute;
    top: 8px;
    right: 6px;
    width: 32px;
    height: 32px;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}
.feedback-modal__close img {
    filter: brightness(0) invert(1);
    width: 24px;
    height: 24px;
}
@media (min-width: 992px) {
    .feedback-modal__close {
        top: 12px;
        right: 12px;
        width: 40px;
        height: 40px;
    }
    .feedback-modal__close img {
        width: 32px;
        height: 32px;
    }
}
.feedback-modal__body {
    padding: 32px 12px;
}
@media (min-width: 768px) {
    .feedback-modal__body {
        padding: 32px;
    }
}
@media (min-width: 992px) {
    .feedback-modal__body {
        padding: 40px 60px;
    }
}
.feedback-modal__title {
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 0.5rem;
    color: #fff;
}
.feedback-modal__txt {
    font-size: 0.9375rem;
    line-height: 1.5;
    opacity: 0.95;
}
@media (min-width: 768px) {
    .feedback-modal__txt {
        font-size: 1rem;
    }
}
.feedback-modal__method-top {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}
.feedback-modal__method-label {
    font-size: 0.875rem;
}
.feedback-method-switch {
    display: inline-grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    padding: 4px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.35);
    min-width: min(100%, 220px);
}
.feedback-method-switch__btn {
    margin: 0;
    padding: 8px 16px;
    border: none;
    border-radius: 999px;
    background: transparent;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}
.feedback-method-switch__btn.active {
    background: #fff;
    color: #00828e;
}
.feedback-modal__agree {
    font-size: 13px;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.85);
    max-width: 420px;
}
.feedback-modal__agree a {
    color: #cfd3db;
    text-decoration: underline;
}
.feedback-modal__status {
    font-size: 0.9375rem;
    font-weight: 600;
}
.feedback-modal__status.is-ok {
    color: #dff7ef;
}
.feedback-modal__status.is-err {
    color: #ffd0d0;
}

/* White floating inputs on teal modal (about page doesn't load enroll.css) */
.feedback-modal .form-control--white,
.feedback-modal .form-select--white {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.5);
    background-color: transparent;
}
.feedback-modal .form-control--white::placeholder {
    color: #fff;
}
.feedback-modal .form-control--white:focus {
    color: #fff;
    border-color: #fff;
    background-color: transparent;
    box-shadow: none;
}
.feedback-modal .form-floating > .form-control--white ~ label {
    color: rgba(255, 255, 255, 0.85);
}
.feedback-modal .form-floating > .form-control--white:focus ~ label,
.feedback-modal .form-floating > .form-control--white:not(:placeholder-shown) ~ label {
    color: #fff;
}
.feedback-modal textarea.form-control {
    min-height: 96px;
}
.feedback-modal .invalid-feedback {
    color: #ffd0d0;
}
.feedback-modal .m-t-l { margin-top: 1.5rem; }
.feedback-modal .m-t-s { margin-top: 0.75rem; }
.feedback-modal .m-t-m { margin-top: 1rem; }
.feedback-modal .m-t-xxs { margin-top: 0.5rem; }
.feedback-modal .m-b-xs { margin-bottom: 0.5rem; }

body.feedback-modal-open {
    overflow: hidden;
}
