.hero-slider {
  position: relative;
  height: 80vh;
  min-height: 520px;
  overflow: hidden;
  color: #fff;
}

.hero-slider__track {
  display: flex;
  height: 100%;
  transition: transform 700ms ease;
  will-change: transform;
}

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

.hero-slide__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-slide__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(5, 10, 18, 0.75), rgba(5, 10, 18, 0.35) 55%, rgba(5, 10, 18, 0.15));
}

.hero-slide__content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;

  /* ✅ 8vw 제거: 화면이 커져도 패딩이 과해지지 않게 상한을 둠 */
  padding: 0 clamp(20px, 4vw, 64px);

  gap: 0.75rem;
  z-index: 2;

  /* ✅ 패딩 포함해서 계산되게 */
  box-sizing: border-box;

  /* 기존 유지 */
  max-width: 720px;
}

.hero-slide__eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  margin: 0;
}

.hero-slide__title {
  font-size: clamp(2rem, 3.6vw, 3.5rem);
  font-weight: 800;
  line-height: 1.15;
  margin: 0;
}

.hero-slide__subtitle {
  font-size: clamp(1rem, 1.6vw, 1.3rem);
  margin: 0;
  color: rgba(255, 255, 255, 0.85);
}

.hero-slide__cta {
  margin-top: 0.8rem;
  border-color: rgba(255, 255, 255, 0.7);
  color: #fff;
  font-weight: 600;
  padding: 0.65rem 1.6rem;
}

.hero-slide__cta:hover,
.hero-slide__cta:focus-visible {
  background: #E60012;
  border-color: #E60012;
  color: #fff;
}

.hero-slider__controls {
  position: absolute;
  left: 50%;
  bottom: 2.2rem;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 1rem;
  z-index: 3;
}

.hero-slider__dots {
  display: flex;
  gap: 0.5rem;
}

.hero-slider__dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: none;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  padding: 0;
}

.hero-slider__dot.is-active {
  background: #E60012;
  transform: scale(1.1);
}

.hero-slider__arrow {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(10, 12, 18, 0.55);
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.hero-slider__arrow:hover,
.hero-slider__arrow:focus-visible {
  background: rgba(230, 0, 18, 0.9);
  border-color: #E60012;
}

.hero-scroll {
  position: absolute;
  right: 3vw;
  bottom: 2.4rem;
  z-index: 3;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 1.4rem;
  animation: heroBounce 2.4s infinite;
}

.hero-scroll:hover {
  color: #fff;
}

.hero-slide__title,
.hero-slide__subtitle {
  word-break: keep-all;      /* 한글 단어 중간 쪼개짐 방지 */
  overflow-wrap: normal;   /* 정말 길면 예외적으로 줄바꿈 허용 */
}

@media (max-width: 576px) {
  .hero-br { display: none; }
}


html {
  scroll-behavior: smooth;
}

@keyframes heroBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

@media (max-width: 992px) {
  .hero-slider {
    height: 70vh;
    min-height: 420px;
  }

  .hero-slide__content {
    padding: 0 8vw;          
    width: min(680px, 92vw);  
  }
}

@media (max-width: 768px) {
  .hero-slider {
    height: 60vh;
    min-height: 360px;
  }

  .hero-slide__content {
    padding: 0 clamp(16px, 6vw, 40px);
    max-width: 100%;
  }

  .hero-slider__controls {
    bottom: 1.6rem;
    gap: 0.75rem;
  }

  .hero-slider__arrow {
    width: 36px;
    height: 36px;
    font-size: 1.2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-slider__track {
    transition: none;
  }

  .hero-scroll {
    animation: none;
  }
}
