/* Testimonials Section */
.testimonials-section {
    background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
}

/* Compact Testimonials Carousel */
.testimonials-carousel-container {
    max-width: 800px;
    margin: 0 auto;
}

.testimonials-carousel {
    position: relative;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 24px;
    overflow: hidden;
}

.testimonial-slides {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.testimonial-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    transform: translateX(100%);
    transition: transform 0.5s ease;
    pointer-events: none;
}

.testimonial-slide.active {
    transform: translateX(0);
    pointer-events: auto;
}

.testimonial-slide.prev {
    transform: translateX(-100%);
}

.compact-testimonial {
    display: flex;
    gap: 24px;
    align-items: center;
    padding: 16px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 12px;
    border-left: 4px solid #0066cc;
    height: 140px;
}

.compact-testimonial .customer-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    min-width: 140px;
    flex-shrink: 0;
    text-align: center;
}

.compact-testimonial .customer-avatar {
    flex-shrink: 0;
}

.compact-testimonial .avatar-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid #f8f9fa;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.compact-testimonial .customer-details {
    flex-grow: 1;
}

.compact-testimonial .customer-name {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 2px 0;
}

.compact-testimonial .service-type {
    font-size: 12px;
    color: #6c757d;
    margin: 0 0 4px 0;
}

.compact-testimonial .testimonial-rating {
    margin: 0;
    padding: 0;
    border: none;
}

.compact-testimonial .stars {
    color: #ffc107;
    font-size: 14px;
    letter-spacing: 1px;
}

.compact-testimonial .testimonial-quote {
    font-size: 16px;
    line-height: 1.6;
    color: #2c3e50;
    margin: 0;
    font-style: italic;
    flex: 1;
    padding: 0 16px;
    position: relative;
}

.compact-testimonial .testimonial-quote::before {
    content: '"';
    position: absolute;
    left: 0;
    top: -8px;
    font-size: 32px;
    color: rgba(0, 102, 204, 0.2);
    font-family: Georgia, serif;
    line-height: 1;
}

/* Carousel Indicators */
.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
}

.indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: #e9ecef;
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: #0066cc;
    transform: scale(1.2);
}

.indicator:hover {
    background: #0066cc;
    opacity: 0.7;
}

/* Read More Button */
.read-more-btn {
    background: linear-gradient(135deg, #0066cc 0%, #004499 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 10px rgba(0, 102, 204, 0.2);
}

.read-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 102, 204, 0.3);
}

.read-more-btn.expanded .btn-arrow {
    transform: rotate(180deg);
}

/* Responsive Design for Carousel */
@media (max-width: 767px) {
    .testimonials-carousel {
        padding: 20px 16px;
    }
    
    .testimonial-slides {
        height: 200px;
    }
    
    .compact-testimonial {
        flex-direction: column;
        gap: 16px;
        text-align: center;
        height: 180px;
        padding: 20px 16px;
    }
    
    .compact-testimonial .customer-info {
        min-width: auto;
        width: 100%;
        justify-content: center;
        flex-direction: row;
        gap: 12px;
    }
    
    .compact-testimonial .customer-details {
        text-align: left;
    }
    
    .compact-testimonial .testimonial-quote {
        font-size: 14px;
        text-align: center;
        padding: 0 8px;
    }
    
    .compact-testimonial .testimonial-quote::before {
        left: -8px;
        font-size: 24px;
    }
    
    .compact-testimonial .avatar-img {
        width: 50px;
        height: 50px;
    }
    
    .compact-testimonial .customer-name {
        font-size: 14px;
    }
    
    .compact-testimonial .service-type {
        font-size: 11px;
    }
}

.testimonial-card {
    background: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 20px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 15px;
    left: 20px;
    font-size: 60px;
    color: rgba(0, 102, 204, 0.1);
    font-family: Georgia, serif;
    line-height: 1;
}

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

.customer-info {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 4px;
}

.customer-avatar {
    flex-shrink: 0;
}

.avatar-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #f8f9fa;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.customer-details {
    flex-grow: 1;
}

.customer-name {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 4px 0;
}

.customer-location {
    font-size: 14px;
    color: #0066cc;
    font-weight: 500;
    margin: 0 0 2px 0;
}

.service-type {
    font-size: 13px;
    color: #6c757d;
    margin: 0;
    font-style: italic;
}

.testimonial-quote {
    font-size: 16px;
    line-height: 1.6;
    color: #2c3e50;
    margin: 0;
    flex-grow: 1;
    font-style: italic;
    position: relative;
    padding-left: 20px;
}

.testimonial-rating {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1px solid #f0f0f0;
}

.testimonial-rating .stars {
    color: #ffc107;
    font-size: 18px;
    letter-spacing: 2px;
}

.rating-text {
    font-size: 14px;
    font-weight: 600;
    color: #28a745;
    background: rgba(40, 167, 69, 0.1);
    padding: 4px 8px;
    border-radius: 12px;
}

/* Trust Statistics */
.trust-statistics {
    background: white;
    border-radius: 16px;
    padding: 40px 20px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.06);
    border: 1px solid #f0f0f0;
}

.stat-item {
    padding: 20px 10px;
    text-align: center;
}

.stat-number {
    font-size: 36px;
    font-weight: 900;
    color: #0066cc;
    line-height: 1;
    margin-bottom: 8px;
    display: block;
}

.stat-label {
    font-size: 14px;
    color: #6c757d;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Responsive Design */
@media (max-width: 991px) {
    .testimonial-card {
        padding: 24px;
        gap: 16px;
    }
    
    .customer-info {
        gap: 12px;
    }
    
    .avatar-img {
        width: 50px;
        height: 50px;
    }
    
    .customer-name {
        font-size: 16px;
    }
    
    .testimonial-quote {
        font-size: 15px;
        padding-left: 16px;
    }
    
    .trust-statistics {
        padding: 32px 16px;
    }
    
    .stat-number {
        font-size: 28px;
    }
    
    .stat-label {
        font-size: 13px;
    }
}

@media (max-width: 767px) {
    .testimonial-card {
        padding: 20px;
        gap: 14px;
        margin-bottom: 20px;
    }
    
    .testimonial-card::before {
        font-size: 40px;
        top: 10px;
        left: 15px;
    }
    
    .customer-info {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .customer-details {
        text-align: center;
    }
    
    .testimonial-quote {
        font-size: 14px;
        text-align: center;
        padding-left: 0;
    }
    
    .testimonial-rating {
        justify-content: center;
        gap: 16px;
    }
    
    .trust-statistics {
        padding: 24px 12px;
    }
    
    .stat-item {
        padding: 16px 8px;
    }
    
    .stat-number {
        font-size: 24px;
    }
    
    .stat-label {
        font-size: 12px;
    }
}

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

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

/* Hover effects */
.testimonial-card:hover .avatar-img {
    transform: scale(1.05);
    transition: transform 0.3s ease;
}

.stat-item:hover .stat-number {
    color: #004499;
    transform: scale(1.1);
    transition: all 0.3s ease;
}