/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   Sleepover English — 전체 스타일시트
   파일: style.css
   작성 순서: 변수 → 리셋 → 공통 → 네비 → 히어로 → 유틸
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */


/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   1. CSS 변수 (컬러 시스템)
   ✏️ 여기 수정: 색상 변경 시 이 변수만 바꾸면 전체 적용
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
:root {
  /* 기본 컬러 팔레트 */
  --color-bg:      #1B3C53;                        /* 메인 배경: 짙은 네이비 블루 */
  --color-surface: #456882;                        /* 카드/서브 배경: 중간 블루 */
  --color-accent:  #D2C1B6;                        /* 포인트: 웜 베이지 */
  --color-text:    #F9F3EF;                        /* 기본 텍스트: 따뜻한 화이트 */
  --color-muted:   rgba(249, 243, 239, 0.55);      /* 보조 텍스트: 반투명 */

  /* 그라디언트 */
  --gradient-hero:    linear-gradient(135deg, #0f2535 0%, #1B3C53 50%, #2a4f68 100%);
  --gradient-section: linear-gradient(180deg, #1B3C53 0%, #162f42 100%);
  --gradient-cta:     linear-gradient(135deg, #D2C1B6, #c4b0a4);

  /* 그림자 */
  --glow-accent: 0 0 24px rgba(210, 193, 182, 0.15);  /* 포인트 요소 은은한 glow */
  --shadow-btn:  0 4px 20px rgba(210, 193, 182, 0.25); /* 버튼 hover 시 그림자 */

  /* 레이아웃 */
  --max-width:     1200px;   /* 최대 콘텐츠 너비 */
  --nav-height:    72px;     /* 네비게이션 높이 */
  --section-pad:   120px;    /* 섹션 상하 패딩 */
  --container-pad: 24px;     /* 좌우 여백 */

  /* 타이포그래피 */
  --font-en:   'Space Grotesk', sans-serif;  /* 영문 헤드라인 */
  --font-ko:   'Noto Sans KR', sans-serif;   /* 한글 + 본문 */
  --font-mono: 'Space Mono', monospace;      /* 숫자/통계 강조 */

  /* 애니메이션 */
  --transition-base: 0.4s ease;
  --transition-fast: 0.2s ease;
}


/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   2. CSS 리셋 & 기본 설정
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box; /* 패딩이 너비에 포함되도록 */
}

html {
  scroll-behavior: smooth; /* 앵커 클릭 시 부드럽게 스크롤 */
  font-size: 16px;
}

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-ko);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased; /* 폰트 렌더링 개선 (맥OS) */
  overflow-x: hidden; /* 가로 스크롤 방지 */
}

a {
  color: inherit;
  text-decoration: none;
}

img, video {
  display: block;
  max-width: 100%;
}

/* 포커스 링 (접근성) */
:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}


/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   3. 공통 유틸리티
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

/* 최대 너비 래퍼 */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

/* 섹션 라벨 — 작은 대문자 텍스트 */
/* 예: "MINECRAFT × ENGLISH" */
.section-label {
  display: inline-block;
  font-family: var(--font-en);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 20px;
}

/* 강조 텍스트 컬러 */
.accent {
  color: var(--color-accent);
}

/* 스크롤 시 fade-in 애니메이션 (script.js와 연동) */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--transition-base), transform var(--transition-base);
}

/* script.js에서 .visible 클래스 추가 시 등장 */
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* placeholder 섹션 스타일 (작업 전 임시) */
.section-placeholder {
  padding: var(--section-pad) 0;
  border-top: 1px solid rgba(210, 193, 182, 0.08);
}


/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   4. 버튼 스타일
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 6px;            /* 너무 둥글지 않게 — 프리미엄 느낌 */
  font-family: var(--font-ko);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
  white-space: nowrap;
}

