.et_pb_testimonial_slider_wrapper {
    position: relative;
}

.et_pb_testimonial_slider {
    position: relative;
    overflow: hidden;
    min-height: 300px; /* Ensure minimum height */
}

/* Remove the flex slider-track since we're using fade transitions */
.slider-track {
    display: none; /* Not needed for fade effect */
}

/* Slide styling for fade effect */
.et_pb_testimonial_slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease-in-out, visibility 0.6s ease-in-out;
    min-width: 100%;
    flex-shrink: 0;
}

.et_pb_testimonial_slide.active {
    opacity: 1;
    visibility: visible;
    position: relative;
}

div#testimonial-part-main .et_pb_module_inner {
    margin: 0 80px;
}

#et_pb_testimonial_slider_panel {
    background: linear-gradient(90deg, #101010 0.04%, #060606 100.04%);
    border-radius: 10px;
    padding: 40px;
    overflow: hidden;
    border: 1px solid #ffffff26;
}

.testimonial-content {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

button.slider-arrow.slider-prev img,
button.slider-arrow.slider-next img {
    width: 15px;
}

.testimonial-image {
    align-items: center;
    position: relative;
    width: 180px;
    height: 100px;
    max-width: 180px !important;
}

.testimonial-image img {
    width: 180px !important;
    height: 100px;
    object-fit: contain;
    max-width: 180px !important;
}

.testimonial-text {
    flex: 1;
}

.testimonial-title {
    color: #fff;
    margin: 0 0 15px 0;
    line-height: 45px;
    font-size: 40px;
    font-family: "Nunito Sans", Helvetica, Arial, Lucida, sans-serif;
    letter-spacing: -2px;
    font-weight: 700 !important;
    color: #ffffff !important;
    text-align: left;
}

.testimonial-description {
    margin: 0 0 15px 0;
    line-height: 30px !important;
    font-size: 18px;
    font-family: "Nunito Sans", Helvetica, Arial, Lucida, sans-serif;
    letter-spacing: -0.05px;
    font-weight: 400 !important;
    color: #ffffff !important;
}

.testimonial-name {
    line-height: 30px !important;
    font-size: 18px;
    font-family: "Nunito Sans", Helvetica, Arial, Lucida, sans-serif;
    letter-spacing: -0.05px;
    font-weight: 700 !important;
    color: #ffffff !important;
    padding-bottom: 0;
}

.testimonial-company {
    color: #999;
    line-height: 30px !important;
    font-size: 18px;
    font-family: "Nunito Sans", Helvetica, Arial, Lucida, sans-serif;
    letter-spacing: -0.05px;
    font-weight: 500 !important;
    color: #ffffffb2 !important;
}

.slider-arrows {
    position: absolute;
    top: 35%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    padding: 0 0;
    z-index: 10;
}

.slider-arrow {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    font-weight: 700;
    pointer-events: all;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    user-select: none;
}

.slider-arrow:hover {
    background: rgba(0, 0, 0, 0.8);
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.05);
}

.slider-arrow:active {
    transform: scale(0.95);
}

.slider-prev {
    left: 20px;
}

.slider-next {
    right: 20px;
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.slider-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: #262626;
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
}

.slider-dot.active {
    background: linear-gradient(97.07deg, #7300ff 0%, #2673fb 90.73%);
    width: 28px;
    border-radius: 8px;
}

.slider-dot:hover {
    background: rgb(255 255 255 / 0.5);
}

.testimonial-header {
    text-align: center;
    margin-bottom: 30px;
}

.testimonial-header h2 {
    color: #fff;
    font-size: 24px;
    margin: 0 0 10px 0;
}

.testimonial-header p {
    color: #999;
    font-size: 14px;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

@media (max-width: 1700px) {
    div#testimonial-row-2025 {
        width: 80%;
    }
}

@media (max-width: 1200px) {
    div#testimonial-row-2025 {
        width: 90%;
    }
}

@media (max-width: 980px) {
    div#testimonial-part-main .et_pb_module_inner {
        margin: 0 0;
    }
    .testimonial-image,
    .testimonial-image img {
        width: 120px !important;
        height: 70px;
    }
    .et_pb_testimonial_slider_wrapper {
        padding: 0;
    }
    .testimonial-content {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
        gap: 15px;
    }
    #et_pb_testimonial_slider_panel {
        padding: 20px;
    }
    .testimonial-title {
        font-size: 24px;
        line-height: 28px;
        letter-spacing: -1px;
    }
    .testimonial-description,
    .testimonial-name,
    p.testimonial-company {
        font-size: 14px;
        line-height: 21px !important;
    }
    .testimonial-content {
        margin-bottom: 10px;
    }
    .slider-arrows {
        display: none;
    }
    .slider-dots {
        margin-top: 20px;
    }
    .slider-arrow {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }
    .et_pb_testimonial_slider {
        min-height: 250px;
    }
}

@media (max-width: 480px) {
    .testimonial-title {
        font-size: 20px;
    }
    .et_pb_testimonial_slider {
        min-height: 200px;
    }
}