/* Modern Testimonials Section Styles */

.modern-testimonials-section {
    background: linear-gradient(135deg, #f8f9ff 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

.modern-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 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="%23e0e7ff" opacity="0.3"/><circle cx="75" cy="75" r="1" fill="%23e0e7ff" opacity="0.3"/><circle cx="50" cy="10" r="0.5" fill="%23e0e7ff" opacity="0.2"/><circle cx="10" cy="60" r="0.5" fill="%23e0e7ff" opacity="0.2"/><circle cx="90" cy="40" r="0.5" fill="%23e0e7ff" opacity="0.2"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.4;
    z-index: 1;
}

.modern-testimonials-section .container {
    position: relative;
    z-index: 2;
}

/* Section Header */
.testimonials-header {
    margin-bottom: 5rem;
}

.trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #5b00aa, #5b00aa);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 15px rgba(92, 0, 169, 0.3);
}

.trust-badge i {
    font-size: 1rem;
}

.testimonials-title {
    font-size: 3rem;
    font-weight: 700;
    color: #141515;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.testimonials-title .gradient-text {
    background: linear-gradient(135deg, #5b00aa, #5b00aa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.testimonials-subtitle {
    font-size: 1.2rem;
    color: #6b7280;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Testimonials Slider Container */
.testimonials-slider-container {
    overflow: hidden;
    position: relative;
    margin-bottom: 4rem;
}

.testimonials-slider {
    display: flex;
    gap: 1.5rem;
    animation: slideTestimonials 120s linear infinite;
    width: max-content;
}

@keyframes slideTestimonials {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}

/* Testimonials Grid - 5 columns */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
    margin-bottom: 4rem;
}

.testimonial-item {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    border: 1px solid rgba(92, 0, 169, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    width: auto;
    min-width: 250px;
    max-width: 350px;
    flex-shrink: 0;
    height: fit-content;
}

.testimonial-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #5b00aa, #5b00aa);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.testimonial-item:hover {
    transform: translateY(-3px);
}

.testimonial-item:hover::before {
    opacity: 1;
}

.testimonial-item.featured {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 100%);
    border: 2px solid rgba(92, 0, 169, 0.2);
}

.testimonial-item.featured::before {
    opacity: 1;
}

/* Testimonial Content */
.testimonial-content {
    margin-bottom: 1.5rem;
}

.quote-icon {
    color: #5b00aa;
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    opacity: 0.7;
}

.testimonial-quote {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #374151;
    font-style: italic;
    margin: 0;
    position: relative;
}

.rating-stars {
    display: flex;
    gap: 0.2rem;
    margin-top: 1rem;
}

.rating-stars i {
    color: #fbbf24;
    font-size: 0.9rem;
}

/* Testimonial Author */
.testimonial-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.author-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: linear-gradient(135deg, #5b00aa, #5b00aa);
    border: 2px solid rgba(92, 0, 169, 0.1);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.author-avatar i {
    color: white;
    font-size: 1.2rem;
}

.author-details {
    flex: 1;
}

.author-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: #141515;
    margin: 0 0 0.2rem 0;
}

.author-location {
    font-size: 0.75rem;
    color: #9ca3af;
    margin: 0;
}

/* Stats Summary */
.testimonials-stats {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid rgba(92, 0, 169, 0.1);
    max-width: 600px;
    margin: 0 auto;
}

.stats-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
}

.stat-item {
    text-align: center;
    flex: 1;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #5b00aa, #5b00aa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    color: #6b7280;
    font-weight: 500;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, transparent, #e5e7eb, transparent);
}

/* Responsive Design */
@media (max-width: 1400px) {
    .testimonials-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 1200px) {
    .testimonials-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .testimonial-item {
        padding: 1.25rem;
        width: 100%;
    }
    
    .testimonial-quote {
        font-size: 0.9rem;
    }
    
    .author-name {
        font-size: 0.9rem;
    }
    
    
    .author-location {
        font-size: 0.7rem;
    }
}

@media (max-width: 480px) {
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .testimonial-item {
        padding: 1rem;
    }
    
    .testimonial-quote {
        font-size: 0.85rem;
    }
}

/* Animation Enhancements */
.testimonial-item {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hover Effects */
.testimonial-item:hover .quote-icon {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

.testimonial-item:hover .author-avatar {
    border-color: rgba(92, 0, 169, 0.3);
    transition: border-color 0.3s ease;
}

/* Pause animation on hover */
.testimonials-slider-container:hover .testimonials-slider {
    animation-play-state: paused;
}

/* Additional pricing button fixes */
.pricing-preview-card .pricing-btn {
    padding: 8px 12px !important;
    font-size: 11px !important;
    min-height: 32px !important;
    border-radius: 8px !important;
}

.pricing-preview-card .pricing-btn i {
    font-size: 12px !important;
}

.pricing-preview-card .featured-badge {
    top: -5px !important;
    right: 15px !important;
    padding: 4px 12px !important;
    font-size: 10px !important;
    border-radius: 15px !important;
}
