/* ============================================
   VARIABLES
   ============================================ */
:root {
  --bg: #FDFAF5;
  --bg-2: #F5EEE3;
  --bg-card: #FFFFFF;
  --accent: #B8956A;
  --accent-light: #EAD9C0;
  --accent-dark: #8B6245;
  --text: #2C2420;
  --text-mid: #6B5E56;
  --text-light: #9A8E87;
  --border: #E5D9CC;
  --cta: #8B6245;
  --cta-hover: #6D4D36;
  --font-serif: 'Gowun Batang', serif;
  --font-sans: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', sans-serif;
  --font-number: 'Montserrat', sans-serif;
  --radius: 16px;
  --radius-sm: 8px;
  --shadow: 0 4px 24px rgba(139, 98, 69, 0.08);
  --shadow-hover: 0 8px 40px rgba(139, 98, 69, 0.16);
  --max-w: 1100px;
  --nav-h: 72px;
  --transition: all 0.3s ease;
}

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

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

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

ul, ol {
  list-style: none;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  line-height: 1.35;
  color: var(--text);
}

h1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 600; }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); font-weight: 600; }
h4 { font-size: 1.1rem; font-weight: 600; }

p {
  color: var(--text-mid);
  line-height: 1.85;
}

.serif { font-family: var(--font-serif); }
.text-accent { color: var(--accent-dark); }
.text-light { color: var(--text-light); }

/* ============================================
   LAYOUT
   ============================================ */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 96px 0;
}

.section-label {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.section-title {
  margin-bottom: 20px;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-mid);
  max-width: 600px;
  margin-bottom: 56px;
}

.center {
  text-align: center;
}

.center .section-desc,
.section-desc.center {
  margin-left: auto;
  margin-right: auto;
}

/* PC에서만 줄바꿈 (모바일에서는 인라인) */
.pc-break { display: inline; }
@media (max-width: 768px) {
  .pc-break { display: none; }
}

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: rgba(253, 250, 245, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  line-height: 1.1;
}

.nav-logo .logo-heart {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  display: block;
}

.nav-logo .logo-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.nav-logo .logo-main {
  font-family: var(--font-number);
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: 0.2em;
  color: var(--accent-dark);
  line-height: 1;
}

.nav-logo .logo-sub {
  font-family: var(--font-sans);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  color: var(--text-light);
  line-height: 1;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-menu a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-mid);
  transition: var(--transition);
  position: relative;
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--accent);
  transition: var(--transition);
}

.nav-menu a:hover {
  color: var(--text);
}

.nav-menu a:hover::after {
  width: 100%;
}

.nav-cta {
  background: var(--cta);
  color: #fff !important;
  padding: 10px 20px;
  border-radius: 100px;
  font-size: 0.85rem !important;
  font-weight: 600 !important;
  transition: var(--transition) !important;
}

.nav-cta::after {
  display: none !important;
}

.nav-cta:hover {
  background: var(--cta-hover) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(139, 98, 69, 0.3) !important;
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}

.nav-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile nav */
.nav-mobile {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 24px;
  flex-direction: column;
  gap: 20px;
  z-index: 999;
  box-shadow: var(--shadow);
}

.nav-mobile.open {
  display: flex;
}

.nav-mobile a {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-mid);
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}

.nav-mobile .nav-cta {
  text-align: center;
  padding: 14px;
  border-bottom: none;
  border-radius: var(--radius-sm);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 100px;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: var(--font-sans);
  cursor: pointer;
  border: none;
  transition: var(--transition);
  text-decoration: none;
}

.btn-primary {
  background: var(--cta);
  color: #fff;
}

.btn-primary:hover {
  background: var(--cta-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(139, 98, 69, 0.3);
}

.btn-outline {
  background: transparent;
  color: var(--cta);
  border: 1.5px solid var(--accent);
}

.btn-outline:hover {
  background: var(--accent-light);
  transform: translateY(-2px);
}

.btn-kakao {
  background: #FEE500;
  color: #3C1E1E;
}

.chat-icon {
  width: 20px;
  height: 20px;
  vertical-align: middle;
  margin-right: 6px;
}

.btn-kakao:hover {
  background: #F0D800;
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(254, 229, 0, 0.4);
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

/* ============================================
   HERO (MAIN)
   ============================================ */
.hero {
  padding-top: calc(var(--nav-h) + 80px);
  padding-bottom: 80px;
  background: var(--bg-2);
  overflow: hidden;
}

.hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 64px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-light);
  color: var(--accent-dark);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 24px;
}

