/**
 * COMPACT: company-testimonials.css - REDUCED STRIP SIZE
 * Much smaller, more efficient design
 */

/* =============================================
 * HERO SECTION - KEEP EXISTING BUT COMPACT
 * ============================================= */

.hero-slideshow {
    position: relative;
    background: linear-gradient(135deg, var(--primary-ocean-blue) 0%, var(--primary-emerald) 100%);
    color: var(--text-white);
    padding: var(--spacing-16) 0 var(--spacing-12) 0; /* Reduced from 20/16 */
    margin-bottom: 0;
    overflow: hidden;
    min-height: 60vh; /* Reduced from 70vh */
    display: flex;
    align-items: center;
}

/* Hero background layers - keep existing */
.hero-bg-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: opacity 2s ease-in-out;
    z-index: 0;
}

.hero-bg-layer-0 { opacity: 1; z-index: 1; }
.hero-bg-layer-1 { opacity: 0; z-index: 0; }

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(30, 136, 229, 0.15) 0%, rgba(0, 0, 0, 0.3) 30%, rgba(0, 0, 0, 0.5) 70%, rgba(46, 125, 50, 0.15) 100%);
    z-index: 2;
    pointer-events: none;
}

.hero-glow {
    position: absolute;
    bottom: -40px; /* Reduced from -80px */
    left: 0;
    width: 100%;
    height: 60px; /* Reduced from 120px */
    background: radial-gradient(ellipse at center, rgba(255, 214, 0, 0.4) 0%, rgba(30, 136, 229, 0.3) 30%, rgba(46, 125, 50, 0.2) 60%, transparent 80%);
    pointer-events: none;
    z-index: 3;
    filter: blur(20px); /* Reduced from 40px */
    animation: glowPulse 8s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.1); }
}

.hero-slideshow .container {
    position: relative;
    z-index: 4;
}

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

.hero-title {
    font-family: var(--font-display);
    font-size: var(--text-4xl); /* Reduced from 5xl */
    font-weight: var(--font-weight-bold);
    margin-bottom: var(--spacing-3); /* Reduced from 4 */
    color: var(--text-white) !important;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.8), 0 8px 16px rgba(0, 0, 0, 0.6);
    animation: fadeInUp 1s ease-out;
    position: relative;
}

.hero-title::after {
    content: "";
    position: absolute;
    bottom: -10px; /* Reduced from -15px */
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px; /* Reduced from 3px */
    background: linear-gradient(90deg, #FFD600, #FFEB3B, #FFD600);
    border-radius: 2px;
    animation: underlineExpand 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) 1s both;
    box-shadow: 0 2px 10px rgba(255, 214, 0, 0.6); /* Reduced shadow */
}

@keyframes underlineExpand {
    0% { width: 0; opacity: 0; }
    100% { width: 70px; opacity: 1; } /* Reduced from 90px */
}

.hero-subtitle {
    font-size: var(--text-lg); /* Reduced from xl */
    margin-bottom: var(--spacing-4); /* Reduced from 6 */
    max-width: 600px; /* Reduced from 700px */
    margin-left: auto;
    margin-right: auto;
    color: rgba(255, 255, 255, 0.95) !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
    animation: fadeInUp 1s ease-out 0.3s both;
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--spacing-2); /* Reduced from 3 */
    margin-top: var(--spacing-4); /* Reduced from 6 */
    animation: fadeInUp 1s ease-out 0.6s both;
}

.hero-badges .badge {
    font-size: var(--text-xs); /* Reduced from sm */
    padding: var(--spacing-2) var(--spacing-4); /* Reduced padding */
    border-radius: var(--radius-full);
    font-weight: var(--font-weight-semibold);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition-elegant);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3); /* Reduced shadow */
}

