/* About Page Styles - Matching Reference Screenshot */

:root{
    --grad1: #BF0A30D1;
    --grad2: #E44450;
    --grad3: #1A3E80;
    --grad4: #03a9f4;
}

/* ============================================
   SECTION 1: HERO V2 - NEW DESIGN
   ============================================ */
.about-hero-v2 {
    background: #DBEFFD;
    padding: 10px 0 25px;
    min-height: auto;
    display: flex;
    align-items: center;
    position: relative;
    overflow: visible;
    margin-top: 170px;
}


.hero-v2-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    position: relative;
}

.hero-v2-content {
    padding: 20px 0;
    z-index: 2;
    max-width: 500px;
}

.hero-v2-welcome {
    color: #1a3e80;
    font-size: 45px;
    font-weight: 300;
    margin-bottom: 4px;
    letter-spacing: 0.5px;
}

.hero-v2-title {
    color: #BF0A30;
    font-size: 50px;
    font-weight: 300;
    line-height: 1.2;
    margin-bottom: 10px;
    font-family: "Open Sans", Sans-serif;
}

.hero-v2-underline {
    width: 0;
    height: 2px;
    background-color: #BF0A30;
    margin-bottom: 15px;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-v2-underline.animate {
    width: 100%;
}

.explore-underline {
    width: 0;
    height: 2px;
    background-color: #BF0A30;
    margin-bottom: 15px;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.explore-underline.animate {
    width: 100%;
}

.section4-underline {
    width: 0;
    height: 2px;
    background-color: #BF0A30;
    margin-bottom: 15px;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.section4-underline.animate {
    width: 100%;
}

.hero-v2-description {
    color: #363636;
    font-size: 14px;
    line-height: 30px;
    margin-bottom: 20px;
    font-weight: 400;
    font-family: "Open Sans", Sans-serif !important;
    width: 104%;
}

.hero-v2-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: #BF0A30;
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 500;
    font-size: 15px;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(191, 10, 48, 0.3);
    transition: all 0.3s ease;
    background: linear-gradient(90deg, var(--grad1), var(--grad2), var(--grad3), var(--grad4));
    background-size: 400%;
    z-index: 1;
    position: relative;
}

.hero-v2-btn .btn-arrow {
    transition: transform 0.3s ease;
}

.hero-v2-btn:hover {
    transform: translateY(-3px);
    color: white;
    box-shadow: 0 8px 25px rgba(191, 10, 48, 0.4);
    animation: gradientAnimate 8s linear infinite;
}

.hero-v2-btn:hover .btn-arrow {
    transform: translateX(4px);
}

@keyframes gradientAnimate {
    0% {
        background-position: 0%;
    }
    100% {
        background-position: 400%;
    }
}

.hero-v2-image-wrapper {
    position: relative;
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    min-height: 500px;
    margin-bottom: -70px;
    margin-top: -30px;
}

/* .hero-v2-shape {
    position: absolute;
    right: -80px;
    bottom: 0;
    width: 520px;
    height: 580px;
    background: linear-gradient(135deg, #BF0A30 0%, #8a0820 100%);
    clip-path: polygon(30% 0%, 100% 0%, 100% 100%, 0% 100%);
    z-index: 1;
} */

.hero-v2-image {
    position: relative;
    z-index: 2;
    max-width: 550px;
    height: auto;
    object-fit: contain;
    margin-right: 50px;
    margin-bottom: -50px;
    margin-top: -30px;
    filter: drop-shadow(0 10px 30px rgba(0,0,0,0.15));
}

/* Old Section 1 styles - kept for reference */
/* .about-hero {
    background: linear-gradient(135deg, #dbe9f4 0%, #c5d9e8 100%);
    padding: 140px 0 100px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.about-hero-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-hero-text {
    padding: 40px 0;
    z-index: 2;
}

.hero-welcome {
    color: #1a1a2e;
    font-size: 1.3rem;
    font-weight: 400;
    margin-bottom: 10px;
}

.hero-title {
    color: #BF0A30;
    font-size: 3.2rem;
    font-weight: 600;
    line-height: 1.15;
    margin-bottom: 20px;
}

.about-hero-text .red-underline {
    width: 80px;
    height: 3px;
    background-color: #BF0A30;
    margin-bottom: 25px;
}

.hero-description {
    color: #4a4a5a;
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 30px;
    max-width: 520px;
}

.about-hero-image {
    position: relative;
    height: 100%;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.red-shape {
    position: absolute;
    right: -50px;
    top: 50%;
    transform: translateY(-50%);
    width: 350px;
    height: 450px;
    background: linear-gradient(135deg, #BF0A30 0%, #8a0820 100%);
    clip-path: polygon(30% 0%, 100% 0%, 100% 100%, 0% 100%);
    z-index: 1;
}

.about-hero-image img {
    position: relative;
    z-index: 2;
    max-width: 450px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.2));
} */

/* ============================================
   SECTION 2: EXPERIENCE THE EDGE
   ============================================ */
.about-experience {
    background-color: #ffffff;
    padding: 102px 0;
}

.about-image-wrapper {
    position: relative;
    min-height: 380px;
    display: flex;
    align-items: center;
}

/* .red-shape-left {
    position: absolute;
    left: -80px;
    top: 50%;
    transform: translateY(-50%);
    width: 300px;
    height: 400px;
    background: linear-gradient(135deg, #BF0A30 0%, #8a0820 100%);
    clip-path: polygon(0% 0%, 70% 0%, 100% 100%, 0% 100%);
    z-index: 1;
} */

.about-image-wrapper img {
    position: relative;
    z-index: 2;
    max-width: 500px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 15px 35px rgba(0,0,0,0.15));
}

.about-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.about-row-reverse {
    direction: rtl;
}

.about-row-reverse > * {
    direction: ltr;
}

.section-title-red {
    color: #BF0A30;
    font-size: 50px;
    font-weight: 300;
    line-height: 1.2;
    margin-bottom: 15px;
}

.about-body p {
    color: #363636;
    font-size: 14px;
    line-height: 33px;
    margin-bottom: 12px;
    /*max-width: 450px;*/
    width: 361px;
}

/* Section 4 Button - Matching Hero V2 */
.btn-challenges {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: #BF0A30;
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 400;
    font-size: 15px;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(191, 10, 48, 0.3);
    transition: all 0.3s ease;
    background: linear-gradient(90deg, var(--grad1), var(--grad2), var(--grad3), var(--grad4));
    background-size: 400%;
    margin-top: 15px;
}

.btn-challenges .btn-arrow {
    transition: transform 0.3s ease;
}

.btn-challenges:hover {
    transform: translateY(-3px);
    color: white;
    box-shadow: 0 8px 25px rgba(191, 10, 48, 0.4);
    animation: gradientAnimate 8s linear infinite;
}

.btn-challenges:hover .btn-arrow {
    transform: translateX(4px);
}

.btn-red-outline {
    display: inline-block;
    background-color: transparent;
    color: #BF0A30;
    padding: 14px 28px;
    border-radius: 4px;
    font-weight: 500;
    font-size: 0.9rem;
    text-decoration: none;
    border: 2px solid #BF0A30;
    transition: all 0.3s ease;
    margin-top: 15px;
}

.btn-red-outline:hover {
    background-color: #BF0A30;
    color: #ffffff;
    transform: translateY(-2px);
}

/* ============================================
   ANIMATED UNDERLINE FOR HEADINGS
   ============================================ */
.animated-underline {
    position: relative;
    display: inline-block;
}

.animated-underline::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 0;
    height: 3px;
    background-color: #BF0A30;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.animated-underline.animate::after {
    width: 100%;
}

