.main-visual-section {
  position: relative;
  width: 100%;
  height: calc(100dvh);
  overflow: hidden;
}

.swiper-container.home-main-swiper {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  will-change: transform;
}

.home-main-swiper .swiper-wrapper {
  position: relative;
  display: flex;
  width: 100%;
  height: 100%;
  transition-timing-function: ease;
}

.home-main-swiper .swiper-slide {
  width: 100% !important;
  height: 100%;
  flex-shrink: 0;
  margin: 0;
  padding: 0;
  will-change: transform;
  position: relative;
  overflow: hidden;
  backface-visibility: hidden;
  box-sizing: border-box;
  z-index: 1;
}

.home-main-swiper .swiper-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-main-swiper .slide-content {
  position: absolute;
  top: 30%;
  left: 10%;
  padding-right: 50px;
  z-index: 10;
  color: white;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}

.home-main-swiper .slide-content h2 {
  font-size: 62px;
  font-weight: bold;
  margin-bottom: 20px;
}

.home-main-swiper .slide-content p {
  font-size: 26px;
  margin-bottom: 30px;
  line-height: 1.5;
}

.home-main-swiper .visual-btn {
  display: inline-block;
  padding: 10px 30px;
  font-size: 24px;
  border: 1px solid;
  color: white;
  font-weight: bold;
  border-radius: 30px;
  text-decoration: none;
  transition: background 0.3s;
  text-shadow: none;
}

.home-main-swiper .visual-btn:hover {
  background: #e55a00;
}


.swiper-button-next:after,
.swiper-button-prev:after {
  display: none;
}

.swiper-navigation-icon {
  display: none !important;
}

.main-slider-controls {
  display: flex;
  align-items: center;
  gap: 15px;
  /* 요소들 사이의 기본 간격 */
  position: absolute;
  bottom: 60px;
  left: 10%;
  z-index: 100;
}

/* 숫자 스타일 */
.swiper-counter-current,
.swiper-counter-total {
  color: #fff;
  font-family: 'Pretendard', sans-serif;
  font-size: 14px;
  font-weight: 500;
  min-width: 20px;
}

/* 버튼 묶음과 숫자 사이의 간격을 조금 더 띄우고 싶을 때 */
.swiper-nav-buttons {
  display: flex;
  gap: 8px;
}

/* 진행 바 배경 */
.autoplay-progress {
  width: 200px;
  border-radius: 10px;
  ;
  height: 3px;
  background: rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
}

/* 채워지는 바 */
.progress-fill {
  position: absolute;
  left: 0;
  top: 0;
  width: 0%;
  height: 100%;
  background: #fff;
  /* 포인트 컬러로 변경 가능 */
}

/* 2. 기존 swiper 버튼들이 개별적으로 가진 위치 속성 강제 제거 */
.main-slider-controls .swiper-button-prev,
.main-slider-controls .swiper-button-next {
  position: relative !important;
  /* absolute를 해제하여 flex 영향권에 둠 */
  top: auto !important;
  /* 위로 솟구치는 현상 방지 */
  bottom: auto !important;
  /* 아래로 처지는 현상 방지 */
  left: auto !important;
  right: auto !important;
  margin: 0 !important;
  transform: none !important;
  /* 중앙 정렬용 transform 제거 */
  display: flex !important;
  /* 버튼 내부 아이콘 중앙 정렬용 */
  width: 30px;
  /* 화살표 크기에 맞춰 조절 */
  height: 30px;
  background: transparent;
  /* 배경은 취향껏 (이미지는 투명함) */
}


.main-slider-controls i {
  color: #fff;
  font-size: 26px;
}

/* 재생/정지 버튼 감싸는 박스 */
.swiper-play-stop-wrap {
  display: flex;
  align-items: center;
  position: relative;
  width: 24px;
  height: 24px;
}

.swiper-play-stop-wrap button {
  position: absolute;
  top: 0;
  left: 0;
  background: none;
  border: none;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  display: none;
  /* 기본은 숨김 */
  padding: 0;
}

/* active 클래스가 붙은 버튼만 노출 */
.swiper-play-stop-wrap button.active {
  display: block;
}

/* 모바일 대응 */
@media (max-width: 991px) {
  .main-visual-section {
    height: calc(100dvh - 60px);
  }

  .main-slider-controls {
    left: 50%;
    transform: translateX(-50%);
    bottom: 40px;
  }

  .autoplay-progress {
    width: 120px;
  }
}

@keyframes slideUpFade {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideDownFade {
  0% {
    opacity: 0;
    transform: translateY(-30px);
  }

  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

.slide-animate.slide-up {
  animation: slideUpFade 1.8s ease-out;
}

.slide-animate.slide-down {
  animation: slideDownFade 1.8s ease-out;
}

@media(max-width: 991px) {
  .home-main-swiper .slide-content h2 {
    font-size: 28px;
    margin-bottom: 20px;
  }

  .home-main-swiper .slide-content p {
    font-size: 18px;
    margin-bottom: 30px;
  }

  .home-main-swiper .visual-btn {
    font-size: 17px;
  }
}