/* Badge colors - keep existing */
.hero-badges .badge.bg-primary { 
    background: linear-gradient(135deg, #1E88E5, #42A5F5) !important; 
    color: #ffffff !important;
}
.hero-badges .badge.bg-warning { 
    background: linear-gradient(135deg, #FFD600, #FFEB3B) !important; 
    color: #1565C0 !important;
}
.hero-badges .badge.bg-success { 
    background: linear-gradient(135deg, #2E7D32, #4CAF50) !important; 
    color: #ffffff !important;
}
.hero-badges .badge.bg-info { 
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0.1)) !important; 
    color: #ffffff !important;
}

.hero-badges .badge:hover {
    transform: translateY(-1px); /* Reduced from -2px */
    box-shadow: var(--shadow-md); /* Reduced shadow */
}

/* =============================================
 * STATISTICS SECTION - MUCH MORE COMPACT
 * ============================================= */

.stats-section {
    background: var(--gradient-ocean);
    color: var(--text-white);
    padding: var(--spacing-4) 0; /* DRASTICALLY REDUCED from 8 */
    position: relative;
    margin-bottom: 0;
    border-bottom: 2px solid var(--accent-golden); /* Reduced from 3px */
}

.stats-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Ccircle cx='20' cy='20' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.2; /* Reduced opacity */
}

.stat-card {
    text-align: center;
    padding: var(--spacing-2); /* DRASTICALLY REDUCED from 4 */
    position: relative;
    z-index: 1;
}

.stat-icon {
    color: var(--accent-golden);
    margin-bottom: var(--spacing-1); /* Reduced from 2 */
    display: block;
}

.stat-icon i {
    font-size: var(--text-xl); /* Reduced from 2xl */
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.stat-number {
    font-family: var(--font-display);
    font-size: var(--text-2xl); /* Reduced from 3xl */
    font-weight: var(--font-weight-bold);
    color: var(--accent-golden);
    display: block;
    margin-bottom: var(--spacing-0-5); /* Reduced from 1 */
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    line-height: var(--leading-none);
}

.stat-label {
    font-size: var(--text-xs); /* Reduced from sm */
    font-weight: var(--font-weight-medium);
    color: var(--text-white);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.9;
    margin: 0;
}

/* =============================================
 * TESTIMONIALS SECTION - COMPACT SPACING
 * ============================================= */

.testimonials-section {
    position: relative;
    background: var(--bg-primary);
    padding: var(--spacing-12) 0; /* Reduced from 16 */
    overflow: hidden;
}

.testimonials-section h2 {
    font-family: var(--font-display);
    font-weight: var(--font-weight-bold);
    color: var(--text-primary);
    text-align: center;
    margin-bottom: var(--spacing-4); /* Reduced from 6 */
    position: relative;
    animation: fadeInUp 1s ease-out;
}

.testimonials-section h2::after {
    content: "";
    position: absolute;
    bottom: -8px; /* Reduced from -10px */
    left: 50%;
    transform: translateX(-50%);
    width: 60px; /* Reduced from 80px */
    height: 2px; /* Reduced from 3px */
    background: var(--gradient-golden);
    border-radius: var(--radius-full);
    animation: slideIn 1.5s ease-out;
}

.testimonials-section .lead {
    font-size: var(--text-lg); /* Reduced from xl */
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: var(--spacing-6); /* Reduced from 8 */
    max-width: 500px; /* Reduced from 600px */
    margin-left: auto;
    margin-right: auto;
    line-height: var(--leading-relaxed);
    animation: fadeInUp 1s ease-out 0.3s both;
}

/* =============================================
 * SEARCH AND FILTER - MORE COMPACT
 * ============================================= */

.search-container {
    margin-bottom: var(--spacing-4); /* Reduced from 6 */
    animation: fadeInUp 1s ease-out 0.4s both;
}

.search-container .input-group {
    max-width: 400px; /* Reduced from 500px */
    margin: 0 auto;
    box-shadow: var(--shadow-sm); /* Reduced shadow */
    border-radius: var(--radius-lg); /* Reduced from xl */
    overflow: hidden;
}

.search-container .form-control {
    border: 1px solid var(--border-primary);
    border-right: none;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-weight: var(--font-weight-normal);
    border-radius: var(--radius-lg) 0 0 var(--radius-lg);
    padding: var(--spacing-2-5) var(--spacing-3); /* Reduced padding */
    font-size: var(--text-xs); /* Reduced from sm */
}

.search-container .form-control:focus {
    border-color: var(--primary-ocean-blue);
    box-shadow: 0 0 0 0.15rem rgba(var(--primary-ocean-blue-rgb), 0.25); /* Reduced shadow */
    background: var(--bg-primary);
    color: var(--text-primary);
}

.search-container .input-group-text {
    background: var(--primary-ocean-blue);
    color: var(--text-white);
    border: 1px solid var(--primary-ocean-blue);
    border-left: none;
    font-weight: var(--font-weight-medium);
    padding: var(--spacing-2-5); /* Reduced padding */
}

.search-container .btn {
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
    border: 1px solid var(--primary-ocean-blue);
    border-left: none;
    padding: var(--spacing-2-5) var(--spacing-3); /* Reduced padding */
    font-size: var(--text-xs); /* Reduced from sm */
}

/* =============================================
 * FILTER CONTAINER - MUCH MORE COMPACT
 * ============================================= */

.filter-container {
    margin-bottom: var(--spacing-6); /* Reduced from 8 */
    text-align: center;
    animation: fadeInUp 1s ease-out 0.5s both;
}

.filter-title {
    font-family: var(--font-display);
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
    margin-bottom: var(--spacing-2); /* Reduced from 3 */
    font-size: var(--text-base); /* Reduced from lg */
}

/* Region filter buttons - MUCH smaller */
.testimonial-filter,
.filter-btn {
    display: inline-flex;
    align-items: center;
    padding: var(--spacing-1-5) var(--spacing-3); /* Reduced padding */
    margin: var(--spacing-0-5); /* Reduced margin */
    background: var(--bg-primary);
    color: var(--text-primary);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-lg); /* Reduced from full */
    font-family: var(--font-primary);
    font-size: 0.7rem; /* Much smaller text */
    font-weight: var(--font-weight-medium);
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition-elegant);
    box-shadow: var(--shadow-xs);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

