/**
 * THINKCLUSIVE Testimonials Styles
 * Modern, professional testimonials styling with Thai language support
 * Author: THINKCLUSIVE Development Team
 * Version: 1.0
 */

/* ===============================
   CSS VARIABLES & ROOT STYLES
   =============================== */
:root {
    /* Primary Colors */
    --testimonials-primary: #2563eb;
    --testimonials-primary-hover: #1d4ed8;
    --testimonials-primary-light: #3b82f6;
    
    /* Secondary Colors */
    --testimonials-secondary: #f59e0b;
    --testimonials-secondary-hover: #d97706;
    
    /* Neutral Colors */
    --testimonials-white: #ffffff;
    --testimonials-gray-50: #f9fafb;
    --testimonials-gray-100: #f3f4f6;
    --testimonials-gray-200: #e5e7eb;
    --testimonials-gray-300: #d1d5db;
    --testimonials-gray-400: #9ca3af;
    --testimonials-gray-500: #6b7280;
    --testimonials-gray-600: #4b5563;
    --testimonials-gray-700: #374151;
    --testimonials-gray-800: #1f2937;
    --testimonials-gray-900: #111827;
    
    /* Star Colors */
    --testimonials-star-gold: #fbbf24;
    --testimonials-star-empty: #e5e7eb;
    
    /* Spacing */
    --testimonials-spacing-xs: 0.25rem;
    --testimonials-spacing-sm: 0.5rem;
    --testimonials-spacing-md: 1rem;
    --testimonials-spacing-lg: 1.5rem;
    --testimonials-spacing-xl: 2rem;
    --testimonials-spacing-2xl: 3rem;
    --testimonials-spacing-3xl: 4rem;
    
    /* Border Radius */
    --testimonials-radius-sm: 0.375rem;
    --testimonials-radius-md: 0.5rem;
    --testimonials-radius-lg: 0.75rem;
    --testimonials-radius-xl: 1rem;
    --testimonials-radius-full: 9999px;
    
    /* Shadows */
    --testimonials-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --testimonials-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --testimonials-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --testimonials-shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    /* Transitions */
    --testimonials-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --testimonials-transition-fast: all 0.15s ease-out;
    
    /* Typography */
    --testimonials-font-family-thai: 'Sarabun', 'Roboto', sans-serif;
    --testimonials-font-family-english: 'Kumbh Sans', 'Roboto', sans-serif;
}

/* ===============================
   TESTIMONIALS PAGE HERO SECTION
   =============================== */
.testimonials-hero {
    background: linear-gradient(135deg, var(--testimonials-primary) 0%, var(--testimonials-primary-light) 100%);
    color: var(--testimonials-white);
    padding: var(--testimonials-spacing-3xl) 0;
    position: relative;
    overflow: hidden;
}

.testimonials-hero::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="50" cy="50" r="1" fill="%23ffffff" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.1;
}

.testimonials-hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.testimonials-hero h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    margin-bottom: var(--testimonials-spacing-lg);
    font-family: var(--testimonials-font-family-thai);
}

.testimonials-hero p {
    font-size: 1.25rem;
    margin-bottom: var(--testimonials-spacing-xl);
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.testimonials-stats-row {
    display: flex;
    justify-content: center;
    gap: var(--testimonials-spacing-xl);
    margin-top: var(--testimonials-spacing-xl);
    flex-wrap: wrap;
}

.testimonials-stat-item {
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: var(--testimonials-radius-lg);
    padding: var(--testimonials-spacing-lg);
    min-width: 150px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.testimonials-stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--testimonials-secondary);
    margin-bottom: var(--testimonials-spacing-xs);
}

.testimonials-stat-label {
    font-size: 0.875rem;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ===============================
   TESTIMONIALS CARDS & GRID
   =============================== */
.testimonials-section {
    padding: var(--testimonials-spacing-3xl) 0;
    background: var(--testimonials-gray-50);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--testimonials-spacing-xl);
    margin-top: var(--testimonials-spacing-2xl);
}

.testimonial-card {
    background: var(--testimonials-white);
    border-radius: var(--testimonials-radius-xl);
    padding: var(--testimonials-spacing-xl);
    box-shadow: var(--testimonials-shadow-md);
    border: 1px solid var(--testimonials-gray-200);
    transition: var(--testimonials-transition);
    position: relative;
    overflow: hidden;
}