/* Primary 버튼: gradient 배경 + 짙은 텍스트 */
.btn--primary {
  background: var(--gradient-cta);
  color: #1B3C53;
  box-shadow: 0 2px 12px rgba(210, 193, 182, 0.2);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-btn);
  background: linear-gradient(135deg, #e0d0c6, #d4bfb3); /* hover 시 살짝 밝아짐 */
}

/* Secondary 버튼: 테두리만 */
.btn--secondary {
  background: transparent;
  color: var(--color-text);
  border: 1.5px solid rgba(210, 193, 182, 0.5);
}

.btn--secondary:hover {
  transform: translateY(-2px);
  border-color: var(--color-accent);
  background: rgba(210, 193, 182, 0.06);
}

/* 버튼 안 가격 표시 (예: "9,900원") */
.btn__price {
  font-family: var(--font-mono);
  font-size: 0.85rem;
}


/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   5. 네비게이션 바
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.nav {
  position: fixed;            /* 화면 상단에 고정 */
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;               /* 모든 콘텐츠 위에 표시 */
  height: var(--nav-height);
  transition: background var(--transition-base), backdrop-filter var(--transition-base), border-color var(--transition-base);

  /* 초기 상태: 투명 */
  background: transparent;
  border-bottom: 1px solid transparent;
}

/* 스크롤 내려가면 script.js에서 .scrolled 클래스 추가 */
.nav.scrolled {
  background: rgba(27, 60, 83, 0.75);      /* 반투명 배경 */
  backdrop-filter: blur(12px);             /* 뒤 콘텐츠 흐리게 */
  -webkit-backdrop-filter: blur(12px);     /* Safari 지원 */
  border-bottom: 1px solid rgba(210, 193, 182, 0.1);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

/* 로고 */
.nav__logo {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
}

.nav__logo-en {
  color: var(--color-text);
}

/* ✏️ 여기 수정: 로고 강조 색상 */
.nav__logo-accent {
  color: var(--color-accent);
}

/* 데스크탑 메뉴 링크들 */
.nav__menu {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav__link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-muted);
  transition: color var(--transition-fast);
}

.nav__link:hover {
  color: var(--color-text);
}

/* 네비 CTA 버튼 (사이즈 작게) */
.nav__cta {
  padding: 10px 20px;
  font-size: 0.875rem;
}

/* 햄버거 버튼 (모바일) */
.nav__hamburger {
  display: none;           /* 데스크탑에서는 숨김 */
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav__hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

/* 햄버거 → X 변환 (script.js에서 .open 클래스 추가) */
.nav__hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav__hamburger.open span:nth-child(2) {
  opacity: 0;
}
.nav__hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* 모바일 드롭다운 메뉴 */
.nav__mobile-menu {
  display: none; /* 기본: 숨김 */
  flex-direction: column;
  padding: 20px var(--container-pad) 28px;
  background: rgba(27, 60, 83, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(210, 193, 182, 0.1);
  gap: 4px;
}

/* script.js에서 .open 추가 시 표시 */
.nav__mobile-menu.open {
  display: flex;
}

.nav__mobile-link {
  padding: 12px 0;
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-muted);
  border-bottom: 1px solid rgba(210, 193, 182, 0.06);
  transition: color var(--transition-fast);
}

.nav__mobile-link:hover {
  color: var(--color-text);
}

.nav__mobile-cta {
  margin-top: 16px;
  text-align: center;
  justify-content: center;
}


/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   6. 히어로 섹션 — B안: Full-Width Immersive
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.hero {
  position: relative;
  min-height: 100vh;               /* 전체 화면 높이 */
  display: flex;
  align-items: center;             /* 세로 중앙 정렬 */
  padding-top: var(--nav-height);  /* 네비 높이만큼 상단 여백 */
  overflow: hidden;

  /* ✏️ 여기 수정: 배경 그라디언트 */
  background: var(--gradient-hero);
}

/* 배경 픽셀 도트 패턴 (마인크래프트 분위기) */
/* CSS만으로 만드는 은은한 격자 패턴 */
.hero__bg-pattern {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(210, 193, 182, 0.06) 1px, transparent 1px);
  background-size: 32px 32px;  /* 격자 간격 — 마인크래프트 블록 느낌 */
  pointer-events: none;         /* 클릭 이벤트 통과 */
  z-index: 0;
}

