/* =====================================================
   이수정국어학원 — 커리큘럼 상세페이지 공용 스타일 v2
   (중등부 middle.html / 고등부 확장 공용)
   미학: 메인 사이트와 같은 애플식 미니멀 — 따뜻한 화이트,
   여백 중심, 네이비는 잉크로, 골드는 절제된 포인트로.
   타입: Noto Serif KR(디스플레이) · Pretendard(본문) · Montserrat(라벨)
   ===================================================== */

:root {
  --navy: #14264f;
  --navy-deep: #0c1a3a;
  --navy-soft: #23407e;
  --gold: #c4972a;
  --gold-light: #dcb35e;
  --ink: #1d1d1f;
  --sub: #71737a;
  --hairline: rgba(29, 29, 31, 0.09);
  --paper: #ffffff;
  --paper-warm: #fafaf7;
  --paper-alt: #f5f5f2;
  --red: #b8402f;
  --radius-lg: 24px;
  --radius-md: 16px;
  --shadow-soft: 0 1px 2px rgba(20, 30, 60, 0.03), 0 10px 34px rgba(20, 30, 60, 0.06);
  --shadow-lift: 0 2px 6px rgba(20, 30, 60, 0.05), 0 22px 54px rgba(20, 30, 60, 0.12);
  --pink: #f5457a;
  --serif: "MaruBuri", "Noto Serif KR", "Nanum Myeongjo", serif;
  --sans: "Pretendard", -apple-system, BlinkMacSystemFont, "Malgun Gothic", sans-serif;
  --eng: "Marcellus", "Montserrat", "Pretendard", serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-size: 16.5px;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.75;
  word-break: keep-all;
  -webkit-font-smoothing: antialiased;
  min-width: 320px;
}

