:root {
  --space-xs: 8px;
  --space-s: 16px;
  --space-m: 24px;
  --space-l: 40px;
  --space-xl: 80px;
   
  --font-xs: 12px;
  --font-s: 16px;
  --font-m: 18px;
  --font-l: 20px;
  --font-xl: 42px;

  --color-bg: #f9fafb;
  --color-text: #111827;
  --color-muted: #6b7280;
  --color-primary: #2563eb;
  --color-primary-hover: #1d4ed8;
  --color-surface: #ffffff;
}

/* ==========================================================================
   2. RESET & BASE STYLES
   ========================================================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', sans-serif;
  font-size: var(--font-m);
  line-height: 1.6;
  background-color: var(--color-bg);
  color: var(--color-text);
  text-align: center;
}

h1 {
  font-family: 'Poppins', sans-serif;
  font-size: var(--font-xl);
  letter-spacing: 0;
  line-height: 1.2;
  margin-top: var(--space-l);
  margin-bottom: var(--space-s);
}

img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

/* ==========================================================================
   3. LAYOUT COMPONENTS
   ========================================================================== */
.main-content {
  padding-top: var(--space-m);
  min-height: 80vh; /* 푸터가 둥둥 떠다니는 것을 방지 */
}
.container {
  max-width: 600px;
  margin: 0 auto;
  padding: 0 var(--space-s);
}
.main-header {
  background: var(--color-surface);
  padding: 6px 8px;
  border-bottom: 1px solid #f0f0f0;
  position: sticky;
  top: 0;
  z-index: 100;
  height: 44px;
  display: flex;
  align-items: center;
}
.main-header nav a {
  transition: color 0.2s ease;
}
.main-header nav a:hover {
  color: var(--color-primary);
}
.page-title {
  margin-top: 0;
  margin-bottom: var(--space-l);
  letter-spacing: 0;
  font-size: var(--font-xl);
  text-transform: uppercase;
}
.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
   padding: 0 var(--space-s); 
}

.logo {
  font-weight: 700;
  color: var(--color-primary);
  text-decoration: none;
  font-size: 14px;
   line-height: 1; 
  display: flex;
  align-items: center;
}

nav {
  display: flex;
  align-items: center;
  line-height: 1;
}

nav a {
  margin-left: 12px;
  text-decoration: none;
  color: var(--color-text);
  font-size: 11px;
  font-weight: 600;
  line-height: 1; /* 로고와 동일하게 줄높이 1로 고정 */
   letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  text-transform: uppercase;
}

.card {
  background-color: var(--color-surface);
  border: 1px solid #f1f5f9;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  padding: var(--space-m); /* 약 24px의 균일한 여백 */
  margin-bottom: var(--space-m);
  text-align: left; /* 카드 내 텍스트는 기본 왼쪽 정렬 */
  transition: transform 0.2s ease;
}
.card-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: var(--space-m);
  display: block;
}
.card h2.highlight-text {
  font-size: var(--font-l); /* 카드 내 메인 인사는 조금 더 크게 */
  margin-bottom: var(--space-s);
}
.card h3.highlight-text {
  font-size: var(--font-m); /* 소제목은 중간 크기로 위계 정리 */
  margin-top: var(--space-m);
  margin-bottom: 8px;
}
/* ==========================================================================
   4. UI COMPONENTS (Buttons, Cards)
   ========================================================================== */
.menu-section .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px; /* 버튼 사이의 일정한 간격 */
}

.cta-button, .menu-button {
  display: flex;
  width: 100%;
  max-width: 320px;
  margin: 0 auto; /* block일 때 중앙 정렬 */
  padding: 0 20px;
  text-align: center;
  text-decoration: none;
   font-size: var(--font-m);
  font-weight: 600;
  border-radius: 8px;
  transition: all 0.2s ease;
  line-height: 1;
   letter-spacing: 0.05em;
   height: 56px;
   font-family: 'Inter', sans-serif;
   align-items: center;
  justify-content: center;
}
.cta-button {
  background-color: var(--color-primary);
  color: var(--color-surface);
  border: none;
  box-shadow: 0 4px 6px rgba(37, 99, 235, 0.1);
}
.menu-button {
  background-color: var(--color-surface);
  color: var(--color-text);
  border: 1px solid #e5e7eb;
}
.cta-button:hover {
  background-color: var(--color-primary-hover);
  transform: translateY(-2px);
}
.menu-button:hover {
  background-color: #f8fafc;
  border-color: var(--color-primary);
  color: var(--color-primary)
}
/* ==========================================================================
   5. PAGE SECTIONS
   ========================================================================== */
.hero {
  padding: var(--space-m) 0 var(--space-l);
   text-align: center;
}

