/* Testimonials Section Styles */
.testimonials {
    padding: 6rem 0;
    background-color: #f8f9fa;
    position: relative;
}

.testimonials .section-title {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 4rem;
    font-size: 2.2rem;
    position: relative;
}

.testimonials .section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background-color: #FFCC00;
    margin: 0.8rem auto 0;
}

/* Testimonial Slider */
.testimonial-slider {
    position: relative;
    overflow: visible;
    margin: 4rem auto;
    max-width: 900px;
    min-height: 400px;
    padding-top: 70px;
}

.testimonial-slide {
    position: relative;
    width: 100%;
    transition: all 0.8s ease;
    margin-top: 50px;
}

/* Ensure only active slide is visible */
.testimonial-slide:not(.active) {
    display: none;
}

.testimonial-slide.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Testimonial Content */
.testimonial-content {
    display: flex;
    flex-direction: column;
    background-color: #f9f9f9;
    border-radius: 10px;
    padding: 5rem 2rem 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1;
    transition: all 0.5s ease;
    margin-top: 40px;
}

.testimonial-content::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50px;
    width: 30px;
    height: 30px;
    background-color: #fff;
    transform: rotate(45deg);
    box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.05);
    z-index: -1;
}

.quote-icon {
    position: absolute;
    top: -40px;
    left: 40px;
    width: 80px;
    height: 80px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 2.2rem;
    z-index: 2;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.testimonial-text {
    margin-top: 30px;
    margin-bottom: 1.5rem;
}

.testimonial-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
    font-style: italic;
    margin-bottom: 1.5rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    padding-left: 2rem;
    margin-top: 1.5rem;
}

.author-image {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #800000;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    margin-right: 1rem;
}

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

.author-info h4 {
    margin: 0;
    color: #800000;
    font-size: 1.2rem;
    font-weight: 600;
}

.author-info p {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
}

.testimonial-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2rem;
}

.prev-testimonial,
.next-testimonial {
    background-color: #800000;
    color: #fff;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}

.prev-testimonial:hover,
.next-testimonial:hover {
    background-color: #660000;
    transform: translateY(-3px);
}

.testimonial-dots {
    display: flex;
    align-items: center;
    margin: 0 1.5rem;
}

.dot {
    width: 12px;
    height: 12px;
    background-color: #ddd;
    border-radius: 50%;
    margin: 0 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.dot.active {
    background-color: #FFCC00;
    transform: scale(1.2);
}

/* Responsive Styles */
@media (max-width: 992px) {
    .testimonial-content {
        padding: 2rem;
    }
}

@media (max-width: 768px) {
    .testimonials {
        padding: 4rem 0;
    }
    
    .testimonials .section-title {
        font-size: 1.8rem;
    }
    
    .testimonial-content {
        padding: 1.8rem;
    }
    
    .testimonial-content p {
        font-size: 1rem;
    }
    
    .author-image {
        width: 80px;
        height: 80px;
    }
    
    .author-info h4 {
        font-size: 1.1rem;
    }
}

@media (max-width: 576px) {
    .testimonial-content {
        padding: 1.5rem;
    }
    
    .quote-icon {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .testimonial-content p {
        font-size: 0.95rem;
    }
    
    .author-image {
        width: 70px;
        height: 70px;
    }
    
    .author-info h4 {
        font-size: 1rem;
    }
    
    .prev-testimonial,
    .next-testimonial {
        width: 35px;
        height: 35px;
    }
}
