/* Testimonials Section */
.testimonials-section {
    padding: 80px 0;
    background-color: var(--bg-light);
    background-image: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 100%);
}

.testimonials-container {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 60px;
    overflow: hidden;
}

.testimonials-slider {
    display: flex;
    gap: 30px;
    overflow-x: scroll;
    scroll-snap-type: x mandatory;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
    -webkit-overflow-scrolling: touch;
    padding: 20px 0;
}

.testimonials-slider::-webkit-scrollbar {
    display: none; /* Chrome, Safari and Opera */
}

.testimonial-card {
    flex: 0 0 calc(50% - 15px); /* Two cards at a time with gap */
    scroll-snap-align: start;
    background: linear-gradient(145deg, #ffffff, #f5f5f5);
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-width: 300px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    position: relative;
    overflow: hidden;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 80px;
    color: rgba(var(--primary-rgb), 0.1);
    font-family: serif;
    line-height: 1;
}

.testimonial-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
    background: linear-gradient(135deg, #ffffff 0%, #f0f3f9 100%);
}

.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 1;
    font-size: 1.2rem;
}

.nav-btn:hover {
    background: var(--primary-color);
    color: #fff;
    transform: translateY(-50%) scale(1.1);
}

.prev-btn {
    left: 0;
}

.next-btn {
    right: 0;
}

.testimonial-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.testimonial-image {
    width: 70px;
    height: 70px;
    margin-right: 15px;
    overflow: hidden;
    border-radius: 50%;
    flex-shrink: 0;
    border: 3px solid var(--primary-color);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

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

.testimonial-author h4 {
    margin: 0;
    color: var(--text-dark);
    font-size: 1.2rem;
    font-weight: 600;
}

.testimonial-author .designation {
    color: var(--primary-color);
    font-size: 0.9rem;
    margin: 5px 0 0;
    font-weight: 500;
}

.testimonial-rating {
    color: #ffd700;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.testimonial-content {
    color: var(--text-dark);
    font-size: 1rem;
    line-height: 1.7;
    position: relative;
    max-height: 150px;
    overflow-y: auto;
    padding-right: 10px;
    /* Smooth scrolling */
    scroll-behavior: smooth;
}

.testimonial-content::-webkit-scrollbar {
    width: 6px;
}

.testimonial-content::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 3px;
}

.testimonial-content::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
}

.testimonial-content::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.3);
}

.testimonial-content:hover::after,
.testimonial-content:hover::before {
    display: none;
}

@media (max-width: 768px) {
    .testimonial-card {
        width: 300px;
    }
    
    .testimonials-container {
        padding: 0 40px;
    }
    
    .testimonial-content {
        max-height: 120px; /* Slightly smaller on mobile */
    }
}
