/* Carousel Component Styles */
/* Centralized carousel styles for blog posts */

/* Carousel Container */
.carousel-container {
  position: relative;
  max-width: 800px;
  margin: 2rem auto;
}

.carousel-wrapper {
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  width: 100%;
}

.carousel-slides {
  display: flex;
  transition: transform 0.3s ease;
  width: 100%;
}

.carousel-slides img {
  width: 100%;
  height: auto;
  object-fit: contain;
  max-height: 600px;
  display: block;
  flex-shrink: 0;
  flex-grow: 0;
}

/* Navigation Buttons */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.7);
  color: white;
  border: none;
  padding: 10px 15px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  z-index: 10;
  transition: background-color 0.2s ease;
}

.carousel-btn:hover {
  background: rgba(0, 0, 0, 0.9);
}

.carousel-prev {
  left: 10px;
}

.carousel-next {
  right: 10px;
}

/* Hide buttons for single-slide carousels */
.carousel-container[data-single-slide] .carousel-btn {
  display: none;
}

/* Indicators */
.carousel-indicators {
  text-align: center;
  margin-top: 1rem;
}

.indicator {
  display: inline-block;
  width: 10px;
  height: 10px;
  background: #ccc;
  border-radius: 50%;
  margin: 0 5px;
  cursor: pointer;
  border: none;
  padding: 0;
  transition: background-color 0.2s ease;
}

.indicator:hover {
  background: #999;
}

.indicator.active {
  background: #007acc;
}

/* Hide indicators for single-slide carousels */
.carousel-container[data-single-slide] .carousel-indicators {
  display: none;
}

/* Caption */
.carousel-caption {
  text-align: center;
  font-size: 0.9rem;
  color: #666;
  margin-top: 0.5rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .carousel-container {
    margin: 1.5rem auto;
  }

  .carousel-btn {
    padding: 8px 12px;
    font-size: 16px;
  }

  .carousel-slides img {
    max-height: 400px;
  }
}
