/*==============================================
   KIMST About Us page (/about)
   Styles the existing markup only (heading, four paragraphs, two photos).
   Scoped by .kh-aboutpage, so the Careers page (same old template) is untouched.
   The photos are small (370px and 470px wide): they are shown at their real size, never stretched.
   (No position:sticky on the photo column: the page wrapper clips overflow, which disables sticky.)
===============================================*/

body.is-inner .about-style1-area.kh-aboutpage {
    --kh-green: #108543;
    --kh-red: #d02010;
    --kh-red-deep: #b51a0c;
    --kh-ink: #14231a;
    --kh-body: #46564c;
    --kh-line: #e3eae5;
    --kh-ease: cubic-bezier(.22, 1, .36, 1);

    position: relative;
    overflow: hidden;
    padding: 72px 0 88px !important;
    background: #f3f7f4;
}

/* soft glows, one red and one green like the logo */
body.is-inner .kh-aboutpage::before,
body.is-inner .kh-aboutpage::after {
    content: "";
    position: absolute;
    width: 560px;
    height: 560px;
    border-radius: 50%;
    pointer-events: none;
}

body.is-inner .kh-aboutpage::before {
    top: -230px;
    right: -170px;
    background: radial-gradient(circle, rgba(208, 32, 16, .08), transparent 68%);
}

body.is-inner .kh-aboutpage::after {
    bottom: -250px;
    left: -190px;
    background: radial-gradient(circle, rgba(16, 133, 67, .1), transparent 68%);
}

/*---------- Two-column layout (kept side by side down to 992px) ----------*/

@media (min-width: 992px) {
    body.is-inner .kh-aboutpage > .container > .row {
        align-items: flex-start;
    }

    /* the photos are small, the text card is tall: centre the photos beside it */
    body.is-inner .kh-aboutpage > .container > .row > .col-xl-4 {
        align-self: center;
        flex: 0 0 41%;
        max-width: 41%;
        padding-right: 30px;
    }

    body.is-inner .kh-aboutpage > .container > .row > .col-xl-8 {
        flex: 0 0 59%;
        max-width: 59%;
    }
}

/*---------- Photo composition ----------*/

body.is-inner .kh-aboutpage .col-xl-4 > .row {
    position: relative;
    display: block;
    margin: 0;
    padding: 0 0 76px 64px;
}

/* offset outline behind the main photo */
body.is-inner .kh-aboutpage .col-xl-4 > .row::before {
    content: "";
    position: absolute;
    top: 22px;
    right: -16px;
    bottom: 96px;
    left: 84px;
    border: 2px solid rgba(208, 32, 16, .28);
    border-radius: 30px;
    pointer-events: none;
}

/* graduation-cap badge (decoration only) */
body.is-inner .kh-aboutpage .col-xl-4 > .row::after {
    content: "\f19d";
    position: absolute;
    top: -22px;
    right: 28px;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 76px;
    height: 76px;
    border: 6px solid #fff;
    border-radius: 50%;
    background: linear-gradient(135deg, #e5483a, var(--kh-red-deep));
    box-shadow: 0 16px 34px rgba(208, 32, 16, .35);
    color: #fff;
    font-family: FontAwesome;
    font-size: 28px;
    font-weight: 400;
    line-height: 1;
}

body.is-inner .kh-aboutpage .col-xl-4 > .row > .col-lg-12 {
    position: relative;
    flex: none;
    width: auto;
    max-width: none;
    margin: 0;
    padding: 0;
}

/* the second image in the markup (about1.jpg) is the large one */
body.is-inner .kh-aboutpage .col-xl-4 > .row > .col-lg-12 + .col-lg-12 {
    z-index: 1;
    margin-top: 0;
}

body.is-inner .kh-aboutpage .col-xl-4 > .row > .col-lg-12 + .col-lg-12 img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 28px;
    box-shadow: 0 28px 60px rgba(7, 61, 32, .22);
}