.hero-title {
  margin-bottom: 20px;
}

.hero-title .highlight {
  color: var(--accent-dark);
  position: relative;
}

.hero-desc {
  font-size: 1.05rem;
  margin-bottom: 36px;
  max-width: 480px;
}

.hero-stats {
  display: flex;
  gap: 32px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.hero-stat-item {
  display: flex;
  flex-direction: column;
}

.hero-stat-num {
  font-family: var(--font-number);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--accent-dark);
  letter-spacing: -0.02em;
}

.hero-stat-label {
  font-size: 0.8rem;
  color: var(--text-light);
}

.hero-img-wrap {
  position: relative;
}

.hero-img-wrap::before {
  content: '';
  position: absolute;
  inset: -16px -16px 16px 16px;
  background: var(--accent-light);
  border-radius: 32px;
  z-index: 0;
}

.hero-img-wrap img {
  position: relative;
  z-index: 1;
  border-radius: 24px;
  width: 100%;
  height: 520px;
  object-fit: cover;
  object-position: top;
  box-shadow: var(--shadow);
}

/* ============================================
   PAGE HERO (서브페이지용)
   ============================================ */
.page-hero {
  padding-top: calc(var(--nav-h) + 64px);
  padding-bottom: 64px;
  background: var(--bg-2);
}

.page-hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================
   PAIN POINTS
   ============================================ */
.pain {
  background: var(--bg);
}

.pain-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 48px;
}

.pain-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 32px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  transition: var(--transition);
}

.pain-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.pain-icon {
  font-size: 1.6rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.pain-card h4 {
  margin-bottom: 4px;
  font-size: 1rem;
}

.pain-card p {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.6;
}

/* ============================================
   WHY US
   ============================================ */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 48px;
}

.why-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 28px;
  transition: var(--transition);
}

.why-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
  border-color: var(--accent-light);
}

.why-num {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent-light);
  margin-bottom: 12px;
  line-height: 1;
}

.why-card h3 {
  font-size: 1.1rem;
  margin-bottom: 12px;
}

.why-card p {
  font-size: 0.9rem;
  line-height: 1.75;
}

/* ============================================
   STATS
   ============================================ */
.stats {
  background: var(--accent-dark);
  padding: 80px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  text-align: center;
}

.stats-grid--3 {
  grid-template-columns: repeat(3, 1fr);
  max-width: 900px;
  margin: 0 auto;
  gap: 80px;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.stat-num {
  font-family: var(--font-number);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: #fff;
  line-height: 1;
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.4;
}

.stat-divider {
  width: 1px;
  background: rgba(255,255,255,0.15);
}

/* ============================================
   SOCIAL PROOF
   ============================================ */
.proof {
  background: var(--bg);
}

.proof-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.proof-quote {
  background: var(--bg-2);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 32px;
  margin-bottom: 24px;
}

.proof-quote p {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--text);
  font-style: italic;
}

.proof-who {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-top: 16px;
}

.proof-img-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.proof-img-wrap img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  transition: var(--transition);
}

.proof-img-wrap:hover img {
  transform: scale(1.02);
}

/* ============================================
   PROOF CARDS (3열 후기)
   ============================================ */
.proof-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.proof-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: var(--transition);
}

.proof-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
  border-color: var(--accent-light);
}

.proof-stars {
  color: #F4A528;
  font-size: 1rem;
  letter-spacing: 2px;
}

.proof-text {
  font-size: 0.95rem;
  line-height: 1.85;
  color: var(--text-mid);
  flex: 1;
  font-style: italic;
}

.proof-footer {
  padding-top: 16px;
  border-top: 1px solid var(--border);
  margin-top: auto;
}

.proof-tag {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
}

.proof-who {
  font-size: 0.85rem;
  color: var(--text-light);
}

@media (max-width: 768px) {
  .proof-cards {
    grid-template-columns: 1fr;
  }
}


