.testimonials {
    background-color: #f7f9fc; /* Light background for contrast */
    padding: 60px 20px; /* Generous padding for spacing */
    text-align: center;
    padding: 15px;
}

.testimonials h2 {
    font-size: 2.5rem; /* Larger font for heading */
    color: #0078d4; /* Brand color for heading */
    margin-bottom: 40px; /* Space below heading */
    font-weight: 700;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Responsive grid layout */
    gap: 30px; /* Space between testimonial items */
    max-width: 1200px; /* Max width to keep the layout compact */
    margin: 0 auto; /* Center the grid */
}

.testimonial-item {
    background-color: #ffffff; /* White background for the cards */
    padding: 30px; /* Padding for space inside the cards */
    border-radius: 12px; /* Rounded corners for a modern look */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
    transition: transform 0.3s, box-shadow 0.3s; /* Smooth hover effect */
}

.testimonial-item:hover {
    transform: translateY(-10px); /* Slight upward movement on hover */
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15); /* Stronger shadow on hover */
}

.testimonial-item p {
    font-size: 1.2rem; /* Font size for testimonial text */
    line-height: 1.6; /* Improved readability */
    color: #555; /* Soft gray for text */
    margin-bottom: 20px;
    font-style: italic; /* Italicized testimonial quotes */
}

.testimonial-item h4 {
    font-size: 1.1rem;
    color: #333; /* Darker color for user names */
    font-weight: 600;
}

@media (max-width: 768px) {
    .testimonials {
        padding: 40px 10px;
    }

    .testimonial-item {
        padding: 20px;
    }

    .testimonials h2 {
        font-size: 1.5rem;
    }
}
