/* 섹션 래퍼 */
.nx-hero {
  background: #0b0b0b;
  position: relative;
  /* 전체 너비를 차지하도록 설정 */
  width: 100%;
  margin: 0;
  padding: 0;
}

.slide-logo {
  width: 43px;
  height: 43px;
}

.nx-hero .container {
  /* 최대 너비 제한 제거하고 패딩 제거 */
  max-width: none;
  width: 100%;
  margin: 0;
  padding: 0;
  min-height: 600px;
  height: 100%;
}

/* 메인 슬라이더 박스 */
.nx-hero .hero-box {
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  /* 전체 너비 명시 */
  width: 100%;
}

.nx-hero .hero-swiper {
  /* swiper도 전체 너비 */
  width: 100%;
  height: 100%;
}

.nx-hero .hero-swiper .swiper-slide {
  position: relative;
  height: 100%;
  /* 슬라이드도 전체 너비 */
  width: 100%;
  background-color: #ffffff;
}

/* @media (max-width: 1024px) {
  .nx-hero .hero-swiper .swiper-slide {
    height: 420px;
  }
}

@media (max-width: 640px) {
  .nx-hero .hero-swiper .swiper-slide {
    height: 320px;
  }
} */

/* 배경 이미지 */
.nx-hero .hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 좌→우, 하단 그라데이션 오버레이 */
.nx-hero .hero-grad-left {
  position: absolute;
}

.nx-hero .hero-grad-bottom {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 120px;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0) 0%,
    rgba(33, 24, 7, 0.55) 70%,
    rgba(39, 28, 8, 0.75) 100%
  );
}

/* 컨테이너 유틸 (Tailwind container 대체용) */
.promo-join__container {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
  background: rgba(18, 17, 17, 0.664);

  border-radius: 12px;
  padding: 20px;
}

/* 섹션 배경 래퍼: w-full min-w-full flex-shrink-0 bg-[#1a1c29] */
.promo-join {
  width: 100%;
  min-width: 100%;
  background-image: url("/img/iwc.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  flex-shrink: 0;
}

/* 내부 여백: text-white py-20 */
.promo-join__inner {
  color: #ffffff;
  padding-top: 12rem;
  padding-bottom: 12rem;
}

/* 문구: mb-6 text-4xl */
.promo-join__title {
  margin-bottom: 1.5rem;
  /* mb-6 */
  font-size: 2.25rem;
  /* text-4xl */
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -0.02em;
}

/* 색상 스팬들 */
.t-white {
  color: #ffffff;
}

.t-accent {
  color: #10f039;
}

/* 버튼 (Tailwind 버튼 스타일 매핑) */
.promo-join__button {
  background-color: #171d1bcc;
  /* bg-[#66ffc2] */
  color: #ffffff;
  /* text-[#1a1c29] */
  font-size: 1rem;
  /* text-base */
  border: none;
  border-radius: 9999px;
  /* rounded-full */
  padding: 1.5rem 2rem;
  /* py-6 px-8 */
  cursor: pointer;
  transition:
    transform 0.15s ease,
    box-shadow 0.2s ease,
    background-color 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}

/* hover:bg-[#4de3aa] hover:shadow-lg hover:-translate-y-0.5 */
.promo-join__button:hover {
  background-color: #000000;
  box-shadow:
    0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05);
  transform: translateY(-2px);
}

.hero-section {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: url("/img/hero-background.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  max-width: 1500px;
  margin: 0 auto;
}
.hero-wrapper {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.swiper-wrapper {
  height: 100%;
}
.hero-title {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.hero-title h2 {
  color: #fff;
  text-align: center;
  font-family: Inter;
  font-size: 60px;
  font-style: normal;
  font-weight: 500;
  line-height: 60px;
  letter-spacing: -1.236px;
}
.hero-title p {
  color: #fff;
  text-align: center;
  font-family: Inter;
  font-size: 20px;
  font-style: normal;
  font-weight: 400;
  line-height: 28px;
  letter-spacing: -0.449px;
}
.hero-wrapper a {
  color: #000;
  text-align: center;
  font-family: Inter;
  font-size: 14px;
  font-style: normal;
  font-weight: 500;
  line-height: 20px;
  letter-spacing: -0.15px;
  display: flex;
  width: 112.234px;
  height: 40px;
  padding: 0 24px;
  justify-content: center;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  border-radius: 8px;
  background: #fff;
  margin: 0 auto;
}

.cat-main {
  max-width: 1500px;
  display: flex;
  padding: 100px 0;
  flex-direction: column;
  align-items: flex-start;
  gap: 48px;
  justify-content: flex-start;
}
.cat-title {
  color: #0a0a0a;
  font-family: Inter;
  font-size: 36px;
  font-style: normal;
  font-weight: 500;
  line-height: 40px;
  letter-spacing: 0.369px;
}

/* ===== 히어로 높이 기준을 "뷰포트"로 고정해서 100% 높이 문제 해결 ===== */
.nx-hero {
  width: 100%;
  margin: 0;
  padding: 0;
  /* ✅ 높이 기준 확실히 */
  min-height: clamp(360px, 55vh, 680px);
}

.nx-hero .container {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  /* ✅ 부모 높이를 그대로 사용 */
  height: 100%;
  min-height: inherit;
}

/* Swiper가 부모 높이를 정확히 채우게 */
.nx-hero .hero-swiper,
.nx-hero .hero-swiper .swiper-wrapper,
.nx-hero .hero-swiper .swiper-slide {
  height: 100%;
}

/* ===== 배경은 slide 전체(풀폭)로, 컨텐츠만 가운데 1500 제한 ===== */
.hero-section {
  /* ✅ slide 전체 채우기 */
  width: 100%;
  height: 100%;

  display: flex;
  align-items: center;
  justify-content: center;

  /* ✅ 배경은 풀폭으로 깔기 */
  background-image: url("/img/hero-background.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  /* ❌ 배경에 max-width 주면 깨져 보임 → 제거 */
  max-width: none;
  margin: 0;
}

/* 컨텐츠만 가운데 폭 제한 */
.hero-wrapper {
  width: min(1500px, 100%);
  padding: 0 20px; /* 모바일에서 양옆 여백 */
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* 텍스트도 반응형: 모바일에서 글자가 너무 커서 깨지는 걸 방지 */
.hero-title h2 {
  font-size: clamp(28px, 4vw, 60px);
  line-height: 1.05;
}

.hero-title p {
  font-size: clamp(14px, 1.6vw, 20px);
  line-height: 1.4;
}

/* 버튼 폭/높이도 고정값 대신 유연하게 */
.hero-wrapper a {
  width: auto;
  min-width: 140px;
  height: 44px;
  padding: 0 20px;
}

/* 반응형(선택) */

@media (max-width: 1024px) {
  .promo-join__inner {
    color: #ffffff;
    padding-top: 9rem;
    padding-bottom: 9rem;
  }
}

@media (max-width: 640px) {
  .promo-join__title {
    font-size: 1.75rem;
  }

  .promo-join__button {
    width: 100%;
    max-width: 340px;
  }
  .promo-join__inner {
    color: #ffffff;
    padding-top: 3rem;
    padding-bottom: 3rem;
  }
}
