/* ============================================
   HERO CAROUSEL — Auto-changing background
   ============================================ */

.hero-carousel {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
}

/* ─── SLIDES STACK ─── */
.hero-slides {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1.6s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1;
}

.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  /* Ken Burns effect — zoom + pan nhẹ */
  animation: hero-kenburns 12s ease-in-out infinite alternate;
}

.hero-slide:nth-child(even) img {
  animation-direction: alternate-reverse;
}

@keyframes hero-kenburns {
  0% {
    transform: scale(1) translate(0, 0);
  }
  100% {
    transform: scale(1.12) translate(-1%, -1%);
  }
}

/* ─── OVERLAY ─── */
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  background:
    linear-gradient(180deg, rgba(11, 25, 41, 0.45) 0%, rgba(11, 25, 41, 0.25) 50%, rgba(11, 25, 41, 0.65) 100%),
    radial-gradient(ellipse at center, transparent 0%, rgba(0, 0, 0, 0.35) 100%);
  pointer-events: none;
}

/* ─── CONTENT ─── */
.hero-carousel .hero-content {
  position: relative;
  z-index: 4;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #fff;
  padding: 0 1.5rem;
  max-width: 900px;
  margin: 0 auto;
  animation: hero-content-in 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.3s backwards;
}

@keyframes hero-content-in {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─── DOTS ─── */
.hero-dots {
  position: absolute;
  bottom: 60px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  gap: 12px;
  padding: 8px 16px;
  background: rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 999px;
}

.hero-dot {
  width: 32px;
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.4);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.hero-dot:hover {
  background: rgba(255, 255, 255, 0.7);
}

.hero-dot.is-active {
  width: 48px;
  background: rgba(255, 255, 255, 0.3);
}

/* Progress bar trong dot active */
.hero-dot.is-active::after {
  content: '';
  position: absolute;
  inset: 0;
  background: #C9A55C;
  border-radius: 2px;
  transform-origin: left;
  animation: hero-dot-progress var(--hero-duration, 6s) linear forwards;
}

@keyframes hero-dot-progress {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

/* ─── ARROWS ─── */
.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  font-size: 1.4rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.4s ease;
}

.hero-carousel:hover .hero-arrow {
  opacity: 1;
}

.hero-arrow:hover {
  background: rgba(201, 165, 92, 0.9);
  border-color: #C9A55C;
  transform: translateY(-50%) scale(1.08);
}

.hero-arrow--prev { left: 24px; }
.hero-arrow--next { right: 24px; }

/* ─── SCROLL HINT ─── */
.hero-carousel .hero-scroll {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  animation: hero-scroll-pulse 2s ease-in-out infinite;
}

@keyframes hero-scroll-pulse {
  0%, 100% { opacity: 0.5; transform: translateX(-50%) translateY(0); }
  50%      { opacity: 1;   transform: translateX(-50%) translateY(4px); }
}

/* ─── RESPONSIVE ─── */
@media (max-width: 768px) {
  .hero-carousel { min-height: 500px; height: 88vh; }
  .hero-arrow { display: none; }
  .hero-dots { bottom: 80px; }
  .hero-dot { width: 24px; }
  .hero-dot.is-active { width: 36px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-slide img { animation: none; }
  .hero-dot.is-active::after { animation: none; transform: scaleX(1); }
}
/* ─── ẨN ARROWS & DOTS — chỉ autoplay ─── */
.hero-carousel .hero-arrow,
.hero-carousel .hero-dots {
  display: none !important;
}