/* 하단에서 올라오는 그라디언트 (배경과 자연스럽게 연결) */
.hero__bg-pattern::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 200px;
  background: linear-gradient(to top, var(--color-bg), transparent);
}

/* 콘텐츠 래퍼 */
.hero__inner {
  position: relative;
  z-index: 1;                 /* 배경 패턴 위에 표시 */
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 80px var(--container-pad) 100px;
}

/* 섹션 라벨 (히어로 내부) */
.hero__inner .section-label {
  opacity: 0;
  animation: fadeUp 0.8s ease 0.2s forwards; /* 페이지 로드 시 등장 */
}

/* 메인 헤드라인 */
.hero__title {
  font-family: var(--font-ko);    /* 한글 헤드라인 */
  font-size: clamp(48px, 7vw, 80px); /* 화면 크기에 따라 자동 조절 */
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;        /* 큰 텍스트는 자간 약간 줄이면 세련됨 */
  color: var(--color-text);
  max-width: 700px;               /* 너무 길게 늘어나지 않도록 */
  margin-bottom: 28px;

  /* 로드 애니메이션 */
  opacity: 0;
  animation: fadeUp 0.8s ease 0.4s forwards;
}

/* 서브 카피 */
.hero__sub {
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  color: var(--color-muted);
  line-height: 1.8;
  max-width: 480px;
  margin-bottom: 44px;

  opacity: 0;
  animation: fadeUp 0.8s ease 0.6s forwards;
}

/* CTA 버튼 그룹 */
.hero__cta {
  display: flex;
  flex-wrap: wrap;          /* 작은 화면에서 줄 바꿈 */
  gap: 14px;
  margin-bottom: 64px;

  opacity: 0;
  animation: fadeUp 0.8s ease 0.8s forwards;
}

/* 신뢰 지표 (별점, 누적 수업 등) */
.hero__trust {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;

  opacity: 0;
  animation: fadeUp 0.8s ease 1s forwards;
}

.trust-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

/* 숫자 강조: Space Mono 폰트 */
.trust-number {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1;
}

.trust-unit {
  font-size: 1rem;
}

.trust-label {
  font-size: 0.75rem;
  color: var(--color-muted);
  letter-spacing: 0.02em;
}

/* 신뢰 지표 사이 구분선 */
.trust-divider {
  width: 1px;
  height: 36px;
  background: rgba(210, 193, 182, 0.2);
  flex-shrink: 0;
}

/* 스크롤 유도 화살표 */
.hero__scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--color-muted);
  transition: opacity var(--transition-base);

  opacity: 0;
  animation: fadeIn 0.8s ease 1.4s forwards;
}

/* script.js에서 스크롤하면 .hidden 추가 */
.hero__scroll.hidden {
  opacity: 0 !important;
  pointer-events: none;
}

.scroll-text {
  font-family: var(--font-en);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

/* 화살표 위아래 반복 움직임 */
.scroll-arrow {
  animation: bounce 2s ease-in-out infinite;
}


/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   7. 키프레임 애니메이션
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

/* 아래에서 위로 나타나기 */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 단순 페이드인 */
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* 위아래 바운스 (스크롤 화살표) */
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(6px); }
}


/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   8. 공통 섹션 타이포그래피
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

/* 섹션 제목 (h2) — 히어로 이후 모든 섹션에 공통 적용 */
.section-title {
  font-family: var(--font-ko);
  font-size: clamp(32px, 4.5vw, 52px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--color-text);
  margin-bottom: 16px;
}

/* 섹션 설명 텍스트 */
.section-sub {
  font-size: 1rem;
  color: var(--color-muted);
  line-height: 1.7;
}


