/* styles.css */

body {
    margin: 0;
    font-family: Arial, sans-serif;
}

.slider {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.slides {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.slide {
    flex: 1 0 25%; /* Show 4 slides at a time */
    box-sizing: border-box;
    text-align: center;
}

.slide img {
    width: 100%;
    height: auto;
}

.slide p {
    margin: 10px 0;
    font-size: 18px;
}

button.prev, button.next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    z-index: 10;
}

button.prev {
    left: 10px;
}

button.next {
    right: 10px;
}

/* Media Queries */

/* For mobile devices (up to 600px) */
@media only screen and (max-width: 600px) {
    .slide {
        flex: 1 0 100%; /* Show 1 slide at a time */
    }

    .slide img {
        height: 380px; /* Adjust image height for smaller screens */
    }

    .slide h4, .slide .position {
        font-size: 14px;
    }

    button.prev, button.next {
        padding: 5px;
    }
}

/* For tablets (600px to 900px) */
@media only screen and (min-width: 601px) and (max-width: 900px) {
    .slide {
        flex: 1 0 50%; /* Show 2 slides at a time */
    }

    .slide img {
        height: 400px;
    }

    .slide h4, .slide .position {
        font-size: 16px;
    }

    button.prev, button.next {
        padding: 7px;
    }
}

/* For laptops and larger screens (above 900px) */
@media only screen and (min-width: 901px) {
    .slide {
        flex: 1 0 25%; /* Show 4 slides at a time */
    }

    .slide img {
        height: auto;
    }

    .slide h4, .slide .position {
        font-size: 18px;
    }
}

/* Hide elements on mobile view */
@media only screen and (max-width: 600px) {
    .text-on-mobile {
      font-size: 20px;
    }
  }
  