.testimonial-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--testimonials-shadow-xl);
    border-color: var(--testimonials-primary);
}

.testimonial-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--testimonials-primary), var(--testimonials-secondary));
    opacity: 0;
    transition: var(--testimonials-transition);
}

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

/* Featured testimonial styling */
.testimonial-card.featured {
    background: linear-gradient(135deg, var(--testimonials-white) 0%, #fefcf9 100%);
    border: 2px solid var(--testimonials-secondary);
    position: relative;
}

.testimonial-card.featured::after {
    content: 'แนะนำ';
    position: absolute;
    top: var(--testimonials-spacing-md);
    right: var(--testimonials-spacing-md);
    background: var(--testimonials-secondary);
    color: var(--testimonials-white);
    padding: var(--testimonials-spacing-xs) var(--testimonials-spacing-sm);
    border-radius: var(--testimonials-radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ===============================
   TESTIMONIAL CARD CONTENT
   =============================== */
.testimonial-header {
    display: flex;
    align-items: center;
    gap: var(--testimonials-spacing-md);
    margin-bottom: var(--testimonials-spacing-lg);
}

.testimonial-avatar {
    width: 60px;
    height: 60px;
    border-radius: var(--testimonials-radius-full);
    object-fit: cover;
    border: 3px solid var(--testimonials-gray-200);
    transition: var(--testimonials-transition);
}

.testimonial-card:hover .testimonial-avatar {
    border-color: var(--testimonials-primary);
}

.testimonial-avatar-placeholder {
    width: 60px;
    height: 60px;
    border-radius: var(--testimonials-radius-full);
    background: var(--testimonials-gray-200);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--testimonials-gray-500);
    font-size: 1.5rem;
    border: 3px solid var(--testimonials-gray-200);
    transition: var(--testimonials-transition);
}

.testimonial-client-info h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--testimonials-gray-900);
    margin: 0 0 var(--testimonials-spacing-xs) 0;
    font-family: var(--testimonials-font-family-thai);
}

.testimonial-client-position {
    font-size: 0.875rem;
    color: var(--testimonials-gray-600);
    margin-bottom: 2px;
}

.testimonial-client-company {
    font-size: 0.875rem;
    color: var(--testimonials-primary);
    font-weight: 500;
}

.testimonial-text {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--testimonials-gray-700);
    margin-bottom: var(--testimonials-spacing-lg);
    position: relative;
    font-family: var(--testimonials-font-family-thai);
    font-style: italic;
}

.testimonial-text::before {
    content: '"';
    font-size: 3rem;
    color: var(--testimonials-primary);
    opacity: 0.3;
    position: absolute;
    top: -10px;
    left: -10px;
    font-family: Georgia, serif;
    line-height: 1;
}

.testimonial-text::after {
    content: '"';
    font-size: 3rem;
    color: var(--testimonials-primary);
    opacity: 0.3;
    position: absolute;
    bottom: -25px;
    right: -5px;
    font-family: Georgia, serif;
    line-height: 1;
}

/* ===============================
   TESTIMONIAL FOOTER & METADATA
   =============================== */
.testimonial-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--testimonials-spacing-md);
    border-top: 1px solid var(--testimonials-gray-200);
}

.testimonial-rating {
    display: flex;
    gap: 2px;
}

.testimonial-rating i {
    color: var(--testimonials-star-gold);
    font-size: 1rem;
}

.testimonial-rating i.far {
    color: var(--testimonials-star-empty);
}

.testimonial-service-badge {
    background: var(--testimonials-gray-100);
    color: var(--testimonials-gray-700);
    padding: var(--testimonials-spacing-xs) var(--testimonials-spacing-sm);
    border-radius: var(--testimonials-radius-sm);
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.testimonial-date {
    font-size: 0.75rem;
    color: var(--testimonials-gray-500);
    margin-top: var(--testimonials-spacing-xs);
}

/* ===============================
   TESTIMONIALS FILTERS
   =============================== */
.testimonials-filters {
    text-align: center;
    margin-bottom: var(--testimonials-spacing-2xl);
}

.testimonials-filters h2 {
    font-size: 2rem;
    font-weight: 600;
    color: var(--testimonials-gray-900);
    margin-bottom: var(--testimonials-spacing-lg);
    font-family: var(--testimonials-font-family-thai);
}

.testimonials-filter-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--testimonials-spacing-sm);
    margin-bottom: var(--testimonials-spacing-lg);
}

