/* Base Slider Styles */
.services-slider {
    display: flex;
    overflow-x: auto;
    gap: 20px;
    padding: 20px;
    padding-bottom: 60px;
    background: #ffffff;
    scrollbar-width: none; /* Firefox */
}

.services-slider::-webkit-scrollbar {
    display: none; /* Hide scrollbar in WebKit browsers */
}

.service-slide {
    min-width: 220px; /* Adjust minimum width for better responsiveness */
    max-width: 280px; /* Cap the maximum width */
    flex: 0 0 auto; /* Prevent shrinking or growing */
    border-radius: 15px;
    overflow: hidden;
    background-color: #ffffff;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.service-slide img {
    width: 100%;
    height: auto;
}

.service-slide h4 {
    padding: 10px;
    font-size: 1.2em;
    color: #3d52a0;
}

.service-slide:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4); /* Enhance hover shadow */
}

/* Responsive Slider Tweaks */

/* Medium Screens (Tablets) */
@media (max-width: 1024px) {
    .services-slider {
        gap: 30px; /* Increase gap for smoother scrolling */
        padding: 15px; /* Adjust padding for smaller screens */
    }

    .service-slide {
        min-width: 200px; /* Slightly smaller for tablet view */
        max-width: 250px;
    }

    .service-slide h4 {
        font-size: 1.1em; /* Adjust text size */
    }
}

/* Small Screens (Mobile) */
@media (max-width: 768px) {
    .services-slider {
        gap: 40px; /* Increase gap to prevent all slides from showing at once */
        padding: 10px; /* Reduce padding */
    }

    .service-slide {
        min-width: 180px; /* Smaller slides for narrow screens */
        max-width: 220px;
    }

    .service-slide h4 {
        font-size: 1em;
    }
}

/* Extra Small Screens */
@media (max-width: 480px) {
    .services-slider {
        gap: 50px; /* Add even more space for smoother scroll */
    }

    .service-slide {
        min-width: 150px;
        max-width: 200px; /* Keep slides smaller for narrow phones */
    }

    .service-slide h4 {
        font-size: 0.9em; /* Reduce text size */
        padding: 8px; /* Adjust padding for compact look */
    }
}
