/* Testimonials Section Styles */

.testimonials-section {
    background: #f9f9f9;
    position: relative;
    overflow: hidden;
}

.testimonials-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(66, 91, 181, 0.02) 0%, rgba(66, 91, 181, 0.05) 100%);
    z-index: 1;
}

.testimonials-section .container {
    position: relative;
    z-index: 2;
}

/* Section Title */
.section-title {
    margin-bottom: 30px;
}

.section-title h2 {
    font-family: 'Playfair Display', serif;
    font-size: 46px;
    font-weight: 400;
    color: #333;
    position: relative;
}

.section-subtitle {
    font-size: 16px;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Testimonials Wrapper */
.testimonials-wrapper {
    position: relative;
}

/* Swiper Styles */
.testimonials-swiper {
    width: 100%;
    padding: 20px 0 0px;
    overflow: hidden;
}

.testimonials-swiper .swiper-wrapper {
    align-items: stretch;
}

.testimonials-swiper .swiper-slide {
    height: auto;
    display: flex;
    align-items: stretch;
}

.testimonials-swiper .swiper-slide .testimonial-card {
    width: 100%;
    margin-bottom: 0;
}

/* Testimonial Cards */
.testimonial-card {
    background: #fff;
    padding: 20px 25px 30px;
    margin-bottom: 30px;
    transition: all 0.4s ease;
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid #dadada;
}


/* Quote Icon */
.quote-icon {
    margin-bottom: 25px;
}

.quote-icon i {
    font-size: 32px;
    color: #fbb712;
    opacity: 0.7;
}

/* Testimonial Content */
.testimonial-content {
    flex-grow: 1;
    margin-bottom: 30px;
}

.testimonial-content p {
    font-size: 16px;
    line-height: 1.7;
    color: #555;
    font-style: italic;
    margin: 0;
    position: relative;
      height: 140px;
    overflow-y: auto;
}



/* Testimonial Author */
.testimonial-author {
    display: flex;
    align-items: center;
    padding-top: 25px;
    border-top: 1px solid #f0f0f0;
}

.author-image {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 15px;
    flex-shrink: 0;
    transition: border-color 0.3s ease;
}


.author-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.testimonial-card:hover .author-image img {
    transform: scale(1.1);
}

.author-info h4 {
    font-family: 'Playfair Display', serif;
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0 0 5px 0;
}

.author-info span {
    font-size: 14px;
    color: #898989;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Statistics Section */
.testimonials-stats {
    background: #fff;
    border-radius: 15px;
    padding: 50px 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

.testimonials-stats::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(66, 91, 181, 0.02) 0%, rgba(66, 91, 181, 0.05) 100%);
    z-index: 1;
}

.testimonials-stats .row {
    position: relative;
    z-index: 2;
}

.stat-item {
    text-align: center;
    padding: 20px 15px;
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
}

.stat-item h3 {
    font-family: 'Playfair Display', serif;
    font-size: 48px;
    font-weight: 700;
    color: #fbb712;
    margin: 0 0 10px 0;
    line-height: 1;
}

.stat-item p {
    font-size: 16px;
    color: #666;
    margin: 0;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Responsive Design */
@media (max-width: 991px) {
    .section-title h2 {
        font-size: 36px;
    }
    
    .testimonial-card {
        padding: 30px 25px 25px;
    }
    
    .testimonials-stats {
        padding: 40px 20px;
    }
    
    .stat-item h3 {
        font-size: 40px;
    }
}

@media (max-width: 767px) {
    .section-title h2 {
        font-size: 32px;
    }
    
    .testimonial-card {
        padding: 25px 20px 20px;
        margin-bottom: 20px;
    }
    
    .testimonial-content p {
        font-size: 15px;
    }
    
    .author-image {
        width: 50px;
        height: 50px;
    }
    
    .author-info h4 {
        font-size: 16px;
    }
    
    .author-info span {
        font-size: 13px;
    }
    
    .testimonials-stats {
        padding: 30px 15px;
        margin-top: 40px;
    }
    
    .stat-item {
        padding: 15px 10px;
        margin-bottom: 20px;
    }
    
    .stat-item h3 {
        font-size: 36px;
    }
    
    .stat-item p {
        font-size: 14px;
    }
    
    /* Swiper responsive styles */
    .testimonials-wrapper .swiper-button-next,
    .testimonials-wrapper .swiper-button-prev {
        width: 40px;
        height: 40px;
        margin-top: -20px;
    }
    
    .testimonials-wrapper .swiper-button-next:after,
    .testimonials-wrapper .swiper-button-prev:after {
        font-size: 14px;
    }
    
    .testimonials-wrapper .swiper-button-next {
        right: 10px;
    }
    
    .testimonials-wrapper .swiper-button-prev {
        left: 10px;
    }
}

@media (max-width: 480px) {
    .section-title h2 {
        font-size: 28px;
    }
        
    .stat-item h3 {
        font-size: 32px;
    }
}

/* Animation for stats counter (optional enhancement) */
@keyframes countUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stat-item.animate {
    animation: countUp 0.8s ease-out;
}

/* Hover effects for better interactivity */
.testimonial-card {
    cursor: default;
}

.testimonial-card:hover .quote-icon i {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

/* Fallback for missing images */
.author-image {
    background: linear-gradient(135deg, #fbb712, #f39c12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 18px;
}

.author-image img {
    position: relative;
    z-index: 2;
}

/* Individual avatar colors for variety */
.testimonial-card:nth-child(1) .author-image {
    background: linear-gradient(135deg, #fbb712, #f39c12);
}

.testimonial-card:nth-child(2) .author-image {
    background: linear-gradient(135deg, #e67e22, #d35400);
}

.testimonial-card:nth-child(3) .author-image {
    background: linear-gradient(135deg, #f39c12, #e67e22);
}

/* Placeholder initials when images fail to load */
.author-image img {
    position: relative;
    z-index: 2;
}

.author-image img:not([src]),
.author-image img[src=""],
.author-image img[src*="testimonial-"] {
    display: none;
}

/* Swiper Navigation Buttons */
.testimonials-swiper .swiper-button-next,
.testimonials-swiper .swiper-button-prev {
    color: #222;
    background: #fff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    box-shadow: 0 5px 15px rgba(251, 183, 18, 0.2);
    transition: all 0.3s ease;
    margin-top: -25px;
}
.swiper-navigation-icon{
    height: 20px !important;
}

.testimonials-wrapper .swiper-button-next:after,
.testimonials-wrapper .swiper-button-prev:after {
    font-size: 18px;
    font-weight: bold;
}

.testimonials-wrapper .swiper-button-next,
.testimonials-wrapper .swiper-button-prev {
    background: #fbb712;
    color: #222;
}

.testimonials-wrapper .swiper-button-next {
    right: -60px;
}

.testimonials-wrapper .swiper-button-prev {
    left: -60px;
}

/* Swiper Pagination */
.testimonials-swiper .swiper-pagination {
    bottom: 0px;
    position: relative;
    margin-top: 30px;
}

.testimonials-swiper .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: #ddd;
    opacity: 1;
    margin: 0 6px;
    transition: all 0.3s ease;
}

.testimonials-swiper .swiper-pagination-bullet-active {
    background: #fbb712;
    transform: scale(1.2);
}

.testimonials-swiper .swiper-pagination-bullet:hover {
    background: #fbb712;
    transform: scale(1.1);
}

/* Additional avatar colors for new testimonials */
.testimonial-card:nth-child(4) .author-image {
    background: linear-gradient(135deg, #d68910, #b7950b);
}

.testimonial-card:nth-child(5) .author-image {
    background: linear-gradient(135deg, #f4d03f, #f1c40f);
}