/* =========================================================
   CIAT ABOUT PAGE
   ABOUT PAGE ONLY
========================================================= */


/* =========================================================
   ROOT
========================================================= */

:root {
    --about-green: #009c27;
    --about-blue: #0864fe;
    --about-dark: #151515;
    --about-text: #333333;
    --about-light: #ffffff;
}


/* =========================================================
   ABOUT PAGE RESET
========================================================= */

.about-page {
    width: 100%;
    overflow-x: hidden;
}


/* =========================================================
   ABOUT BANNER
========================================================= */

.about-banner {
    position: relative;

    width: 100%;
    height: 300px;

    overflow: visible;

    margin: 0;
    padding: 0;
}

.about-banner img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;
    object-position: center;
}

.about-banner .banner-overlay {
    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(0, 0, 0, 0.48),
            rgba(0, 0, 0, 0.18)
        );

    pointer-events: none;
}


/* =========================================================
   ABOUT TITLE
========================================================= */

.about-title {
    position: absolute;

    left: 50%;
    bottom: -31px;

    transform: translateX(-50%);

    min-width: 215px;

    padding: 10px 35px;

    border-radius: 50px;

    background:
        linear-gradient(
            135deg,
            var(--about-green),
            var(--about-blue)
        );

    color: #ffffff;

    text-align: center;

    font-family: "DM Sans", sans-serif;

    font-size: 32px;
    font-weight: 500;

    line-height: 1.35;

    white-space: nowrap;

    box-shadow:
        0 10px 28px rgba(0, 0, 0, 0.16);

    z-index: 10;

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.about-title:hover {
    transform:
        translateX(-50%)
        translateY(-3px);

    box-shadow:
        0 14px 32px rgba(0, 0, 0, 0.2);
}


/* =========================================================
   ABOUT MAIN SECTION
========================================================= */

.about-section {
    width: 100%;

    padding:
        125px
        30px
        100px;

    background: #ffffff;
}

.about-container {
    width: 100%;
    max-width: 1420px;

    margin: 0 auto;

    display: grid;

    grid-template-columns:
        minmax(0, 1.15fr)
        minmax(400px, 0.85fr);

    align-items: center;

    gap: 70px;
}


/* =========================================================
   ABOUT CONTENT
========================================================= */

.about-content {
    width: 100%;

    padding-right: 10px;
}

.about-content h1 {
    margin: 0 0 20px;

    font-family: "Nunito Sans", sans-serif;

    font-size: 44px;

    font-weight: 700;

    line-height: 1.18;

    letter-spacing: -0.5px;

    background:
        linear-gradient(
            90deg,
            var(--about-green),
            var(--about-blue)
        );

    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;

    background-clip: text;
}

.about-content p {
    margin: 0 0 24px;

    max-width: 850px;

    font-family: "DM Sans", sans-serif;

    font-size: 17.5px;

    font-weight: 400;

    line-height: 1.85;

    color: var(--about-text);
}


/* =========================================================
   COURSE TAGS
========================================================= */

.course-tags {
    width: 100%;

    display: flex;

    flex-wrap: wrap;

    align-items: center;

    gap: 12px;

    margin:
        26px
        0
        30px;
}

.course-tags span {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-height: 42px;

    padding:
        8px
        18px;

    border:
        1.5px
        solid
        var(--about-green);

    border-radius: 30px;

    background: #ffffff;

    color: #222222;

    font-family: "DM Sans", sans-serif;

    font-size: 15.5px;

    font-weight: 500;

    white-space: nowrap;

    transition:
        background 0.3s ease,
        color 0.3s ease,
        border-color 0.3s ease,
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.course-tags span:hover {
    background:
        linear-gradient(
            135deg,
            var(--about-green),
            var(--about-blue)
        );

    border-color: transparent;

    color: #ffffff;

    transform: translateY(-3px);

    box-shadow:
        0 7px 18px rgba(8, 100, 254, 0.16);
}


/* =========================================================
   RIGHT SIDE IMAGE WRAPPER
========================================================= */

/* =====================================================
   ABOUT IMAGE SCROLL ANIMATION
===================================================== */

.about-image {
    position: relative;

    width: 100%;
    min-height: 480px;

    display: flex;
    align-items: center;
    justify-content: center;

    /* Initial hidden state */
    opacity: 0;
    transform: translateY(70px);

    transition:
        opacity 0.9s ease,
        transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);

    will-change: opacity, transform;
}


/* When section enters viewport */

.about-image.show-image {
    opacity: 1;
    transform: translateY(0);
}


/* Image */

.about-image img {
    position: relative;

    width: 100%;
    max-width: 570px;

    height: auto;

    display: block;

    object-fit: contain;

    transition:
        transform 0.6s ease;
}
.about-image {
    opacity: 0;
    transform: translateY(70px) scale(0.96);

    transition:
        opacity 0.8s ease,
        transform 0.8s ease;
}

.about-image.show-image {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Small hover movement */

.about-image:hover img {
    transform: translateY(-8px) scale(1.02);
}
/* =========================================================
   DESKTOP LARGE SCREEN
========================================================= */

@media (min-width: 1400px) {

    .about-section {
        padding-left: 50px;
        padding-right: 50px;
    }

    .about-container {
        max-width: 1500px;

        gap: 80px;
    }

    .about-content h1 {
        font-size: 48px;
    }

    .about-content p {
        font-size: 18px;
    }

    .about-image img {
        max-width: 620px;
    }

}


/* =========================================================
   LAPTOP
========================================================= */

@media (max-width: 1200px) {

    .about-container {
        grid-template-columns:
            minmax(0, 1.1fr)
            minmax(330px, 0.9fr);

        gap: 45px;
    }

    .about-content h1 {
        font-size: 39px;
    }

    .about-content p {
        font-size: 16.5px;
    }

    .about-image {
        min-height: 420px;
    }

    .about-image img {
        max-width: 500px;
    }

}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1000px) {

    .about-banner {
        height: 140px;
    }

    .about-section {
        padding:
            110px
            25px
            80px;
    }

    .about-container {
        display: flex;

        flex-direction: column;

        gap: 45px;

        text-align: center;
    }

    .about-content {
        padding-right: 0;
    }

    .about-content h1 {
        font-size: 38px;
    }

    .about-content p {
        max-width: 800px;

        margin-left: auto;
        margin-right: auto;
    }

    .course-tags {
        justify-content: center;
    }

    /*
       Image comes above/below naturally
    */

    .about-image {
        width: 100%;

        min-height: auto;

        order: 2;

        justify-content: center;
    }

    .about-image img {
        width: 85%;

        max-width: 500px;
    }

}


/* =========================================================
   TABLET SMALL
========================================================= */

@media (max-width: 768px) {

    .about-banner {
        height: 125px;
    }

    .about-title {
        min-width: 190px;

        bottom: -28px;

        padding:
            9px
            28px;

        font-size: 28px;
    }

    .about-section {
        padding:
            100px
            20px
            70px;
    }

    .about-container {
        gap: 35px;
    }

    .about-content h1 {
        font-size: 34px;

        line-height: 1.2;
    }

    .about-content p {
        font-size: 16px;

        line-height: 1.75;
    }

    .course-tags {
        gap: 10px;

        margin:
            22px
            0
            28px;
    }

    .course-tags span {
        min-height: 39px;

        padding:
            7px
            15px;

        font-size: 14px;
    }

    .about-image img {
        width: 90%;

        max-width: 450px;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 600px) {

    .about-banner {
        height: 105px;
    }

    .about-banner img {
        object-position: center;
    }

    .about-title {
        min-width: 165px;

        bottom: -24px;

        padding:
            8px
            22px;

        font-size: 24px;

        border-radius: 40px;
    }

    .about-section {
        padding:
            88px
            18px
            60px;
    }

    .about-container {
        gap: 30px;
    }

    .about-content h1 {
        font-size: 29px;

        margin-bottom: 16px;
    }

    .about-content p {
        font-size: 15px;

        line-height: 1.75;

        margin-bottom: 20px;
    }

    .course-tags {
        gap: 8px;

        margin:
            20px
            0
            24px;
    }

    .course-tags span {
        min-height: 36px;

        padding:
            6px
            12px;

        font-size: 12.5px;
    }

    .about-image {
        min-height: auto;
    }

    .about-image img {
        width: 100%;

        max-width: 360px;
    }

    .about-image::after {
        width: 180px;
        height: 180px;
    }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 400px) {

    .about-banner {
        height: 90px;
    }

    .about-title {
        min-width: 145px;

        bottom: -22px;

        padding:
            7px
            18px;

        font-size: 21px;
    }

    .about-section {
        padding:
            82px
            15px
            55px;
    }

    .about-content h1 {
        font-size: 26px;
    }

    .about-content p {
        font-size: 14px;

        line-height: 1.7;
    }

    .course-tags {
        gap: 7px;
    }

    .course-tags span {
        padding:
            6px
            10px;

        font-size: 12px;
    }

    .about-image img {
        max-width: 320px;
    }

}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

    .about-image {
        opacity: 1;

        transform: none;

        animation: none;
    }

    .about-image img,
    .about-title,
    .course-tags span {
        transition: none;
    }

}