/* Testimonials Section */
.testimonials-section {
    background: linear-gradient(135deg, #f8fbf8 0%, #eef6f0 100%);
    position: relative;
    overflow: hidden;
}

.testimonials-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 60"><defs><pattern id="testimonial-pattern" width="60" height="60" patternUnits="userSpaceOnUse"><circle cx="30" cy="30" r="2" fill="%23167348" opacity="0.05"/></pattern></defs><rect width="60" height="60" fill="url(%23testimonial-pattern)"/></svg>');
}

.testimonials-carousel {
    position: relative;
    margin: 3rem 0;
    overflow: hidden;
    border-radius: 20px;
}

.testimonial-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
}

.testimonial-card {
    min-width: 100%;
    background: var(--white);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 15px 50px rgba(0,0,0,0.1);
    border: 1px solid rgba(22, 115, 72, 0.1);
    position: relative;
    overflow: hidden;
    opacity: 0.7;
    transform: scale(0.95);
    transition: all 0.6s ease;
}

.testimonial-card.active {
    opacity: 1;
    transform: scale(1);
    box-shadow: 0 20px 60px rgba(22, 115, 72, 0.15);
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 20px;
    font-size: 8rem;
    color: rgba(22, 115, 72, 0.1);
    font-family: serif;
    line-height: 1;
    z-index: 1;
}

.testimonial-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    position: relative;
    z-index: 2;
}

.customer-photo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--primary-color);
    box-shadow: 0 8px 25px rgba(22, 115, 72, 0.3);
    position: relative;
}

.customer-photo::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--primary-color), #105b39, #167348);
    z-index: -1;
    animation: photoGlow 3s ease-in-out infinite alternate;
}

@keyframes photoGlow {
    0% { opacity: 0.7; }
    100% { opacity: 1; }
}

.customer-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.customer-info h4 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.3rem;
}

.customer-location {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    display: block;
}

.rating {
    display: flex;
    gap: 0.2rem;
}

.rating i {
    color: #ffd700;
    font-size: 1rem;
    animation: starTwinkle 2s ease-in-out infinite;
    animation-delay: calc(var(--i) * 0.1s);
}

.rating i:nth-child(1) { --i: 0; }
.rating i:nth-child(2) { --i: 1; }
.rating i:nth-child(3) { --i: 2; }
.rating i:nth-child(4) { --i: 3; }
.rating i:nth-child(5) { --i: 4; }

@keyframes starTwinkle {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.testimonial-content {
    position: relative;
    z-index: 2;
    margin-bottom: 2rem;
}

.testimonial-content p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-dark);
    font-style: italic;
    margin: 0;
}

.testimonial-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 2;
}

.weight-loss {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    background: linear-gradient(135deg, rgba(22, 115, 72, 0.1) 0%, rgba(22, 115, 72, 0.05) 100%);
    border-radius: 15px;
    border: 2px solid rgba(22, 115, 72, 0.2);
}

.loss-amount {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
}

.loss-period {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-top: 0.2rem;
}

.verified-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #27ae60;
    font-size: 0.9rem;
    font-weight: 600;
}

.verified-badge i {
    font-size: 1.1rem;
}

/* Carousel Controls */
.carousel-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 -60px;
    pointer-events: none;
    z-index: 10;
}

.carousel-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    pointer-events: all;
    backdrop-filter: blur(10px);
}

.carousel-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(22, 115, 72, 0.4);
}

.prev-btn {
    left: -25px;
}

.next-btn {
    right: -25px;
}

/* Carousel Indicators */
.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    margin-top: 2rem;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    background: rgba(22, 115, 72, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: var(--primary-color);
    transform: scale(1.3);
    box-shadow: 0 0 10px rgba(22, 115, 72, 0.5);
}

.indicator:hover {
    background: var(--primary-color);
    transform: scale(1.1);
}

/* Testimonials Stats */
.testimonials-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(22, 115, 72, 0.1);
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
    border-radius: 15px;
    background: linear-gradient(135deg, rgba(22, 115, 72, 0.05) 0%, rgba(22, 115, 72, 0.02) 100%);
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(22, 115, 72, 0.1);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, #105b39 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 1rem;
    color: var(--text-dark);
    font-weight: 600;
}

/* Testimonials Responsive */
@media (max-width: 768px) {
    .testimonial-card {
        padding: 2rem 1.5rem;
    }
    
    .testimonial-header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .customer-photo {
        width: 60px;
        height: 60px;
    }
    
    .testimonial-footer {
        flex-direction: column;
        gap: 1rem;
    }
    
    .carousel-controls {
        padding: 0 -40px;
    }
    
    .prev-btn {
        left: -20px;
    }
    
    .next-btn {
        right: -20px;
    }
    
    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .testimonials-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .testimonials-stats {
        grid-template-columns: 1fr;
    }
    
    .testimonial-content p {
        font-size: 1rem;
    }
}