.hero h1 {
  font-size: var(--font-xl);
   margin-top: 0;
  margin-bottom: var(--space-s); /* 제목과 설명 사이 여백 */
}

.hero-description {
  margin-bottom: var(--space-l);
}

.highlight-text {
   font-size: var(--font-m);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 6px;
  display: block;
}

.sub-text {
  font-size: var(--font-s);
  font-weight: 400;
  color: var(--color-muted);
  line-height: 1.7;
}

.profile-photo {
   display: block;
  width: 150px; 
  border-radius: 50%;
  margin: 0 auto var(--space-m);
}

/* ===6. UTILITIES & FOOTER=== */
.small-text {
  font-size: var(--font-xs);
  color: var(--color-muted);
  margin-top: var(--space-m);
}
.footer {
  margin-top: var(--space-xl);
  padding: 40px 20px;
  font-size: var(--font-xs);
  color: var(--color-muted);
  border-top: 1px solid #f0f0f0;
}
/* ===7.MOBILE=== */
@media (max-width: 480px) {
  .main-header { padding: 4px 8px; height: 40px;}
  .logo { font-size: 13px; }
  nav a { margin-left: 10px; font-size: 11px; }
   h1 { font-size: 28px; margin-top: var(--space-m); }
   .nav-container {padding: 0 var(--space-xs); }
   .hero h1, h1, .page-title { font-size: 30px; }
}
/* ==========================================================================
   8. CONTACT PAGE SPECIAL (Toast & Button Reset)
   ========================================================================== */
#copy-toast {
  visibility: hidden;
  min-width: 200px;
  background-color: var(--color-text);
  color: #fff;
  text-align: center;
  border-radius: 8px;
  padding: 12px;
  position: fixed;
  z-index: 1000;
  left: 50%;
  bottom: 30px;
  transform: translateX(-50%);
  font-size: 14px;
  font-weight: 500;
  opacity: 0;
  transition: opacity 0.3s, bottom 0.3s;
}
#copy-toast.show {
  visibility: visible;
  opacity: 1;
  bottom: 50px;
}
button.menu-button {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  border: 1px solid #e5e7eb;
  background-color: #ffffff;
  font-family: inherit;
   font-size: inherit;
  font-weight: 600;
  outline: none;
}

/* ==========================================================================
   9. RESEÑAS (REVIEWS) PAGE STYLES
   ========================================================================== */

.review-card {
  position: relative;
  padding: 50px var(--space-m) var(--space-m); /* 상단에 따옴표 공간 확보 */
  overflow: hidden;
}

/* 따옴표를 장식 요소로 변경 */
.quote-icon {
  position: absolute;
  top: -10px;
  left: 10px;
  font-family: 'Poppins', sans-serif;
  font-size: 100px;
  color: var(--color-primary);
  opacity: 0.1; /* 아주 은은하게 */
  pointer-events: none; /* 클릭 방해 금지 */
}

/* 핵심 문장 강조 (현재 HTML에서 닫히지 않은 span 수정용) */
.focus-text {
  display: block;
  font-size: 22px; /* 강조를 위해 크게 */
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.3;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.quote-text {
  font-size: var(--font-s);
  color: var(--color-muted);
  line-height: 1.8;
  text-align: left;
}

/* 학생 정보 섹션 */
.student-info {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid #f1f5f9;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.student-name {
  font-weight: 600;
  color: var(--color-primary);
  font-size: var(--font-s);
}

.student-context {
  font-size: var(--font-xs);
  color: var(--color-muted);
}
button.menu-button:hover {
  background-color: #f8fafc;
  border-color: var(--color-primary);
  color: var(--color-primary);
  transform: translateY(-2px);
}

/* ==========================================================================
   10. CLASES PAGE STYLES
   ========================================================================== */

.class-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-m);
  margin-bottom: 0;
}

/* 클래스 카드 — 기존 .card 위에 레이어 */
.class-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-s);
  margin-bottom: 0; /* class-list gap으로 대체 */
}

/* 레벨 배지 + 제목 묶음 */
.class-card-header {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* 레벨 뱃지 (NIVEL 1, PRÓXIMO 등) */
.class-level {
  display: inline-block;
  font-size: var(--font-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--color-primary);
  text-transform: uppercase;
}

/* 카드 제목 */
.card-title {
  font-family: 'Poppins', sans-serif;
  font-size: var(--font-l);
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin: 0;
}

/* 카드 본문 */
.card-desc {
  font-size: var(--font-s);
  color: var(--color-muted);
  line-height: 1.75;
  margin: 0;
}

/* 준비 중 카드 — 조금 더 흐리게 */
.class-card--upcoming {
  opacity: 0.6;
}

.class-card--upcoming .class-level {
  color: var(--color-muted);
}

/* action-area — 인라인 style 대체 */
.action-area {
  margin-top: var(--space-l);
}
