.testimonials {
    padding: 5rem 0;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.testimonial-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(25, 118, 210, 0.15);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-left: 4px solid #1976D2;
    border-top: 1px solid rgba(25, 118, 210, 0.1);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(25, 118, 210, 0.25);
}

.testimonial-image {
    width: 100%;
    height: auto;
    overflow: visible;
    position: relative;
}

.testimonial-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(25, 118, 210, 0.1), rgba(33, 150, 243, 0.1));
}

.testimonial-image img {
    width: 100%;
    height: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.testimonial-card:hover .testimonial-image img {
    transform: scale(1.05);
}

.testimonial-content {
    padding: 2rem;
    background: linear-gradient(135deg, #ffffff 0%, #f8fbff 100%);
}

.testimonial-text {
    color: #1565C0;
    line-height: 1.7;
    margin-bottom: 1rem;
    font-style: italic;
    font-weight: 400;
}

.testimonial-author {
    font-weight: 600;
    color: #1976D2;
    font-size: 0.95rem;
    background: rgba(25, 118, 210, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 15px;
    display: inline-block;
}

@media (max-width: 768px) {
    .testimonial-image {
        height: auto;
    }
}

@media (max-width: 768px) {
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .testimonial-card {
        margin: 0 15px;
    }
    
    .testimonial-content {
        padding: 1.5rem;
    }
}