.testimonial-headers {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    margin-top: 4.5rem;
}

.testimonial-headers i {
    font-size: 48px;
    color: #6E00FF;
}

.testimonial-headers h6 {
    font-size: 14px;
    font-weight: 700;
    line-height: 22px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #6E00FF;
    margin-bottom: 12px;
}

.testimonial-headers h2 {
    font-size: 32px;
    font-weight: 700;
    line-height: 48px;
    color: var(--text-color);
}

.testimonial-slider-profile {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 10px;
}

.testimonial-slider-profile-arrow-left,
.testimonial-slider-profile-arrow-right {
    cursor: pointer;
    transition: transform 0.2s ease;
    position: relative;
    top: -50px;
}

.testimonial-slider-profile-arrow-left:hover,
.testimonial-slider-profile-arrow-right:hover {
    transform: scale(1.1);
}

.testimonial-slider-profile-arrow-left i,
.testimonial-slider-profile-arrow-right i {
    font-size: 20px;
    background: #ebebeb;
    border-radius: 100%;
    width: 35px;
    height: 35px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #9f9f9f;
    font-weight: 500;
    line-height: 5px;
    transition: all 0.3s ease-in-out;
}

.testimonial-slider-profile-arrow-left i:hover,
.testimonial-slider-profile-arrow-right i:hover {
    background: #6E00FF;
    color: white;
}

.testimonial-content-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    text-align: center;
    justify-content: space-between;
    gap: 50px;
}

.testimonial-text-container {
    max-width: 850px;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.testimonial-profile-images-container {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 20px;
    overflow: hidden;
    width: 100%;
    justify-content: left;
}

.testimonial-profiles-carousel {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    gap: 30px;
    width: max-content;
}

.testimonial-slider-profile-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.testimonial-profile-image-wrapper {
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.testimonial-slider-profile-text {
    display: flex;
    justify-content: center;
    text-align: center;
    padding: 0 0 10px 0;
}

.testimonial-slider-profile-text div {
    font-size: 16px;
    font-weight: 300;
    line-height: 28px;
    color: #041c3f;
    margin-bottom: 6px;
    transition: opacity 0.3s ease;
}

.testimonial-profile-image-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    justify-content: center;
}

.testimonial-slider-profile-image {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    border: 4px solid transparent;
}

.testimonial-slider-profile-image.active-border {
    border: 6px solid #6E00FF;
}

.testimonial-slider-profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-slider-profile-name {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: opacity 0.3s ease;
}

.testimonial-slider-profile-name strong {
    font-size: 20px;
    font-weight: 600;
    line-height: 25px;
    letter-spacing: -0.004em;
    color: var(--base-black);
}

.testimonial-slider-profile-name span {
    font-size: 15px;
    font-weight: 300;
    line-height: 28px;
    letter-spacing: 0.07em;
    color: rgba(0, 0, 0, 0.7);
    margin-bottom: 20px;
}

.testimonial-slider-profile-info {
    width: 900px;
}

@media (min-width: 992px) and (max-width: 1199px) {
    .testimonial-slider-profile-info {
        width: 800px;
    }

    .testimonial-content-wrapper {
        gap: 30px;
    }
}

@media (max-width: 991px) {
    .testimonial-slider-profile-info {
        width: 500px;
    }
}

@media (max-width: 768px) {
    .testimonial-content-wrapper {
        flex-direction: column;
        gap: 30px;
        width: 100%;
    }

    .testimonial-slider-profile-arrow-left,
    .testimonial-slider-profile-arrow-right {
        display: none !important;
    }

    .testimonial-slider-profile {
        flex-direction: column;
        gap: 20px;
        width: 100%;
        display: flex;
        align-items: baseline;
    }

    .testimonial-content-wrapper {
        order: 2;
    }

    .testimonial-slider-profile-text span {
        font-size: 14px;
        padding: 0 20px;
    }

    .testimonial-slider-profile-image {
        width: 120px;
        height: 120px;
    }

    .testimonial-profile-images-container {
        width: 100%;
        max-width: 100vw;
        overflow-x: auto;
        overflow-y: hidden;
        scrollbar-width: none;
        -ms-overflow-style: none;
        padding: 0 20px;
        box-sizing: border-box;
        scroll-behavior: smooth;

        margin: 0 -20px;
    }

    .testimonial-profile-images-container::-webkit-scrollbar {
        display: none;
    }

    .testimonial-profiles-carousel {
        gap: 15px;
        transform: none !important;
        padding: 0 10px;
        width: auto;
        min-width: 100%;
    }

    .testimonial-profile-image-wrapper {
        flex-shrink: 0;
        min-width: 120px;
    }

    .testimonial-slider-profile-info {
        width: 100%;
        overflow: hidden;
    }

    .testimonial-text-container {
        max-width: 100%;
        padding: 0;
        box-sizing: border-box;
    }

    .testimonial-slider-profile-text {
        padding: 0;
        text-align: left;
    }

    .testimonial-slider-profile-name strong {
        font-size: 18px;
    }

    .testimonial-slider-profile-name span {
        font-size: 14px;
        margin-bottom: 15px;
    }

    .testimonial-slider-profile-name {
        margin-top: 20px;
    }

    .testimonial-headers {
        margin-top: 5rem;
        align-items: baseline;
    }

    .testimonial-headers h2 {
        font-size: 24px;
        line-height: 36px;
    }
      .testimonial-fade-transition {
        text-align: center;
    }
}

@media (max-width: 576px) {
    .testimonial-profile-images-container {
        padding: 0 15px;
        margin: 0;
    }

    .testimonial-profiles-carousel {
        gap: 12px;
        padding: 0 5px;
    }

    .testimonial-slider-profile-image {
        width: 120px;
        height: 120px;
    }

    .testimonial-profile-image-wrapper {
        min-width: 100px;
    }
    .testimonial-fade-transition {
        text-align: center;
    }

}

.testimonial-fade-transition {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