.testimonials-filter-btn {
    background: var(--testimonials-white);
    border: 2px solid var(--testimonials-gray-300);
    color: var(--testimonials-gray-700);
    padding: var(--testimonials-spacing-sm) var(--testimonials-spacing-lg);
    border-radius: var(--testimonials-radius-full);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--testimonials-transition);
    text-decoration: none;
    display: inline-block;
}

.testimonials-filter-btn:hover,
.testimonials-filter-btn.active {
    background: var(--testimonials-primary);
    border-color: var(--testimonials-primary);
    color: var(--testimonials-white);
    transform: translateY(-2px);
    box-shadow: var(--testimonials-shadow-md);
}

/* ===============================
   TESTIMONIALS CAROUSEL/WIDGET
   =============================== */
.testimonials-carousel {
    position: relative;
    overflow: hidden;
    background: var(--testimonials-white);
    border-radius: var(--testimonials-radius-xl);
    box-shadow: var(--testimonials-shadow-lg);
}

.testimonials-carousel-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.testimonials-carousel-slide {
    min-width: 100%;
    padding: var(--testimonials-spacing-2xl);
}

.testimonials-carousel-controls {
    position: absolute;
    bottom: var(--testimonials-spacing-lg);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: var(--testimonials-spacing-sm);
    z-index: 10;
}

.testimonials-carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: var(--testimonials-radius-full);
    background: var(--testimonials-gray-400);
    cursor: pointer;
    transition: var(--testimonials-transition-fast);
}

.testimonials-carousel-dot.active {
    background: var(--testimonials-primary);
    transform: scale(1.2);
}

.testimonials-carousel-arrows {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    width: 100%;
    padding: 0 var(--testimonials-spacing-lg);
    pointer-events: none;
}

.testimonials-carousel-arrow {
    width: 48px;
    height: 48px;
    border-radius: var(--testimonials-radius-full);
    background: var(--testimonials-white);
    border: 2px solid var(--testimonials-gray-300);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--testimonials-transition);
    pointer-events: all;
    box-shadow: var(--testimonials-shadow-md);
}

.testimonials-carousel-arrow:hover {
    background: var(--testimonials-primary);
    border-color: var(--testimonials-primary);
    color: var(--testimonials-white);
    transform: scale(1.1);
}

/* ===============================
   TESTIMONIALS WIDGET VARIATIONS
   =============================== */
.testimonials-widget {
    background: var(--testimonials-white);
    border-radius: var(--testimonials-radius-lg);
    padding: var(--testimonials-spacing-xl);
    box-shadow: var(--testimonials-shadow-md);
    margin-bottom: var(--testimonials-spacing-xl);
}

.testimonials-widget-compact .testimonial-card {
    padding: var(--testimonials-spacing-lg);
    margin-bottom: var(--testimonials-spacing-md);
}

.testimonials-widget-compact .testimonial-header {
    margin-bottom: var(--testimonials-spacing-md);
}

.testimonials-widget-compact .testimonial-avatar {
    width: 48px;
    height: 48px;
}

.testimonials-widget-compact .testimonial-text {
    font-size: 0.875rem;
    margin-bottom: var(--testimonials-spacing-md);
}

/* Horizontal layout for widgets */
.testimonials-widget-horizontal {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--testimonials-spacing-lg);
}

/* ===============================
   TESTIMONIALS STATISTICS SECTION
   =============================== */
.testimonials-statistics {
    background: var(--testimonials-gray-900);
    color: var(--testimonials-white);
    padding: var(--testimonials-spacing-3xl) 0;
    text-align: center;
}

.testimonials-statistics h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: var(--testimonials-spacing-xl);
    font-family: var(--testimonials-font-family-thai);
}

.testimonials-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--testimonials-spacing-xl);
    max-width: 1000px;
    margin: 0 auto;
}

.testimonials-stat-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: var(--testimonials-radius-lg);
    padding: var(--testimonials-spacing-xl);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--testimonials-transition);
}

.testimonials-stat-card:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.15);
}

.testimonials-stat-icon {
    font-size: 2.5rem;
    color: var(--testimonials-secondary);
    margin-bottom: var(--testimonials-spacing-md);
}

