/* Testimonial Widget Styles */
.testimonials-wrapper {
    width: 100%;
    padding: 0;
}

.testimonials-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    width: 100%;
}

.testimonial-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 30px 25px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.testimonials-container.hover-transform .testimonial-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.quote-icon {
    color: #4f46e5;
    font-size: 24px;
    margin-bottom: 20px;
    opacity: 0.8;
}

.testimonial-content {
    flex-grow: 1;
    margin-bottom: 25px;
}

.testimonial-content p {
    color: #666666;
    font-size: 15px;
    line-height: 1.7;
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-style: italic;
}

.rating-stars {
    display: flex;
    gap: 3px;
    margin-bottom: 20px;
}

.rating-stars .star {
    color: #e5e7eb;
    font-size: 16px;
    transition: color 0.3s ease;
}

.rating-stars .star.filled {
    color: #fbbf24;
}

.client-info {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: auto;
}

.client-image {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 3px solid #f1f5f9;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.client-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

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

.client-name {
    font-size: 16px;
    font-weight: 600;
    color: #333333;
    margin: 0 0 5px 0;
    line-height: 1.3;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.client-position {
    font-size: 13px;
    color: #888888;
    margin: 0;
    line-height: 1.4;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Decorative Elements */
.testimonial-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #4f46e5, #7c3aed, #f093fb);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.testimonial-card:hover::before {
    opacity: 1;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .testimonials-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
}

@media (max-width: 767px) {
    .testimonials-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .testimonial-card {
        padding: 25px 20px;
    }
    
    .client-info {
        gap: 12px;
    }
    
    .client-image {
        width: 50px;
        height: 50px;
    }
    
    .testimonial-content p {
        font-size: 14px;
    }
    
    .client-name {
        font-size: 15px;
    }
    
    .client-position {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .testimonial-card {
        padding: 20px 15px;
    }
    
    .quote-icon {
        font-size: 20px;
        margin-bottom: 15px;
    }
    
    .testimonial-content {
        margin-bottom: 20px;
    }
    
    .testimonial-content p {
        font-size: 13px;
    }
    
    .rating-stars {
        margin-bottom: 15px;
    }
    
    .rating-stars .star {
        font-size: 14px;
    }
    
    .client-image {
        width: 45px;
        height: 45px;
    }
    
    .client-name {
        font-size: 14px;
    }
    
    .client-position {
        font-size: 11px;
    }
}

/* Animation Effects */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.testimonial-card {
    animation: fadeInUp 0.6s ease-out;
}

/* Modern Glassmorphism Effect */
.testimonial-card {
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
}

/* Quote Icon Hover Effect */
.testimonial-card:hover .quote-icon {
    transform: scale(1.1);
    color: #7c3aed;
}

/* Rating Stars Hover Effect */
.testimonial-card:hover .rating-stars .star.filled {
    color: #f59e0b;
    transform: scale(1.1);
}

/* Client Image Hover Effect */
.testimonial-card:hover .client-image {
    transform: scale(1.05);
    border-color: #4f46e5;
}

/* Content Fade In Effect */
.testimonial-content p {
    transition: color 0.3s ease;
}

.testimonial-card:hover .testimonial-content p {
    color: #555555;
}

/* Professional Shadow Variations */
.testimonial-card:nth-child(3n+1) {
    box-shadow: 0 8px 30px rgba(79, 70, 229, 0.1);
}

.testimonial-card:nth-child(3n+2) {
    box-shadow: 0 8px 30px rgba(124, 58, 237, 0.1);
}

.testimonial-card:nth-child(3n+3) {
    box-shadow: 0 8px 30px rgba(240, 147, 251, 0.1);
}

/* Hover Shadow Variations */
.testimonials-container.hover-transform .testimonial-card:nth-child(3n+1):hover {
    box-shadow: 0 20px 50px rgba(79, 70, 229, 0.2);
}

.testimonials-container.hover-transform .testimonial-card:nth-child(3n+2):hover {
    box-shadow: 0 20px 50px rgba(124, 58, 237, 0.2);
}

.testimonials-container.hover-transform .testimonial-card:nth-child(3n+3):hover {
    box-shadow: 0 20px 50px rgba(240, 147, 251, 0.2);
}