.testimonial-filter:hover,
.filter-btn:hover {
    background: var(--primary-ocean-blue);
    color: var(--text-white);
    border-color: var(--primary-ocean-blue);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
    text-decoration: none;
}

.testimonial-filter.active,
.filter-btn.active {
    background: var(--accent-golden);
    color: var(--primary-ocean-blue-dark);
    border-color: var(--accent-golden);
    box-shadow: var(--shadow-sm); /* Reduced shadow */
    transform: translateY(-1px);
}

.testimonial-filter i,
.filter-btn i {
    margin-right: var(--spacing-0-5); /* Reduced from 1 */
    font-size: 0.65rem; /* Much smaller icon */
}

.testimonial-filter-group {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--spacing-0-5); /* Reduced gap */
    max-width: 800px; /* Reduced from 1000px */
    margin: 0 auto;
}

/* Experience filter dropdown - more compact */
#experience-filter {
    background: var(--bg-primary);
    color: var(--text-primary);
    border: 1px solid var(--border-primary); /* Reduced from 2px */
    border-radius: var(--radius-md); /* Reduced from lg */
    padding: var(--spacing-2) var(--spacing-3); /* Reduced padding */
    font-size: var(--text-xs); /* Reduced from sm */
    font-weight: var(--font-weight-medium);
    box-shadow: var(--shadow-xs); /* Reduced shadow */
    transition: var(--transition-elegant);
    cursor: pointer;
    min-height: 36px; /* Reduced from 44px */
}

#experience-filter:focus {
    border-color: var(--primary-ocean-blue);
    box-shadow: 0 0 0 0.15rem rgba(var(--primary-ocean-blue-rgb), 0.25); /* Reduced shadow */
    background: var(--bg-primary);
    color: var(--text-primary);
    outline: none;
}

#experience-filter:hover {
    border-color: var(--primary-ocean-blue);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

/* =============================================
 * TESTIMONIAL CARDS - KEEP EXISTING
 * ============================================= */

