.testimonial-hero {
    background-image: url('/images/testimonials/testimonial-hero.png');
    background-color: #1a1a1a; /* Fallback background color */
    height: 500px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 90px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.8));
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 6rem;
    font-weight: 900;
    position: relative;
    display: inline-block;
    color: transparent;
    -webkit-text-stroke: 2px #fff;
    margin-bottom: 30px;
}

.hero-content h1::after {
    content: 'TESTIMONIALS';
    position: absolute;
    left: 0;
    top: 0;
    width: 0;
    height: 100%;
    color: #fff;
    -webkit-text-stroke: 0px;
    border-right: 3px solid #fff;
    overflow: hidden;
    animation: typing 6s steps(12) infinite;
}

.hero-content p {
    font-size: 1.3rem;
    color: #fff;
    opacity: 0.9;
    transform: translateY(20px);
    animation: fadeInUp 0.8s forwards;
}

.testimonial-stats {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.stat-item {
    text-align: center;
    padding: 40px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-10px);
}

.stat-item i {
    font-size: 3rem;
    color: #2563eb;  /* Same blue color as the numbers */
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.stat-item:hover i {
    transform: scale(1.2) rotate(5deg);
}

.stat-item .number {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 10px;
    display: block;
}

.stat-item p {
    color: var(--primary-gray);
    font-size: 1.2rem;
}

.testimonials {
    padding: 100px 0;
    background: #f9f9f9;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.testimonial-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(30px);
}

.testimonial-card.animate {
    opacity: 1;
    transform: translateY(0);
}

.testimonial-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

.client-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.client-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.testimonial-card:hover .client-image img {
    transform: scale(1.1);
}

.testimonial-content {
    padding: 30px;
    text-align: center;
}

.stars {
    color: #ffd700;
    margin-bottom: 20px;
}

.testimonial-content p {
    color: var(--primary-gray);
    line-height: 1.8;
    margin-bottom: 20px;
    font-style: italic;
}

.testimonial-content h3 {
    color: var(--primary-blue);
    margin-bottom: 5px;
}

.testimonial-content span {
    color: var(--primary-orange);
    font-weight: 500;
}

.video-testimonials {
    padding: 100px 0;
    background: white;
}

.video-testimonials h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary-blue);
    margin-bottom: 50px;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.video-card {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.3s ease;
}

.video-card.animate {
    opacity: 1;
    transform: translateY(0);
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 15px;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

@media (max-width: 992px) {
    .testimonial-grid,
    .video-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 3.5rem;
    }
    
    .stats-grid,
    .testimonial-grid,
    .video-grid {
        grid-template-columns: 1fr;
    }
}

@keyframes typing {
    0%, 90%, 100% { width: 0; }
    30%, 60% { width: 100%; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}