.clients-section {
    background-color: #f5f5f5;
    padding: 20px; /* Adjust padding for smaller screens */
    text-align: center;
    margin-bottom: 50px;
}

.clients-section h2 {
    color: #183C5F;
    font-size: 2rem;
    margin-bottom: 20px;
}

.clients-logos {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 40px;
}

.client-logo {
    margin: 10px;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 8px 10px 6px 7px rgba(0, 0, 0, 0.1);
    text-align: center;
    position: relative;
    overflow: hidden;
    width: calc(20% - 40px); /* Adjust width to fit 5 logos per row */
    box-sizing: border-box;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease-in-out;
    cursor: pointer;
    filter: grayscale(100%); /* Initial grayscale for logos */
    animation: fadeInUp 0.6s ease-in-out forwards; /* Trigger animation */
    animation-delay: var(--delay); /* Stagger the animations */
}

.client-logo img {
    max-width: 100%;
    max-height: 80px;
    object-fit: contain;    
    transition: filter 0.3s ease-in-out;
}

.client-logo:hover {
    box-shadow: 8px 10px 15px 10px rgba(0, 0, 0, 0.2);
    transform: translateY(-10px);
    background-color: #f0f4f8; /* Slightly darker background on hover */
    filter: none; /* Remove grayscale on hover */
}

.client-logo:hover img {
    filter: none; /* Remove grayscale on logo hover */
}

.testimonials-section {
    padding:20px;
    background-color: #f9f9f9;
    text-align: center;
}

.testimonials-section h2 {
    font-size: 32px;
    margin-bottom: 40px;
    color: #183C5F;
}

.testimonials-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.testimonial {
    background-color: white;
    padding: 30px;
    border-radius: 8px;    
    box-shadow: 8px 10px 6px 7px rgba(0, 0, 0, 0.1);
    max-width: 300px;
    flex: 1;
    margin-bottom: 30px;
    transition: background-color 0.3s ease-in-out;

}

.testimonial:hover {
    background-color: #f0f4f8;
    color: #747474;
}

.testimonial-content {
    font-size: 16px;
    color: #747474;
    margin-bottom: 20px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 10px;
}

.testimonial-author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.testimonial-author h4 {
    margin: 0;
    font-size: 18px;
    color: #183C5F;
}

.testimonial-author span {
    font-size: 14px;
    color: #747474;
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive styles */
@media (max-width: 1024px) {
    .client-logo {
        width: calc(25% - 20px); /* Four items per row on tablets */
    }
}

@media (max-width: 768px) {
    .client-logo {
        width: calc(33.333% - 20px); /* Three items per row on smaller tablets */
    }

    .testimonials-container {
        flex-direction: column;
    }

    .testimonial {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .client-logo {
        width: calc(50% - 20px); /* Two items per row on mobile */
    }
}
