/* About Redesign CSS - Full Background Image Layout */

.about__area-stacked {
    position: relative;
    overflow: hidden;
    padding-top: 50px;
    padding-bottom: 68px;
    display: flex;
    align-items: center;
    /* background-color: #111; */
    /* Dark fallback */
}

/* Full Background Image Overlay */
.about__thumb-stacked {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.about__thumb-stacked img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* opacity: 0.6; */
    /* Dim the image for text readability */
    display: block;
}

/* Semi-transparent Overlay */
.about__thumb-stacked::after {
    content: '';
    position: absolute;
    inset: 0;
    /* background: linear-gradient(to right, rgba(0,0,0,0.4), rgba(0,0,0,0.4)); */
    z-index: 1;
}

/* Globe/Grid Background Pattern (Now above the image) */
.about__globe-bg {
    position: absolute;
    top: 50%;
    left: 0%;
    width: 60%;
    height: 80%;
    transform: translateY(-50%);
    background-image: url('/frontend/assets/img/about/about-pattern.png');
    background-repeat: no-repeat;
    background-size: contain;
    opacity: 0.2;
    z-index: 2;
    pointer-events: none;
}

.about__grid-overlay {
    /* position: absolute; */
    inset: 0;
    background-image:
        linear-gradient(to right, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: 2;
    pointer-events: none;
}

.about__wrapper-stacked {
    position: relative;
    z-index: 10;
    padding: 20px;
    background: transparent;
}

/* Typography Enhancements for Dark Background */
.about__wrapper-stacked .section__title {
    font-size: 36px;
    /* font-weight: 900; */
    margin-bottom: 25px;
    /* color: #ffffff; */
    /* text-shadow: 0 4px 10px rgba(0, 0, 0, 0.5); */
    text-transform: uppercase;
    letter-spacing: -1px;
}

.about__content {
    max-width: 800px;
}

.about__content p {
    font-size: 14px;
    line-height: 1.8;
    /* color: #ffffff; */
    /* text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5); */
    margin-bottom: 20px;
}

/* Responsive Adjustments */
@media (max-width: 1199px) {
    .about__wrapper-stacked .section__title {
        font-size: 48px;
    }
}

@media (max-width: 991px) {
    .about__area-stacked {
        padding-top: 60px;
        padding-bottom: 60px;
    }

    .about__wrapper-stacked {
        text-align: center;
    }

    .about__wrapper-stacked .section__title {
        font-size: 32px;
    }

    .about__content {
        margin: 0 auto;
    }

    .about__globe-bg {
        width: 80%;
        opacity: 0.1;
    }
}

@media (max-width: 767px) {
    .about__area-stacked {
        padding-top: 50px;
        padding-bottom: 50px;
        min-height: 350px;
    }

    /* Keep image as full background */
    .about__thumb-stacked {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
    }

    /* Dark overlay for text readability */
    .about__thumb-stacked::after {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(to right, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.5) 100%);
        z-index: 1;
    }

    .about__globe-bg,
    .about__grid-overlay {
        display: none;
    }

    .about__wrapper-stacked {
        padding: 25px 15px;
        text-align: left;
    }

    .about__wrapper-stacked .section__title {
        font-size: 22px;
        margin-bottom: 15px;
        letter-spacing: 0;
        color: #ffffff;
        text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    }

    .about__content {
        max-width: 100%;
    }

    .about__content p {
        font-size: 13px;
        line-height: 1.7;
        margin-bottom: 12px;
        color: #ffffff;
        text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
    }
}

@media (max-width: 575px) {
    .about__area-stacked {
        padding-top: 35px;
        padding-bottom: 35px;
        min-height: 300px;
    }

    .about__wrapper-stacked {
        padding: 20px 12px;
    }

    .about__wrapper-stacked .section__title {
        font-size: 18px;
        margin-bottom: 10px;
    }

    .about__content p {
        font-size: 12px;
        line-height: 1.6;
        margin-bottom: 10px;
    }
}

/* ============================================
   TESTIMONIAL - Full Background Image Layout
   ============================================ */

/* Background image covering the entire slide */
.testimonial__bg-image {
    position: absolute;
    top: 0;
    left: 0;
    /* width: 100%;
    height: 100%; */
    z-index: 0;
}

.testimonial__bg-image {
    display: inline-block;
    border-radius: 20px;
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.3),
        0 0 10px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.testimonial__bg-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Dark gradient overlay - stronger on the left for text readability */
.testimonial__bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* background: linear-gradient(to right, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.4) 50%, rgba(0, 0, 0, 0.1) 100%); */
    z-index: 1;
}

/* Text wrapper positioned on the left */
.testimonial__text-wrapper {
    position: relative;
    z-index: 10;
    /* max-width: 50%; */
    padding: 50px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* height: 100%; */
    /* min-height: 450px; */
    top: -100px;
    left: 60px;
}

.testimonial__text-wrapper .testimonial__user-name {
    font-size: 28px;
    /* font-weight: 800; */
    /* color: #ffffff; */
    margin-bottom: 4px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.testimonial__text-wrapper .testimonial__user-designation {
    font-size: 16px;
    font-weight: 600;
    /* color: rgba(255, 255, 255, 0.85); */
    margin-bottom: 20px;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.testimonial__text-wrapper .testimonial__content {
    position: relative;
    left: -200px;
    top: 20px;
}

.testimonial__text-wrapper .testimonial__content p {
    font-size: 14px;
    line-height: 1.7;
    /* color: #ffffff; */
    /* font-weight: 400; */
    font-style: italic;
    /* text-shadow: 0 1px 6px rgba(0, 0, 0, 0.4); */
    margin-bottom: 0;
}

/* Responsive - Tablet */
@media (max-width: 991px) {
    .testimonial__text-wrapper {
        /* max-width: 65%; */
        padding: 40px 30px;
        /* min-height: 400px; */
    }

    .testimonial__text-wrapper .testimonial__user-name {
        font-size: 24px;
    }

    .testimonial__text-wrapper .testimonial__content p {
        font-size: 16px;
    }
}

/* Responsive - Mobile */
@media (max-width: 767px) {
    .testimonial__text-wrapper {
        /* max-width: 100%; */
        padding: 30px 20px;
        /* min-height: 350px; */
        top: 0;
        left: 0;
    }

    .testimonial__text-wrapper .testimonial__content {
        left: 0;
        top: 0;
    }

    .testimonial__text-wrapper .testimonial__user-name {
        font-size: 10px;
    }

    .testimonial__text-wrapper .testimonial__user-designation {
        font-size: 14px;
        margin-bottom: 12px;
    }

    .testimonial__text-wrapper .testimonial__content p {
        font-size: 14px;
        line-height: 1.6;
    }
}

@media (max-width: 575px) {
    .testimonial__text-wrapper {
        padding: 25px 15px;
        /* min-height: 300px; */
    }

    .testimonial__text-wrapper .testimonial__user-name {
        font-size: 18px;
    }

    .testimonial__text-wrapper .testimonial__user-designation {
        font-size: 13px;
    }

    .testimonial__text-wrapper .testimonial__content p {
        font-size: 13px;
    }
}