/* imachine_slider.css */

.imachine-hero {
  position: relative;
  overflow: visible;
  /* 이미지가 튀어나올 수 있도록 수정 */
  height: 700px;
  /* 800px에서 700px로 미세 조정 */
  /* 고정 높이에 가깝게 설정 */
  background: url('../../img/imachine/imachine_bg.jpg') no-repeat center center;
  background-size: cover;
  display: flex;
  align-items: center;
  color: #fff;
}

.imachine-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.swiper-container {
  width: 100%;
  height: 100%;
  z-index: 2;
  /* 컨텐츠가 가상 요소 위에 오도록 설정 */
}

.swiper-slide {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  height: 700px;
  /* 섹션 높이와 맞춤 */
}

.slide-content {
  padding-right: 30px;
}

.slide-content h2 {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 20px;
  word-break: keep-all;
}

.slide-content p {
  font-size: 1.25rem;
  line-height: 1.6;
  margin-bottom: 40px;
  color: rgba(255, 255, 255, 0.9);
  word-break: keep-all;
}

.payment-icons {
  display: flex;
  gap: 20px;
  margin-bottom: 40px;
  align-items: center;
}

.pay-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
}

.pay-item img {
  height: 60px;
  filter: brightness(0) invert(1);
}

.cta-button {
  display: inline-block;
  padding: 15px 35px;
  border: 1px solid #fff;
  border-radius: 5px;
  color: #fff;
  font-weight: 600;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.1);
}

.cta-button:hover {
  background: #fff;
  color: #00AEEF;
}

.slide-images {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 20px;
  position: relative;
}

.product-img {
  max-height: 750px;
  width: auto;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.3));
  transition: transform 0.5s ease;
  transform: translateY(35px);
  /* 비율에 맞춰 위치 조정 */
  z-index: 10;
}

/* 애니메이션 제거됨 */

/* Pagination Styling */
.swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  background: #fff;
  opacity: 0.5;
}

.swiper-pagination-bullet-active {
  opacity: 1;
  width: 30px;
  border-radius: 6px;
}

/* Responsive */
@media (max-width: 991px) {
  .imachine-hero {
    height: auto;
    min-height: 600px;
    overflow: hidden;
    /* 모바일에서는 잘리지 않게 조정 */
  }

  .swiper-slide {
    height: auto;
    padding: 40px 0;
  }

  .slide-content {
    text-align: center;
    padding-right: 0;
    margin-bottom: 0;
    margin-top: 30px;
    /* 이미지와의 상단 간격 추가 */
  }

  .slide-content h2 {
    font-size: 2.2rem;
    margin-bottom: 15px;
  }

  .payment-icons {
    justify-content: center;
  }

  .slide-images {
    margin-bottom: 10px;
  }

  .product-img {
    max-height: 380px;
    transform: none;
    /* 모바일에서는 위치 초기화 */
  }
}

@media (max-width: 575px) {
  .slide-content h2 {
    font-size: 2rem;
  }

  .slide-content p {
    font-size: 1rem;
  }

  .product-img {
    max-height: 300px;
  }
}

/* imachine 섹션 전용 스타일 (Responsive) */
.imachine-section {
  background: #ffffff;
}

.imachine-wrap {
  max-width: 1792px;
  margin: 0 auto;
}

.imachine-banner {
  text-align: center;
}

.imachine-banner img {
  max-width: 100%;
  /* 부모 너비에 맞춤 */
  height: auto;
}


/* 모바일 환경 설정 */
@media (max-width: 991px) {
  .imachine-section {
    padding: 30px 0;
    /* 모바일에서 상하 여백 축소 */
  }

  .imachine-wrap {
    max-width: 100%;
    padding: 0 15px;
  }
}