/* =========================================================
   CAROUSEL WRAPPER
========================================================= */

.hero-carousel {
  position: relative;
}

.carousel {
  position: relative;
  overflow: hidden;
}

/* =========================================================
   CAROUSEL IMAGES
========================================================= */

.carousel-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

/* Desktop hero image */
@media (min-width: 900px) {
  .carousel-img {
    height: 460px;
  }
}

/* =========================================================
   CAROUSEL CONTROLS
========================================================= */

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);

  width: 38px;
  height: 38px;

  border-radius: 999px;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;

  border: none;

  display: flex;
  align-items: center;
  justify-content: center;

  cursor: pointer;
}

.carousel-btn.left {
  left: 10px;
}

.carousel-btn.right {
  right: 10px;
}

/* =========================================================
   CAROUSEL DOTS (INDICATORS)
========================================================= */

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 10px;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #d1d5db;
  transition: 0.2s;
}

.carousel-dot.active {
  width: 22px;
  background: var(--primary);
}