/* Container */
.slider-container {
  position: relative;
  width: 100%;
  max-width: 900px;
  height: 250px;
  margin: auto;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Each Slide */
.slide {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}
.slider-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.slide.active {
  opacity: 1;
}

/* Slide Image */
.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Caption */
.caption {
  position: absolute;
  bottom: 20px;
  left: 30px;
  padding: 10px 20px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.45);
  color: white;
  font-size: 1.1rem;
}

/* Indicators (dots) */
.dots {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}

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

.dot.active {
  background: #15389f;
  transform: scale(1.2);
}

/* Dark Mode Support */
.dark .slider-container {
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.1);
}

.dark .caption {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.dark .dot {
  background: #666;
}

.dark .dot.active {
  background: #fff;
}

/* Responsive */
@media (max-width: 900px) {
  .slider-container {
    height: 300px;
  }
  .caption {
    font-size: 0.9rem;
  }
}
