.slider1 {
  display: flex;
  overflow: hidden;
  position: relative;
  width: 100%;
  margin: auto;
}

.slide-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
  /* Width dynamically calculated based on the number of slides */
  width: calc(100% * 8); /* Update this according to the number of slides */
}

.slide1 {
  min-width: 33.33%; /* Each slide occupies 33.33% of the parent container by default */
  padding: 10px;
  box-sizing: border-box;
}

.slide1 .card {
  padding: 10px;
  height: 100%; /* Make sure cards have the same height */
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 5px;
  border: 2px solid #04944D!important;
  color: #fff;
  font-size: 1.1rem;
  border: none;
}

.slide1 .card img {
  height: 250px;
  width: 100%;
  object-fit: cover; /* Ensure images maintain aspect ratio */
  border-radius: 10px;
}

.slider-nav {
  display: flex;
  justify-content: center;
  margin-top: 10px;
}

.slider-nav button {
  padding: 10px 20px;
  background-color: #04944D;
  border: none;
  color: white;
  cursor: pointer;
  margin: 0 10px;
}

.slider-nav button:hover {
  background-color: #04944D;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .slide1 {
    min-width: 50%; /* Show 2 items per view on smaller screens */
  }
  .slide1 .card img {
    height: 200px; /* Reduce height for smaller screens */
    width: 100%;
  }
}

@media (max-width: 480px) {
  .slide1 {
    min-width: 100%; /* Show 1 item per view on mobile screens */
  }
  .slide1 .card img {
    height: 150px; /* Adjust height further on smaller screens */
  }
}



/*  */

    /* Client Carousel Container */
    .client-carousel {
      background: white;
      box-shadow: 0 10px 20px -5px rgba(0, 0, 0, .125);
      height: 220px;
      margin: auto;
      overflow: hidden;
      position: relative;
      width: 100%;
    }

    .client-carousel::before,
    .client-carousel::after {
      background: linear-gradient(to right, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%);
      content: "";
      height: 220px;
      position: absolute;
      width: 200px;
      z-index: 2;
    }

    .client-carousel::after {
      right: 0;
      top: 0;
      transform: rotateZ(180deg);
    }

    .client-carousel::before {
      left: 0;
      top: 0;
    }

    .client-slide-track {
      animation: scroll 40s linear infinite;
      display: flex;
      width: calc(250px * 14); /* Update this width based on the number of slides */
    }

    .client-slide {
      height: 200px;
      width: 100%;
      padding: 10px;
      align-items: center;
      display: flex;
      justify-content: center;
    }

    .client-slide img {
      height: 250px;
      width: 100%;
      max-height: 100%;
    }

    @keyframes scroll {
      0% {
          transform: translateX(0);
      }
      100% {
          transform: translateX(calc(-250px * 7));
      }
    }

    /* Animation Styles */
    .fade-in {
      opacity: 0;
      animation: fadeIn 2s forwards;
    }

    @keyframes fadeIn {
      0% {
          opacity: 0;
      }
      100% {
          opacity: 1;
      }
    }

    .slide-in {
      transform: translateX(-100%);
      opacity: 0;
      animation: slideIn 1.5s forwards;
    }

    @keyframes slideIn {
      0% {
          transform: translateX(-100%);
          opacity: 0;
      }
      100% {
          transform: translateX(0);
          opacity: 1;
      }
    }