/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   9. "왜 우리인가" 섹션 — 비교표
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.why-us {
  padding: var(--section-pad) 0;
  background: var(--gradient-section); /* 히어로와 이어지는 짙은 다크 */
  border-top: 1px solid rgba(210, 193, 182, 0.08);
}

/* 섹션 헤더: 제목 + 서브텍스트 */
.why-us__header {
  margin-bottom: 64px;
}

.why-us__header .section-label {
  margin-bottom: 16px;
}

/* 비교 테이블 전체 래퍼 */
.compare {
  max-width: 860px;         /* 너무 넓어지지 않게 제한 */
  margin: 0 auto 64px;
}

/* 헤더 행: "일반 영어 학원" vs "Sleepover English" */
.compare__header-row {
  display: grid;
  grid-template-columns: 1fr 24px 1fr;  /* 좌:구분:우 = 1:auto:1 */
  gap: 0;
  margin-bottom: 8px;
  padding: 0 8px;
}

.compare__label {
  font-family: var(--font-en);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0 20px 16px;
}

/* "일반 영어 학원" 라벨: 흐리게 */
.compare__label--other {
  color: var(--color-muted);
}

/* "Sleepover English" 라벨: 포인트 컬러 */
.compare__label--us {
  color: var(--color-accent);
}

/* 헤더 행 중앙 빈 공간 (구분선 자리) */
.compare__divider-head {
  border-left: 1px solid rgba(210, 193, 182, 0.12);
}

/* 각 비교 행 */
.compare__row {
  display: grid;
  grid-template-columns: 1fr 24px 1fr;  /* 좌:중앙점:우 */
  align-items: center;
  border-top: 1px solid rgba(210, 193, 182, 0.08);
  transition: background var(--transition-fast);
}

.compare__row:last-child {
  border-bottom: 1px solid rgba(210, 193, 182, 0.08);
}

.compare__row:hover {
  background: rgba(210, 193, 182, 0.03); /* hover 시 행 살짝 밝아짐 */
}

/* 각 셀 공통 */
.compare__cell {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 20px;
  font-size: 0.95rem;
  line-height: 1.5;
}

/* 기존 학원 셀: 흐리게 */
.compare__cell--other {
  color: var(--color-muted);
}

/* 슬립오버 셀: 밝게 */
.compare__cell--us {
  color: var(--color-text);
  font-weight: 500;
}

/* ✕ 마크 (빨간 계열은 피하고 그냥 muted) */
.compare__x {
  font-size: 0.9rem;
  color: rgba(249, 243, 239, 0.3);
  flex-shrink: 0;
  font-weight: 700;
}

/* ✓ 마크: 포인트 컬러 */
.compare__check {
  font-size: 0.9rem;
  color: var(--color-accent);
  flex-shrink: 0;
  font-weight: 700;
}

/* 행 중앙 구분선 (세로선 + 점) */
.compare__center-dot {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  border-left: 1px solid rgba(210, 193, 182, 0.12);
  align-self: stretch; /* 행 전체 높이만큼 */
}

/* 구분선 위의 점 */
.compare__center-dot::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(210, 193, 182, 0.25);
  position: absolute;
}

/* 하단 CTA 영역 */
.why-us__cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

/* 버튼 아래 보조 문구 */
.why-us__cta-note {
  font-size: 0.85rem;
  color: var(--color-muted);
}


/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   10. 수업 소개 섹션 — 레벨 카드 + 스케줄
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

/* 섹션 전체: 밝은 배경으로 전환 (다크 섹션과 리듬 만들기) */
.curriculum {
  padding: var(--section-pad) 0;
  background: var(--color-text);    /* #F9F3EF — 따뜻한 아이보리 */
  color: var(--color-bg);           /* 텍스트 반전: 짙은 네이비 */
}

/* 커리큘럼 섹션 안에서만 색상 반전 적용 */
.curriculum .section-label {
  color: var(--color-surface);      /* 밝은 배경 위 라벨은 좀 더 짙게 */
}

