.testimonial-slider {
    direction: rtl;
    height: 300px;
    display: flex;
    flex-direction: column;
    border: green solid 1px !important;
    border-radius: 40px;
    overflow: auto; /* Added overflow: hidden to hide overflowing content */
}

.testimonial-slider-inner {
    position: relative;
    overflow: auto;
    flex-grow: 1;
}

.testimonial-slide {
    position: absolute;
    top: 0;
    left: 0; /* Changed from right: 0; to left: 0; */
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: translateX(100%);
    transition: transform 0.4s ease-in-out;
    border: 1px solid #ccc;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.8);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.testimonial-slide.active {
    transform: translateX(0);
    opacity: 1;
}

.testimonial-title {
    font-size: 1.2em;
    font-weight: bold;
    margin-bottom: 0.5em;
}

.testimonial-product {
    text-align: center;
    text-decoration: underline;
}

.testimonial-more-testimonials{
    display: block;
    text-align: center;
    text-decoration: none!important;
    font-size: .7em;
    color: white!important;
    background: #721854;
    width: fit-content;
    padding: 0px 5px;
    border-radius: 15px;
}

.testimonial-content {
    font-size: 0.95em;
    line-height: 1.5em;
    margin-bottom: 1em;
    text-align: justify;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.testimonial-author img {
    border-radius: 50%;
    width: 40px;
    height: 40px;
    margin-right: 10px;
    margin-left: 10px;
}

.testimonial-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 5px;
}

.testimonial-play-pause {
    position: relative;
    background: none;
    border: none;
    cursor: pointer;
    width: 16px;
    height: 16px;
    margin-right: 15px;
    margin-left: 5px;
}

.testimonial-play-pause[data-action="play"]::before {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-left: 12px solid #333;
    top: 0;
    left: 6px;
}

.testimonial-play-pause[data-action="pause"]::before,
.testimonial-play-pause[data-action="pause"]::after {
    content: '';
    position: absolute;
    width: 2px;
    height: 8px;
    background-color: #333;
    top: 50%;
    left: 6px;
    transform: translateY(-50%);
}

.testimonial-play-pause[data-action="pause"]::after {
    left: 10px;
}

.testimonial-dots {
    display: flex;
    margin-left: 10px;
}

.testimonial-dot {
    background: none;
    border: none;
    cursor: pointer;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #ccc;
    margin: 0 10px;
}

.testimonial-dot.active {
    background-color: #333;
}