.badge-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0;
}

.badge {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-mid);
  font-size: 0.8rem;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 100px;
}

.badge-accent {
  background: var(--accent-light);
  border-color: var(--accent-light);
  color: var(--accent-dark);
  font-weight: 600;
}

/* ============================================
   FINAL CTA
   ============================================ */
.final-cta {
  background: var(--accent-dark);
  text-align: center;
  padding: 96px 0;
}

.final-cta .section-label {
  color: rgba(255,255,255,0.6);
}

.final-cta h2 {
  margin-bottom: 16px;
  color: #fff;
}

.final-cta p {
  font-size: 1.05rem;
  max-width: 500px;
  margin: 0 auto;
  color: rgba(255,255,255,0.8);
}

.final-cta .btn-group {
  justify-content: center;
}

.final-cta .btn-outline {
  border-color: rgba(255,255,255,0.5);
  color: #fff;
}

.final-cta .btn-outline:hover {
  background: rgba(255,255,255,0.1);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--text);
  color: rgba(255,255,255,0.6);
  padding: 48px 0 32px;
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-logo .logo-main {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: #fff;
  font-weight: 700;
}

.footer-logo p {
  color: rgba(255,255,255,0.5);
  font-size: 0.85rem;
  margin-top: 8px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links a {
  color: rgba(255,255,255,0.5);
  font-size: 0.9rem;
  transition: var(--transition);
}

.footer-links a:hover {
  color: #fff;
}

.footer-bottom {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 24px 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
}

/* ============================================
   FLOATING CTA
   ============================================ */
.float-cta {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 900;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-end;
}

.float-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: 100px;
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  transition: var(--transition);
  cursor: pointer;
  text-decoration: none;
}

.float-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}

.float-kakao {
  background: #FEE500;
  color: #3C1E1E;
}

.float-btn .chat-icon {
  margin-right: 0;
}

/* ============================================
   PHILOSOPHY PAGE
   ============================================ */
.insight-section {
  background: var(--bg);
}

.insight-inner {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 64px;
  align-items: center;
}

.insight-content h2 {
  margin-bottom: 24px;
}

.insight-content p {
  margin-bottom: 20px;
  font-size: 1.05rem;
}

.insight-img {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.insight-img img {
  width: 100%;
  height: 460px;
  object-fit: cover;
  object-position: top;
}

.compare-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-top: 48px;
}

.compare-table th,
.compare-table td {
  padding: 16px 24px;
  text-align: left;
  font-size: 0.95rem;
}

.compare-table thead tr {
  background: var(--accent-dark);
  color: #fff;
}

.compare-table thead th:first-child {
  width: 18%;
  border-right: 2px solid rgba(255,255,255,0.2);
}

/* 일반 영어 수업 헤더 — 흐리게 */
.compare-table thead th:nth-child(2) {
  background: #B0A090;
  color: rgba(255,255,255,0.8);
  font-weight: 500;
  border-right: 2px solid rgba(255,255,255,0.2);
}

/* 이 수업 헤더 — 강조 */
.compare-table thead th:nth-child(3) {
  background: var(--accent);
  color: #fff;
  font-weight: 700;
}

.compare-table tbody tr:nth-child(odd) {
  background: var(--bg-card);
}

.compare-table tbody tr:nth-child(even) {
  background: var(--bg-2);
}

/* 항목 열 — 구분선으로 분리 */
.compare-table td:first-child {
  background: rgba(139, 98, 69, 0.06);
  border-right: 2px solid var(--accent-light);
  font-weight: 700;
  color: var(--text);
}

/* 일반 영어 수업 셀 — 흐릿한 텍스트 + ✕ */
.compare-table td:nth-child(2) {
  color: #7A6E66;
  border-right: 2px solid var(--accent-light);
}
.compare-table td:nth-child(2)::before {
  content: "✕ ";
  color: #B05040;
  font-size: 0.85em;
  font-weight: 700;
}

/* 이 수업 셀 — 따뜻한 배경 + 강조 텍스트 + ✓ */
.compare-table td:nth-child(3) {
  background: rgba(184, 149, 106, 0.10);
  color: var(--accent-dark);
  font-weight: 700;
}
.compare-table td:nth-child(3)::before {
  content: "✓ ";
  color: var(--accent);
  font-size: 0.9em;
}