.curriculum .section-title {
  color: var(--color-bg);
}

.curriculum .section-title .accent {
  color: #2a4f68;                   /* 밝은 배경 위 accent: 좀 더 짙은 블루 */
}

.curriculum .section-sub {
  color: rgba(27, 60, 83, 0.65);   /* 밝은 배경 위 보조 텍스트 */
}

/* 섹션 헤더 */
.curriculum__header {
  margin-bottom: 56px;
}

/* ━━ 레벨 카드 그리드 ━━ */
.level-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 72px;
}

/* 기본 레벨 카드 */
.level-card {
  position: relative;
  background: white;
  border: 1px solid rgba(27, 60, 83, 0.1);
  border-radius: 10px;
  padding: 32px 28px;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.level-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(27, 60, 83, 0.1);
}

/* 가장 많이 선택 카드: accent 테두리 + 은은한 glow */
.level-card--featured {
  border: 1.5px solid rgba(27, 60, 83, 0.4);
  box-shadow: 0 4px 20px rgba(27, 60, 83, 0.08);
}

.level-card--featured:hover {
  box-shadow: 0 12px 40px rgba(27, 60, 83, 0.15);
}

/* "가장 많아요" 뱃지 */
.level-card__badge {
  position: absolute;
  top: -12px;
  left: 28px;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-en);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 4px 12px;
  border-radius: 4px;
}

/* 카드 상단: 레벨 태그 + 학년 */
.level-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

/* 레벨 이름 태그 (STARTER / EXPLORER / ADVENTURER) */
.level-card__tag {
  font-family: var(--font-en);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--color-bg);
  background: rgba(27, 60, 83, 0.08);
  padding: 4px 10px;
  border-radius: 4px;
}

/* 학년 표시 */
.level-card__age {
  font-size: 0.8rem;
  color: rgba(27, 60, 83, 0.5);
  font-weight: 500;
}

/* 카드 제목 */
.level-card__title {
  font-family: var(--font-ko);
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--color-bg);
  margin-bottom: 20px;
}

/* 설명 목록 */
.level-card__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
  padding: 0;
}

.level-card__list li {
  font-size: 0.875rem;
  color: rgba(27, 60, 83, 0.7);
  line-height: 1.5;
  padding-left: 16px;
  position: relative;
}

/* 목록 앞 점 */
.level-card__list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: rgba(27, 60, 83, 0.3);
  font-size: 0.75rem;
}

/* 목표 영역: 카드 하단 구분선 위 */
.level-card__goal {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-top: 20px;
  border-top: 1px solid rgba(27, 60, 83, 0.08);
  font-size: 0.85rem;
  color: rgba(27, 60, 83, 0.8);
  line-height: 1.5;
}

.level-card__goal-label {
  font-family: var(--font-en);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(27, 60, 83, 0.45);
}


/* ━━ 주간 스케줄 ━━ */
.schedule {
  background: rgba(27, 60, 83, 0.04);
  border: 1px solid rgba(27, 60, 83, 0.1);
  border-radius: 12px;
  padding: 40px 44px;
}

.schedule__title {
  font-family: var(--font-ko);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-bg);
  margin-bottom: 6px;
}

.schedule__note {
  font-size: 0.875rem;
  color: rgba(27, 60, 83, 0.55);
  margin-bottom: 32px;
}

/* 주중 / 주말 두 블록을 나란히 */
.schedule__grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0 40px;
  align-items: start;
  margin-bottom: 28px;
}

/* 블록 제목 (평일 / 주말) */
.schedule__day-label {
  font-family: var(--font-en);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: rgba(27, 60, 83, 0.45);
  margin-bottom: 16px;
}

.schedule__slots {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* 요일 이름 (월·수·금 등) */
.schedule__slot {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-bg);
  margin-bottom: 4px;
}