.testimonials-stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--testimonials-white);
    margin-bottom: var(--testimonials-spacing-xs);
}

.testimonials-stat-description {
    font-size: 0.875rem;
    opacity: 0.8;
}

/* ===============================
   CLIENT LOGOS SECTION
   =============================== */
.testimonials-client-logos {
    background: var(--testimonials-white);
    padding: var(--testimonials-spacing-2xl) 0;
    text-align: center;
}

.testimonials-client-logos h2 {
    font-size: 1.5rem;
    color: var(--testimonials-gray-600);
    margin-bottom: var(--testimonials-spacing-xl);
    font-weight: 400;
}

.testimonials-logos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: var(--testimonials-spacing-lg);
    align-items: center;
    opacity: 0.6;
    transition: var(--testimonials-transition);
}

.testimonials-logos-grid:hover {
    opacity: 1;
}

.testimonials-client-logo {
    height: 60px;
    object-fit: contain;
    filter: grayscale(100%);
    transition: var(--testimonials-transition);
}

.testimonials-client-logo:hover {
    filter: grayscale(0%);
    transform: scale(1.1);
}

/* ===============================
   TESTIMONIALS CTA SECTION
   =============================== */
.testimonials-cta {
    background: linear-gradient(135deg, var(--testimonials-primary) 0%, var(--testimonials-primary-light) 100%);
    color: var(--testimonials-white);
    padding: var(--testimonials-spacing-3xl) 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.testimonials-cta::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="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1.5" fill="%23ffffff" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)"/></svg>');
}

.testimonials-cta-content {
    position: relative;
    z-index: 1;
    max-width: 600px;
    margin: 0 auto;
}

.testimonials-cta h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: var(--testimonials-spacing-lg);
    font-family: var(--testimonials-font-family-thai);
}

.testimonials-cta p {
    font-size: 1.25rem;
    margin-bottom: var(--testimonials-spacing-xl);
    opacity: 0.9;
    line-height: 1.6;
}

.testimonials-cta-buttons {
    display: flex;
    gap: var(--testimonials-spacing-md);
    justify-content: center;
    flex-wrap: wrap;
}

.testimonials-cta-btn {
    background: var(--testimonials-white);
    color: var(--testimonials-primary);
    border: 2px solid transparent;
    padding: var(--testimonials-spacing-md) var(--testimonials-spacing-xl);
    border-radius: var(--testimonials-radius-lg);
    font-size: 1.125rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--testimonials-transition);
    display: inline-flex;
    align-items: center;
    gap: var(--testimonials-spacing-sm);
}

.testimonials-cta-btn:hover {
    background: transparent;
    color: var(--testimonials-white);
    border-color: var(--testimonials-white);
    transform: translateY(-2px);
    box-shadow: var(--testimonials-shadow-lg);
}

.testimonials-cta-btn-secondary {
    background: transparent;
    color: var(--testimonials-white);
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.testimonials-cta-btn-secondary:hover {
    background: var(--testimonials-white);
    color: var(--testimonials-primary);
    border-color: var(--testimonials-white);
}

.testimonials-phone-number {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--testimonials-spacing-sm);
    margin-top: var(--testimonials-spacing-lg);
    font-size: 1.25rem;
    font-weight: 600;
}

/* ===============================
   LOADING & STATES
   =============================== */
.testimonials-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: var(--testimonials-spacing-3xl);
}

.testimonials-loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--testimonials-gray-200);
    border-top: 4px solid var(--testimonials-primary);
    border-radius: var(--testimonials-radius-full);
    animation: testimonials-spin 1s linear infinite;
}

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

.testimonials-empty-state {
    text-align: center;
    padding: var(--testimonials-spacing-3xl);
    color: var(--testimonials-gray-500);
}

.testimonials-empty-state i {
    font-size: 4rem;
    margin-bottom: var(--testimonials-spacing-lg);
    color: var(--testimonials-gray-300);
}

/* ===============================
   MODAL & POPUP STYLES
   =============================== */
.testimonials-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: var(--testimonials-transition);
    padding: var(--testimonials-spacing-lg);
}

.testimonials-modal.active {
    opacity: 1;
    visibility: visible;
}

.testimonials-modal-content {
    background: var(--testimonials-white);
    border-radius: var(--testimonials-radius-xl);
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    padding: var(--testimonials-spacing-2xl);
    position: relative;
    transform: scale(0.9);
    transition: var(--testimonials-transition);
}

