.testimonial-section {
    position: relative;
    overflow: hidden;
}

.testimonial-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    height: 100%;
    transition: transform 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
}

.testimonial-card .card-header {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px 10px 0 0;
    border-bottom: 2px solid #eee;
}

.testimonial-card .card-header h3 {
    margin: 0;
    color: #333;
    font-size: 1.25rem;
    font-weight: 600;
}

.testimonial-card .card-body {
    padding: 25px;
    position: relative;
}

.quote-icon {
    color: #4285f4;
    font-size: 24px;
    margin-bottom: 15px;
}

.google-reviews-grid {
    display: grid;
    gap: 15px;
    margin-top: 20px;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.google-review {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    border: 1px solid #eee;
    transition: transform 0.3s ease;
}

.google-review:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.reviewer-info {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.reviewer-image {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.reviewer-name {
    font-weight: 600;
    color: #333;
}

.review-rating {
    color: #ffc107;
    margin: 5px 0;
}

.review-text {
    color: #555;
    font-size: 14px;
    line-height: 1.6;
}

.review-date {
    color: #888;
    font-size: 12px;
    margin-top: 8px;
}

.review-buttons {
    margin-top: 25px;
    text-align: center;
}

.btn-primary {
    background: #4285f4;
    color: white;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    border: none;
    font-weight: 500;
}

.btn-primary:hover {
    background: #3367d6;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(66, 133, 244, 0.2);
}

.btn-primary i {
    font-size: 18px;
}

/* Responsive styles */
@media (max-width: 991px) {
    .testimonial-card {
        margin-bottom: 30px;
    }
}

@media (max-width: 767px) {
    .section-heading {
        margin-bottom: 30px;
    }

    .testimonial-card .card-body {
        padding: 20px;
    }

    .google-reviews-grid {
        grid-template-columns: 1fr;
    }

    .btn-primary {
        width: 100%;
        justify-content: center;
    }
}

/* Animation for cards */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.testimonial-card {
    animation: fadeInUp 0.5s ease-out forwards;
}
