/* Slider Container */
.slider-container {

    padding: 40px;
    /* max-width: 900px;
    width: 100%; */
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden;
    height: auto;
    margin: 80px 0;
}

/* .intro_container {
    background-color: #ffffff;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
} */

.slider-container h2 {
    font-size: 2.2em;
    color: #333;
    margin-bottom: 40px;
    font-weight: 600;
    text-align: center;
    font-family: var(--e-global-typography-d2d29cd-font-family), Sans-serif;
    font-size: var(--e-global-typography-d2d29cd-font-size);
    font-weight: var(--e-global-typography-d2d29cd-font-weight);
    line-height: var(--e-global-typography-d2d29cd-line-height);
}

/* Main area containing avatars and content */
.main-slider-area {
    display: flex;
    width: 100%;
    align-items: flex-start;
    height: 400px;
}

/* Avatar Section */
.testimonial-avatars {
    flex: 0 0 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-right: 40px;
    position: relative;
}

.avatar-thumbnail {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
    cursor: pointer;
    /* border: 3px solid transparent; */
    transition: all 0.3s ease;
    opacity: .5;
}

.avatar-thumbnail:hover {
    transform: scale(1.05);
}

.avatar-thumbnail.active {
    box-shadow: 0px 0px 8px 0px rgba(235, 235, 235, 0.75);
    transform: scale(1);
    width: 60px;
    opacity: 1;
    height: 60px;
}

/* Content Display Area */
.content-display-area {
    flex-grow: 1;
    /* max-width: calc(100% - 160px); */
    position: relative;
    overflow: hidden;
    /* min-height: 250px; */
}

/* Testimonial Content Wrapper */
.testimonial-content-wrapper {
    position: relative;
    width: 100%;
    /* min-height: 250px; */
    /* Ensures the container doesn't collapse */
}

.testimonial-content-slide {
    position: absolute;
    width: 100%;
    box-sizing: border-box;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    /* Prevent interaction with hidden slides */
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
    transform: translateY(20px);
    top: 0;
    left: 0;
    min-width: 975px;
}

.testimonial-content-slide.active {
    opacity: 1;
    pointer-events: auto;
    position: relative;
    transform: translateY(0);
    z-index: 1;
}

.testimonial-content-slide::after {
    content: '';
    width: 169px;
    height: 2px;
    background-color: red;
    position: absolute;
    top: 0;
    z-index: 999;
    left: 0;
}

.testimonial-content-slide::before {
    content: '';
    width: 2px;
    height: 50px;
    background-color: red;
    position: absolute;
    top: 0;
    z-index: 999;
    left: 0;
}

/* .testimonial-content-slide.active {
            opacity: 1;
            transform: translateY(0);
        } */

.quote-icon {
    position: absolute;
    top: 38px;
    left: 5px;
    z-index: 0;
    line-height: 1;
    user-select: none;
}

.testimonial-text {
    font-size: 1.1em;
    line-height: 1.6;
    color: #555;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
    padding: 21px 8px;
    font-family: "Open Sans", Sans-serif;
}

.highlight {
    font-weight: 600;
    color: #333;
    font-style: italic;
}

.author-info {
    text-align: right;
    margin-top: 1px;
}

.author-info::after {
    content: '';
    width: 169px;
    height: 2px;
    background-color: red;
    position: absolute;
    bottom: 0;
    z-index: 999;
    right: 0;
}

.author-info::before {
    content: '';
    width: 2px;
    height: 50px;
    background-color: red;
    position: absolute;
    bottom: 0;
    z-index: 999;
    right: 0;
}

.author-name {
    font-weight: 600;
    color: #333;
    font-size: 1em;
    margin-bottom: 5px;
}

.author-title {
    color: #777;
    font-size: 0.7em;
}

/* Navigation Dots */
.slider-dots {
    display: flex;
    margin-top: 30px;
    gap: 10px;
}

.dot {
    width: 12px;
    height: 12px;
    background-color: #ddd;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot:hover {
    transform: scale(1.2);
}

.dot.active {
    background-color: #1f1f1f;
    transform: scale(1.1);
}

.logo img {
    display: block;
    margin: 5px auto;
    margin-bottom: 0px !important;
    width: 200px;
}

.quote-icon img {
    transform: rotateZ(45deg);
}

.slider-container {
    margin: 16px 0;
    padding-top: 0px;
    margin-top: 0;
    /* padding-bottom */
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .slider-container {
        padding: 30px;
    }

    .main-slider-area {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .testimonial-avatars {
        flex-direction: row;
        margin-right: 0;
        margin-bottom: 30px;
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }

    .avatar-thumbnail {
        margin-bottom: 0;
    }

    .content-display-area {
        max-width: 100%;
    }

    .quote-icon {
        font-size: 6em;
        top: 0px;
        left: 15px;
    }

    .author-info {
        text-align: center;
    }

    .main-slider-area {
        height: auto;
    }

    .testimonial-content-slide {
        min-width: 100%;
    }
}

@media (max-width: 480px) {
    h2 {
        font-size: 1.8em;
    }

    .testimonial-text {
        font-size: 1em;
    }

    .avatar-thumbnail {
        width: 50px;
        height: 50px;
    }

    .slider-container {
        padding: 20px;
    }

    .testimonial-text {
        font-size: 14px;
    }

    .quote-icon {
        top: 0px;
    }

    .quote-icon img {
        width: 40px;
    }
}