.testimonials-modal.active .testimonials-modal-content {
    transform: scale(1);
}

.testimonials-modal-close {
    position: absolute;
    top: var(--testimonials-spacing-lg);
    right: var(--testimonials-spacing-lg);
    width: 32px;
    height: 32px;
    background: var(--testimonials-gray-200);
    border: none;
    border-radius: var(--testimonials-radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--testimonials-transition);
}

.testimonials-modal-close:hover {
    background: var(--testimonials-gray-300);
}

/* ===============================
   RESPONSIVE DESIGN
   =============================== */
@media (max-width: 1024px) {
    .testimonials-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: var(--testimonials-spacing-lg);
    }
    
    .testimonials-stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }
}

@media (max-width: 768px) {
    :root {
        --testimonials-spacing-3xl: 2rem;
        --testimonials-spacing-2xl: 1.5rem;
    }
    
    .testimonials-hero {
        padding: var(--testimonials-spacing-2xl) 0;
    }
    
    .testimonials-hero h1 {
        font-size: 2rem;
    }
    
    .testimonials-hero p {
        font-size: 1rem;
    }
    
    .testimonials-stats-row {
        gap: var(--testimonials-spacing-md);
    }
    
    .testimonials-stat-item {
        min-width: 120px;
        padding: var(--testimonials-spacing-md);
    }
    
    .testimonials-stat-number {
        font-size: 2rem;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: var(--testimonials-spacing-lg);
    }
    
    .testimonial-card {
        padding: var(--testimonials-spacing-lg);
    }
    
    .testimonials-filter-buttons {
        gap: var(--testimonials-spacing-xs);
    }
    
    .testimonials-filter-btn {
        padding: var(--testimonials-spacing-xs) var(--testimonials-spacing-md);
        font-size: 0.75rem;
    }
    
    .testimonials-cta h2 {
        font-size: 2rem;
    }
    
    .testimonials-cta p {
        font-size: 1rem;
    }
    
    .testimonials-cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .testimonials-carousel-arrows {
        display: none; /* Hide arrows on mobile */
    }
    
    .testimonials-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--testimonials-spacing-md);
    }
    
    .testimonials-logos-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--testimonials-spacing-md);
    }
}

@media (max-width: 480px) {
    .testimonials-modal-content {
        padding: var(--testimonials-spacing-lg);
        margin: var(--testimonials-spacing-md);
    }
    
    .testimonials-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonials-stat-card {
        padding: var(--testimonials-spacing-lg);
    }
    
    .testimonial-header {
        flex-direction: column;
        text-align: center;
        gap: var(--testimonials-spacing-sm);
    }
    
    .testimonial-footer {
        flex-direction: column;
        gap: var(--testimonials-spacing-sm);
        align-items: flex-start;
    }
}

/* ===============================
   PRINT STYLES
   =============================== */
@media print {
    .testimonials-carousel-controls,
    .testimonials-carousel-arrows,
    .testimonials-filter-buttons,
    .testimonials-cta {
        display: none;
    }
    
    .testimonial-card {
        break-inside: avoid;
        page-break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    .testimonials-hero {
        background: none;
        color: #333;
    }
}

/* ===============================
   ACCESSIBILITY ENHANCEMENTS
   =============================== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .testimonials-carousel-track {
        transition: none;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --testimonials-primary: #0000ff;
        --testimonials-gray-300: #666666;
        --testimonials-gray-700: #333333;
    }
    
    .testimonial-card {
        border-width: 2px;
    }
}

/* Focus visible for accessibility */
.testimonials-filter-btn:focus-visible,
.testimonials-carousel-dot:focus-visible,
.testimonials-carousel-arrow:focus-visible,
.testimonials-cta-btn:focus-visible {
    outline: 2px solid var(--testimonials-secondary);
    outline-offset: 2px;
}

/* ===============================
   ANIMATION CLASSES
   =============================== */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease-out forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-30px);
    animation: slideInLeft 0.6s ease-out forwards;
}

@keyframes slideInLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.scale-in {
    opacity: 0;
    transform: scale(0.9);
    animation: scaleIn 0.4s ease-out forwards;
}

@keyframes scaleIn {
    to {
        opacity: 1;
        transform: scale(1);
    }
}