/* ============================================
   SECTION 3: THE AHE MISSION - FULL BACKGROUND
   ============================================ */
.about-mission {
    padding: 0;
    position: relative;
    overflow: hidden;
}

.mission-bg-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.mission-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/About/Abou-AHE-3.webp') center center / cover no-repeat;
    z-index: 1;
}

.mission-content {
    position: relative;
    z-index: 3;
    max-width: 400px;
    padding: 120px 0 120px 0;
    margin-left: -550px;
}

/* ============================================
   SECTION 4: SOLVING CHALLENGES - PARALLAX
   ============================================ */
.about-challenges {
    background-color: #ffffff;
    padding: 100px 0;
    overflow: hidden;
}

.about-image-parallax {
    position: relative;
    overflow: visible;
    display: flex;
    justify-content: flex-end;
}

.parallax-image-container {
    position: relative;
    width: 100%;
    height: auto;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}

.parallax-img {
    position: relative;
    width: 80%;
    max-width: 80%;
    height: auto;
    object-fit: contain;
    display: block;
}

/* ============================================
   SECTION 5: CARD ELEVATION HOVER
   ============================================ */
.card-elevate {
    transform-style: preserve-3d;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s ease;
}

.card-elevate:hover {
    transform: translateY(-15px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
}

.card-elevate img {
    transition: none;
}

.card-elevate:hover img {
    transform: none;
}

/* ============================================
   SECTION 5: EXPLORE APPLIED HIGHER ED
   ============================================ */
.about-explore {
    padding: 40px 20px;
}

/* container */
.explore-container {
    max-width: 1200px;
    margin: 0 auto;
    /*background: #DBEFFD;*/
    padding: 40px;
}

/* layout */
.explore-content {
    display: flex;
    align-items: center;
    gap: 60px;
}

/* left text */
.explore-text {
    flex: 0 0 50%;
    background-color: #DBEFFD;
    padding: 12px;
}

.explore-title {
    color: #BF0A30;
    font-size: 50px;
    font-weight: 300;
    line-height: 1.2;
    margin-bottom: 15px;
}

.explore-underline {
    width: 120px;
    height: 2px;
    background: #BF0A30;
    margin: 15px 0;
}

.explore-text p {
    color: #4a4a5a;
    font-size: 15px;
    line-height: 1.9;
    width: 460px;
}

/* cards wrapper */
.explore-cards {
    flex: 1;
    display: flex;
    gap: 30px;
    justify-content: flex-end;
    overflow: visible; /* IMPORTANT */
}

/* card */
.explore-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    width: 280px;
    position: relative;
    cursor: pointer;

    /* animation */
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    will-change: transform;
    z-index: 1;
}

