.image-slider {
  position: relative;
  width: 100%;
  max-width: 1000px;
  margin: 2rem auto 1rem;
  overflow: hidden;
  border-radius: 8px;
  background-color: var(--color-bg-secondary);
  border: 2px solid var(--color-border);
}

.slider-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 58%;
}

.slider-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

.slider-image.active {
  opacity: 1;
}

.slider-controls {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 10;
}

.slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: transparent;
  border: 1px solid var(--color-text-secondary);
  cursor: pointer;
  transition: all 0.3s ease;
}

.slider-dot.active {
  background: var(--color-blue);
  border: 1px solid var(--color-blue);
}

.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: transparent;
  border: none;
  color: var(--primary);
  opacity: 0.7;
  padding: 1rem;
  cursor: pointer;
  font-size: 2rem;
  line-height: 1;
  transition: all 0.3s ease;
  z-index: 10;
}

.slider-arrow:hover {
  opacity: 1;
}

.slider-arrow.prev {
  left: 0.3rem;
}

.slider-arrow.next {
  right: 0.3rem;
}

.slider-caption {
  text-align: center;
  color: var(--color-text-secondary);
  font-size: 0.9rem;
  font-style: italic;
}

@media (max-width: 768px) {
  .slider-arrow.prev {
    left: 0;
  }

  .slider-arrow.next {
    right: 0;
  }
}