/* 모바일 표 가로 스크롤 */
.compare-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 768px) {
  .compare-table th,
  .compare-table td {
    white-space: nowrap;
    padding: 12px 16px;
    font-size: 0.88rem;
  }
}

.quote-block {
  background: var(--accent-dark);
  color: #fff;
  border-radius: var(--radius);
  padding: 48px;
  text-align: center;
  margin-top: 64px;
}

.quote-block blockquote {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  line-height: 1.75;
  font-style: italic;
  margin-bottom: 16px;
}

.quote-block cite {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
}

/* ============================================
   TEACHER PAGE
   ============================================ */
.teacher-hero-inner {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 64px;
  align-items: center;
}

.teacher-hero-img img {
  border-radius: var(--radius);
  width: 100%;
  height: 500px;
  object-fit: cover;
  object-position: top;
  box-shadow: var(--shadow);
}

.credential-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 48px;
}

.credential-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: var(--transition);
}

.credential-card:hover {
  box-shadow: var(--shadow);
  border-color: var(--accent-light);
}

.credential-card .card-icon {
  font-size: 1.8rem;
  margin-bottom: 12px;
}

.credential-card h4 {
  margin-bottom: 12px;
  color: var(--accent-dark);
}

.credential-card ul li {
  font-size: 0.88rem;
  color: var(--text-mid);
  padding: 4px 0;
  border-bottom: 1px solid var(--border);
  line-height: 1.5;
}

.credential-card ul li:last-child {
  border-bottom: none;
}

/* ============================================
   CURRICULUM PAGE
   ============================================ */
.subject-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.subject-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 28px;
  transition: var(--transition);
}

.subject-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
  border-color: var(--accent-light);
}

.subject-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.subject-card h3 {
  margin-bottom: 12px;
}

.subject-card p {
  font-size: 0.9rem;
}

.process-steps {
  margin-top: 48px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.step-item {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 24px;
  align-items: flex-start;
  padding: 32px 0;
  border-bottom: 1px solid var(--border);
}

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

.step-num {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent-light);
  color: var(--accent-dark);
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.step-content h4 {
  margin-bottom: 8px;
  font-size: 1.05rem;
}

.detail-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-top: 48px;
  border: 1.5px solid var(--accent-light);
}

.detail-table th,
.detail-table td {
  padding: 16px 24px;
  text-align: left;
  font-size: 0.9rem;
}

.detail-table th {
  background: #DDD0BC;
  color: var(--text);
  font-weight: 600;
  width: 1%;
  white-space: nowrap;
  border-bottom: 1px solid var(--accent-light);
}

.detail-table td {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
}

.detail-table tr:last-child th,
.detail-table tr:last-child td {
  border-bottom: none;
}

/* ============================================
   REVIEWS PAGE
   ============================================ */
.review-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.review-stat {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
}

.review-stat .num {
  font-family: var(--font-number);
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent-dark);
  line-height: 1;
  letter-spacing: -0.02em;
}

.review-stat .label {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-top: 6px;
}

/* ① 메인 대형 카드 */
.review-featured {
  background: var(--bg-2);
  border-radius: var(--radius);
  padding: 44px 48px;
  margin-top: 48px;
  border-left: 4px solid var(--accent);
}

.review-featured blockquote {
  font-family: var(--font-serif);
  font-size: 1.08rem;
  line-height: 1.9;
  color: var(--text);
  font-style: italic;
  margin-bottom: 20px;
}

.review-featured cite {
  font-size: 0.88rem;
  color: var(--text-light);
  font-style: normal;
}

/* ② ③ ④ 3열 카드 */
.review-grid-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
  margin-top: 20px;
}

.review-card {
  background: var(--bg-2);
  border-radius: var(--radius);
  padding: 32px;
  border-left: 3px solid var(--accent-light);
  display: flex;
  flex-direction: column;
}

.review-card blockquote {
  font-family: var(--font-serif);
  font-size: 0.97rem;
  line-height: 1.85;
  color: var(--text);
  font-style: italic;
  margin-bottom: 16px;
  flex: 1;
}

