.testimonials-wrapper {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 60px; /* Increased padding for arrow buttons */
    direction: ltr;
}

.testimonials-container {
    overflow: hidden;
    position: relative;
    width: 100%;
}

.testimonials-grid {
    display: flex;
    gap: 30px;
    transition: transform 0.3s ease;
    direction: rtl; /* Restore RTL for content */
    width: max-content;
    padding: 10px 0;
}

.testimonial-card-premium {
    flex: 0 0 350px;
    max-width: 350px;
    min-width: 350px;
    margin: 0;
    opacity: 1;
    transition: all 0.3s ease;
    transform: scale(1);
}

.testimonials-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #2196F3;
    border: 1px solid #e2e8f0;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.testimonials-nav.prev {
    left: 0;
}

.testimonials-nav.next {
    right: 0;
}

.testimonials-nav:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #f5f5f5;
}

.testimonials-nav:not(:disabled):hover {
    background: #000;
    border-color: #2196F3;
    color: #fff;
    transform: translateY(-50%) scale(1.1);
}

@media (max-width: 768px) {
    .testimonials-wrapper {
        padding: 0 40px;
    }
    
    /* Switch to a wrapping grid on smaller screens so cards stack neatly
       instead of forcing a horizontal scroll with fixed widths. */
    .testimonials-grid {
        /* Allow wrapping and use full available width on mobile */
        flex-wrap: wrap;
        width: 100%;
        gap: 16px;
        justify-content: center;
    }

    .testimonial-card-premium {
        /* Use fluid widths: two cards per row on tablets / large phones */
        flex: 0 0 calc(50% - 16px);
        max-width: calc(50% - 16px);
        min-width: 0;
    }

    /* Hide carousel nav arrows on small screens (they overlap content)
       you can re-enable if you want floating arrows for mobile later. */
    .testimonials-nav {
        display: none;
    }
}

@media (max-width: 480px) {
    /* On very small screens, show one card per row and increase spacing */
    .testimonials-grid {
        gap: 12px;
    }

    .testimonial-card-premium {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .testimonials-wrapper {
        padding: 0 16px;
    }
}

