/* Testimonial Slider Styles */
.testimonial-slider {
    position: relative;
    overflow: hidden;
    padding: 0 40px;
    margin: 0 -40px;
}

.testimonial-wrapper {
    display: flex;
    transition: transform 0.5s ease-in-out;
    width: 100%; /* default; JS will override based on visible count */
}

.testimonial-item {
    flex: 0 0 auto; /* JS will set width for responsive visible counts */
    text-align: center;
    padding: 0 12px; /* reduced padding to avoid overflow */
    box-sizing: border-box;
}

.testimonial-content {
    background: white;
    color: #333;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin: 0; /* remove margins to keep width calculations exact */
    height: 100%;
    box-sizing: border-box;
}

/* Testimonial Navigation Buttons */
.testimonial-prev,
.testimonial-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 2;
}

.testimonial-prev {
    left: 10px;
}

.testimonial-next {
    right: 10px;
}

.testimonial-prev:hover,
.testimonial-next:hover {
    background: #4CAF50;
}

/* Testimonial Text Styles */
.testimonial-text {
    margin-bottom: 20px;
}

.testimonial-text p {
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    margin: 0;
}

.testimonial-author {
    margin-top: 20px;
}

.testimonial-author h4 {
    color: #333;
    margin-bottom: 5px;
    font-size: 18px;
}

.testimonial-author span {
    color: #666;
    font-size: 14px;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .testimonial-slider {
        padding: 0 30px;
        margin: 0 -30px;
    }
    
    .testimonial-content {
        padding: 30px;
    }
    
    .testimonial-prev,
    .testimonial-next {
        width: 40px;
        height: 40px;
    }
}