/* ═══ template7/index.css ═════════════════════════
 * 메인(index) 페이지 전용 스타일
 * 투명 헤더 오버레이 + 오렌지 액센트 + 4섹션 카드 레이아웃
 * banner.type 지원: "fixed" (단일) | "swiper" (슬라이더)
 * 배너 높이: frame.json banner.height → --banner-height CSS 변수
 * ═══════════════════════════════════════════════ */

/* ─── 배너 공통 컨테이너 ──────────────────────────
 * 투명 헤더 오버레이: 배너가 페이지 최상단(top:0)부터 시작
 * ─────────────────────────────────────────────── */

.main-banner {
  position: relative;
  width: 100%;
  height: var(--banner-height, 600px);
  overflow: hidden;
  background: var(--dark-surface);
}

.main-banner__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-color: var(--dark-surface-2);
  transition: transform 0.8s ease;
}

.main-banner__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 9, 62, 0.50) 0%,
    rgba(0, 9, 62, 0.72) 100%
  );
}

/* 오렌지 좌측 강조선 */
.main-banner__overlay::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 5px;
  height: 100%;
}

.main-banner__text {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  max-width: var(--max-w);
  padding: 0 52px;
  padding-top: var(--header-h); /* 투명 헤더 공간 확보 */
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.75), 0 2px 8px rgba(0, 0, 0, 0.4);
}

.main-banner__label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 18px;
}

.main-banner__label::before {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background: var(--orange);
}

.main-banner__title {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 900;
  color: #ffffff;
  line-height: 1.2;
  margin-bottom: 18px;
  letter-spacing: -0.5px;
  max-width: 100%;
  word-break: keep-all;
}

.main-banner__desc {
  font-size: clamp(0.9rem, 1.4vw, 1.05rem);
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.8;
  max-width: 520px;
  word-break: keep-all;
}

/* ─── 스와이퍼 배너 ──────────────────────────────
 * banner.type = "swiper" — 다중 슬라이드, 자동재생
 * wz-index.js가 banner__* 클래스로 innerHTML 주입
 * ─────────────────────────────────────────────── */

/* ─── Swiper 구조 리셋 (swiper-bundle은 JS만 포함, CSS 미포함) ── */

.swiper         { overflow: hidden; width: 100%; height: 100%; }
.swiper-wrapper { display: flex; width: 100%; height: 100%; box-sizing: content-box; }
.swiper-slide   { flex-shrink: 0; width: 100%; height: 100%; }

.banner__slide {
  position: relative;
}

.banner__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-color: var(--dark-surface-2);
  transition: transform 0.8s ease;
}

.swiper-slide-active .banner__bg {
  transform: scale(1.03);
}

.banner__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 9, 62, 0.45) 0%,
    rgba(0, 9, 62, 0.72) 100%
  );
}

/* 오렌지 좌측 강조선 */
.banner__overlay::after {
  content: '';
  position: absolute;
  left: 0; top: 0;
  width: 5px;
  height: 100%;
  background: var(--orange);
}

.banner__text {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  max-width: var(--max-w);
  padding: 0 52px;
  padding-top: var(--header-h); /* 투명 헤더 공간 확보 */
  opacity: 0;
  transition: opacity 0.4s ease 0.2s;
}

.swiper-slide-active .banner__text {
  opacity: 1;
}

.banner__label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 18px;
}

.banner__label::before {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background: var(--orange);
}

.banner__title {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 900;
  color: #ffffff;
  line-height: 1.2;
  margin-bottom: 18px;
  letter-spacing: -0.5px;
  max-width: 100%;
  word-break: keep-all;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.75), 0 2px 8px rgba(0, 0, 0, 0.4);
}

.banner__desc {
  font-size: clamp(1.5rem, 1.6vw, 1.8rem);
  color: white;
  font-weight: 900;
  line-height: 1.8;
  max-width: 100%;
  word-break: keep-all;
}

/* 하단 컨트롤 바 */
.banner__ctrl {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--max-w);
  padding: 0 52px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.banner__prev,
.banner__next {
  width: 36px;
  height: 36px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-sm);
  background: transparent;
  color: #ffffff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: border-color var(--ease), background var(--ease);
}

.banner__prev:hover,
.banner__next:hover {
  border-color: var(--orange);
  background: var(--orange);
}

.banner__dots {
  display: flex;
  gap: 8px;
  align-items: center;
  flex: 1;
}

.banner__dot {
  width: 22px;
  height: 3px;
  border: none;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  padding: 0;
  transition: background var(--ease), width var(--ease);
}

/* Swiper 활성 bullet */
.banner__dot.swiper-pagination-bullet-active {
  background: var(--orange);
  width: 36px;
}

.banner__play {
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.5);
  font-size: 13px;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: color var(--ease);
}

.banner__play:hover { color: #ffffff; }

/* 스크롤 힌트 */
.banner__scroll-hint {
  position: absolute;
  bottom: 32px;
  right: 52px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  animation: banner-hint-bob 2s ease-in-out infinite;
}


/* ─── 메인 섹션 카드 영역 ───────────────────────── */

.site-sections {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 32px 80px;
}

/* ─── 개별 섹션 ───────────────────────────────── */

.site-section {
  padding: 64px 0 0;
  margin-bottom: 2rem;
}

.site-section__header {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 28px;
  padding-bottom: 16px;
  /*border-bottom: 1px solid var(--border);*/
  position: relative;
}

/* 섹션 헤더: 오렌지 하단 강조선 
.site-section__header::before {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 60px;
  height: 3px;
  background: var(--orange);
}
*/
.site-section__title {
  display: inline-block;
    /* 텍스트 너비만큼만 */
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--ink);
    letter-spacing: -0.4px;
    line-height: 1;
    padding-bottom: 4px;
    border-bottom: 3px solid var(--orange);
}


.site-section__desc {
  font-size: 1.3rem;
  color: var(--ink-faint);
  font-weight: 400;
}

.site-section__subtitle {
  font-size: 1.2rem;
  color: var(--ink-muted, var(--ink-faint));
  font-weight: 500;
  line-height: 1.4;
  margin: 4px 0 0;
}

@keyframes banner-hint-bob {
  0%, 100% { transform: translateY(0);   }
  50%       { transform: translateY(4px); }
}


/* ─── 반응형 ───────────────────────────────────── */


@media (max-width: 768px) {

  /* 모바일: 배너 높이 CSS 변수 우선 적용 */
  .main-banner { height: var(--banner-height, 480px); }

  .main-banner__text,
  .banner__text  { padding: 0 24px; padding-top: var(--header-h); }
  .main-banner__title,
  .banner__title { font-size: 1.7rem; }
  .banner__ctrl  { padding: 0 24px; bottom: 20px; }
  .banner__scroll-hint { display: none; }
  .site-sections {
    padding: 0 16px 80px;
  }
  .site-section__title{
    font-size: 1.5rem;
  }
  .site-section__subtitle{
    font-size: 1.1rem;
  }
  .cell-1-c1.card--text-top .card__title {
    font-size: 1.2rem;
  }
  .cell-1-c1.card--text-top .card__subtitle{
    font-size: 1rem;
  }
}
