/* ==========================================================================
   Hero Infinite Slider System - Haeyul Land3
   - Aspect ratio: 2.4 : 1 (2400 x 1000) preserved on all devices including mobile
   - Touch swipe & mouse drag support
   - Seamless infinite loop animation
   ========================================================================== */

.hero-slider-section {
  position: relative;
  width: 100%;
  margin-top: 80px; /* Fixed header offset */
  background: #0d1a12;
  overflow: hidden;
}

.hero-slider-container {
  position: relative;
  width: 100%;
  aspect-ratio: 24 / 10; /* Exactly 2.4:1 ratio matching the 2400x1000 banner images */
  max-height: 85vh;
  margin: 0 auto;
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
  touch-action: pan-y;
}

.hero-slider-track {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  z-index: 1;
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.7s cubic-bezier(0.4, 0, 0.2, 1);
  background: #15241b;
  pointer-events: none;
}

.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
  pointer-events: auto;
}

.hero-slide picture,
.hero-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
}

/* Navigation Arrow Buttons */
.hero-slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #1e3324;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: transform 0.22s cubic-bezier(0.2, 0.8, 0.2, 1), 
              background-color 0.22s ease, 
              box-shadow 0.22s ease, 
              opacity 0.22s ease;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.2);
  opacity: 0.85;
  padding: 0;
}

.hero-slider-btn:hover {
  background: #ffffff;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.3);
  opacity: 1;
}

.hero-slider-btn:active {
  transform: translateY(-50%) scale(0.96);
}

.hero-slider-btn.prev {
  left: 24px;
}

.hero-slider-btn.next {
  right: 24px;
}

.hero-slider-btn svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  stroke-width: 2.6;
  fill: none;
}

/* Dots Indicator (Positioned safely at bottom-left or top-right to avoid blocking center text) */
.hero-slider-dots {
  position: absolute;
  top: 20px;
  right: 24px;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 10;
  background: rgba(0, 0, 0, 0.35);
  padding: 6px 14px;
  border-radius: 999px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.hero-dot:hover {
  background: rgba(255, 255, 255, 0.8);
}

.hero-dot.active {
  width: 24px;
  background: #ffffff;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.4);
}

/* ==========================================================
   Hero Caption Overlay & Bottom Bar (Reference Layout)
   ========================================================== */
.hero-caption-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  text-align: center;
  z-index: 8;
  pointer-events: none;
  padding: 40px 16px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.12) 40%, rgba(0, 0, 0, 0.52) 100%);
}

.hero-sub-text {
  margin: 0 0 8px;
  font-size: clamp(14px, 1.8vw, 22px);
  font-weight: 700 !important;
  color: #ffffff;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
  line-height: 1.35;
  font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', sans-serif !important;
}

.hero-main-white {
  margin: 0;
  font-size: clamp(34px, 5.2vw, 68px);
  font-weight: 900 !important;
  color: #ffffff;
  letter-spacing: -0.035em;
  line-height: 1.12;
  text-shadow: 0 4px 16px rgba(0, 0, 0, 0.75);
  font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif !important;
  word-break: keep-all;
}

/* Bottom Bar - Key Color Text (Solution Position in Reference) */
.hero-bottom-bar {
  width: 100%;
  background: #ffffff;
  text-align: center;
  padding: 14px 16px 26px;
  position: relative;
  z-index: 5;
  border-bottom: 1px solid rgba(180, 173, 158, 0.28);
}

.hero-main-key {
  margin: 0;
  font-size: clamp(36px, 5.6vw, 72px);
  font-weight: 900 !important;
  color: #375947 !important; /* 해율 고유의 품격 있는 시그니처 키컬러 */
  letter-spacing: -0.035em;
  line-height: 1.12;
  font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif !important;
  word-break: keep-all;
}

/* Mobile & Tablet Optimizations */
@media (max-width: 768px) {
  .hero-slider-section {
    margin-top: 80px;
  }
  .hero-slider-container {
    aspect-ratio: 507 / 557; /* 사용자 첨부 이미지 기준 완벽 일치 비율 (약 1 : 1.1) */
    max-height: none;
  }
  .hero-slide picture,
  .hero-slide img {
    object-fit: cover;
    object-position: center center; /* 인물 중심 가운데 배치 */
  }
  .hero-slider-btn {
    width: 38px;
    height: 38px;
    opacity: 0.72;
  }
  .hero-slider-btn.prev {
    left: 12px;
  }
  .hero-slider-btn.next {
    right: 12px;
  }
  .hero-slider-btn svg {
    width: 18px;
    height: 18px;
  }
  .hero-slider-dots {
    top: 14px;
    right: 14px;
    padding: 4px 10px;
    gap: 6px;
  }
  .hero-dot {
    width: 6px;
    height: 6px;
  }
  .hero-dot.active {
    width: 18px;
  }
  .hero-caption-overlay {
    padding-bottom: 8px;
  }
  .hero-sub-text {
    font-size: 15px;
    margin-bottom: 4px;
  }
  .hero-main-white {
    font-size: 34px;
  }
  .hero-bottom-bar {
    padding: 10px 14px 22px;
  }
  .hero-main-key {
    font-size: 38px;
  }
}

@media (max-width: 480px) {
  .hero-slider-btn {
    width: 32px;
    height: 32px;
    opacity: 0.65;
  }
  .hero-slider-btn.prev {
    left: 8px;
  }
  .hero-slider-btn.next {
    right: 8px;
  }
  .hero-slider-btn svg {
    width: 16px;
    height: 16px;
  }
  .hero-sub-text {
    font-size: 13.5px;
  }
  .hero-main-white {
    font-size: 30px;
  }
  .hero-bottom-bar {
    padding: 8px 12px 18px;
  }
  .hero-main-key {
    font-size: 33px;
  }
}