.testimonial-item {
    margin-bottom: var(--spacing-4); /* Reduced from 6 */
    animation: fadeInScale 0.6s ease-out;
}

.testimonial-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg); /* Reduced from xl */
    padding: var(--spacing-5); /* Reduced from 6 */
    height: 100%;
    min-height: 350px; /* Ensure minimum height for full content */
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-elegant);
    position: relative;
    overflow: visible; /* Changed from hidden to visible */
}

.testimonial-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px; /* Reduced from 3px */
    background: var(--primary-ocean-blue);
    transition: var(--transition-elegant);
}

.testimonial-card:hover {
    transform: translateY(-2px); /* Reduced from -4px */
    box-shadow: var(--shadow-md); /* Reduced shadow */
    border-color: var(--primary-ocean-blue);
}

.testimonial-card:hover::before {
    background: var(--accent-golden);
    height: 3px; /* Reduced from 4px */
}

/* Keep existing testimonial content styles but reduce sizes */
.testimonial-content {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.testimonial-text {
    font-size: var(--text-sm);
    line-height: var(--leading-relaxed);
    color: var(--text-secondary);
    margin-bottom: var(--spacing-3); /* Reduced from 4 */
    flex-grow: 1;
    font-style: italic;
    position: relative;
    padding-left: var(--spacing-3); /* Reduced from 4 */
}

.testimonial-text::before {
    content: '"';
    position: absolute;
    left: 0;
    top: -3px; /* Reduced from -5px */
    font-size: var(--text-xl); /* Reduced from 2xl */
    color: var(--accent-golden);
    font-family: var(--font-display);
    font-weight: var(--font-weight-bold);
    line-height: 1;
}

.author-info {
    display: flex;
    align-items: center;
    gap: var(--spacing-2-5); /* Reduced from 3 */
    margin-top: auto;
}

.author-image img {
    width: 45px; /* Reduced from 50px */
    height: 45px; /* Reduced from 50px */
    border-radius: var(--radius-full);
    object-fit: cover;
    border: 2px solid var(--accent-golden);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-elegant);
}

.author-name {
    font-family: var(--font-display);
    font-weight: var(--font-weight-semibold);
    font-size: var(--text-sm); /* Reduced from base */
    color: var(--text-primary);
    margin: 0 0 var(--spacing-0-5) 0;
    line-height: var(--leading-tight);
}

.author-location {
    color: var(--text-tertiary);
    font-size: 0.7rem; /* Much smaller */
    font-weight: var(--font-weight-medium);
    margin: 0 0 var(--spacing-0-5) 0; /* Reduced from 1 */
    display: flex;
    align-items: center;
    gap: var(--spacing-0-5);
}

.testimonial-rating i {
    color: var(--accent-golden);
    font-size: 0.7rem; /* Much smaller stars */
    transition: var(--transition-fast);
}

/* =============================================
 * RESPONSIVE DESIGN - UPDATED FOR COMPACT
 * ============================================= */

@media (max-width: 767.98px) {
    .hero-slideshow {
        padding: var(--spacing-8) 0 var(--spacing-6) 0;
        min-height: 45vh; /* Much more compact on mobile */
    }
    
    .stats-section {
        padding: var(--spacing-2) 0; /* Even more compact on mobile */
    }
    
    .stat-card {
        padding: var(--spacing-1);
    }
    
    .stat-number {
        font-size: var(--text-xl);
    }
    
    .stat-label {
        font-size: 0.65rem;
    }
    
    .testimonials-section {
        padding: var(--spacing-8) 0; /* Reduced from 10 */
    }
    
    .testimonial-filter,
    .filter-btn {
        font-size: 0.65rem;
        padding: var(--spacing-1) var(--spacing-2);
        margin: var(--spacing-0-5);
    }
    
    #experience-filter {
        font-size: 0.7rem;
        padding: var(--spacing-1-5) var(--spacing-2);
        min-height: 32px;
    }
}

