/* General Styles */
.services-section {
    padding: 50px 0;
    background-color: #00CCFF;
    text-align: center;
}

.services-section h3 {
    color: white;
    font-size: 40px;
    font-family: 'Montserrat', sans-serif;
    text-align: center;
    margin-bottom: 20px;
}

/* Slider Container */
.slider-container {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    max-width: 1295px;
    margin: auto;
    overflow: hidden;
    padding: 0 50px; /* Added padding to keep arrows outside */
}

/* Slider */
.slider {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

/* Service Cards */
.service-card {
    flex: 0 0 calc(100% / 3 - 15px); /* Adjusted width to prevent cut-off */
    background: white;
    margin: 0 7px; /* Reduced side margins */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    text-align: left;
}

/* Increased Image Height & Width */
.service-card img {
    width: 100%;
    height: 280px; /* Increased image height */
    object-fit: cover;
}

/* Card Content */
.service-card .content {
    padding: 15px;
}

.service-card h4 {
    font-size: 20px;
    margin: 0 0 10px;
    color: black;
}

.service-card p {
    font-size: 14px;
    color: #555;
}

/* Slider Navigation Buttons (Placed Outside) */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    cursor: pointer;
    font-size: 20px;
    padding: 10px;
    border-radius: 50%;
    z-index: 10;
}

.prev { left: 5px; } /* Adjusted to move arrows outside */
.next { right: 5px; }

@media (max-width: 768px) {
    .slider-container {
        padding: 0; /* Remove extra padding */
        max-width: 100%; /* Make it fully responsive */
        overflow: hidden; /* Prevents horizontal scrolling */
    }

    .slider {
        display: flex;
        transition: transform 0.5s ease-in-out;
        width: 100%; /* Ensure it fills the container */
    }

    .service-card {
        flex: 0 0 93%; /* Takes most of the screen width */
       
        border-radius: 10px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
        background: white;
		margin-left:10px;
	
    }

    .service-card img {
        width: 100%;
        height: auto; /* Keep aspect ratio */
        object-fit: cover;
    }

    .service-card .content {
        padding: 15px;
        text-align: center;
    }

    .service-card h4 {
        font-size: 22px;
    }

    .service-card p {
        font-size: 16px;
    }

    /* Adjust navigation buttons */
    .slider-btn {
        font-size: 22px;
        padding: 10px;
        background: rgba(0, 0, 0, 0.7);
    }

    .prev { left: 5px; }
    .next { right: 5px; }
}
	