/* ===== Image Carousel ===== */
.img-carousel {
  position: relative;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--glass-shadow, 0 10px 30px rgba(0, 0, 0, 0.35));
  aspect-ratio: 2 / 1;
  background-color: var(--bg-secondary);
}

.carousel-track {
  display: flex;
  height: 100%;
  transition: transform 0.5s ease;
  will-change: transform;
}

.carousel-slide {
  position: relative;
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.carousel-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: var(--space-lg) var(--space-md) var(--space-md);
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0) 100%);
  color: #ffffff;
  pointer-events: none;
}

.carousel-caption h4 {
  margin: 0 0 0.25rem 0;
  font-size: 1.15rem;
  color: #ffffff;
}

.carousel-caption p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--accent-gold, #ffb300);
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  background: rgba(8, 11, 14, 0.55);
  color: #ffffff;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.2s ease;
}

.carousel-btn:hover {
  background: var(--accent-gold, #ffb300);
  color: #080b0e;
}

.carousel-prev { left: var(--space-sm, 12px); }
.carousel-next { right: var(--space-sm, 12px); }

.carousel-dots {
  position: absolute;
  bottom: var(--space-sm, 12px);
  right: var(--space-md, 16px);
  z-index: 2;
  display: flex;
  gap: 8px;
}

.carousel-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  padding: 0;
  transition: background 0.2s ease, transform 0.2s ease;
}

.carousel-dot.active {
  background: var(--accent-gold, #ffb300);
  transform: scale(1.2);
}

@media (max-width: 768px) {
  .img-carousel { aspect-ratio: 4 / 3; }
  .carousel-btn { width: 34px; height: 34px; font-size: 0.85rem; }
  .carousel-caption h4 { font-size: 1rem; }
  .carousel-caption p { font-size: 0.8rem; }
}