/* image */
.explore-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

/* title */
.explore-card h4 {
    background: #1a3e80;
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 400;
    padding: 12px 15px;
    margin: 0;
}

/* badge */
.card-badge {
    position: absolute;
    top: 0;
    left: 0;
    background: #BF0A30;
    color: #fff;
    padding: 5px 12px;
    font-size: 0.65rem;
    border-radius: 0 0 8px 0;
    z-index: 2;
}

.card-badge.badge-right {
    left: auto;
    right: 0;
    border-radius: 0 0 0 8px;
    font-size: 0.6rem;
    text-align: right;
}

.explore-card:hover {
    transform: translateY(-15px) scale(1.03);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    z-index: 10;
}


/* ============================================
   RESPONSIVE STYLES
   ============================================ */
@media (max-width: 1200px) {
    .hero-v2-title {
        font-size: 2.4rem;
    }
    
    .hero-v2-shape {
        width: 420px;
        height: 480px;
        right: -40px;
    }
    
    .hero-v2-image {
        max-width: 480px;
        margin-right: -30px;
        margin-bottom: -15px;
    }
    
    .hero-v2-image-wrapper {
        min-height: 500px;
        margin-bottom: -40px;
    }
    
    .hero-title {
        font-size: 2.6rem;
    }
    
    .red-shape {
        width: 280px;
        height: 380px;
        right: -30px;
    }
    
    .about-hero-image img {
        max-width: 380px;
    }
    
    .red-shape-left {
        width: 240px;
        height: 340px;
        left: -40px;
    }
    
    .about-image-wrapper img {
        max-width: 420px;
    }
}

