

.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 #edcb66!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: #edcb66;;
  border: none;
  color: white;
  cursor: pointer;
  margin: 0 10px;
}

.slider-nav button:hover {
  background-color: #edcb66;;
}

/* 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 */
  }
}