/* 시간 칩들 */
.schedule__times {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* 개별 시간 칩 */
.time-chip {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--color-bg);
  background: white;
  border: 1px solid rgba(27, 60, 83, 0.15);
  border-radius: 4px;
  padding: 4px 10px;
}

/* 주중/주말 사이 세로 구분선 */
.schedule__divider {
  width: 1px;
  background: rgba(27, 60, 83, 0.1);
  align-self: stretch;
}

/* 하단 안내 (45분, 정원 5명 등) */
.schedule__cta-hint {
  font-size: 0.875rem;
  color: rgba(27, 60, 83, 0.6);
  border-top: 1px solid rgba(27, 60, 83, 0.08);
  padding-top: 20px;
}

.schedule__cta-hint strong {
  color: var(--color-bg);
}

/* 레벨 카드 — 한국어 서브타이틀 (운동장 입성 등) */
.level-card__sub {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  color: var(--color-accent);
  opacity: 0.75;
  margin-bottom: 10px;
  text-transform: none;
}

/* 레벨 카드 — 단락 설명 (ul 대체) */
.level-card__desc {
  font-size: 0.875rem;
  color: rgba(27, 60, 83, 0.65);
  line-height: 1.7;
  margin-bottom: 24px;
}

/* 마무리 CTA 블록 */
.curriculum__closing {
  text-align: center;
  margin-top: 56px;
  padding-top: 48px;
  border-top: 1px solid rgba(27, 60, 83, 0.1);
}

/* 마무리 인용구 */
.curriculum__closing-quote {
  font-family: var(--font-ko);
  font-size: clamp(20px, 2.5vw, 26px);
  font-weight: 700;
  color: var(--color-bg);
  line-height: 1.45;
  margin-bottom: 16px;
}

/* 마무리 서브텍스트 */
.curriculum__closing-sub {
  font-size: 0.95rem;
  color: rgba(27, 60, 83, 0.6);
  line-height: 1.8;
  margin-bottom: 32px;
}


/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   11. "우리 이야기" 섹션
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

/* 섹션 전체 — 배경: --color-surface (#456882) */
.our-story {
  padding: var(--section-pad) 0;
  background: var(--color-surface);
  border-top: 1px solid rgba(210, 193, 182, 0.08);
}

/* 내부 레이아웃: 5fr(인용) + 7fr(본문) 비대칭 그리드 */
.our-story__inner {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 80px;
  align-items: start;
}

/* 왼쪽: 인용구 영역 */
.our-story__quote {
  position: sticky;
  top: 100px; /* 스크롤해도 왼쪽이 고정되어 읽기 편함 */
}

/* OUR STORY 레이블 */
.our-story__quote .section-label {
  display: block;
  margin-bottom: 32px;
}

/* 큰 인용구 — 핵심 문구 */
.story-quote {
  margin: 0;
  padding: 0;
  font-family: var(--font-ko);
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--color-text);
}

/* 인용 부호 — 큰따옴표 장식 */
.story-quote::before {
  content: '\201C'; /* 여는 큰따옴표 */
  display: block;
  font-family: var(--font-en);
  font-size: 80px;
  line-height: 0.6;
  color: var(--color-accent);
  opacity: 0.4;
  margin-bottom: 16px;
}

.story-quote::after {
  content: '\201D'; /* 닫는 큰따옴표 */
  display: block;
  font-family: var(--font-en);
  font-size: 80px;
  line-height: 0.6;
  color: var(--color-accent);
  opacity: 0.4;
  margin-top: 16px;
  text-align: right;
}

/* 오른쪽: 본문 텍스트 영역 — 0.2s 딜레이로 나타남 */
.our-story__text--delayed {
  transition-delay: 0s; /* 기본: 딜레이 없음 */
}

/* .visible 상태일 때만 딜레이 적용 */
.our-story__text--delayed.visible {
  transition-delay: 0.2s;
}