@media (max-width: 575.98px) {
    .hero-slideshow {
        padding: var(--spacing-6) 0 var(--spacing-4) 0;
        min-height: 40vh;
    }
    
    .stats-section {
        padding: var(--spacing-1-5) 0; /* Ultra compact on small screens */
    }
    
    .testimonials-section {
        padding: var(--spacing-6) 0;
    }
    
    .filter-container {
        margin-bottom: var(--spacing-4);
    }
    
    .testimonial-filter,
    .filter-btn {
        font-size: 0.6rem;
        padding: var(--spacing-0-5) var(--spacing-1-5);
    }
}

/* =============================================
 * ANIMATIONS - KEEP EXISTING
 * ============================================= */

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

@keyframes fadeInScale {
    from { opacity: 0; transform: scale(0.95); } /* Reduced from 0.9 */
    to { opacity: 1; transform: scale(1); }
}

@keyframes slideIn {
    from { width: 0; }
    to { width: 60px; } /* Reduced from 80px */
}

/* =============================================
 * LOADING AND OTHER STATES - COMPACT
 * ============================================= */

#testimonial-loading {
    text-align: center;
    padding: var(--spacing-12) 0; /* Reduced from 20 */
    color: var(--text-secondary);
}

#testimonial-loading .spinner-border {
    width: 2rem; /* Reduced from 3rem */
    height: 2rem;
    border-width: 0.25em; /* Reduced from 0.3em */
    color: var(--primary-ocean-blue);
}

#testimonial-loading .lead {
    margin-top: var(--spacing-3); /* Reduced from 4 */
    color: var(--text-primary);
    font-weight: var(--font-weight-medium);
    font-size: var(--text-sm); /* Reduced size */
}

#no-results {
    text-align: center;
    padding: var(--spacing-8) 0; /* Reduced from 16 */
    color: var(--text-secondary);
}

.filtered-count {
    font-size: var(--text-xs); /* Keep small */
    color: var(--text-muted);
    font-weight: var(--font-weight-medium);
    margin-bottom: var(--spacing-3); /* Reduced from 4 */
}

/* =============================================
 * CTA SECTION - COMPACT
 * ============================================= */

.cta-section {
    background: var(--gradient-premium);
    color: var(--text-white);
    padding: var(--spacing-8) 0; /* Reduced from 12 */
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-top: var(--spacing-6); /* Reduced from 8 */
}

.cta-title {
    font-family: var(--font-display);
    font-size: var(--text-2xl); /* Reduced from 3xl */
    font-weight: var(--font-weight-bold);
    margin-bottom: var(--spacing-2); /* Reduced from 3 */
    color: var(--text-white);
    line-height: var(--leading-tight);
}

.cta-text {
    font-size: var(--text-base); /* Reduced from lg */
    font-weight: var(--font-weight-medium);
    margin-bottom: var(--spacing-4); /* Reduced from 6 */
    max-width: 500px; /* Reduced from 600px */
    margin-left: auto;
    margin-right: auto;
    line-height: var(--leading-relaxed);
    opacity: 0.95;
}

.btn-cta {
    background: var(--gradient-golden);
    color: var(--primary-ocean-blue-dark);
    border: none;
    padding: var(--spacing-2-5) var(--spacing-6); /* Reduced padding */
    font-size: var(--text-sm); /* Reduced from base */
    font-weight: var(--font-weight-bold);
    border-radius: var(--radius-lg); /* Reduced from xl */
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-elegant);
    box-shadow: var(--shadow-sm); /* Reduced shadow */
    position: relative;
    overflow: hidden;
    min-height: 40px; /* Reduced from 48px */
    letter-spacing: 0.01em;
}

/* Keep existing CTA hover effects but with reduced transforms */
.btn-cta:hover {
    background: linear-gradient(135deg, var(--accent-golden-light) 0%, var(--accent-golden) 100%);
    color: var(--primary-ocean-blue-dark);
    transform: translateY(-1px); /* Reduced from -2px */
    box-shadow: var(--shadow-md); /* Reduced shadow */
    text-decoration: none;
}