.review-card cite {
  font-size: 0.85rem;
  color: var(--text-light);
  font-style: normal;
}

/* ⑤ 와이드 인용구 카드 */
.review-quote-wide {
  margin-top: 20px;
  background: var(--accent-dark);
  border-radius: var(--radius);
  padding: 40px 56px;
  text-align: center;
}

.review-quote-wide blockquote {
  font-family: var(--font-serif);
  font-size: 1.12rem;
  line-height: 1.9;
  color: rgba(255,255,255,0.92);
  font-style: italic;
  margin-bottom: 18px;
}

.review-quote-wide cite {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.6);
  font-style: normal;
}

@media (max-width: 768px) {
  .review-grid-3 { grid-template-columns: 1fr; }
  .review-quote-wide { padding: 32px 24px; }
}

.gallery-section {
  background: var(--bg);
}

.gallery-grid {
  columns: 4;
  column-gap: 16px;
  margin-top: 48px;
}

.gallery-item {
  break-inside: avoid;
  margin-bottom: 16px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition);
}

.gallery-item:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-hover);
}

.gallery-item img {
  width: 100%;
  display: block;
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.9);
  z-index: 2000;
  align-items: center;
  justify-content: center;
}

.lightbox.open {
  display: flex;
}

.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 24px;
  font-size: 2rem;
  color: #fff;
  cursor: pointer;
  background: none;
  border: none;
  line-height: 1;
}

/* ============================================
   FAQ PAGE
   ============================================ */
.faq-list {
  max-width: 760px;
  margin: 48px auto 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  cursor: pointer;
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  text-align: left;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  transition: var(--transition);
}

.faq-question:hover {
  color: var(--accent-dark);
}

.faq-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg-2);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1rem;
  line-height: 1;
  font-family: monospace;
  transition: var(--transition);
  color: var(--accent-dark);
}

.faq-item.open .faq-icon {
  background: var(--accent-dark);
  color: #fff;
  border-color: var(--accent-dark);
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
}

.faq-answer-inner {
  padding: 0 0 24px 0;
  color: var(--text-mid);
  font-size: 0.95rem;
  line-height: 1.85;
}

.faq-item.open .faq-answer {
  max-height: 400px;
}

/* ============================================
   ANIMATIONS
   ============================================ */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-up:nth-child(2) { transition-delay: 0.1s; }
.fade-up:nth-child(3) { transition-delay: 0.2s; }
.fade-up:nth-child(4) { transition-delay: 0.3s; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1fr;
    max-width: 640px;
  }
  .hero-img-wrap {
    display: none;
  }
  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }
  .stat-divider {
    display: none;
  }
  .proof-inner {
    grid-template-columns: 1fr;
  }

  .teacher-hero-inner {
    grid-template-columns: 1fr;
  }
  .teacher-hero-img {
    max-width: 320px;
  }
  .credential-grid {
    grid-template-columns: 1fr;
  }
  .subject-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .insight-inner {
    grid-template-columns: 1fr;
  }
  .gallery-grid {
    columns: 3;
  }
  .review-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  section {
    padding: 64px 0;
  }
  .nav-menu {
    display: none;
  }
  .nav-toggle {
    display: flex;
  }
  .pain-grid {
    grid-template-columns: 1fr;
  }
  .why-grid {
    grid-template-columns: 1fr;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .subject-grid {
    grid-template-columns: 1fr;
  }
  .gallery-grid {
    columns: 2;
  }
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
  .hero-stats {
    gap: 20px;
  }
  .float-cta {
    bottom: 20px;
    right: 20px;
  }
  .quote-block {
    padding: 32px 24px;
  }
  .quote-block blockquote {
    font-size: 1.1rem;
  }
  /* 교재 섹션 모바일 */
  .textbook-outer-grid {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }
  /* detail-table 모바일 */
  .detail-table th,
  .detail-table td {
    padding: 12px 16px;
    font-size: 0.88rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }
  .gallery-grid {
    columns: 2;
  }
  .review-stats {
    grid-template-columns: 1fr 1fr;
  }
  .btn-group {
    flex-direction: column;
  }
  .btn {
    justify-content: center;
  }
}