@media (max-width: 992px) {
    .about-hero-v2 {
        padding: 120px 0 80px;
        min-height: auto;
    }
    
    .hero-v2-row {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .hero-v2-content {
        max-width: 100%;
        order: 1;
    }
    
    .hero-v2-image-wrapper {
        order: 2;
        min-height: 350px;
        justify-content: center;
        margin-bottom: -30px;
    }
    
    .hero-v2-shape {
        width: 320px;
        height: 380px;
        right: 50%;
        transform: translateX(50%);
    }
    
    .hero-v2-image {
        max-width: 380px;
        margin-right: 0;
        margin-bottom: -15px;
    }
    
    .hero-v2-title {
        font-size: 2rem;
    }
    
    .about-hero {
        padding: 120px 0 80px;
        min-height: auto;
    }
    
    .about-hero-row,
    .about-row {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .about-row-reverse {
        direction: ltr;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .section-title-red {
        font-size: 2rem;
    }
    
    .red-shape,
    .red-shape-left {
        display: none;
    }
    
    .about-hero-image,
    .about-image-wrapper {
        min-height: auto;
        order: -1;
    }
    
    .about-hero-image img,
    .about-image-wrapper img {
        max-width: 100%;
        width: 100%;
    }
    
    .explore-container {
        padding: 40px 30px;
    }
    
    .explore-content {
        flex-direction: column;
        gap: 40px;
        text-align: center;
    }
    
    .explore-text {
        flex: none;
    }
    
    .explore-cards {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    }

@media (max-width: 768px) {
    .about-hero-v2 {
        padding: 60px 0 40px;
    }
    
    /* Section 1 Mobile: Heading → Image → Button */
    .hero-v2-row {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0;
    }
    
    .hero-v2-content {
        display: contents;
    }
    
    
    .hero-v2-title {
        order: 1;
        font-size: 1.8rem;
        text-align: center;
        padding: 30px 20px 0;
        margin: 0;
        line-height: 1.2;
    }
    
    .hero-v2-underline {
        order: 1;
        margin: 15px auto 15px;
    }
    
    .hero-v2-description {
        display: none;
    }
    
    .hero-v2-image-wrapper {
        order: 2;
        min-height: auto;
        margin: 10px 0;
        margin-bottom: -20px;
    }
    
    .hero-v2-image {
        max-width: 300px;
        width: 100%;
        height: auto;
        margin-right: 0;
        margin-bottom: -10px;
    }
    
    .hero-v2-btn {
        order: 3;
        width: auto;
        justify-content: center;
        margin: 10px auto 0;
    }
    
    /* Section 2 Mobile: Heading → Image → Content */
    .about-experience .about-row {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0;
    }
    
    .about-experience .about-text {
        display: contents;
    }
    
    .about-experience .section-title-red {
        order: 1;
        text-align: center;
        padding: 0 20px 10px;
        margin: 0;
        width: auto;
    }
    
    .about-experience .about-image-wrapper {
        order: 2;
        min-height: auto;
        margin: 15px 0;
        width: 100%;
        display: flex;
        justify-content: center;
    }
    
    .about-experience .about-image-wrapper img {
        max-width: 220px;
        width: 65%;
        height: auto;
        display: block;
    }
    
    .about-experience .about-body {
        order: 3;
        text-align: center;
        padding: 15px 20px 0;
        width: 100%;
        margin: 0;
    }
    
    .about-experience .btn-red-outline {
        order: 4;
        margin: 15px auto 0;
        width: auto;
    }
    
    /* Section 4 Mobile: Heading → Image → Content */
    .about-challenges .about-row {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0;
    }
    
    .about-challenges .about-text {
        display: contents;
    }
    
    .about-challenges .section-title-red {
        order: 1;
        text-align: center;
        padding: 0 20px 5px;
        margin: 0;
        width: auto;
        font-size: 1.6rem;
        line-height: 1.3;
    }
    
    .about-challenges .animated-underline::after {
        display: none;
    }
    
    .about-challenges .red-underline {
        order: 1;
        margin: 0 auto 1px;
        width: 150px;
        height: 2px;
        background-color: #BF0A30;
        display: block;
    }
    
    .about-challenges .about-image-wrapper {
        order: 2;
        min-height: auto;
        margin: 15px 0;
        width: 100%;
        display: flex;
        justify-content: center;
    }
    
    .about-challenges .about-image-wrapper img {
        max-width: 220px;
        width: 65%;
        height: auto;
        display: block;
    }
    
    .about-challenges .about-body {
        order: 3;
        text-align: center;
        padding: 15px 20px 0;
        width: 100%;
        margin: 0;
    }
    
    .about-challenges .btn-challenges {
        order: 4;
        margin: 15px auto 0;
        width: auto;
    }
    
    /* Section 3 Mobile - Use 088.webp as background */
    .about-mission .section-title-red {
        text-align: center;
    }
    
    .mission-bg-wrapper {
        min-height: auto;
    }
    
    .mission-bg-image {
        background: url('../images/About/088.webp') center center / cover no-repeat;
    }
    
    /* .mission-overlay {
        width: 100%;
        background: linear-gradient(to right, rgba(219, 233, 244, 0.98) 0%, rgba(219, 233, 244, 0.95) 100%);
    } */
    
    .mission-content {
        padding: 40px 15px;
        max-width: 100%;
        margin: 0 auto;
        text-align: center;
    }
    
    /* Section 4 Button Mobile */
    .btn-challenges {
        width: auto;
        justify-content: center;
        margin: 20px auto 0;
    }
    
    .parallax-image-container {
        height: auto;
        min-height: 300px;
    }
    
    .about-hero {
        padding: 60px 0 40px;
    }
    
    .hero-welcome {
        font-size: 1.1rem;
    }
    
    .hero-title {
        font-size: 1.9rem;
    }
    
    .hero-description {
        font-size: 0.9rem;
    }
    
    .section-title-red,
    .explore-title,
    .hero-title,
    .hero-v2-title,
    .hero-v2-welcome {
        text-align: center;
    }
    
    .about-text {
        text-align: center;
    }
    
    .about-body {
        text-align: center;
    }
    
    .hero-v2-btn,
    .btn-red-outline,
    .btn-challenges {
        margin: 0 auto;
        display: inline-flex;
    }
    
    /* Section 4 - Fixed image (not parallax) on mobile */
    .parallax-img {
        transform: none !important;
        position: static;
        width: 100%;
        height: auto;
        object-fit: contain;
    }
    
    .about-image-parallax {
        overflow: visible;
    }
    
    .about-mission,
    .about-challenges,
    .about-experience {
        padding: 20px 0;
    }
    
    .explore-title {
        font-size: 1.9rem;
    }
    
    .explore-card {
        width: 100%;
        max-width: 280px;
    }
    
    }

@media (max-width: 480px) {
    .explore-container {
        padding: 30px 20px;
        border-radius: 12px;
    }
    
    /* Section 3 Mobile - Use 088.webp background */
    .mission-bg-image {
        background: url('../images/About/088.webp') center center / cover no-repeat;
    }
    
    .mission-content {
        padding: 40px 15px;
        margin-left: 0;
    }
    
    .mission-overlay {
        background: linear-gradient(to bottom, rgba(219, 233, 244, 0.98) 0%, rgba(219, 233, 244, 0.95) 100%);
    }
    
    /* Section 4 Mobile */
    .parallax-image-container {
        height: auto;
        min-height: 250px;
    }
    
    .btn-challenges {
        font-size: 0.9rem;
        padding: 12px 20px;
        width: auto;
        margin: 20px auto 0;
    }
    
    .hero-v2-welcome {
        font-size: 1rem;
    }
    
    .hero-v2-title {
        font-size: 1.5rem;
    }
    
    .hero-v2-image-wrapper {
        min-height: 250px;
        margin-bottom: -15px;
    }
    
    .hero-v2-shape {
        width: 200px;
        height: 220px;
    }
    
    .hero-v2-image {
        max-width: 240px;
        margin-bottom: -8px;
    }
    
    .hero-title {
        font-size: 1.7rem;
    }
    
    .section-title-red,
    .explore-title,
    .hero-title,
    .hero-v2-title,
    .hero-v2-welcome {
        font-size: 1.6rem;
        text-align: center;
    }
    
    .about-text {
        text-align: center;
    }
    
    .about-body {
        text-align: center;
    }
    
    .hero-v2-btn,
    .btn-red-outline,
    .btn-challenges {
        margin: 0 auto;
        display: inline-flex;
    }
    
    /* Section 4 - Fixed image (not parallax) on mobile */
    .parallax-img {
        transform: none !important;
        position: static;
        width: 100%;
        height: auto;
        object-fit: contain;
    }
    
    .about-image-parallax {
        overflow: visible;
    }
    
    .about-body p {
        font-size: 13px;
    }
    
    .explore-cards {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-red,
    .btn-red-outline,
    .btn-challenges {
        width: auto;
        text-align: center;
        justify-content: center;
        margin: 20px auto 0;
    }
}
