.slider {
  width: 100%;
  height: 300px;
  overflow: hidden;
  position: relative;
}

.slide_group {
  display: flex;
  transition: transform 0.5s ease-in-out;
  position: relative;
}

.slide {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
}

.slide img {
  width: 100%;
  display: block;
}

.single-image-container {
  width: 100%;
  max-width: 800px;
  height: 400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f5f5f5;
  overflow: hidden;
  border-radius: 8px;
}

.single-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}


.previous_btn,
.next_btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  border: none;
  padding: 10px;
  cursor: pointer;
  z-index: 10;
}

.previous_btn {
  left: 10px;
}

.next_btn {
  right: 10px;
}

.slide_buttons {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
}

.slide_btn {
  width: 10px;
  height: 10px;
  margin: 0 5px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  cursor: pointer;
  border: none;
}

.slide_btn.active {
  background: rgba(255, 255, 255, 1);
}

/* Mobile Devices */
@media (max-width: 414px) {
  .single-image-container {
    max-width: 400px;
    height: 250px;
  }
}



/* Tablets */
@media (min-width: 600px) and (max-width: 900px) {
  .single-image-container {
    max-width: 600px;
    height: 400px;
  }
}

@media (min-width: 768px) and (max-width: 1024px) {
  .single-image-container {
    max-width: 900px;
    height: 400px;
  }
}

/* Laptops */
@media (min-width: 900px) and (max-width: 1200px) {
  .single-image-container {
    max-width: 900px;
    height: 500px;
  }
}

/* Larger Screens */
@media (min-width: 1200px) {
  .single-image-container {
    max-width: 1000px;
    height: 600px;
  }
}