/* 본문 단락 */
.story-p {
  font-family: var(--font-ko);
  font-size: 1.05rem;
  line-height: 1.9;
  color: var(--color-text);
  margin-bottom: 24px;
  opacity: 0.9;
}

.story-p:last-of-type {
  margin-bottom: 40px;
}

/* 서명 영역 */
.story-signature {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* 서명 앞 가로선 */
.story-signature__line {
  display: inline-block;
  width: 40px;
  height: 1px;
  background: var(--color-muted);
  flex-shrink: 0;
}

/* 서명 텍스트 */
.story-signature__name {
  font-family: var(--font-en);
  font-style: italic;
  font-size: 0.9rem;
  color: var(--color-muted);
  letter-spacing: 0.02em;
}


/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   12. Why Us — feature-list 스타일
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

/* 리스트 래퍼 */
.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* 각 feature 항목: 번호(80px) + 본문(나머지) 그리드 */
.feature-item {
  display: grid;
  grid-template-columns: 80px 1fr;
  align-items: start;
  padding: 40px 0;
  border-bottom: 1px solid rgba(210, 193, 182, 0.12);
}

.feature-item:last-child {
  border-bottom: none;
}

/* 번호 — Space Mono, 크고 연하게 */
.feature-item__num {
  font-family: var(--font-mono);
  font-size: 48px;
  font-weight: 700;
  line-height: 1;
  color: var(--color-accent);
  opacity: 0.25;
  padding-top: 4px; /* 제목 baseline 맞춤 */
}

/* 본문 영역 */
.feature-item__body {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* feature 제목 */
.feature-item__title {
  font-family: var(--font-ko);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.3;
}

/* feature 설명 */
.feature-item__desc {
  font-size: 0.95rem;
  color: var(--color-muted);
  line-height: 1.8;
}


/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   13. 갤러리 섹션
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.gallery {
  padding: var(--section-pad) 0;
  background: var(--color-bg);
}

.gallery__header {
  text-align: center;
  margin-bottom: 48px;
}

/* 3열 그리드: 첫 번째 아이템이 2행 차지 */
.gallery__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.gallery__item {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  cursor: pointer;
  background: var(--color-surface);
  aspect-ratio: 4 / 3;
}

/* 첫 번째 아이템: 2행 차지 → 세로로 긴 편집장 스타일 */
.gallery__item:first-child {
  grid-row: span 2;
  aspect-ratio: unset; /* 행 높이에 맞게 자동 늘어남 */
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.gallery__item:hover img {
  transform: scale(1.06);
}

/* 호버 시 어두운 오버레이 + + 아이콘 */
.gallery__overlay {
  position: absolute;
  inset: 0;
  background: rgba(27, 60, 83, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery__item:hover .gallery__overlay {
  opacity: 1;
}

.gallery__overlay span {
  font-size: 36px;
  color: #fff;
  font-family: var(--font-en);
  font-weight: 300;
  line-height: 1;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   갤러리 모달 — 인스타그램 스타일
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.gallery-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.gallery-modal.open {
  opacity: 1;
  pointer-events: all;
}

/* 어두운 배경 */
.gallery-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  cursor: pointer;
}

/* 모달 카드 */
.gallery-modal__content {
  position: relative;
  z-index: 1;
  display: flex;
  width: 88vw;
  max-width: 960px;
  max-height: 88vh;
  background: var(--color-surface);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.6);
}

/* 이미지 영역 (왼쪽 60%) */
.gallery-modal__img-wrap {
  position: relative;
  flex: 0 0 60%;
  background: #000;
  display: flex;
  align-items: center;
}

.gallery-modal__img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* 전/다음 버튼 */
.gallery-modal__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.45);
  border: none;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.2s;
}

.gallery-modal__nav:hover {
  background: rgba(0, 0, 0, 0.75);
}

.gallery-modal__nav--prev { left: 12px; }
.gallery-modal__nav--next { right: 12px; }

/* 설명 영역 (오른쪽 40%) */
.gallery-modal__info {
  flex: 1;
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  border-left: 1px solid rgba(249, 243, 239, 0.1);
  overflow-y: auto;
}

/* "1 / 5" 카운터 */
.gallery-modal__count {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--color-muted);
  text-transform: uppercase;
}

/* 설명 텍스트 */
.gallery-modal__desc {
  font-family: var(--font-ko);
  font-size: 15px;
  line-height: 1.7;
  color: var(--color-text);
}

/* 닫기 버튼 */
.gallery-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  background: rgba(0, 0, 0, 0.45);
  border: none;
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.2s;
}

