/* Testimonial Carousel Styles */

.testimonial-section {
    background: #EDEAEB;
    padding: 80px 20px;
    position: relative;
    overflow: hidden;
}

.testimonial-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="1" fill="rgba(86,110,138,0.03)"/></svg>');
    opacity: 0.5;
}

.testimonial-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.testimonial-tag {
    color: #566E8A;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
    text-align: center;
    margin-bottom: 30px;
    text-transform: uppercase;
}

.testimonial-carousel {
    position: relative;
    min-height: 400px;
}

.testimonial-slide {
    opacity: 0;
    visibility: hidden;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    transition: opacity 0.6s ease-in-out, visibility 0.6s ease-in-out;
}

.testimonial-slide.active {
    opacity: 1;
    visibility: visible;
    position: relative;
}

.testimonial-content {
    display: flex;
    gap: 40px;
    align-items: center;
    background: #ffffff;
    border-radius: 16px;
    padding: 50px;
    border: 1px solid rgba(86, 110, 138, 0.15);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.testimonial-image {
    flex-shrink: 0;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid #566E8A;
    box-shadow: 0 10px 30px rgba(86, 110, 138, 0.2);
}

.testimonial-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-text {
    flex: 1;
    color: #333;
}

.testimonial-text blockquote {
    font-size: 18px;
    line-height: 1.8;
    font-style: italic;
    margin: 0 0 25px 0;
    position: relative;
    color: #333;
}

.testimonial-text blockquote::before {
    content: '"';
    font-size: 60px;
    position: absolute;
    left: -30px;
    top: -10px;
    opacity: 0.2;
    color: #566E8A;
    font-family: Georgia, serif;
}

.testimonial-author {
    font-size: 15px;
    line-height: 1.6;
    color: #666;
}

.testimonial-author strong {
    font-size: 18px;
    display: block;
    margin-bottom: 5px;
    color: #566E8A;
    font-weight: 600;
}

/* Carousel Controls */
.carousel-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
}

.carousel-btn {
    background: #ffffff;
    border: 2px solid #566E8A;
    color: #566E8A;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(86, 110, 138, 0.15);
}

.carousel-btn:hover {
    background: #566E8A;
    color: #ffffff;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(86, 110, 138, 0.3);
}

.carousel-btn:active {
    transform: scale(0.95);
}

.carousel-dots {
    display: flex;
    gap: 12px;
    align-items: center;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(86, 110, 138, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.dot:hover {
    background: rgba(86, 110, 138, 0.6);
    transform: scale(1.2);
}

.dot.active {
    background: #566E8A;
    width: 14px;
    height: 14px;
    border-color: rgba(86, 110, 138, 0.3);
    box-shadow: 0 0 0 3px rgba(86, 110, 138, 0.1);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .testimonial-content {
        padding: 40px;
        gap: 30px;
    }
    
    .testimonial-image {
        width: 160px;
        height: 160px;
    }
    
    .testimonial-text blockquote {
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    .testimonial-section {
        padding: 60px 15px;
    }
    
    .testimonial-carousel {
        min-height: 500px;
    }
    
    .testimonial-content {
        flex-direction: column;
        text-align: center;
        padding: 30px 25px;
        gap: 25px;
    }
    
    .testimonial-image {
        width: 150px;
        height: 150px;
        margin: 0 auto;
    }
    
    .testimonial-text blockquote {
        font-size: 15px;
        line-height: 1.7;
    }
    
    .testimonial-text blockquote::before {
        left: 50%;
        transform: translateX(-50%);
        top: -30px;
    }
    
    .testimonial-author {
        font-size: 14px;
    }
    
    .testimonial-author strong {
        font-size: 16px;
    }
    
    .carousel-controls {
        gap: 20px;
        margin-top: 30px;
    }
    
    .carousel-btn {
        width: 45px;
        height: 45px;
    }
    
    .dot {
        width: 10px;
        height: 10px;
    }
    
    .dot.active {
        width: 12px;
        height: 12px;
    }
}

@media (max-width: 480px) {
    .testimonial-carousel {
        min-height: 550px;
    }
    
    .testimonial-content {
        padding: 25px 20px;
    }
    
    .testimonial-image {
        width: 120px;
        height: 120px;
    }
    
    .testimonial-text blockquote {
        font-size: 14px;
    }
    
    .carousel-controls {
        gap: 15px;
    }
    
    .carousel-btn {
        width: 40px;
        height: 40px;
    }
    
    .carousel-btn svg {
        width: 10px;
        height: 10px;
    }
}

/* Animation for slide transitions */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.testimonial-slide.active .testimonial-content {
    animation: slideIn 0.6s ease-out;
}

/* Loading state */
.testimonial-carousel:empty::after {
    content: 'Loading testimonials...';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #566E8A;
    font-size: 16px;
}