.food-slider-section {
    padding: 20px 0;
    text-align: center; /* Center text within the section */
    margin-top: 40px; /* Add margin to create space below */
    margin-bottom: 40px; /* Add margin to create space below */
}

/* Heading with Optional Underline */
.food-slider-section  .heading-with-underline h2 {
    position: relative;
    margin-bottom: 40px; /* Ensure there is space for the line */
}

.food-slider-section  .heading-with-underline h2::after {
    content: "";
    display: block;
    width: 80%; /* Adjust to cover the text width */
    height: 5px; /* Make the line thinner */
    background: white; /* Set the line color to white */
    position: absolute;
    bottom: -10px; /* Position it below the text */
    left: 10%; /* Center the line under the text */
}

.food-slider-section .home-heading-style-1,
.food-slider-section .buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.food-slider-section .buttons {
    margin-top: 20px; /* Add space between the slider and the button */
}

.food-slider-section .buttons a {
    margin-top: 10px; /* Add space between multiple buttons if present */
}

.slider-container {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
}

.slider {
    display: flex;
    transition: transform 0.3s ease-in-out;
}

.slide {
    min-width: 33.33%;
    box-sizing: border-box;
    padding: 10px;
}

.slide img {
    width: 100%;
    border-radius: 10px;
}

.slider-container .prev,
.slider-container .next {
    background-color: #333;
    border: none;
    color: white;
    padding: 10px;
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
}

.slider-container .prev {
    left: 10px;
}

.slider-container .next {
    right: 10px;
}

.slider-container .prev:hover,
.slider-container .next:hover {
    background-color: #555;
}

/* Mobile View */
@media (max-width: 768px) {
    .slide {
        min-width: 100%;
    }
}
