.ast-testimonials-wrapper {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 40px 0;
}

.ast-testimonials-row {
    position: relative;
    overflow: hidden;
    margin-bottom: 20px;
}

.ast-testimonials-row:last-child {
    margin-bottom: 0;
}

.ast-testimonials-track {
    display: flex;
    gap: 20px;
    width: fit-content;
}

/* Scrolling animations */
.ast-scroll-right .ast-testimonials-track {
    animation: scrollRight 60s linear infinite;
}

.ast-scroll-left .ast-testimonials-track {
    animation: scrollLeft 60s linear infinite;
}

/* Pause on hover */
.ast-testimonials-row:hover .ast-testimonials-track {
    animation-play-state: paused;
}

/* Also pause when hovering over individual cards */
.ast-testimonial-card:hover {
    cursor: pointer;
}

.ast-testimonials-track:has(.ast-testimonial-card:hover) {
    animation-play-state: paused !important;
}

@keyframes scrollRight {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

@keyframes scrollLeft {
    0% {
        transform: translateX(-50%);
    }
    100% {
        transform: translateX(0);
    }
}

/* Testimonial Card Styles */
.ast-testimonial-card {
    background: #2b8a8e;
    border-radius: 12px;
    padding: 30px;
    min-width: 320px;
    max-width: 320px;
    display: flex;
    flex-direction: column;
    color: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    flex-shrink: 0;
}

.ast-testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.15);
}

.ast-testimonial-image {
    width: 100%;
    height: 200px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
}

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

.ast-testimonial-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.ast-testimonial-quote {
    font-size: 16px;
    line-height: 1.6;
    margin: 0 0 20px 0;
    flex: 1;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
}

.ast-testimonial-name {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 15px 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.ast-testimonial-link {
    color: white;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: gap 0.3s ease;
}

.ast-testimonial-link:hover {
    gap: 12px;
}

.ast-testimonial-link .arrow {
    transition: transform 0.3s ease;
}

.ast-testimonial-link:hover .arrow {
    transform: translateX(4px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .ast-testimonials-wrapper {
        padding: 20px 0;
    }
    
    .ast-testimonial-card {
        min-width: 280px;
        max-width: 280px;
        padding: 25px;
    }
    
    .ast-testimonial-image {
        height: 160px;
    }
    
    .ast-testimonial-quote {
        font-size: 15px;
        -webkit-line-clamp: 3;
    }
    
    .ast-testimonial-name {
        font-size: 18px;
    }
    
    .ast-testimonials-row {
        margin-bottom: 15px;
    }
    
    /* Faster scroll on mobile */
    .ast-scroll-right .ast-testimonials-track {
        animation: scrollRight 40s linear infinite;
    }
    
    .ast-scroll-left .ast-testimonials-track {
        animation: scrollLeft 40s linear infinite;
    }
}

@media (max-width: 480px) {
    .ast-testimonial-card {
        min-width: 260px;
        max-width: 260px;
        padding: 20px;
    }
    
    .ast-testimonial-image {
        height: 140px;
    }
    
    .ast-testimonial-quote {
        font-size: 14px;
        margin-bottom: 15px;
    }
    
    .ast-testimonial-name {
        font-size: 17px;
        margin-bottom: 12px;
    }
    
    .ast-testimonial-link {
        font-size: 14px;
    }
}

/* Color variations (optional - can be customized) */
.ast-testimonial-card.teal {
    background: #2b8a8e;
}

.ast-testimonial-card.blue {
    background: #4a90e2;
}

.ast-testimonial-card.purple {
    background: #8e44ad;
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    .ast-scroll-right .ast-testimonials-track,
    .ast-scroll-left .ast-testimonials-track {
        animation: none;
    }
    
    .ast-testimonials-track {
        overflow-x: auto;
        scroll-snap-type: x mandatory;
    }
    
    .ast-testimonial-card {
        scroll-snap-align: start;
    }
}