::selection { background: rgba(196, 151, 42, 0.22); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { border: 0; background: none; font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
section[id], header[id] { scroll-margin-top: 64px; }

/* ===== 스크롤 리빌 ===== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.85s var(--ease), transform 0.85s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

/* ===== 네비바 ===== */
.cnav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  height: 56px;
  padding: 0 max(1.4rem, env(safe-area-inset-left));
  transition: background 0.35s ease, border-color 0.35s ease;
  border-bottom: 1px solid transparent;
}
.cnav.scrolled {
  background: rgba(12, 26, 58, 0.72);
  backdrop-filter: saturate(170%) blur(20px);
  -webkit-backdrop-filter: saturate(170%) blur(20px);
  border-bottom-color: rgba(255, 255, 255, 0.07);
}
.cnav-logo { height: 30px; width: auto; }
.cnav-links { display: flex; gap: 1.4rem; align-items: center; }
.cnav-link {
  font-size: 0.84rem; font-weight: 500;
  color: rgba(255, 255, 255, 0.72);
  letter-spacing: 0.01em;
  transition: color 0.25s ease;
}
.cnav-link:hover { color: #fff; }
.cnav-link--back {
  display: inline-flex; align-items: center;
  padding: 5px 12px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.85);
  transition: border-color 0.25s ease, color 0.25s ease, background 0.25s ease;
}
.cnav-link--back:hover { border-color: rgba(255, 255, 255, 0.5); background: rgba(255, 255, 255, 0.06); }
.cnav-link--cta {
  color: var(--navy-deep); background: var(--gold-light);
  font-weight: 700; border-radius: 999px; padding: 7px 16px;
}
.cnav-link--cta:hover { color: var(--navy-deep); background: #ecc776; }

/* ===== 히어로 ===== */
.hero {
  position: relative;
  background:
    radial-gradient(ellipse 90% 70% at 12% -10%, rgba(52, 84, 165, 0.55) 0%, transparent 55%),
    radial-gradient(ellipse 70% 55% at 105% 105%, rgba(196, 151, 42, 0.22) 0%, transparent 52%),
    linear-gradient(168deg, var(--navy-deep) 0%, #12224a 55%, #1a3168 100%);
  color: #fff;
  padding: 172px 0 0;
  overflow: visible;
}
.hero-mark { display: none; }
/* 히어로 로고 엠블럼 — 브랜드 핑크 원본을 선명하게 */
.hero::before {
  content: "";
  position: absolute; right: 4%; top: 42%;
  transform: translateY(-50%) rotate(6deg);
  width: min(300px, 23vw); aspect-ratio: 1 / 1.06;
  background: url("./logo-final.png") center / contain no-repeat;
  opacity: 0.95;
  filter: drop-shadow(0 24px 60px rgba(0, 0, 0, 0.4)) drop-shadow(0 0 46px rgba(245, 69, 122, 0.35));
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 2; max-width: 780px; }
.hero-eyebrow {
  font-family: var(--eng); font-size: 12.5px; font-weight: 400;
  letter-spacing: 0.34em; color: var(--gold-light);
  display: inline-flex; align-items: center; gap: 14px;
  margin-bottom: 30px;
  text-transform: uppercase;
}
.hero-eyebrow::before {
  content: ""; width: 40px; height: 1px;
  background: linear-gradient(90deg, rgba(220, 179, 94, 0), var(--gold-light));
}
.hero h1 {
  font-family: var(--serif); font-weight: 700;
  font-size: clamp(32px, 5.2vw, 52px);
  line-height: 1.36; letter-spacing: -0.015em;
  text-wrap: balance;
  margin-bottom: 26px;
}
.hero h1 .accent {
  color: var(--gold-light);
  background: linear-gradient(105deg, #ecc776, var(--gold-light) 60%, #b98d24);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero .sub {
  font-size: clamp(15.5px, 1.8vw, 18px);
  font-weight: 300;
  color: rgba(214, 224, 248, 0.92);
  max-width: 620px;
  line-height: 1.8;
  margin-bottom: 40px;
}
.hero-brand {
  display: flex; align-items: center; gap: 11px;
  font-size: 13.5px; color: rgba(156, 175, 224, 0.9); letter-spacing: 0.08em;
  margin-bottom: 92px;
}
.hero-brand img {
  height: 23px; width: auto;
  filter: drop-shadow(0 4px 14px rgba(245, 69, 122, 0.4));
}

/* 히어로 하단 — 다음 섹션에 걸쳐 떠 있는 로드맵 카드 */
.hero-flow { position: relative; z-index: 3; background: none; border: 0; }
.hero-flow-inner {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
  max-width: 1080px; margin: 0 auto; padding: 0 24px;
  transform: translateY(52px); margin-top: -6px;
}
.hf-step {
  background: var(--paper);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lift);
  padding: 24px 26px 22px;
  text-align: left; position: relative;
  overflow: hidden;
}
.hf-step::after {
  content: ""; position: absolute; left: 26px; right: 26px; bottom: 0;
  height: 3px; border-radius: 3px 3px 0 0;
  background: linear-gradient(90deg, var(--gold-light), var(--gold));
  opacity: 0; transition: opacity 0.3s ease;
}
.hf-step:hover::after { opacity: 1; }
.hf-step + .hf-step::before { content: none; }
.hf-step .g {
  display: block;
  font-family: var(--eng); font-size: 11px; font-weight: 700;
  letter-spacing: 0.22em; color: var(--gold);
  margin-bottom: 5px;
}
.hf-step .t {
  font-family: var(--serif); font-size: 17.5px; font-weight: 700;
  color: var(--navy);
}
.hero + .section { padding-top: 190px; }

/* ===== 섹션 공통 ===== */
.section { padding: 118px 0; }
.section--alt { background: var(--paper-warm); }
.sec-eyebrow {
  font-family: var(--eng); font-size: 12px; font-weight: 400;
  letter-spacing: 0.3em; color: var(--gold);
  display: block;
  margin-bottom: 16px; text-transform: uppercase;
}
.sec-eyebrow::before {
  content: ""; display: block;
  width: 26px; height: 28px;
  background: url("./logo-final.png") center / contain no-repeat;
  margin-bottom: 16px;
}
.sec-title {
  font-family: var(--serif); font-weight: 700;
  font-size: clamp(26px, 3.6vw, 38px); line-height: 1.42;
  color: var(--navy); letter-spacing: -0.015em;
  text-wrap: balance;
  margin-bottom: 0;
}
.sec-title::after {
  content: ""; display: block;
  width: 48px; height: 2px; margin: 20px 0 18px;
  background: linear-gradient(90deg, var(--gold-light), rgba(220, 179, 94, 0));
}
.sec-desc {
  font-size: 17px; font-weight: 300;
  color: var(--sub); max-width: 660px; line-height: 1.85;
  margin-bottom: 64px;
}
.sec-desc strong { color: var(--navy); font-weight: 600; }

/* ===== 1. 두 개의 축 ===== */
.axis { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.axis-card {
  position: relative;
  background: var(--paper);
  border-radius: var(--radius-lg);
  padding: 44px 40px 40px;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.axis-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.section--alt .axis-card, .section:not(.section--alt) .axis-card { border: 1px solid var(--hairline); }
.axis-card::after {
  content: attr(data-num);
  position: absolute; right: 26px; top: 8px;
  font-family: var(--serif); font-weight: 700; font-size: 92px;
  color: rgba(20, 38, 79, 0.05); line-height: 1;
  pointer-events: none;
}
.axis-card .k {
  font-family: var(--eng); font-size: 10.5px; font-weight: 700;
  letter-spacing: 0.24em; color: var(--gold); margin-bottom: 14px;
}
.axis-card h3 {
  font-family: var(--serif); font-size: 23px; font-weight: 700;
  color: var(--navy); margin-bottom: 12px; position: relative; z-index: 1;
  letter-spacing: -0.01em;
}
.axis-card p { font-size: 15.5px; color: var(--sub); position: relative; z-index: 1; line-height: 1.8; }
.axis-card p strong { color: var(--navy); font-weight: 600; }

/* ===== 2. 로드맵 스테퍼 ===== */
.roadmap { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step-card {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: 40px 32px 32px;
  box-shadow: var(--shadow-soft);
  display: flex; flex-direction: column;
  overflow: hidden;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.step-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); }
.step-card::after {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 0;
}
.step-no {
  font-family: var(--eng); font-size: 11px; font-weight: 700;
  letter-spacing: 0.26em; color: var(--gold); margin-bottom: 14px;
}
.step-grade {
  font-family: var(--serif); font-size: 27px; font-weight: 700;
  color: var(--navy); line-height: 1.25; letter-spacing: -0.01em;
}
.step-phase {
  font-family: var(--serif); font-size: 16.5px; font-weight: 700;
  color: var(--gold); margin: 4px 0 18px;
}
.step-card > p { font-size: 14.8px; color: var(--sub); flex: 1; line-height: 1.78; }
.step-tracks {
  margin-top: 26px; padding-top: 20px;
  border-top: 1px solid var(--hairline);
  display: flex; flex-wrap: wrap; gap: 7px;
}
.chip {
  font-size: 12.5px; font-weight: 600; color: var(--navy);
  background: var(--paper);
  border: 1px solid rgba(20, 38, 79, 0.18);
  border-radius: 999px; padding: 5px 14px;
}
.chip--gold { color: #9a7620; border-color: rgba(196, 151, 42, 0.45); }
.roadmap-note {
  margin-top: 44px; text-align: center;
  font-size: 15.5px; font-weight: 300; color: var(--sub);
}
.roadmap-note strong { color: var(--navy); font-weight: 600; }

/* ===== 3. 학년별 상세 ===== */
.grade-block {
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 48px 46px;
  margin-bottom: 26px;
}
.grade-head {
  display: flex; align-items: baseline; gap: 15px; flex-wrap: wrap;
  margin-bottom: 8px;
}
.g-badge {
  font-family: var(--serif); font-weight: 700; font-size: 15.5px;
  color: #fff; background: linear-gradient(160deg, var(--navy-soft), var(--navy));
  clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%);
  border-radius: 0; padding: 12px 24px; line-height: 1.25;
}
.g-phase {
  font-family: var(--serif); font-size: 22px; font-weight: 700;
  color: var(--navy); letter-spacing: -0.01em;
}
.g-open { font-size: 14.5px; color: var(--sub); margin-bottom: 28px; }
.g-open b { color: var(--navy); font-weight: 600; }
.g-open .g-mock { color: var(--gold); font-weight: 700; }
/* 학년 블록 안 트랙(반) 구분 라벨 — 정규반/수능집중반 커리큘럼을 나눔 */
.g-track-label {
  display: flex; align-items: baseline; gap: 12px;
  margin: 34px 0 14px;
}
.class-list + .g-track-label { margin-top: 38px; }
.g-track-label .en {
  font-family: var(--eng); font-size: 10.5px; font-weight: 400;
  letter-spacing: 0.22em; color: var(--gold);
  text-transform: uppercase;
}
.g-track-label .nm {
  font-family: var(--serif); font-weight: 700; font-size: 17.5px;
  color: var(--navy);
}
.g-track-label .sub { font-size: 12.5px; color: var(--sub); }
.g-track-label::after {
  content: ""; flex: 1; height: 1px; align-self: center;
  background: linear-gradient(90deg, var(--hairline), rgba(0, 0, 0, 0));
}
.g-track-label--gold .nm { color: #8a6a14; }

/* 교재 이름 칩 (실물 표지가 없는 시판·EBS 교재) */
.book-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; clear: both; }
.book-chips .chip { background: var(--paper); }

.class-list { display: grid; gap: 12px; }
.class-item {
  display: grid; grid-template-columns: 132px 1fr; gap: 22px;
  background: var(--paper-warm);
  border-radius: var(--radius-md);
  padding: 24px 28px;
  align-items: start;
}
.c-name { font-weight: 700; color: var(--navy); font-size: 16.5px; padding-top: 1px; }
.c-name .tag {
  display: block; font-family: var(--eng); font-size: 10px; font-weight: 700;
  letter-spacing: 0.16em; color: var(--gold); margin-top: 6px;
}
.c-desc { font-size: 15px; color: #454850; line-height: 1.8; }
.c-desc strong { color: var(--navy); font-weight: 600; }
.c-desc .note { display: block; font-size: 13.5px; color: var(--sub); margin-top: 8px; }

/* ===== 4. 비교표 ===== */
.cmp-table-wrap {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--hairline);
  overflow: hidden;
  background: var(--paper);
}
table.cmp { width: 100%; border-collapse: collapse; font-size: 15px; }
.cmp thead th {
  background: linear-gradient(165deg, var(--navy-deep), var(--navy));
  color: #fff;
  font-family: var(--serif); font-weight: 700; font-size: 16px;
  padding: 19px 18px; text-align: center;
  box-shadow: inset 0 -2px 0 var(--gold);
}
.cmp thead th:first-child { width: 150px; }
.cmp tbody th {
  background: var(--paper-warm); color: var(--navy);
  font-weight: 600; font-size: 14.2px;
  padding: 17px 20px; text-align: left;
  border-top: 1px solid var(--hairline); white-space: nowrap;
}
.cmp tbody td {
  padding: 17px 16px; text-align: center;
  border-top: 1px solid var(--hairline);
  color: #454850; font-size: 14.6px;
}
.cmp td.left { text-align: left; color: var(--sub); font-size: 14.2px; line-height: 1.7; }
.mark-ok { color: var(--navy); font-weight: 700; }
.mark-gold { color: var(--gold); font-weight: 700; }
.mark-no { color: var(--red); font-weight: 700; }

/* 비교 — 모바일 카드 (기본 숨김) */
.cmp-cards { display: none; }
.cmp-card {
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  overflow: hidden; margin-bottom: 18px;
}
.cmp-card-head {
  background: linear-gradient(165deg, var(--navy-deep), var(--navy));
  color: #fff;
  padding: 17px 24px;
  display: flex; align-items: baseline; justify-content: space-between; gap: 10px;
}
.cmp-card-head h3 { font-family: var(--serif); font-size: 18px; font-weight: 700; }
.cmp-card-head .yrs { font-size: 12.5px; color: rgba(255, 255, 255, 0.65); }
.cmp-card dl { padding: 10px 24px 18px; }
.cmp-card dl > div {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 11px 0; border-bottom: 1px solid var(--hairline);
  font-size: 14.2px;
}
.cmp-card dl > div:last-child { border-bottom: 0; }
.cmp-card dt { color: var(--sub); flex-shrink: 0; }
.cmp-card dd { text-align: right; font-weight: 600; color: var(--ink); }

/* ===== 5. 내신 정책 ===== */
.policy { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.policy-card {
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: 38px 32px 34px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.policy-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.policy-card .p-no {
  font-family: var(--eng); font-size: 10.5px; font-weight: 700;
  letter-spacing: 0.24em; color: var(--gold); margin-bottom: 14px;
}
.policy-card h4 {
  font-family: var(--serif); font-size: 19.5px; font-weight: 700;
  color: var(--navy); margin-bottom: 11px; letter-spacing: -0.01em;
}
.policy-card p { font-size: 14.5px; color: var(--sub); line-height: 1.78; }
.policy-note {
  margin-top: 28px;
  background: rgba(196, 151, 42, 0.07);
  border-radius: var(--radius-md);
  padding: 20px 28px;
  font-size: 14.5px; color: #6b5316;
}
.policy-note strong { color: #4f3d0e; }

/* ===== 6. 모의고사 × 클리닉 ===== */
.mgmt { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: stretch; }
.mgmt-card {
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 44px 40px;
  display: flex; flex-direction: column;
}
.m-label {
  align-self: flex-start;
  font-family: var(--eng); font-size: 10.5px; font-weight: 700;
  letter-spacing: 0.22em; color: var(--gold);
  margin-bottom: 16px;
}
.mgmt-card h3 {
  font-family: var(--serif); font-size: 22px; font-weight: 700;
  color: var(--navy); line-height: 1.45; margin-bottom: 13px;
  letter-spacing: -0.01em;
}
.mgmt-card > p { font-size: 14.8px; color: var(--sub); margin-bottom: 26px; line-height: 1.78; }
.mock-grid {
  display: grid; grid-template-columns: 1.1fr 1fr 1fr 1fr;
  border: 1px solid var(--hairline); border-radius: var(--radius-md); overflow: hidden;
  text-align: center; font-size: 13.5px;
  background: var(--paper);
}
.mock-grid .h { background: var(--navy); color: #fff; font-weight: 600; padding: 12px 6px; font-size: 13px; }
.mock-grid .r { background: var(--paper-warm); color: var(--navy); font-weight: 700; padding: 12px 6px; border-top: 1px solid var(--hairline); }
.mock-grid .c { padding: 12px 6px; border-top: 1px solid var(--hairline); color: var(--sub); }
.mock-grid .c.on { color: var(--navy); font-weight: 700; }
.mock-grid .c.early { color: var(--gold); font-weight: 700; }
.mock-note { margin-top: 16px; font-size: 13.5px; color: var(--sub); }
.mock-note strong { color: var(--gold); }
.clinic-steps { display: flex; flex-direction: column; gap: 12px; }
.clinic-step {
  display: flex; gap: 18px; align-items: flex-start;
  background: var(--paper-warm);
  border-radius: var(--radius-md);
  padding: 19px 22px;
}
.cs-no {
  flex-shrink: 0;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--paper); color: var(--navy);
  border: 1px solid rgba(20, 38, 79, 0.2);
  font-family: var(--serif); font-weight: 700; font-size: 15px;
  display: flex; align-items: center; justify-content: center;
}
.clinic-step h5 { font-size: 15.5px; font-weight: 700; color: var(--navy); margin-bottom: 3px; }
.clinic-step p { font-size: 13.8px; color: var(--sub); line-height: 1.7; }

/* ===== CTA ===== */
.cta {
  background:
    radial-gradient(ellipse 65% 80% at 85% 10%, rgba(196, 151, 42, 0.17) 0%, transparent 55%),
    radial-gradient(ellipse 70% 60% at 8% 100%, rgba(52, 84, 165, 0.4) 0%, transparent 55%),
    linear-gradient(168deg, var(--navy-deep) 0%, #12224a 100%);
  color: #fff; text-align: center;
  padding: 118px 24px 108px;
}
.cta .sec-eyebrow { color: var(--gold-light); }
.cta .sec-eyebrow::before {
  width: 38px; height: 41px;
  margin: 0 auto 20px;
  filter: drop-shadow(0 6px 18px rgba(245, 69, 122, 0.45));
}
.cta h2 {
  font-family: var(--serif); font-weight: 700;
  font-size: clamp(26px, 3.6vw, 38px); line-height: 1.45;
  text-wrap: balance; margin-bottom: 16px;
  letter-spacing: -0.01em;
}
.cta > p { font-size: 16.5px; font-weight: 300; color: rgba(198, 210, 240, 0.95); margin-bottom: 44px; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 15.5px; font-weight: 700;
  border-radius: 999px; padding: 16px 40px;
  transition: transform 0.25s var(--ease), background 0.25s ease, box-shadow 0.25s ease;
}
.btn--gold {
  background: linear-gradient(105deg, #ecc776, var(--gold-light));
  color: var(--navy-deep);
  box-shadow: 0 10px 30px rgba(196, 151, 42, 0.35);
}
.btn--gold:hover { transform: translateY(-2px); box-shadow: 0 14px 38px rgba(196, 151, 42, 0.45); }
.btn--ghost { border: 1px solid rgba(255, 255, 255, 0.32); color: rgba(255, 255, 255, 0.92); }
.btn--ghost:hover { transform: translateY(-2px); border-color: rgba(255, 255, 255, 0.65); }
.cta-tel { margin-top: 34px; font-size: 13.5px; color: rgba(147, 166, 216, 0.9); }
.cta-tel a { font-weight: 600; color: rgba(201, 213, 245, 0.95); }

/* ===== 푸터 ===== */
.footer {
  background: var(--navy-deep);
  color: rgba(126, 145, 196, 0.85); text-align: center;
  font-size: 13px; padding: 40px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.footer img { height: 26px; width: auto; margin: 0 auto 13px; opacity: 0.8; }
.footer .phones { margin-top: 7px; }
.footer .phones a { color: rgba(169, 186, 228, 0.95); font-weight: 500; }
.footer .copy { margin-top: 11px; font-size: 12px; color: rgba(90, 110, 166, 0.85); }

/* =====================================================
   커리큘럼 한눈에 — 탭 (블록형 / 매트릭스 / 교재)
   ===================================================== */
.ctab-bar {
  display: inline-flex;
  margin: 0 auto 46px;
  position: relative; left: 50%; transform: translateX(-50%);
  background: rgba(29, 29, 31, 0.055);
  border-radius: 999px;
  padding: 5px;
  gap: 2px;
}
.ctab {
  padding: 10px 26px;
  border-radius: 999px;
  font-size: 14.5px; font-weight: 600;
  color: var(--sub);
  transition: color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
  white-space: nowrap;
}
.ctab + .ctab { border-left: 0; }
.ctab:hover { color: var(--navy); }
.ctab.is-active {
  color: var(--navy);
  background: var(--paper);
  box-shadow: 0 1px 3px rgba(20, 30, 60, 0.1), 0 4px 14px rgba(20, 30, 60, 0.08);
  border-bottom-color: transparent;
}
.ctab-panel { display: none; }
.ctab-panel.is-active { display: block; animation: panelIn 0.5s var(--ease); }
@keyframes panelIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* --- 블록형 커리큘럼 --- */
.blk {
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}
.blk + .blk { margin-top: 28px; }
.blk-band {
  background: linear-gradient(165deg, var(--navy-deep), var(--navy));
  color: #fff;
  font-family: var(--serif); font-weight: 700; font-size: 17px;
  text-align: center;
  padding: 19px 18px 17px;
  box-shadow: inset 0 -2px 0 var(--gold);
}
.blk-band .en {
  font-family: var(--eng); font-size: 9.5px; font-weight: 700;
  letter-spacing: 0.28em; color: var(--gold-light);
  display: block; margin-bottom: 4px;
}
.blk-subband {
  color: var(--sub);
  font-size: 13.5px; font-weight: 600;
  text-align: center;
  padding: 15px 16px 13px;
  border-top: 1px solid var(--hairline);
  background: var(--paper-warm);
}
.blk-subband::before {
  content: ""; display: inline-block;
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--gold); margin-right: 9px;
  vertical-align: 2px;
}
.blk-cols { display: grid; grid-auto-columns: 1fr; grid-auto-flow: column; }
.blk-cell {
  padding: 30px 18px 28px;
  text-align: center;
  border-top: 1px solid var(--hairline);
}
.blk-cell + .blk-cell { border-left: 1px solid var(--hairline); }
.blk-cell .s { display: block; font-size: 12.5px; color: var(--sub); margin-bottom: 8px; }
.blk-cell .n {
  display: block;
  font-family: var(--serif); font-weight: 700; font-size: 20px;
  color: var(--navy); line-height: 1.4; letter-spacing: -0.01em;
}
.blk-cell .n.gold { color: var(--gold); }
.blk-cell .sub2 { display: block; font-size: 12px; color: var(--sub); margin-top: 7px; }
.blk-caption {
  margin-top: 16px;
  font-size: 13px; color: var(--sub);
  text-align: center;
}
.blk-caption strong { color: var(--navy); font-weight: 600; }

/* --- 매트릭스 표 --- */
.mtx-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}
table.mtx { width: 100%; min-width: 780px; border-collapse: collapse; font-size: 14.2px; }
.mtx thead th {
  background: linear-gradient(165deg, var(--navy-deep), var(--navy));
  color: #fff;
  font-family: var(--serif); font-weight: 700; font-size: 15.5px;
  padding: 17px 16px; text-align: center;
  box-shadow: inset 0 -2px 0 var(--gold);
}
.mtx thead th:first-child { width: 162px; }
.mtx tbody th {
  background: var(--paper-warm);
  padding: 22px 20px;
  text-align: left; vertical-align: top;
  border-top: 1px solid var(--hairline);
}
.mtx .stage { display: block; font-family: var(--serif); font-weight: 700; font-size: 18px; color: var(--navy); }
.mtx .stage-sub { display: block; font-family: var(--eng); font-size: 10px; font-weight: 700; letter-spacing: 0.12em; color: var(--gold); margin-top: 5px; }
.mtx tbody td {
  padding: 22px 20px;
  vertical-align: top; text-align: left;
  border-top: 1px solid var(--hairline);
  border-left: 1px solid var(--hairline);
  color: #454850;
}
.mtx td.na { text-align: center; vertical-align: middle; color: #c2c4ca; font-size: 13px; }
.mtx td.common { background: rgba(196, 151, 42, 0.06); }
.mtx ul { list-style: none; display: grid; gap: 8px; }
.mtx li { position: relative; padding-left: 14px; font-size: 13.8px; line-height: 1.65; }
.mtx li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 4px; height: 4px; border-radius: 50%; background: rgba(20, 38, 79, 0.4); }
.mtx li.hot { color: var(--gold); font-weight: 600; }
.mtx li.hot::before { background: var(--gold); }
.mtx li b { color: var(--navy); font-weight: 600; }
.mtx-hint { display: none; margin-top: 14px; text-align: center; font-size: 12.5px; color: var(--sub); }

/* --- 교재 그리드 --- */
.books { display: grid; grid-template-columns: repeat(4, 1fr); gap: 44px 28px; }
.book { text-align: center; }
.book-cover {
  position: relative;
  aspect-ratio: 3 / 4.1;
  border-radius: 4px 12px 12px 4px;
  background: linear-gradient(155deg, #ffffff 0%, #f4f4f1 80%, #ebebe7 100%);
  border: 1px solid var(--hairline);
  box-shadow: 0 3px 8px rgba(20, 30, 60, 0.06), 0 18px 36px rgba(20, 30, 60, 0.12);
  overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.book:hover .book-cover {
  transform: translateY(-7px) rotate(-0.6deg);
  box-shadow: 0 6px 14px rgba(20, 30, 60, 0.08), 0 28px 52px rgba(20, 30, 60, 0.18);
}
.book-cover::before {
  content: "";
  position: absolute; left: 0; top: 0; bottom: 0; width: 8px;
  background: linear-gradient(180deg, var(--navy-soft), var(--navy));
}
.book-cover::after {
  content: "";
  position: absolute; left: 8px; top: 0; bottom: 0; width: 1px;
  background: rgba(20, 30, 60, 0.1);
}
.book--gold .book-cover::before { background: linear-gradient(180deg, var(--gold-light), var(--gold)); }
.book-cover img.cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.book-ph-logo { height: 24px; width: auto; opacity: 0.4; }
.book-ph-text { font-size: 12px; color: #a9abb2; line-height: 1.55; }
.book-name { margin-top: 15px; font-size: 14.5px; font-weight: 700; color: var(--navy); }
.book-sub { margin-top: 2px; font-size: 12.5px; color: var(--sub); }
.books-note { margin-top: 40px; text-align: center; font-size: 13.5px; color: var(--sub); }

/* =====================================================
   트랙별 심층 프로필
   ===================================================== */
.tracks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.track {
  background: var(--paper);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--hairline);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.track:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); }
.track-head {
  position: relative; overflow: hidden;
  background: linear-gradient(160deg, var(--navy-deep) 0%, #1a3168 100%);
  color: #fff;
  padding: 30px 96px 26px 30px;
}
.track-head::after {
  content: "";
  position: absolute; right: 14px; top: 50%;
  transform: translateY(-50%) rotate(-8deg);
  width: 58px; aspect-ratio: 1 / 1.06;
  background: url("./logo-final.png") center / contain no-repeat;
  opacity: 0.95;
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.35));
  pointer-events: none;
}
.track--top .track-head {
  background:
    radial-gradient(ellipse 90% 90% at 90% -10%, rgba(236, 199, 118, 0.35) 0%, transparent 55%),
    linear-gradient(160deg, #4f3c0c 0%, #a37c1d 130%);
}
.track-head .en {
  font-family: var(--eng); font-size: 10px; font-weight: 700;
  letter-spacing: 0.26em; color: rgba(255, 255, 255, 0.66);
  display: block; margin-bottom: 10px;
}
.track-head h3 { font-family: var(--serif); font-weight: 700; font-size: 24px; line-height: 1.3; letter-spacing: -0.01em; }
.track-head .yrs { font-size: 12.5px; color: rgba(255, 255, 255, 0.66); margin-left: 9px; font-weight: 500; }
.track-head .one { margin-top: 9px; font-size: 13.8px; font-weight: 300; color: rgba(255, 255, 255, 0.9); }
.track-body { padding: 30px 30px 28px; display: flex; flex-direction: column; gap: 22px; flex: 1; }
.track-sec h5 {
  font-family: var(--eng); font-size: 10.5px; font-weight: 700;
  letter-spacing: 0.22em; color: var(--gold);
  margin-bottom: 10px;
}
.track-sec p { font-size: 14.5px; color: #454850; line-height: 1.78; }
.track-sec p strong { color: var(--navy); font-weight: 600; }
.track-sec ul { list-style: none; display: grid; gap: 9px; }
.track-sec li { position: relative; padding-left: 21px; font-size: 14.2px; color: #454850; line-height: 1.65; }
.track-sec li::before {
  content: "✓"; position: absolute; left: 0; top: 1px;
  color: var(--navy); font-weight: 700; font-size: 12px;
}
.track--top .track-sec li::before { color: var(--gold); }
.track-badges {
  margin-top: auto; padding-top: 20px;
  border-top: 1px solid var(--hairline);
  display: flex; flex-wrap: wrap; gap: 7px;
}

/* ===== 라벨 타이포 통일 — 한글 기준 자간·서체 ===== */
.hero-eyebrow, .sec-eyebrow, .step-no, .axis-card .k, .policy-card .p-no, .m-label,
.track-head .en, .track-sec h5, .c-name .tag, .mtx .stage-sub, .blk-band .en,
.season-name .period, .g-track-label .en {
  font-family: var(--sans);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: none;
}
.hero-eyebrow, .sec-eyebrow { font-size: 13px; }
.step-no, .axis-card .k, .policy-card .p-no { font-size: 12px; }

/* ===== 왜 이수정국어학원인가 ===== */
.why {
  background:
    radial-gradient(ellipse 70% 60% at 86% 6%, rgba(245, 69, 122, 0.15) 0%, transparent 55%),
    radial-gradient(ellipse 80% 70% at 6% 102%, rgba(52, 84, 165, 0.45) 0%, transparent 60%),
    linear-gradient(165deg, var(--navy-deep) 0%, #12224a 100%);
}
.why .wrap > .reveal { text-align: center; }
.why-logo {
  width: 74px; height: auto; margin: 0 auto 24px;
  filter: drop-shadow(0 12px 34px rgba(245, 69, 122, 0.5));
}
.why .sec-eyebrow { color: var(--gold-light); }
.why .sec-eyebrow::before { display: none; }
.why .sec-title { color: #fff; }
.why .sec-title::after {
  margin-left: auto; margin-right: auto;
  background: linear-gradient(90deg, rgba(220, 179, 94, 0), var(--gold-light), rgba(220, 179, 94, 0));
}
.why .sec-desc { color: rgba(198, 210, 240, 0.92); margin-left: auto; margin-right: auto; }
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; text-align: left; }
.why-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 20px;
  padding: 34px 32px 30px;
  transition: transform 0.35s var(--ease), border-color 0.35s ease, background 0.35s ease;
}
.why-card:hover {
  transform: translateY(-4px);
  border-color: rgba(245, 69, 122, 0.45);
  background: rgba(255, 255, 255, 0.075);
}
.why-no {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 46px;
  clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%);
  background: linear-gradient(160deg, #ff6e97, var(--pink) 58%, #c22b5c);
  color: #fff; font-weight: 700; font-size: 15px;
  margin-bottom: 18px;
}
.why-card h4 {
  font-family: var(--serif); font-size: 20px; font-weight: 700;
  color: #fff; margin-bottom: 7px; letter-spacing: -0.01em;
}
.why-card .tagline {
  font-size: 12.5px; font-weight: 700; letter-spacing: 0.05em;
  color: var(--gold-light); margin-bottom: 16px;
}
.why-card ul { list-style: none; display: grid; gap: 9px; }
.why-card li {
  position: relative; padding-left: 18px;
  font-size: 14.2px; color: rgba(214, 224, 248, 0.92); line-height: 1.68;
}
.why-card li::before {
  content: ""; position: absolute; left: 0; top: 0.6em;
  width: 6px; height: 6.5px;
  clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%);
  background: var(--pink);
}

/* =====================================================
   반응형
   ===================================================== */
@media (max-width: 1000px) {
  .section { padding: 92px 0; }
  .hero::before { display: none; }
  .roadmap, .policy { grid-template-columns: 1fr 1fr; }
  .tracks { grid-template-columns: 1fr; }
  .mgmt { grid-template-columns: 1fr; }
  .books { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 720px) {
  .section { padding: 72px 0; }
  .sec-desc { margin-bottom: 44px; }
  .hero { padding-top: 128px; }
  .hero-brand { margin-bottom: 56px; }
  .axis, .roadmap, .policy { grid-template-columns: 1fr; }

  .hero-flow-inner { grid-template-columns: 1fr; gap: 10px; transform: translateY(34px); }
  .hf-step { display: flex; align-items: baseline; gap: 12px; padding: 16px 22px; }
  .hf-step .g { margin: 0; min-width: 46px; }
  .hf-step .t { font-size: 15.5px; }
  .hero + .section { padding-top: 128px; }

  .grade-block { padding: 32px 24px; }
  .class-item { grid-template-columns: 1fr; gap: 9px; padding: 20px 22px; }
  .c-name { display: flex; align-items: baseline; gap: 10px; }
  .c-name .tag { margin-top: 0; }
  .mgmt-card { padding: 32px 24px; }

  /* 표 → 카드 전환 */
  .cmp-table-wrap { display: none; }
  .cmp-cards { display: block; }

  /* 탭 */
  .ctab-bar { display: flex; width: 100%; left: 0; transform: none; }
  .ctab { flex: 1; padding: 10px 8px; font-size: 13.5px; text-align: center; }

  /* 블록형 */
  .blk-cols { grid-auto-flow: row; }
  .blk-cell + .blk-cell { border-left: 0; }
  .blk-cell {
    display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
    text-align: left; padding: 17px 22px;
  }
  .blk-cell .s { margin-bottom: 0; }
  .blk-cell .n { font-size: 16.5px; text-align: right; }
  .blk-cell .sub2 { display: none; }

  .books { grid-template-columns: repeat(2, 1fr); gap: 32px 18px; }
  .mtx-hint { display: block; }
  .mock-grid { font-size: 12px; }
  .g-track-label { flex-wrap: wrap; gap: 8px; }
  .why-grid { grid-template-columns: 1fr; }
  .why-card { padding: 26px 22px 24px; }
}