.gallery-modal__close:hover {
  background: rgba(0, 0, 0, 0.8);
}


/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   14. 반응형 (모바일)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

/* 태블릿 이하 (768px 미만) */
@media (max-width: 768px) {

  /* 네비: 데스크탑 메뉴/CTA 숨기고 햄버거 표시 */
  .nav__menu,
  .nav__cta {
    display: none;
  }

  .nav__hamburger {
    display: flex;
  }

  /* 히어로 */
  .hero__inner {
    padding: 60px var(--container-pad) 80px;
  }

  /* CTA 버튼 세로 배열 */
  .hero__cta {
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 48px;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  /* 비교표: 모바일에서 세로 쌓기 */
  .compare__header-row {
    display: none; /* 모바일에서 헤더 행 숨김 (각 셀에 라벨 직접 표시) */
  }

  .compare__row {
    grid-template-columns: 1fr; /* 1열로 변경 */
    gap: 0;
  }

  .compare__center-dot {
    display: none; /* 세로 쌓을 때 구분점 숨김 */
  }

  /* 기존 학원 셀: 위에 배치, 취소선 느낌 */
  .compare__cell--other {
    padding: 12px 16px 8px;
    font-size: 0.85rem;
    border-bottom: none;
  }

  /* 슬립오버 셀: 아래에 배치, 강조 */
  .compare__cell--us {
    padding: 0 16px 16px;
    font-size: 0.95rem;
    border-bottom: 1px solid rgba(210, 193, 182, 0.08);
  }

  .compare__row:last-child .compare__cell--us {
    border-bottom: none;
  }

  /* 비교표 머리말 (모바일용 대체) */
  .compare::before {
    content: 'Sleepover English의 차이';
    display: block;
    font-size: 0.75rem;
    color: var(--color-accent);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 16px;
  }

  /* 신뢰 지표 간격 조정 */
  .hero__trust {
    gap: 16px;
  }

  /* 우리 이야기: 2열 → 1열 세로 쌓기 */
  .our-story__inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  /* sticky 해제 (모바일에서는 불필요) */
  .our-story__quote {
    position: static;
  }

  /* 인용구 크기 줄이기 */
  .story-quote {
    font-size: clamp(24px, 6vw, 32px);
  }

  /* 레벨 카드: 3열 → 1열 */
  .level-cards {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  /* 갤러리: 3열 → 2열, 첫 아이템 전폭 */
  .gallery__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery__item:first-child {
    grid-column: span 2;
    grid-row: span 1;
    aspect-ratio: 16 / 9;
  }

  /* 모달: 세로로 쌓기 */
  .gallery-modal__content {
    flex-direction: column;
    width: 95vw;
    max-height: 92vh;
  }

  .gallery-modal__img-wrap {
    flex: 0 0 55%;
  }

  .gallery-modal__info {
    border-left: none;
    border-top: 1px solid rgba(249, 243, 239, 0.1);
    padding: 20px;
  }

  /* 스케줄: 주중/주말 세로로 쌓기 */
  .schedule {
    padding: 28px 20px;
  }

  .schedule__grid {
    grid-template-columns: 1fr;
    gap: 28px 0;
  }

  .schedule__divider {
    display: none;
  }
}

/* 작은 모바일 (480px 미만) */
@media (max-width: 480px) {
  .hero__title {
    font-size: 40px;
  }
}