/* the first image (about2.jpg) is the small one overlapping the corner */
body.is-inner .kh-aboutpage .col-xl-4 > .row > .col-lg-12:first-child {
    position: absolute;
    left: 0;
    bottom: 0;
    z-index: 2;
    width: 54%;
}

body.is-inner .kh-aboutpage .col-xl-4 > .row > .col-lg-12:first-child img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border: 7px solid #fff;
    border-radius: 24px;
    box-shadow: 0 22px 46px rgba(7, 61, 32, .28);
}

/*---------- Text card ----------*/

body.is-inner .kh-aboutpage .container .about-style1-text-box {
    position: relative;
    margin: 0;
    padding: 44px 48px 46px;
    overflow: hidden;
    border: 1px solid var(--kh-line);
    border-radius: 26px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(7, 61, 32, .04), 0 14px 34px rgba(7, 61, 32, .07);
}

/* thin brand-colour bar along the top edge */
body.is-inner .kh-aboutpage .about-style1-text-box::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, #108543, #2bb86b 55%, #d02010);
}

body.is-inner .kh-aboutpage .about-style1-text-box .sec-title {
    margin: 0 0 24px;
}

/* first paragraph = lead */
body.is-inner .kh-aboutpage .about-style1-text-box .inner-contant .text p:first-child {
    margin: 0 0 26px;
    padding: 4px 0 4px 22px;
    border-left: 4px solid transparent;
    border-image: linear-gradient(180deg, #108543, #2bb86b 60%, #d02010) 1;
    color: var(--kh-ink);
    font-size: 19px;
    font-weight: 500;
    line-height: 1.7;
}

body.is-inner .kh-aboutpage .about-style1-text-box .inner-contant .text p {
    margin: 0 0 18px;
    color: var(--kh-body);
    font-size: 16.5px;
    line-height: 1.85;
}

body.is-inner .kh-aboutpage .about-style1-text-box .inner-contant .text p:last-child {
    margin-bottom: 0;
}

/*---------- Tablet and phone: stack, photos first ----------*/

@media (max-width: 991.98px) {
    body.is-inner .about-style1-area.kh-aboutpage {
        padding: 52px 0 60px !important;
    }

    body.is-inner .kh-aboutpage > .container > .row > .col-xl-4 {
        flex: 0 0 100%;
        max-width: 520px;
        margin: 0 auto 44px;
        padding-right: 15px;
    }

    body.is-inner .kh-aboutpage .container .about-style1-text-box {
        padding: 36px 32px 38px;
    }
}

@media (max-width: 575.98px) {
    body.is-inner .kh-aboutpage .col-xl-4 > .row {
        padding: 0 0 54px 30px;
    }

    body.is-inner .kh-aboutpage .col-xl-4 > .row::before {
        top: 16px;
        right: -10px;
        bottom: 70px;
        left: 44px;
        border-radius: 24px;
    }

    body.is-inner .kh-aboutpage .col-xl-4 > .row::after {
        top: -16px;
        right: 16px;
        width: 58px;
        height: 58px;
        border-width: 5px;
        font-size: 22px;
    }

    body.is-inner .kh-aboutpage .col-xl-4 > .row > .col-lg-12 + .col-lg-12 img {
        border-radius: 22px;
    }

    body.is-inner .kh-aboutpage .col-xl-4 > .row > .col-lg-12:first-child {
        width: 56%;
    }

    body.is-inner .kh-aboutpage .col-xl-4 > .row > .col-lg-12:first-child img {
        border-width: 5px;
        border-radius: 18px;
    }

    body.is-inner .kh-aboutpage .container .about-style1-text-box {
        padding: 30px 22px 32px;
        border-radius: 22px;
    }

    body.is-inner .kh-aboutpage .about-style1-text-box .inner-contant .text p:first-child {
        padding-left: 16px;
        font-size: 17.5px;
    }

    body.is-inner .kh-aboutpage .about-style1-text-box .inner-contant .text p {
        font-size: 16px;
    }
}
