/* 메인 페이지 전용 */
.hero {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 48px 24px 20px;
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 40px;
  align-items: center;
}

.hero__content {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}

.hero h1 {
  margin: 0;
  font-size: clamp(30px, 4.5vw, 44px);
  line-height: 1.22;
  font-weight: 800;
  letter-spacing: -1.2px;
  word-break: keep-all;
}

.hero__lead {
  margin: 0;
  font-size: clamp(15px, 2vw, 17px);
  line-height: 1.65;
  color: var(--text-secondary);
  max-width: 460px;
  word-break: keep-all;
}

.hero__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero__note {
  margin: 0;
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.5;
  word-break: keep-all;
}

/* 히어로 슬라이더 */
.hero__slider {
  position: relative;
  width: 100%;
  height: clamp(280px, 42vw, 440px);
  min-width: 0;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(11, 99, 229, 0.18);
  background: #0F1B30;
}

.hero__slides {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.9s ease-in-out;
  pointer-events: none;
}

.hero__slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.hero__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero__slider-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 27, 48, 0.35) 0%, rgba(15, 27, 48, 0.05) 28%, rgba(15, 27, 48, 0.2) 100%);
  pointer-events: none;
  z-index: 1;
}

/* 히어로 상단 광고 카피 — 가로 배치, 슬림 오버레이 */
.hero__promo {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border-radius: 10px;
  background: rgba(11, 99, 229, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 16px rgba(11, 99, 229, 0.3);
}

.hero__promo-inner {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  max-width: 100%;
}

.hero__promo-tag {
  flex-shrink: 0;
  display: inline-block;
  background: linear-gradient(135deg, #F5A524 0%, #E8940F 100%);
  color: #FFFFFF;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.8px;
  padding: 4px 9px;
  border-radius: 5px;
  box-shadow: 0 2px 8px rgba(245, 165, 36, 0.45);
  line-height: 1;
}

.hero__promo-text {
  margin: 0;
  flex: 1;
  min-width: 0;
  color: #FFFFFF;
  font-size: clamp(13px, 2.8vw, 17px);
  font-weight: 800;
  letter-spacing: -0.3px;
  line-height: 1.3;
  text-align: left;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
  word-break: keep-all;
}

.hero__promo-em {
  color: #FFE566;
  font-weight: 800;
}

.hero__dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 2;
}

.hero__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: transform 0.2s, background 0.2s;
}

.hero__dot.is-active {
  background: #FFFFFF;
  transform: scale(1.25);
}

.home-section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 52px 24px 8px;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.popular-section {
  background: linear-gradient(180deg, var(--bg-light) 0%, #EEF3FA 100%);
  margin-top: 52px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.popular-section .home-section {
  padding: 48px 24px 52px;
}

.steps-section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 56px 24px 8px;
}

.steps-section .section-desc {
  margin: 0 0 26px;
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
  word-break: keep-all;
}

.title-accent {
  font-weight: 800;
}

/* 모바일 전용 줄바꿈 — PC에서는 숨김 */
.br-mobile {
  display: none;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.step-card {
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: box-shadow 0.15s;
}

.step-card:hover {
  box-shadow: var(--shadow-sm);
}

.step-card__num {
  font-size: 13px;
  font-weight: 800;
  color: var(--primary);
}

.step-card__title {
  font-size: 18px;
  font-weight: 800;
}

.step-card__desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  word-break: keep-all;
}

.cta-banner-section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 56px 24px 64px;
}

.cta-banner {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary) 0%, #084EB8 50%, #1A2B4A 100%);
  border-radius: var(--radius-xl);
  padding: 44px 40px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  box-shadow: 0 12px 40px rgba(11, 99, 229, 0.28);
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -10%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(245, 165, 36, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.cta-banner__title {
  font-size: clamp(20px, 3vw, 26px);
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: -0.5px;
  margin: 0 0 8px;
  position: relative;
  word-break: keep-all;
}

.cta-banner__sub {
  font-size: 15px;
  color: #CFE2FD;
  margin: 0;
  position: relative;
  word-break: keep-all;
}

/* 후기 그리드 (메인에서도 사용) */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 24px 16px 12px;
    gap: 24px;
  }

  .hero__content { order: 2; }
  .hero__slider { order: 1; }

  .hero__slider {
    height: 240px;
    border-radius: var(--radius-lg);
  }

  .hero__promo {
    top: 10px;
    left: 10px;
    right: 10px;
    padding: 7px 12px;
    gap: 8px;
  }

  .hero__promo-inner {
    gap: 8px;
  }

  .hero__promo-tag {
    font-size: 9px;
    padding: 3px 7px;
  }

  .hero__promo-text {
    font-size: 12.5px;
    line-height: 1.35;
  }

  .hero__actions {
    flex-direction: column;
    width: 100%;
  }

  .hero__actions .btn-primary,
  .hero__actions .btn-secondary {
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  .home-section { padding: 36px 16px 8px; }
  .popular-section .home-section { padding: 36px 16px 40px; }
  .steps-section { padding: 36px 16px 8px; }
  .cta-banner-section { padding: 36px 16px 48px; }

  .category-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .steps-grid {
    grid-template-columns: 1fr;
  }

  .reviews-grid {
    grid-template-columns: 1fr;
  }

  .cta-banner {
    padding: 28px 20px;
    flex-direction: column;
    align-items: stretch;
  }

  .cta-banner .btn-primary {
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  /* 모바일 줄바꿈 */
  .br-mobile {
    display: block;
  }

  /* 이용 방법 — 모바일 중앙 정렬 */
  .steps-section {
    text-align: center;
  }

  .steps-section .section-title {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.45;
    max-width: 320px;
  }

  .steps-section .section-desc {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    max-width: 300px;
    line-height: 1.75;
    font-size: 14.5px;
  }

  .step-card {
    text-align: center;
    align-items: center;
    padding: 28px 22px;
  }

  .step-card__title {
    font-size: 17px;
  }

  .step-card__desc {
    max-width: 280px;
    margin: 0 auto;
    line-height: 1.75;
    font-size: 14px;
    word-break: keep-all;
    overflow-wrap: break-word;
  }

  /* 이용 후기 — 모바일 중앙 정렬 */
  .reviews-home-section {
    text-align: center;
  }

  .reviews-home-section .section-header {
    align-items: center;
    text-align: center;
  }

  .reviews-home-section .section-title {
    width: 100%;
    text-align: center;
  }

  .reviews-home-section .section-link {
    align-self: center;
  }

  .reviews-home-section .review-card {
    text-align: center;
    align-items: center;
    padding: 24px 20px;
  }

  .reviews-home-section .review-card__stars {
    text-align: center;
  }

  .reviews-home-section .review-card__text {
    text-align: center;
    line-height: 1.75;
    font-size: 14px;
    word-break: keep-all;
    overflow-wrap: break-word;
  }

  .reviews-home-section .review-card__meta {
    text-align: center;
    font-size: 12.5px;
    line-height: 1.5;
  }

  .title-pc-dash {
    display: none;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 28px;
    letter-spacing: -0.8px;
  }

  .hero__slider {
    height: 220px;
  }

  .category-grid {
    grid-template-columns: 1fr 1fr;
  }

  .category-card {
    min-height: 110px;
  }

  .category-card__label {
    font-size: 15px;
  }

  .category-card__sub {
    font-size: 11px;
  }
}
