/* ==========================================================================
   Animension — hero-carousel.css
   ========================================================================== */

.hero {
  position: relative;
  margin: 0 0 20px;
  border-radius: var(--r-lg);
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--bg-elevated);
}

.hero__track {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease;
}

.hero__slide.is-active {
  opacity: 1;
  visibility: visible;
}

.hero__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, rgba(6,7,11,0.92) 0%, rgba(6,7,11,0.35) 42%, rgba(6,7,11,0) 68%),
    linear-gradient(90deg, rgba(6,7,11,0.55) 0%, rgba(6,7,11,0) 55%);
}

.hero__caption {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}

.hero__title {
  margin: 0;
  font-size: clamp(14px, 3.6vw, 22px);
  font-weight: 700;
  color: var(--text-primary);
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-height: 1.25;
  flex: 1 1 auto;
  min-width: 0;
}

.hero__cta {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent-blue);
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  padding: 10px 18px;
  border-radius: var(--r-pill);
  border: none;
  white-space: nowrap;
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero__cta:hover {
  background: var(--accent-blue-deep);
  transform: translateY(-1px);
}

.hero__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  background: rgba(10, 11, 16, 0.45);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(2px);
  transition: background 0.2s ease;
  z-index: 5;
}

.hero__arrow:hover {
  background: rgba(10, 11, 16, 0.75);
}

.hero__arrow--prev { left: 10px; }
.hero__arrow--next { right: 10px; }

.hero__dots {
  position: absolute;
  top: 14px;
  right: 14px;
  display: flex;
  gap: 6px;
  z-index: 5;
}

.hero__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.4);
  padding: 0;
  transition: background 0.2s ease, width 0.2s ease;
}

.hero__dot.is-active {
  background: var(--accent-blue-bright);
  width: 18px;
  border-radius: var(--r-pill);
}
