@media (max-width: 768px) {
    section:nth-of-type(n+3)>div:first-of-type {
        padding-left: 10px;
        padding-right: 10px;
    }
}

.hero {
    padding-left: 0px !important;
    padding-right: 0px !important;
}

.hero {
    position: relative;
    width: 100%;
}

.hero .intro-titles {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    width: 100%;
    /* height: 100vh; */
    height: 650px;
    aspect-ratio: 16/9;
    min-height: 650px;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    position: relative;
    color: #fff;
    padding-bottom: 250px;
    background-color: #272154;
}


.hero-container {
    position: relative;
    z-index: 2;
    max-width: 1400px;
    padding: 0 80px;
    text-align: left;
    padding-right: 120px;
}


.hero-title {
    font-size: 4.7rem;
    font-weight: 700;
    line-height: 1.2;
    color: #fff;
    margin-top: 15px;
}

.hero-title-logo {
    max-width: 350px;
    width: 100%;
    height: auto;
    margin: 0px 0 30px 0px;
}


/* === OUR PURPOSE SECTION === */
.our-purpose {
    position: relative;
    color: white;
    padding: 100px 0;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    margin-top: -1px;
}

.our-purpose .purpose-title {
    position: relative;
    display: inline-block;
    font-size: 3rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 20px;
}

.our-purpose .highlight-word {
    font-weight: 700;
    position: relative;
}

.our-purpose .purpose-arrow {
    position: absolute;
    top: -20px;
    right: -35px;
    width: 35px;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.our-purpose .purpose-line {
    position: absolute;
    bottom: -2px;
    right: 0;
    height: 2px;
    width: 0;
    background-color: #ff3b3b;
    transform-origin: right center;
    transition: width 0.5s ease;
}

.our-purpose.active .purpose-arrow {
    opacity: 1;
    transform: translateY(0);
}

.our-purpose.active .purpose-line {
    width: 45%;
}

.our-purpose.active .purpose-desc .color-change {
    background: linear-gradient(90deg, #1e90ff 0%, #ff3b3b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% 100%;
    background-position: 100% 0%;
    animation: gradientFlow 5s ease forwards;

}

.our-purpose .purpose-desc p {
    font-size: 16px;
    line-height: 1.7;
    color: #fff;
}

/* === ABOUT SECTION === */

.about-ahi {
    background-size: contain;
    background-position: top;
    padding: 50px 0;
    background-color: #fff;
    background-repeat: no-repeat;
}


.proven-section {
    padding: 80px 0;
}

.country-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 25px;
}

.country-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px 60px;
}

.work-item .work-title {
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 15px;
    font-style: italic;
}

.red-line {
    display: block;
    width: 120px;
    height: auto;
    margin-bottom: 20px;
}

.work-image {
    width: 100%;
    height: 350px;
    border-radius: 8px;
    transition: transform 0.5s ease-in-out;
}

.work-image:hover {
    transform: scale(1.05);
}

.country-gap {
    height: 80px;
}

@media (max-width: 991px) {
    .country-block {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 575px) {
    .country-title {
        font-size: 26px;
    }

    .work-item .work-title {
        font-size: 18px;
    }
}


@media (max-width: 1200px) {

    .about-ahi-locations .about-locations-card {
        right: 4%;
        width: 480px;
        height: 300px;
    }

    .about-ahi-locations .about-locations-info {
        max-width: 60%;
    }
}

@media (max-width: 992px) {
    .hero-container {
        padding: 0 20px;
        text-align: center;
    }

    .hero-title {
        font-size: 2.1rem;
    }

    .hero-title-logo {
        max-width: 250px;
        margin-top: 15px;
    }

    .hero .intro-titles {
        align-items: center;
        justify-content: center;
        text-align: center;
        padding-bottom: 0;
        min-height: 500px;
        aspect-ratio: 16 / 9;
    }


    .hero h2 {
        font-size: 3rem;
        text-align: center;
    }

    .hero h3 {
        font-size: 2.1rem;
        text-align: center;

    }

    .our-purpose .purpose-title {
        font-size: 2.2rem;
    }

    .our-purpose .purpose-arrow {
        width: 28px;
        top: -18px;
        right: -25px;
    }

    .our-purpose .purpose-line {
        bottom: -4px;
    }



    .about-ahi-locations .about-under {
        min-height: 380px;
    }

    .about-ahi-locations .about-locations-card {
        right: 50%;
        transform: translateX(50%);
        bottom: -70px;
        width: 420px;
        height: 280px;
    }

    .about-ahi-locations .about-locations-info {
        max-width: 70%;
    }
}

@media (max-width: 768px) {
    .hero .intro-titles {
        height: auto;
    }

    .our-purpose {
        padding: 70px 0;
    }

    .about-title {
        font-size: 2.2rem;
        text-align: center;
    }

    .about-subtitle {
        font-size: 1.2rem;
        text-align: center;
    }

    .about-content {
        flex-direction: column;
        text-align: center;
        padding: 0px 10px;
    }

    .about-red-line img {
        margin-left: auto;
        margin-right: auto;
    }
}



@media (max-width: 576px) {
    .hero h1 {
        font-size: 1.8rem;
    }

    .our-purpose .purpose-title {
        font-size: 2.1rem;
    }

    .our-purpose .purpose-arrow {
        width: 22px;
        top: -15px;
        right: -20px;
    }

    .our-purpose .purpose-line {
        bottom: -3px;
    }


    .about-ahi-locations .about-under {
        background-image: none !important;
        min-height: 0;
        padding: 0;
    }

    .about-ahi-locations .about-locations-card {
        position: relative;
        right: 0;
        bottom: 0;
        transform: none;
        width: 100%;
        height: auto;
        margin: 0 auto;
        border-radius: 18px;
        background-size: cover;
        background-position: center;
        padding: 30px 20px;
    }

    .about-ahi-locations .about-locations-info {
        max-width: 100%;
        font-size: 0.95rem;
        color: #fff;
        text-align: left;
    }
}

/* ===== MOBILE ===== */
@media (max-width: 991px) {
    .hero .intro-titles {
        align-items: center;
        justify-content: center;
        text-align: center;
        padding-bottom: 0;
        min-height: 500px;
        aspect-ratio: 16 / 9;
    }

    .hero-container {
        padding: 0 20px;
    }

    .hero-title {
        font-size: 2.1rem;
        text-align: center;
    }
}