.aboutus8-section {
    padding: 50px 0;
    background-color: #000000;
    color: #ffffff;
}

.aboutus8-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

.aboutus8-header {
    text-align: center;
    margin-bottom: 40px;
}

.aboutus8-section .title {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 25px;
    line-height: 1.25;
}

.aboutus8-section .title .text-secondary {
    color: #54b248;
}

.aboutus8-section .desc.centered {
    max-width: 820px;
    margin: 0 auto;
    font-size: 18px;
    line-height: 1.7;
    color: #eeeeee;
}

/* Card Outer Wrapper for Navigation */
.card-outer-wrapper {
    position: relative;
    max-width: 1100px;
    margin: 40px auto 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Card Design - RESTORED */
.aboutus8-card {
    background-color: #ffffff;
    border: 3px solid #54b248;
    border-radius: 40px;
    padding: 30px;
    position: relative;
    width: 100%;
    height: 500px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    overflow: hidden;
}

/* Avatar Cloud - RESTORED */
.avatar-cloud {
    position: relative;
    width: 100%;
    height: 180px;
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.avatar {
    position: absolute;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #54b248;
    background-color: #f0f0f0;
    margin-left: -30px;
    /* Half of small avatar width (60px) */
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Base Styles */
.avatar.large {
    width: 140px;
    height: 140px;
    z-index: 5;
    margin-left: -70px;
    /* Half of large avatar width (140px) */
}

.avatar.small {
    width: 60px;
    height: 60px;
    z-index: 2;
}

.avatar.tiny {
    width: 45px;
    height: 45px;
    z-index: 2;
    background-color: #e8f5e9;
    padding: 8px;
    margin-left: -22.5px;
}

.avatar.tiny img {
    object-fit: contain;
}

/* ==========================================================================
   USER EDITABLE POSITIONS - Edit top/left % below to shift the cloud images
   ========================================================================== */

/* --- LEFT CLOUD --- */
.avatar-cloud .avatar.t-left-top {
    top: 10%;
    left: 5%;
}

.avatar-cloud .avatar.t-left-bottom {
    top: 55%;
    left: 20%;
}

.avatar-cloud .avatar.t-mid-left {
    top: 15%;
    left: 35%;
}

/* --- CENTER (MAIN) --- */
.avatar-cloud .avatar.t-center {
    top: 15%;
    left: 50%;
}

/* --- RIGHT CLOUD --- */
.avatar-cloud .avatar.t-mid-right {
    top: 15%;
    left: 67%;
}

.avatar-cloud .avatar.t-right-top {
    top: 50%;
    left: 81%;
}

.avatar-cloud .avatar.t-right-bottom {
    top: 10%;
    left: 96%;
}

/* --- BUFFER SLOTS (Entry/Exit Points) --- */
.avatar-cloud .avatar.t-off-left-1 {
    left: -10%;
    top: 20%;
}

.avatar-cloud .avatar.t-off-left-2 {
    left: -25%;
    top: 40%;
}

.avatar-cloud .avatar.t-off-left-3 {
    left: -40%;
    top: 40%;
}

.avatar-cloud .avatar.t-off-right-1 {
    left: 110%;
    top: 20%;
}

.avatar-cloud .avatar.t-off-right-2 {
    left: 125%;
    top: 40%;
}

.avatar-cloud .avatar.t-off-right-3 {
    left: 140%;
    top: 40%;
}

/* CTA Slide - RESTORED */
.aboutus8-card.cta-slide {
    background-color: #54b248;
    border-color: #ffffff;
}

.cta-slide .client-name {
    color: #ffffff !important;
    font-size: 38px;
}

.cta-slide .client-quote {
    color: #ffffff !important;
    font-weight: 500;
}

.cta-slide .avatar {
    border-color: #ffffff;
}

/* Testimonial Content - RESTORED */
.testimonial-content {
    margin-bottom: 30px;
}

.client-name {
    color: #2e7d32 !important;
    /* Deep Green for maximum contrast */
    font-size: 30px;
    font-weight: 700;
    margin-bottom: 20px;
}

.client-quote {
    font-size: 18px;
    line-height: 1.6;
    color: #1a1a1a !important;
    /* Near Black for maximum readability */
    max-width: 800px;
    margin: 0 auto;
    font-weight: 500;
}

/* Nav Buttons - POSITIONED INSIDE */
.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: #54b248;
    /* Default Green for white cards */
    color: #ffffff;
    /* White Arrow */
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 50;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.ctaslide-btns .nav-btn {
    background-color: #ffffff;
    /* White for green card */
    color: #54b248;
    /* Green Arrow */
}

.nav-btn:hover {
    transform: translateY(-50%) scale(1.1);
    background-color: #46a03c;
}

.ctaslide-btns .nav-btn:hover {
    background-color: #f0f0f0;
}

.nav-btn.prev {
    left: 20px;
}

.nav-btn.next {
    right: 20px;
}

/* Card Footer - RESTORED */
.card-footer {
    position: absolute;
    bottom: 40px;
    display: flex;
    gap: 20px;
}

.btn-solid {
    background-color: #54b248;
    color: #ffffff;
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-solid.white-btn {
    background-color: #ffffff;
    color: #54b248;
}

.btn-outline {
    background-color: transparent;
    color: #54b248;
    border: 1px solid #54b248;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.btn-outline.white-outline {
    color: #ffffff;
    border-color: #ffffff;
}

/* Modal Styles */
.video-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.video-modal-content {
    width: 90%;
    max-width: 800px;
    position: relative;
}

.video-modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: #fff;
    font-size: 40px;
    cursor: pointer;
}

/* Responsive */
@media (max-width: 991px) {
    .testimonial-white-card {
        padding: 40px 20px;
        min-height: 800px;
    }

    .content-reveal-section .tagline {
        font-size: 28px;
    }

    .avatar.center-main {
        width: 130px;
        height: 130px;
    }

    .avatar.center-main .img-wrap {
        width: 130px;
        height: 130px;
    }
}

/* --- RESPONSIVENESS --- */
@media (max-width: 1024px) {
    .aboutus8-card {
        padding: 40px 30px;
        min-height: 500px;
    }

    .avatar.large {
        width: 120px;
        height: 120px;
        margin-left: -60px;
    }

    .avatar.small {
        width: 50px;
        height: 50px;
    }

    .client-name {
        font-size: 22px;
    }
}

@media (max-width: 768px) {
    .aboutus8-section {
        padding: 40px 10px;
    }

    .aboutus8-card {
        padding: 15px 15px;
        min-height: 480px;
        border-radius: 30px;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
    }

    .avatar-cloud {
        height: 140px;
        /* Reduced height for mobile */
        margin-bottom: 30px;
        width: 100%;
        position: relative;
    }

    .avatar.large {
        width: 90px;
        height: 90px;
        margin-left: -45px;
        top: 20px;
        border-width: 2px;
    }

    .avatar.small {
        width: 42px;
        height: 42px;
        border-width: 1.5px;
        margin-left: -21px;
    }

    /* Spread out Right side avatars to prevent overlap */
    .avatar-cloud .avatar.t-mid-left {
        left: 18%;
        top: 15%;
    }

    .avatar-cloud .avatar.t-left-bottom {
        left: 12%;
        top: 58%;
    }

    .avatar-cloud .avatar.t-mid-right {
        left: 82%;
        top: 15%;
    }

    .avatar-cloud .avatar.t-right-bottom {
        left: 88%;
        top: 62%;
    }

    /* Shifted down more */

    /* Animation Keep-Alive */
    .avatar-cloud .avatar.t-left-top,
    .avatar-cloud .avatar.t-right-top,
    .avatar-cloud .avatar.t-off-left-1,
    .avatar-cloud .avatar.t-off-right-1 {
        opacity: 0.15;
        transform: scale(0.4);
    }

    .client-name {
        color: #2e7d32 !important;
        font-size: 19px;
        margin-top: 10px;
        margin-bottom: 10px;
    }

    .client-quote {
        color: #1a1a1a !important;
        font-size: 14px;
        line-height: 1.5;
        padding: 0 15px;
        margin-bottom: 15px;
    }

    /* Fixed Testimonial CTA slide sizing */
    .cta-slide .client-name {
        font-size: 24px !important;
    }

    .nav-btn {
        width: 40px;
        height: 40px;
        top: 35% !important;
        /* Moved higher to avoid content overlap */
        left: 8px !important;
        background-color: #54b248;
        display: flex !important;
    }

    .nav-btn.next {
        left: auto !important;
        right: 8px !important;
    }

    .card-footer {
        position: relative;
        /* Remove absolute for better mobile flow */
        bottom: auto;
        flex-direction: column;
        gap: 10px;
        margin-top: 10px;
        width: 100%;
    }

    .btn-solid,
    .btn-outline {
        width: 100%;
        max-width: 100%;
        padding: 10px 20px;
        font-size: 14px;
        justify-content: center;
    }

    .aboutus8-section .desc.centered {
        font-size: 15px;
        padding: 0 15px;
    }

    .side-nav {
        top: auto;
        bottom: 30px;
        transform: none;
    }

    .side-nav.prev {
        left: 20%;
    }

    .side-nav.next {
        right: 20%;
    }

    .action-footer {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
    }

    .btn-pink-main,
    .btn-pink-outline {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
}