.slider-container {
  width: 80%;
  height: 500px;
  position: relative;
  overflow: hidden;
  margin-bottom: 20px;
  border-radius: 8px;
  /* box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3); */
  background: #000;
  margin: auto;
}

.slider-content {
  position: relative;
  width: 100%;
  height: 100%;
}

.slider-content img {
  width: 100%;
  height: 100%;
  object-fit: fill; /* Ensure the image fits without being cropped */

  /* width:100%; height: 100%;object-fit: fill; */
}

.slider {
  width: 100%;
  height: 100%;
  display: flex;
  position: relative;
}

.slide {
  width: 100%;
  flex-shrink: 0;
  height: 100%;
  background: #111;
  opacity: 0;
  position: absolute;
  transition: opacity 1s ease-in-out;
}

.slide.active {
  opacity: 1;
  position: relative;
  z-index: 2;
}

.slide-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.6);
  color: #ffffff;
  padding: 20px 30px;
  border-radius: 8px;
  text-align: center;
}

.slide-content h3 {
  font-size: 1.8rem;
  margin-bottom: 10px;
  color: #ffd700;
}

.slide-content p {
  font-size: 1rem;
  color: #cccccc;
}

.slider-controls {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
  z-index: 3;
}

.slider-controls button {
  background: rgba(0, 0, 0, 0.6);
  color: #ffffff;
  border: none;
  font-size: 2rem;
  padding: 10px;
  border-radius: 15px;
  margin-right: 5px;
  margin-left: 5px;
  cursor: pointer;
  transition: background 0.3s ease-in-out;
}

.slider-controls button:hover {
  background: #ffd700;
}

.dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 3;
}

.dot {
  width: 12px;
  height: 12px;
  background: #cccccc;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.3s ease-in-out;
}

.dot.active {
  background: #ff007f;
}

@media (max-width: 768px) {
  .slider-container {
    height: 250px;
  }
  .slide-content h3 {
    font-size: 1.5rem;
  }
  .slide-content p {
    font-size: 0.9rem;
  }
  .slider-controls button {
    font-size: 1.5rem;
    padding: 8px;
  }
  .dot {
    width: 10px;
    height: 10px;
  }
}