.slider-container {
    position: relative;
    max-width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-wrapper {
    display: flex;
    transition: transform 0.5s ease;
    width: 100%;
    max-width: 100%;
}

.slide {
    flex: 0 0 100%;
    max-width: 100%;
    object-fit: contain; /* Prevent cropping */
}

button.prev,
button.next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    background-color: rgba(0,0,0,0.5);
    color: white;
    border: none;
    font-size: 2rem;
    padding: 10px;
    cursor: pointer;
}

button.prev { left: 10px; }
button.next { right: 10px; }

@media screen and (max-width: 768px) {
    .slide {
        height: auto;
        width: 100%;
    }
}
/* Remove margin and padding between sections on mobile */
@media (max-width: 768px) {
    section {
        margin-bottom: 0 !important;
        padding-bottom: 0 !important;
    }

    .slider-container {
        margin-bottom: 0 !important;
        padding-bottom: 0 !important;
    }

    .featured-services.section {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }

    .container {
        margin-top: 0 !important;
    }
}

