/* Testimonials Section */
.testimonials-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    position: relative;
}

.testimonials-carousel {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    background: linear-gradient(135deg, #fff5e6 0%, #ffe8cc 100%);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 40px 20px 60px;
}

.testimonials-wrapper {
    position: relative;
    width: 100%;
    min-height: 400px;
    display: flex;
    gap: 20px;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.testimonial-slide {
    flex: 0 0 calc(33.333% - 14px);
    opacity: 1;
    transform: translateX(0);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    display: block;
}

.testimonial-slide.active {
    opacity: 1;
    transform: translateX(0);
}

.testimonial-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
    margin: 0 auto;
    padding: 20px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    height: 100%;
    min-height: 350px;
}

.testimonial-image {
    margin-bottom: 30px;
    position: relative;
}

.testimonial-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #ffffff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

.testimonial-avatar:hover {
    transform: scale(1.05);
}

.testimonial-avatar-placeholder {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff9a56 0%, #ff6b35 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    border: 3px solid #ffffff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.testimonial-content {
    width: 100%;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.testimonial-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 8px 0;
    font-family: 'Arial', sans-serif;
}

.testimonial-designation {
    font-size: 0.95rem;
    color: #ff6b35;
    font-weight: 600;
    margin: 0 0 15px 0;
    line-height: 1.4;
}

.testimonial-place {
    display: block;
    color: #7f8c8d;
    font-weight: 500;
    margin-top: 5px;
}

.testimonial-place::before {
    content: "📍 ";
    margin-right: 5px;
}

.testimonial-text {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #2c3e50;
    font-style: italic;
    position: relative;
    margin-top: 10px;
    flex: 1;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 6;
    -webkit-box-orient: vertical;
}

.testimonial-text::before {
    content: '"';
    font-size: 2rem;
    color: #ff9a56;
    position: absolute;
    top: -10px;
    left: -15px;
    font-family: Georgia, serif;
    opacity: 0.3;
}

.testimonial-text::after {
    content: '"';
    font-size: 2rem;
    color: #ff9a56;
    position: absolute;
    bottom: -15px;
    right: -15px;
    font-family: Georgia, serif;
    opacity: 0.3;
}

.testimonial-text p {
    margin: 0;
    position: relative;
    z-index: 1;
}

/* Navigation */
.testimonial-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    z-index: 10;
}

.testimonial-nav:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.testimonial-nav i {
    color: #ff6b35;
    font-size: 18px;
}

.prev-testimonial {
    left: 20px;
}

.next-testimonial {
    right: 20px;
}

/* Dots */
.testimonial-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 30px;
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
}

.testimonial-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.testimonial-dot.active {
    background: #ff6b35;
    transform: scale(1.3);
}

.testimonial-dot:hover {
    background: #ff9a56;
    transform: scale(1.2);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .testimonial-slide {
        flex: 0 0 calc(50% - 10px);
    }
    
    .testimonials-wrapper {
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .testimonials-carousel {
        padding: 30px 15px 50px;
    }
    
    .testimonial-slide {
        flex: 0 0 100%;
    }
    
    .testimonials-wrapper {
        gap: 0;
    }
    
    .testimonial-card {
        padding: 15px;
        min-height: 300px;
    }
    
    .testimonial-avatar,
    .testimonial-avatar-placeholder {
        width: 70px;
        height: 70px;
    }
    
    .testimonial-avatar-placeholder {
        font-size: 20px;
    }
    
    .testimonial-name {
        font-size: 1.2rem;
    }
    
    .testimonial-designation {
        font-size: 0.9rem;
    }
    
    .testimonial-text {
        font-size: 0.85rem;
        line-height: 1.5;
        -webkit-line-clamp: 5;
    }
    
    .testimonial-text::before,
    .testimonial-text::after {
        font-size: 1.5rem;
    }
    
    .testimonial-text::before {
        top: -8px;
        left: -12px;
    }
    
    .testimonial-text::after {
        bottom: -12px;
        right: -12px;
    }
    
    .testimonial-nav {
        width: 40px;
        height: 40px;
    }
    
    .testimonial-nav i {
        font-size: 14px;
    }
    
    .prev-testimonial {
        left: 10px;
    }
    
    .next-testimonial {
        right: 10px;
    }
    
    .testimonial-dots {
        gap: 8px;
        margin-top: 20px;
    }
    
    .testimonial-dot {
        width: 10px;
        height: 10px;
    }
}

@media (max-width: 480px) {
    .testimonials-container {
        padding: 0 10px;
    }
    
    .testimonials-carousel {
        padding: 20px 10px 40px;
    }
    
    .testimonials-wrapper {
        min-height: 350px;
    }
    
    .testimonial-avatar,
    .testimonial-avatar-placeholder {
        width: 80px;
        height: 80px;
    }
    
    .testimonial-avatar-placeholder i {
        font-size: 24px;
    }
    
    .testimonial-name {
        font-size: 1.4rem;
    }
    
    .testimonial-designation {
        font-size: 0.9rem;
    }
    
    .testimonial-text {
        font-size: 0.95rem;
    }
    
    .testimonial-nav {
        display: none; /* Hide navigation arrows on very small screens */
    }
}

/* Animation for slide transitions */
@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.testimonial-slide.slide-in-right {
    animation: slideInFromRight 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.testimonial-slide.slide-in-left {
    animation: slideInFromLeft 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Loading state */
.testimonials-container.loading {
    opacity: 0.6;
}

.testimonials-container.loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 3px solid #ff9a56;
    border-top: 3px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Enhanced hover effects */
.testimonial-card:hover .testimonial-avatar {
    transform: scale(1.05);
}

.testimonial-card:hover .testimonial-name {
    color: #ff6b35;
    transition: color 0.3s ease;
}

/* Accessibility improvements */
.testimonial-nav:focus,
.testimonial-dot:focus {
    outline: 2px solid #ff6b35;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .testimonial-nav,
    .testimonial-dots {
        display: none;
    }
    
    .testimonial-slide {
        display: block !important;
        opacity: 1 !important;
        transform: none !important;
        position: relative !important;
        page-break-inside: avoid;
        margin-bottom: 30px;
    }
    
    .testimonials-carousel {
        box-shadow: none;
        background: white;
    }
} 