/* ==========================================================================
   리딩브레인 — 디자인 레이어
   기존 인라인 <style> 뒤에 로드되어 색·타이포·여백을 다시 잡는다.

   톤: 파머스어학원 페이지와 같은 계열 — 네이비를 유지하고
   강조 색을 와인에서 선명한 빨강으로 올렸고, 아이보리 배경을
   흰색 + 차가운 연회색으로 바꿔 훨씬 깔끔하게 만든다.

   바꿼 점 4가지
     1) 색    — 와인/골드/아이보리 → 빨강/네이비/흰색·연회색
     2) 폰트  — Noto Sans KR + Playfair → Pretendard + Montserrat
     3) 스케일 — 제목 68px·여백 190px처럼 과한 값을 44px·120px로 내림
     4) 장식  — 형광펜 마커·알약 라벨·큰 라운드를 높이를 줄이거나 없앤다

   되돌리려면 redesign.css.bak 을 다시 덮어쓰면 된다.
   ========================================================================== */

:root {
  /* ── 색 ────────────────────────────────── */
  /* 네이비는 리딩브레인 것을 그대로 쓴다. */
  --brand-navy:     #123047;
  --navy-deep:      #0B2233;   /* 어두운 섹션 바닥 */
  --navy-soft:      #1E3A54;

  /* 강조색 — 와인(#8B3038) 자리에 선명한 빨강이 들어간다. */
  --brand-red:      #E4212F;
  --red-dark:       #B7161F;
  --red-on-dark:    #FF6B76;   /* 네이비·사진 위에서 쓰는 밝은 빨강 */
  --red-tint:       rgba(228, 33, 47, 0.08);
  --red-line:       rgba(228, 33, 47, 0.28);

  /* 중성색 — 따뜻한 베이지 계열을 차가운 회색으로 교체 */
  --ink:            #1A1D23;
  --body-text:      #5B6472;
  --muted-text:     #8B94A3;
  --line:           #E6E9EE;
  --soft:           #F5F7FA;
  --soft-2:         #EDF0F5;

  /* ── 기존 이름들을 위 색에 다시 연결 ────────────── */
  /* 페이지 전체가 이 이름들을 쓰고 있어, 여기서 바꾸면 한 번에 바뀐다. */
  --brand-burgundy: var(--brand-red);
  --brand-gold:     var(--brand-red);
  --maroon:         var(--brand-red);
  --gold:           var(--brand-red);
  --pink:           var(--brand-red);
  --pink-hover:     var(--red-dark);
  --pink-dim:       var(--red-tint);
  --pink-light:     #FEF2F3;
  --gold-on-dark:   var(--red-on-dark);

  --brand-ivory:    #FFFFFF;
  --off-white:      var(--soft);
  --brand-ink:      var(--ink);
  --text:           var(--ink);
  --text-muted:     var(--body-text);

  --navy-2:         var(--navy-soft);
  --dark:           var(--brand-navy);
  --dark-2:         var(--navy-soft);
  --navy-dim:       rgba(18, 48, 71, 0.06);

  --gray-50:        var(--soft);
  --gray-100:       var(--line);
  --gray-200:       #D6DBE3;
  --gray-400:       var(--muted-text);
  --gray-500:       var(--body-text);

  /* ── 폰트 ─────────────────────────────── */
  --sans:    'Pretendard', 'Pretendard Variable', -apple-system, BlinkMacSystemFont, 'Malgun Gothic', sans-serif;
  --display: 'Montserrat', 'Pretendard', sans-serif;

  /* ── 스케일 ───────────────────────────── */
  /* 이전 값이 문제였다 — 제목이 68px까지 커지고 리드 문단이 25px여서
     페이지 전체가 소리치는 느낌이었다. 절제된 값으로 내린다. */
  --us-display: clamp(34px, 5.2vw, 62px);   /* 히어로  (이전 96px) */
  --us-h2:      clamp(27px, 3.4vw, 44px);   /* 섹션 제목 (이전 68px) */
  --us-h3:      clamp(20px, 2.1vw, 30px);   /* 지그재그 문장 (이전 40px) */
  --us-lead:    clamp(15px, 1.15vw, 17.5px);/* 리드 문단 (이전 25px) */
  --us-body:    clamp(14.5px, 1vw, 16px);

  --us-pad:     clamp(76px, 8vw, 120px);    /* 섹션 상하 여백 (이전 190px) */
  --us-gap:     clamp(36px, 4.5vw, 72px);

  --us-round:   6px;                        /* 이전 20px — 높이면 둥글어 보인다 */
  --us-pill:    999px;
  --us-shadow:      0 2px 10px rgba(18, 48, 71, 0.06);
  --us-shadow-navy: 0 10px 40px rgba(18, 48, 71, 0.10);

  --us-ease:    cubic-bezier(.22,.61,.36,1);

  --radius:     4px;
  --radius-md:  6px;
  --radius-lg:  6px;
  --radius-xl:  10px;
}

/* ── 0. 본문 타이포 ───────────────────────── */
body {
  font-family: var(--sans);
  background: #fff;
  color: var(--ink);
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
}

/* Playfair 를 쓰던 숫자 라벨(01, 02 …)은 Montserrat 로 넘긴다. */
.krashen-point span,
.original-effect-card span,
.admissions-pillars span {
  font-family: var(--display);
  letter-spacing: 0.04em;
}

/* ── 1. 여백 · 폭 ─────────────────────────────────────────── */
.philosophy,
.programs,
.testimonials,
.academy-story,
.why-rb,
.curious,
.director,
.curriculum,
.heidi,
.achievements,
.hall,
.gallery,
.motivation,
.location { padding-top: var(--us-pad); padding-bottom: var(--us-pad); }

.container { max-width: 1280px; padding-left: 24px; padding-right: 24px; }

/* ── 2. 타이포 스케일 확대 ────────────────────────────────── */
.section-title {
  font-size: var(--us-h2);
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.035em;
  margin-bottom: 22px;
  word-break: keep-all;
}
.section-desc {
  font-size: var(--us-lead);
  line-height: 1.6;
  max-width: 46em;
  color: var(--text-muted);
  word-break: keep-all;
  /* 기본 .section-desc 는 margin:0 auto 라 좌측 정렬 헤더에서 어긋난다 */
  margin-left: 0;
  margin-right: auto;
}
.text-center .section-desc { margin-left: auto; margin-right: auto; }
.text-center { margin-bottom: clamp(48px, 6vw, 96px); }

/* 섹션 라벨 → useschool식 알약 아이브로우 */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--display);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  margin-bottom: 20px;
  color: var(--brand-red);
}
/* 알약 배경 대신 짧은 선 하나 — 이게 훨씬 조용하고 정돈되어 보인다. */
.section-label::before {
  content: "";
  width: 24px;
  height: 2px;
  background: currentColor;
  flex: 0 0 auto;
}
.text-center .section-label { justify-content: center; }

/* ── 3. 형광펜 하이라이트 (useschool의 h4 span 대응) ──────── */
/* 밝은 배경 = 버건디 마커, 어두운 배경 = 골드 마커.
   두 색 모두 기존 팔레트(--brand-burgundy / --gold-on-dark) 값이다. */
/* 형광펜 반투명 블록은 글자를 흘리게 만든다.
   배경을 없애고 글자 자체를 빨강으로 세우는 편이 훨씬 선명하다. */
.us-mark {
  background: none;
  padding: 0;
  color: var(--brand-red);
  font-weight: 800;
}
.us-mark--solid {
  background: var(--brand-red);
  color: #fff;
  padding: 0 .24em;
  border-radius: var(--radius);
  font-weight: 800;
}

/* 네이비·사진 위에서는 진한 빨강이 묻히므로 밝은 빨강을 쓴다. */
.us-on-dark .us-mark,
.hero .us-mark,
.cta-section.us-banner .us-mark { color: var(--red-on-dark); }

.us-on-dark .us-mark--solid,
.hero .us-mark--solid,
.cta-section.us-banner .us-mark--solid {
  background: var(--brand-red);
  color: #fff;
}

/* ── 4. 알약 버튼 ─────────────────────────────────────────── */
.btn-gold, .btn-outline, .nav-cta, .cta-btn, .us-btn {
  border-radius: var(--us-pill);
  font-weight: 600;
  transition: transform .2s var(--us-ease), box-shadow .2s var(--us-ease), background-color .2s var(--us-ease);
}
.btn-gold, .btn-outline { padding: 16px 32px; font-size: clamp(14px, 1vw, 15.5px); font-weight: 700; }
.btn-gold {
  background: var(--brand-red);
  color: #fff;
  border-color: var(--brand-red);
  box-shadow: 0 10px 26px rgba(228, 33, 47, 0.30);
}
.btn-gold:hover { background: var(--red-dark); box-shadow: 0 14px 32px rgba(228, 33, 47, 0.38); }
.btn-gold:hover, .cta-btn:hover, .us-btn:hover { transform: translateY(-2px); }

/* useschool의 read_more: 어두운 알약 + 컬러 화살표 */
.us-more {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  border-radius: var(--us-pill);
  background: var(--brand-navy);
  color: var(--brand-ivory);
  font-size: clamp(14px, 1.05vw, 18px);
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: transform .2s var(--us-ease), background-color .2s var(--us-ease);
}
.us-more::after { content: "\2192"; color: var(--brand-gold); font-size: 1.15em; }
.us-more:hover { transform: translateY(-3px); background: #0a2a3d; }

/* ── 5. 카드 라운드 · 브랜드 그림자 ───────────────────────── */
.phil-card, .program-card, .test-card, .quick-item,
.conversion-panel, .conversion-steps {
  border-radius: var(--us-round);
}
/* .quick-item 은 카드가 아니라 색 띠 위에 놓인 링크다.
   여기에 흰 배경을 주면 흰 글씨와 겹쳐 글자가 사라진다. */
.phil-card, .program-card, .test-card {
  border: 1px solid var(--line);
  background: #fff;
}
.program-card, .test-card { box-shadow: var(--us-shadow); }

/* ── 6. 스크롤 리빌 (useschool gs_reveal) ─────────────────── */
.us-reveal {
  opacity: 0;
  transform: translateY(48px);
  transition: opacity .9s var(--us-ease), transform .9s var(--us-ease);
  will-change: opacity, transform;
}
.us-reveal--left  { transform: translate3d(-70px, 40px, 0); }
.us-reveal--right { transform: translate3d(70px, 40px, 0); }
.us-reveal.is-in { opacity: 1; transform: translate3d(0, 0, 0); }

@media (prefers-reduced-motion: reduce) {
  .us-reveal { opacity: 1; transform: none; transition: none; }
}

/* ── 7. HERO — 전면 사진 + 대형 헤드라인 ──────────────────── */
.hero-content { padding: clamp(120px, 14vw, 180px) 24px clamp(90px, 10vw, 140px); max-width: 1280px; }

/* 사진 위 태그는 꽉 찬 빨강이면 시끄럽다. 유리처럼 반투명하게 두고
   테두리 한 줄로만 잡아 준다. 강조는 제목의 빨간 단어 하나로 충분하다. */
.hero-offer {
  border-radius: var(--us-pill);
  padding: 9px 22px;
  font-size: clamp(11px, .95vw, 14px);
  letter-spacing: 0.06em;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.34);
  backdrop-filter: blur(6px);
  color: #fff;
  margin-bottom: clamp(24px, 3vw, 40px);
}

/* 히어로 제목: 빨간 강조는 '사고력' 한 곳만. 마지막 줄까지 빨강이면
   어느 쪽이 핵심인지 사라진다 — 마지막 줄은 흰색으로 되돌린다. */
.hero-title em { color: #fff; }
.hero .us-mark { color: var(--red-on-dark); font-weight: 800; }

.hero-title {
  font-size: var(--us-display);
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: -0.04em;
  margin-bottom: clamp(20px, 2.4vw, 34px);
  word-break: keep-all;
  max-width: 17em;
}

.hero-subtitle {
  font-size: var(--us-lead);
  line-height: 1.6;
  max-width: 34em;
  margin-bottom: clamp(26px, 3vw, 42px);
  color: rgba(255,255,255,0.86);
}

/* 히어로 칩 — useschool 히어로 하단 알약 페이지네이션 톤 */
.hero-credentials { gap: 12px; margin-bottom: clamp(34px, 4vw, 52px); max-width: 62em; }
.hero-cred {
  font-size: clamp(12px, 1vw, 15px);
  padding: 11px 22px;
  border-radius: var(--us-pill);
  background: rgba(255,255,255,0.13);
  border-color: rgba(255,255,255,0.24);
  backdrop-filter: blur(6px);
}

.hero-buttons { gap: 16px; }

/* ── 8. 지그재그 피처 행 (useschool #productb2c_wrap .features) ── */
.philosophy.us-zig-section {
  background: var(--brand-navy);
  color: var(--brand-ivory);
}
.us-zig-section .section-title { color: #fff; }
.us-zig-section .section-desc { color: rgba(246,242,233,0.78); }
/* 네이비 위에서는 와인색 강조가 묻히므로 팔레트의 --gold-on-dark 를 쓴다 */
.us-zig-section .section-label {
  background: none;
  border: 0;
  color: var(--red-on-dark);
}

.us-zig { display: block; margin: 0; padding: 0; list-style: none; }

.us-zig__row {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: center;
  gap: var(--us-gap);
  margin-bottom: clamp(64px, 8vw, 130px);
}
.us-zig__row:last-child { margin-bottom: 0; }
.us-zig__row:nth-child(2n) { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.us-zig__row:nth-child(2n) .us-zig__media { order: 2; }
.us-zig__row:nth-child(2n) .us-zig__body  { order: 1; text-align: right; }

.us-zig__media {
  position: relative;
  border-radius: var(--us-round);
  overflow: hidden;
  aspect-ratio: 5 / 3;
  background: rgba(255,255,255,0.06);
  box-shadow: 0 18px 50px rgba(0,0,0,0.28);
}
.us-zig__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .7s var(--us-ease);
}
.us-zig__row:hover .us-zig__media img { transform: scale(1.05); }

.us-zig__no {
  font-size: clamp(14px, 1.2vw, 20px);
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--gold-on-dark);
  margin-bottom: 14px;
  display: block;
}
.us-zig__title {
  font-size: var(--us-h3);
  font-weight: 700;
  line-height: 1.42;
  letter-spacing: -0.035em;
  color: #fff;
  margin: 0 0 18px;
  word-break: keep-all;
}
.us-zig__text {
  font-size: var(--us-body);
  line-height: 1.85;
  color: rgba(246,242,233,0.74);
  margin: 0;
  max-width: 34em;
  word-break: keep-all;
}
.us-zig__row:nth-child(2n) .us-zig__text { margin-left: auto; }

.us-zig__link { color: inherit; text-decoration: none; display: block; height: 100%; }

/* ── 9. 가로 후기 캐러셀 (useschool .sec_after) ───────────── */
.testimonials.us-reviews {
  background: linear-gradient(180deg, #fff 0%, var(--brand-ivory) 100%);
  overflow: hidden;
}
.us-reviews__inner {
  display: grid;
  grid-template-columns: minmax(300px, 400px) minmax(0, 1fr);
  gap: clamp(32px, 4vw, 64px);
  align-items: center;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 24px;
}
.us-reviews__head { display: flex; flex-direction: column; gap: clamp(28px, 4vw, 56px); }
.us-reviews__head .section-title { margin-bottom: 18px; }

.us-reviews__nav { display: flex; align-items: center; gap: 16px; }
.us-reviews__nav button {
  position: relative;
  width: 56px; height: 56px;
  border: 1px solid rgba(12,53,77,0.12);
  background: #fff;
  border-radius: 100px;
  cursor: pointer;
  color: var(--brand-navy);
  display: grid; place-items: center;
  box-shadow: 0 4px 16px rgba(12,53,77,0.10);
  transition: transform .2s var(--us-ease), background-color .2s var(--us-ease), color .2s var(--us-ease);
}
.us-reviews__nav button:hover:not(:disabled) { transform: translateY(-2px); background: var(--brand-navy); color: #fff; }
.us-reviews__nav button:disabled { opacity: .35; cursor: default; }
.us-reviews__nav svg { width: 20px; height: 20px; }

.us-reviews__viewport {
  overflow: hidden;
  padding: 60px 0 30px;
  --edge-fade: 48px;
  -webkit-mask-image: linear-gradient(to right, #000 0, #000 calc(100% - var(--edge-fade)), transparent 100%);
          mask-image: linear-gradient(to right, #000 0, #000 calc(100% - var(--edge-fade)), transparent 100%);
}
.us-reviews__track {
  display: flex;
  gap: 20px;
  width: max-content;
  transition: transform .45s var(--us-ease);
  will-change: transform;
}

/* 후기 링크는 카드의 형제 요소라 카드 테두리 밖으로 떨어져 나갔다.
   흰 상자 · 테두리 · 그림자를 바깥 .us-review 로 옮겨서
   본문과 링크가 한 장의 카드 안에 들어오게 한다. */
.us-review {
  flex: 0 0 320px;
  width: 320px;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--us-round);
  box-shadow: var(--us-shadow);
}
.us-review__card {
  position: relative;
  flex: 1;
  background: none;
  border: 0;
  border-radius: 0;
  padding: 64px 24px 20px;
  box-shadow: none;
}
.us-review__avatar {
  position: absolute;
  top: -44px; left: 50%;
  transform: translateX(-50%);
  width: 92px; height: 92px;
  border-radius: 100px;
  overflow: hidden;
  border: 4px solid #fff;
  background: linear-gradient(180deg, var(--brand-ivory) 0%, var(--gray-200) 100%);
  box-shadow: 0 6px 18px rgba(12,53,77,0.16);
}
.us-review__avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }

.us-review__meta {
  padding: 16px;
  border-radius: 12px;
  background: var(--brand-ivory);
  margin-bottom: 18px;
}
.us-review__meta p { margin: 0 0 6px; font-size: 15px; line-height: 1.5; color: var(--text); }
.us-review__meta p:last-child { margin-bottom: 0; }
.us-review__meta strong { font-weight: 700; color: var(--brand-navy); }

.us-review__quote {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.75;
  color: var(--text);
  text-align: center;
  word-break: keep-all;
}

/* 후기 카드의 링크는 원래 카드 절반을 채우는 빨간 덩어리였다.
   후기 본문보다 버튼이 더 눈에 띄면 주객이 바뀐다 —
   카드 아래에 붙는 얇은 줄 하나로 줄인다. */
.us-review__cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  position: relative;
  margin-top: auto;
  padding: 14px 24px;
  border-top: 1px solid var(--line);
  border-radius: 0;
  background: none;
  box-shadow: none;
  color: var(--brand-red);
  text-decoration: none;
  transition: color .2s var(--us-ease);
}
.us-review__cta:hover { color: var(--red-dark); }
.us-review__cta--static { cursor: default; }
.us-review__cta--static:hover { color: var(--brand-red); }
.us-review__cta .top-text {
  margin: 0;
  font-size: 13.5px; font-weight: 700; letter-spacing: -0.01em;
}
.us-review__cta .bottom-text {
  margin: 0;
  font-size: 13.5px; font-weight: 600; letter-spacing: -0.01em;
  color: var(--muted-text);
}
.us-review__cta .arrow {
  position: static;
  flex: 0 0 auto;
  width: 28px; height: 28px;
  border-radius: 100px;
  background: var(--red-tint);
  color: var(--brand-red);
  font-size: 12px; font-weight: 700; line-height: 28px;
  text-align: center;
  margin: 0;
}

/* 카드 높이를 맞춰 링크 줄이 한 줄로 정렬되게 한다. */
.us-review__card { display: flex; flex-direction: column; }

/* ── 10. 전면 사진 CTA 배너 (useschool #expedition_wrap) ──── */
.cta-section.us-banner {
  position: relative;
  padding: clamp(110px, 14vw, 200px) 24px;
  background: url("images/academy-interior-1.jpg") center center / cover no-repeat;
  text-align: center;
  overflow: hidden;
}
.cta-section.us-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(12,53,77,0.78) 0%, rgba(9,25,41,0.86) 100%);
}
.us-banner__inner { position: relative; z-index: 2; max-width: 1000px; margin: 0 auto; }
.cta-section.us-banner h2 {
  font-size: var(--us-h2);
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.035em;
  color: var(--brand-ivory);
  margin: 0 0 clamp(20px, 2.4vw, 36px);
  word-break: keep-all;
}
.cta-section.us-banner p {
  font-size: var(--us-lead);
  font-weight: 300;
  line-height: 1.65;
  color: rgba(246,242,233,0.88);
  margin: 0 0 clamp(30px, 3.6vw, 48px);
  word-break: keep-all;
}
.cta-section.us-banner .us-banner__title { margin-bottom: 16px; }
.cta-section.us-banner .us-banner__title-line { display: block; }
.cta-section.us-banner .us-banner__lead {
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}
.cta-section.us-banner .cta-buttons { justify-content: center; gap: 14px; }

/* ── 11. 맨 위로 (useschool .back-to-top) ─────────────────── */
.us-top {
  position: fixed;
  right: 24px;
  bottom: calc(env(safe-area-inset-bottom) + 24px);
  width: 52px; height: 52px;
  border-radius: 26px;
  border: 1px solid rgba(12,53,77,0.14);
  background: rgba(255,255,255,0.94);
  color: var(--brand-navy);
  cursor: pointer;
  display: grid; place-items: center;
  box-shadow: 0 6px 22px rgba(12,53,77,0.16);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .28s var(--us-ease), transform .28s var(--us-ease), visibility .28s;
  z-index: 110;
}
.us-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.us-top:hover { background: var(--brand-navy); color: #fff; }

/* ── 12. 반응형 ───────────────────────────────────────────── */
@media (max-width: 1100px) {
  .us-reviews__inner { grid-template-columns: 1fr; }
  .us-reviews__nav { justify-content: flex-start; }
}
@media (max-width: 860px) {
  .us-zig__row,
  .us-zig__row:nth-child(2n) { grid-template-columns: 1fr; gap: 28px; }
  .us-zig__row:nth-child(2n) .us-zig__media { order: 0; }
  .us-zig__row:nth-child(2n) .us-zig__body  { order: 0; text-align: left; }
  .us-zig__row:nth-child(2n) .us-zig__text  { margin-left: 0; }
  .us-reviews__viewport { --edge-fade: 24px; }
  .us-review { flex: 0 0 280px; width: 280px; }
  .us-top { right: 16px; width: 46px; height: 46px; }
}

/* ── 13. 기존 좌우 패딩 보정 ──────────────────────────────── */
/* .testimonials 기본값이 좌우 40px라 캐러셀 마스크가 화면 끝까지 닿지 않음 */
.testimonials.us-reviews { padding-left: 0; padding-right: 0; }
@media (max-width: 860px) {
  .philosophy.us-zig-section,
  .cta-section.us-banner { padding-left: 20px; padding-right: 20px; }
  /* 섹션 패딩 + 컨테이너 패딩이 겹쳐 모바일에서 본문 폭이 지나치게 좁아진다 */
  .us-zig-section .container { padding-left: 0; padding-right: 0; }
}

/* ── 14. 본문 가독성 보정 ────────────────────────────────────
   제목만 크게 키우고 본문은 13~15px 그대로라 균형이 깨졌다.
   본문 스케일을 올리고, 가운데 정렬 헤더에서 글상자가 한쪽으로
   쏠리던 문제를 함께 잡는다. */

:root {
  --us-card-title: clamp(17px, 1.45vw, 21px);
  --us-card-text:  clamp(15px, 1.18vw, 17px);
  --us-small:      clamp(13px, 1vw, 15px);
}

/* (1) 정렬 — .text-center 안의 max-width 문단이 좌측에 붙는 문제
   (.why-copy 등은 max-width 만 있고 margin:0 auto 가 없다) */
.text-center > p,
.text-center > .section-desc { margin-left: auto; margin-right: auto; }

/* 섹션 헤더 아래 리드 문장은 섹션 설명과 같은 크기로 */
.why-copy,
.curriculum-note,
.curious .section-header p {
  font-size: var(--us-lead);
  line-height: 1.6;
  max-width: 46em;
  word-break: keep-all;
}

/* (2) 카드 제목 */
.why-card h3,
.curious-card h3,
.diag-card h3,
.heidi-card h3,
.hall-card h3,
.motivation-card h3,
.proof-card h3,
.program-card h3 {
  font-size: var(--us-card-title);
  line-height: 1.35;
}

/* (3) 카드·스텝 본문 */
.why-card p,
.curious-card p,
.heidi-card p,
.diag-card p,
.hall-card p,
.motivation-card p,
.proof-card p,
.test-card p,
.program-card > p,
.curr-step p,
.conversion-panel p,
.conversion-step,
.target-item,
.target-intro,
.heidi-step,
.hero-description,
.roadmap-panel-desc,
.roadmap-panel-item {
  font-size: var(--us-card-text);
  line-height: 1.75;
  word-break: keep-all;
}

/* (4) 목록·보조 텍스트는 한 단계만 */
.program-detail-list li,
.program-target,
.quick-item,
.conversion-note,
.location-info li,
.track-list li {
  font-size: var(--us-small);
  line-height: 1.7;
}

/* 지그재그 본문도 제목 대비 작아 한 단계 올린다 */
:root { --us-body: clamp(16px, 1.25vw, 19px); }

/* ── 15. 그리드 열 수 보정 ────────────────────────────────────
   열 수와 실제 항목 수가 맞지 않아 마지막 줄이 한쪽으로 몰리던 곳들.
   기존 반응형 규칙(≤1024px)은 건드리지 않도록 데스크톱에만 적용한다. */
@media (min-width: 1025px) {
  .why-grid   { grid-template-columns: repeat(3, 1fr); } /* 카드 3개 — 4열이라 한 칸이 비었음 */
  .quick-grid { grid-template-columns: repeat(6, 1fr); } /* 항목 6개 — 5열이라 둘째 줄에 1개만 남았음 */
  .proof-grid { grid-template-columns: repeat(4, 1fr); } /* 카드 4개 — 3열이라 둘째 줄에 1개만 남았음 */
}

/* ── 16. 영어독서 히어로즈 전체 명단 ──────────────────────────
   AR 성적표 캡처 이미지를 걷어내고 명단을 본문 텍스트로 올린 블록. */
.ar-heroes { margin-top: clamp(40px, 5vw, 72px); }
.ar-heroes h4 {
  font-size: clamp(18px, 1.7vw, 26px);
  font-weight: 800;
  color: var(--brand-navy);
  letter-spacing: -0.03em;
  margin: 0 0 10px;
  word-break: keep-all;
}
.ar-heroes-sub {
  font-size: var(--us-card-text);
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0 0 24px;
  word-break: keep-all;
}
.ar-heroes-sub strong { color: var(--brand-gold); font-weight: 800; }

.ar-heroes-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px 20px;
}
.ar-heroes-list li {
  display: grid;
  grid-template-columns: 4.6em 1fr auto;
  align-items: baseline;
  gap: 10px;
  padding: 9px 14px;
  border-radius: 10px;
  background: var(--white);
  border: 1px solid var(--gray-100);
  font-size: var(--us-small);
  line-height: 1.4;
}
.ar-heroes-list b { font-weight: 700; color: var(--brand-navy); }
.ar-heroes-list span { color: var(--text-muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ar-heroes-list i { font-style: normal; color: var(--gray-400); margin: 0 2px; }
.ar-heroes-list em {
  font-style: normal;
  font-weight: 800;
  color: var(--brand-gold);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.ar-heroes-note {
  margin: 18px 0 0;
  font-size: clamp(12px, .95vw, 14px);
  color: var(--gray-400);
  line-height: 1.7;
}

@media (max-width: 1024px) {
  .ar-heroes-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .ar-heroes-list { grid-template-columns: 1fr; }
}

/* 기존 AR 명단 카드: CSS 는 span 을 겨냥하는데 HTML 은 small 이라
   학교·학년이 이름 뒤에 붙어 나오던 문제 */
.ar-case-name small {
  display: block;
  margin-top: 4px;
  font-size: clamp(11px, .9vw, 13px);
  font-weight: 400;
  color: var(--gray-400);
}
.ar-case-arrow { color: var(--text-muted); font-variant-numeric: tabular-nums; }
.ar-case-arrow strong { color: var(--brand-navy); font-weight: 800; }

@media (max-width: 860px) {
  /* .hall + .container + .ar-cases 패딩이 겹쳐 모바일 본문 폭이 크게 줄어든다 */
  .ar-cases { padding-left: 0; padding-right: 0; }
  .ar-heroes-list li { padding: 9px 12px; }
}

/* ── 17. 원장 약력 · 저서 ─────────────────────────────────── */
.director-cv { margin-top: clamp(20px, 2.4vw, 32px); }
.director-cv h4,
.director-books h4 {
  font-size: clamp(15px, 1.2vw, 18px);
  font-weight: 800;
  color: var(--brand-navy);
  letter-spacing: -0.02em;
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--gray-100);
}
.director-cv ul { list-style: none; margin: 0; padding: 0; }
.director-cv li {
  display: grid;
  grid-template-columns: 3.4em 1fr;
  gap: 12px;
  align-items: baseline;
  padding: 7px 0;
  font-size: var(--us-card-text);
  line-height: 1.6;
  color: var(--text);
  word-break: keep-all;
}
.director-cv li b {
  font-size: clamp(11px, .9vw, 13px);
  font-weight: 700;
  color: var(--brand-gold);
  letter-spacing: .06em;
}
.director-cv li em {
  font-style: normal;
  color: var(--gray-400);
  font-size: 0.9em;
  white-space: nowrap;
}

.director-books { margin-top: clamp(28px, 3vw, 44px); }
.book-list { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.book {
  display: grid;
  grid-template-columns: 108px 1fr;
  gap: 16px;
  padding: 18px;
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--us-round);
  transition: transform .2s var(--us-ease), box-shadow .2s var(--us-ease);
}
.book:hover { transform: translateY(-3px); box-shadow: var(--us-shadow-navy); }
.book-cover {
  aspect-ratio: 3 / 4;
  border-radius: 8px;
  overflow: hidden;
  /* 표지 파일이 아직 없어도 깨진 이미지가 아니라 자리 박스로 보이게 */
  background: linear-gradient(160deg, var(--brand-ivory), var(--gray-200));
  box-shadow: 0 6px 18px rgba(12, 53, 77, 0.16);
}
.book-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.book-body { min-width: 0; }
.book-badge {
  display: inline-block;
  font-size: clamp(10px, .82vw, 12px);
  font-weight: 700;
  letter-spacing: .08em;
  padding: 4px 12px;
  border-radius: var(--us-pill);
  background: var(--red-tint);
  color: var(--brand-gold);
  margin-bottom: 9px;
}
.book-body h5 {
  font-size: clamp(15px, 1.25vw, 19px);
  font-weight: 800;
  color: var(--brand-navy);
  letter-spacing: -0.03em;
  line-height: 1.4;
  margin: 0 0 9px;
  word-break: keep-all;
}
.book-body p {
  font-size: clamp(13px, 1vw, 15px);
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0 0 7px;
  word-break: keep-all;
}
.book-body .book-meta {
  font-size: clamp(11px, .88vw, 13px);
  color: var(--gray-400);
  line-height: 1.6;
  margin: 0;
}

@media (max-width: 1024px) {
  .book-list { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .book { grid-template-columns: 88px 1fr; gap: 13px; padding: 15px; }
  .director-cv li { grid-template-columns: 1fr; gap: 2px; }
}

/* ── 18. 토플 카드를 다른 진단 카드와 같은 형태로 ────────────
   .diag-card-toefl 만 grid-column: 1/-1 로 전폭을 차지해
   진단 1~4 와 따로 놀고 있었다. 그리드 한 칸으로 되돌린다. */
.diag-card.diag-card-toefl { grid-column: auto; padding: 24px; }
.diag-card-toefl .diag-list li span { min-width: 0; }
.diag-card-toefl .diag-list li strong {
  display: block;
  color: var(--brand-navy);
  font-weight: 800;
  margin-bottom: 1px;
}

/* ── 19. AR TEST 카드: RTP 진단 리포트 이미지 ─────────────── */
/* 세로형 리포트라 기존 4:3 cover 로는 가운데만 잘려 보인다.
   다른 진단 카드와 높이를 맞추되 리포트 윗부분(제목·학생정보)이 보이게 한다. */
.ar-test-media { display: block; }
.ar-test-media img {
  aspect-ratio: 4 / 3;
  object-fit: contain;
  object-position: center;
  background: var(--white);
  transition: opacity .2s var(--us-ease);
}
.ar-test-media:hover img { opacity: .88; }
.edunap-official-media img {
  object-fit: contain;
  object-position: center;
  background: var(--white);
}
.heidi-icon[src="images/ar-test-rtp-report.jpg"] {
  object-fit: cover;
  object-position: center;
}
.heidi-icon[src="images/heidi/book-quiz-record.jpg"] {
  object-fit: cover;
  object-position: center;
}
.heidi-icon[src="images/heidi/daily-feedback-report.jpg"] {
  object-fit: cover;
  object-position: center;
}
.heidi-media-stack {
  width: 100%;
  height: 170px;
  margin: 0 0 24px;
  order: -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.heidi-media-stack__image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  border-radius: 10px;
  background: var(--white);
  border: 1px solid rgba(12,53,77,0.10);
  box-shadow: 0 4px 16px rgba(12,53,77,0.10);
  transition: transform var(--transition);
}
.heidi-card:hover .heidi-media-stack__image { transform: translateY(-2px); }
.heidi-flow-showcase {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: 18px;
  align-items: stretch;
}
.heidi-flow-feature {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--brand-navy);
  box-shadow: 0 16px 40px rgba(12,53,77,0.12);
}
.heidi-flow-feature img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.heidi-flow-feature::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 58%;
  background: linear-gradient(180deg, transparent, rgba(5,21,32,.82));
}
.heidi-flow-caption {
  position: absolute;
  z-index: 2;
  left: 26px;
  right: 26px;
  bottom: 26px;
  color: var(--white);
}
.heidi-flow-caption b {
  display: inline-flex;
  margin-bottom: 10px;
  color: var(--brand-gold);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.heidi-flow-caption h3 {
  margin: 0 0 12px;
  font-size: clamp(26px, 3.2vw, 44px);
  line-height: 1.08;
  font-weight: 900;
  color: var(--white);
  letter-spacing: 0;
}
.heidi-flow-caption p {
  margin: 0;
  color: rgba(255,255,255,.86);
  font-size: 14px;
  line-height: 1.7;
  font-weight: 700;
  word-break: keep-all;
}
.heidi-flow-list {
  display: grid;
  gap: 12px;
}
.heidi-flow-card {
  display: grid;
  grid-template-columns: 136px 1fr;
  gap: 16px;
  align-items: center;
  padding: 15px;
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px solid var(--gray-200);
  box-shadow: 0 10px 26px rgba(12,53,77,0.06);
}
.heidi-flow-card img,
.heidi-flow-media {
  width: 136px;
  aspect-ratio: 1 / 1;
  border-radius: 10px;
  background: var(--off-white);
}
.heidi-flow-card > img {
  object-fit: cover;
  object-position: center;
  display: block;
}
.heidi-flow-media {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  overflow: hidden;
}
.heidi-flow-media img {
  width: 100%;
  height: 100%;
  min-width: 0;
  object-fit: cover;
  object-position: center;
  border-radius: 8px;
}
.heidi-flow-card small {
  display: block;
  margin-bottom: 5px;
  color: var(--pink);
  font-size: 11px;
  font-weight: 900;
}
.heidi-flow-card strong {
  display: block;
  margin-bottom: 6px;
  color: var(--brand-navy);
  font-size: 18px;
  font-weight: 900;
  line-height: 1.28;
}
.heidi-flow-card span {
  display: block;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.6;
  word-break: keep-all;
}
.heidi-homework {
  max-width: 1200px;
  margin: 28px auto 0;
  display: grid;
  grid-template-columns: minmax(260px, .72fr) minmax(0, 1.28fr);
  gap: 22px;
  align-items: start;
  padding: 28px;
  border-radius: var(--radius-lg);
  background: var(--brand-navy);
  color: var(--white);
  box-shadow: 0 16px 40px rgba(12,53,77,0.14);
}
.heidi-homework__copy span {
  display: inline-flex;
  margin-bottom: 10px;
  color: var(--brand-gold);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.heidi-homework__copy h3 {
  margin: 0 0 10px;
  font-size: clamp(20px, 2.2vw, 30px);
  line-height: 1.25;
  letter-spacing: -0.03em;
}
.heidi-homework__copy p {
  margin: 0;
  color: rgba(255,255,255,0.82);
  font-size: 14px;
  line-height: 1.75;
  word-break: keep-all;
}
.heidi-homework__system {
  display: grid;
  gap: 14px;
}
.heidi-homework__details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.heidi-homework__details div {
  padding: 13px 14px;
  border-radius: 12px;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.16);
}
.heidi-homework__details strong {
  display: block;
  margin-bottom: 5px;
  color: var(--brand-gold);
  font-size: 13px;
  font-weight: 900;
}
.heidi-homework__details span {
  display: block;
  color: rgba(255,255,255,0.84);
  font-size: 13px;
  line-height: 1.55;
  word-break: keep-all;
}
.heidi-homework__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-start;
}
.heidi-homework__chips span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.18);
  color: var(--white);
  font-size: 13px;
  font-weight: 800;
}
.ar-test-source {
  display: inline-flex;
  width: fit-content;
  margin: -10px 0 16px;
  color: var(--text-muted);
  font-size: clamp(10px, .82vw, 12px);
  line-height: 1.5;
}

/* ── 20. 원장 섹션 배치 보정 ──────────────────────────────────
   약력·저서가 붙으면서 오른쪽 칼럼이 길어졌는데 그리드가
   align-items: center 라 사진이 세로 가운데에 떠 있었다. */
.director-grid { align-items: start; }
.director-photo { position: sticky; top: 96px; }

/* 약력 — 한 줄에 한 항목씩, 구분선을 넣어 길이감을 준다 */
.director-cv ul { border-top: 1px solid var(--gray-100); }
.director-cv li {
  padding: 14px 2px;
  border-bottom: 1px solid var(--gray-100);
}
.director-cv li em {
  display: block;
  margin-top: 3px;
  white-space: normal;
}

@media (max-width: 1024px) {
  /* 한 칸으로 접히면 sticky 가 오히려 방해된다 */
  .director-photo { position: static; }
}

/* CTA: Kakao channel benefit */
.kakao-benefit {
  width: min(760px, 100%);
  margin: 0 auto clamp(28px, 3.2vw, 42px);
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid rgba(255, 107, 118, .38);
  border-radius: var(--us-round);
  background: rgba(255, 255, 255, .07);
  box-shadow: 0 16px 42px rgba(0, 0, 0, .18);
  backdrop-filter: blur(8px);
}

.kakao-benefit__eyebrow {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 7px 14px;
  color: var(--brand-navy);
  background: #FEE500;
  border-radius: var(--us-pill);
  font-size: 13px;
  font-weight: 900;
}

.kakao-benefit strong {
  display: block;
  color: var(--brand-ivory);
  font-size: clamp(20px, 2.3vw, 32px);
  font-weight: 900;
  line-height: 1.4;
  letter-spacing: -0.035em;
  word-break: keep-all;
}

.kakao-benefit ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.kakao-benefit li {
  padding: 9px 15px;
  color: rgba(246, 242, 233, .90);
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: var(--us-pill);
  font-size: clamp(13px, 1vw, 15px);
  font-weight: 700;
}

.cta-channel {
  color: #1e1e1e;
  background: #FEE500;
}

.cta-channel:hover {
  background: #f6d900;
  transform: translateY(-2px);
}

/* Achievement proof cards with longer result copy */
.proof-card[data-proof-section] .proof-head {
  color: var(--brand-navy);
  font-size: 16px;
  font-weight: 900;
}

.proof-card[data-proof-section] .proof-body p {
  margin: 0 0 12px;
  color: var(--dark);
  font-size: 14px;
  line-height: 1.6;
  word-break: keep-all;
}

.proof-card[data-proof-section] .proof-row {
  align-items: flex-start;
  padding: 12px 0;
  line-height: 1.55;
}

.proof-card[data-proof-section] .proof-row span {
  flex: 0 0 92px;
  color: var(--brand-burgundy);
  font-weight: 800;
}

.proof-card[data-proof-section] .proof-row strong {
  min-width: 0;
  color: var(--dark);
  font-size: 13px;
  font-weight: 800;
  word-break: keep-all;
}

@media (max-width: 768px) {
  .kakao-benefit { padding: 22px 18px; }
  .kakao-benefit strong br { display: none; }
  .proof-card[data-proof-section] .proof-row {
    display: block;
  }
  .proof-card[data-proof-section] .proof-row span {
    display: block;
    margin-bottom: 4px;
  }
}

/* Reading Brain differentiator panel */
.rb-difference-panel {
  max-width: 1200px;
  margin: 0 auto clamp(34px, 4vw, 56px);
  padding: clamp(30px, 4vw, 52px);
  color: var(--brand-ivory);
  background:
    linear-gradient(135deg, rgba(18, 48, 71, .93), rgba(11, 34, 51, .96)),
    url("images/english-books-library.jpg") center / cover;
  border-radius: var(--us-round);
  box-shadow: 0 18px 48px rgba(18, 48, 71, .18);
  text-align: center;
  overflow: hidden;
}

.rb-difference-panel > span {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 8px 16px;
  color: var(--brand-navy);
  background: var(--gold-on-dark);
  border-radius: var(--us-pill);
  font-size: 13px;
  font-weight: 900;
}

.rb-difference-panel h3 {
  margin: 0;
  color: #fff;
  font-size: clamp(30px, 4.5vw, 58px);
  font-weight: 900;
  line-height: 1.18;
  letter-spacing: -0.045em;
  word-break: keep-all;
}

.rb-difference-panel p {
  margin: 14px auto clamp(24px, 3vw, 36px);
  color: rgba(246, 242, 233, .88);
  font-size: clamp(17px, 1.6vw, 24px);
  font-weight: 700;
  line-height: 1.5;
  word-break: keep-all;
}

.rb-difference-proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: clamp(22px, 3vw, 34px);
}

.rb-difference-proof article {
  padding: 22px 18px;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 16px;
  backdrop-filter: blur(6px);
}

.rb-difference-proof strong {
  display: block;
  color: #fff;
  font-size: clamp(18px, 1.8vw, 26px);
  font-weight: 900;
}

.rb-difference-proof small {
  display: block;
  margin-top: 8px;
  color: rgba(246, 242, 233, .82);
  font-size: clamp(13px, 1vw, 15px);
  font-weight: 700;
  line-height: 1.45;
}

.rb-difference-strengths {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.rb-difference-strengths span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 64px;
  padding: 12px 14px;
  color: var(--brand-navy);
  background: rgba(246, 242, 233, .94);
  border-radius: 14px;
  font-size: clamp(13px, 1vw, 15px);
  font-weight: 900;
  line-height: 1.45;
  word-break: keep-all;
}

@media (max-width: 900px) {
  .rb-difference-proof,
  .rb-difference-strengths {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .rb-difference-panel {
    padding: 28px 18px;
  }
  .rb-difference-proof,
  .rb-difference-strengths {
    grid-template-columns: 1fr;
  }
}

/* School network */
.school-network { background: var(--white); padding: 92px 40px; }
.school-network-head {
  max-width: 1200px;
  margin: 0 auto 34px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: end;
}
.school-network-head h2 {
  margin-top: 10px;
  font-size: clamp(28px, 4vw, 50px);
  font-weight: 900;
  color: var(--dark);
  letter-spacing: -0.04em;
  line-height: 1.16;
}
.school-network-head p {
  max-width: 560px;
  margin-top: 14px;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.75;
  word-break: keep-all;
}
.school-network-counts {
  display: grid;
  grid-template-columns: repeat(2, minmax(110px, 1fr));
  gap: 10px;
}
.school-network-counts div {
  min-width: 128px;
  padding: 18px 16px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  background: var(--off-white);
  text-align: center;
}
.school-network-counts strong {
  display: block;
  color: var(--pink);
  font-size: 34px;
  font-weight: 900;
  line-height: 1;
}
.school-network-counts span {
  display: block;
  margin-top: 7px;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}
.school-network-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr);
  gap: 22px;
}
.school-panel {
  padding: 26px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  background: var(--off-white);
}
.school-panel h3 {
  margin-bottom: 16px;
  color: var(--dark);
  font-size: 18px;
  font-weight: 900;
  letter-spacing: -0.02em;
}
.school-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.school-list li {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 8px 12px;
  border: 1px solid rgba(18,48,71,0.12);
  border-radius: 999px;
  background: var(--white);
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
  word-break: keep-all;
}
.school-list--international li {
  border-color: var(--red-line);
  color: var(--brand-navy);
}

@media (max-width: 1024px) {
  .school-network-head { grid-template-columns: 1fr; align-items: start; }
  .school-network-counts { max-width: 320px; }
  .school-network-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .school-network-counts { grid-template-columns: 1fr 1fr; }
  .school-panel { padding: 22px 18px; }
  .school-list li { width: 100%; justify-content: center; text-align: center; }
}

@media (max-width: 768px) {
  .heidi-flow-showcase {
    grid-template-columns: 1fr;
  }
  .heidi-flow-feature {
    min-height: 420px;
  }
  .heidi-homework {
    grid-template-columns: 1fr;
    padding: 24px;
  }
  .heidi-homework__details { grid-template-columns: 1fr; }
  .heidi-homework__chips { justify-content: flex-start; }
}

@media (max-width: 560px) {
  .heidi-flow-caption {
    left: 18px;
    right: 18px;
    bottom: 18px;
  }
  .heidi-flow-card {
    grid-template-columns: 92px 1fr;
    padding: 14px;
  }
  .heidi-flow-card img,
  .heidi-flow-media {
    width: 92px;
  }
  .heidi-homework__details {
    grid-template-columns: 1fr;
  }
}

/* ── 21. 노출과제 블록 대비 보정 ──────────────────────────────
   .heidi-homework 는 네이비 배경인데 강조 글씨가 --brand-gold
   (실제 값은 와인 #8B3038)라 대비가 1.4~1.6:1 로 거의 안 읽혔다.
   팔레트의 --gold-on-dark 로 바꿔 약 7:1 을 확보한다.
   (지그재그 섹션에서 이미 같은 이유로 적용한 방식) */
.heidi-homework__copy span,
.heidi-homework__details strong { color: var(--gold-on-dark); }

/* ── 22. AR 성적 우수자 박스 상단 간격 ────────────────────────
   .ar-cases 는 아이보리 배경의 독립 패널인데 위 .hall-grid 와
   간격이 0px 이라 앞 섹션에 붙어 보였다. */
.hall .ar-cases { margin-top: clamp(48px, 6vw, 88px); }

/* ── 23. 노출과제 본문 가독성 ────────────────────────────────
   13px · line-height 1.55 · 흰색 84% 라 네이비 위에서 읽기 힘들었다. */
.heidi-homework__details div {
  padding: 18px 20px;
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.20);
}
.heidi-homework__details strong {
  font-size: clamp(14px, 1.15vw, 17px);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.heidi-homework__details span {
  font-size: clamp(14px, 1.05vw, 16px);
  line-height: 1.85;
  color: rgba(255,255,255,0.94);
}
/* 문장 안의 핵심 수치·용어를 골드로 짚어준다 */
.heidi-homework__details span em {
  font-style: normal;
  font-weight: 700;
  color: var(--gold-on-dark);
}
.heidi-homework__system { gap: 18px; }

/* ── 12. 카드 바닥 정렬 ───────────────────────────────────── */
/* .program-card 는 flex column 인데 토글 버튼에 margin-top:auto 가 없어
   글이 짧은 카드는 버튼이 위로 올라붙고 긴 카드는 아래에 놓여,
   한 줄에 놓인 카드들의 버튼 높이가 제각각이었다. */
.program-card-toggle { margin-top: auto; }
.program-card.open .program-card-toggle { margin-top: auto; }

/* ── 13. 남은 섹션 머리글 통일 ────────────────────────────── */
/* 입시관리 섹션만 .section-label 이 아니라 .section-kicker 를 쓰고 있어
   혼자 다른 모양이었다. 다른 섹션과 같은 '빨간 선 + 영문 대문자' 로 맞춘다. */
.admissions-management .section-kicker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-family: var(--display);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--red-on-dark);
  margin-bottom: 20px;
}
.admissions-management .section-kicker::before,
.admissions-management .section-kicker::after {
  content: "";
  width: 24px;
  height: 2px;
  background: currentColor;
  flex: 0 0 auto;
}
/* 강조 단어는 다른 네이비 섹션과 같은 밝은 빨강으로. */
.admissions-management .section-title em { color: var(--red-on-dark); }

/* ── 14. 커리큘럼 카드 상단 띠 통일 ───────────────────────── */
/* .pc-1 ~ .pc-12 가 네이비/빨강을 번갈아 쓰고 있었는데 규칙이 보이지 않아
   12장이 제각각으로 읽혔다. 모든 카드에 같은 띠를 두르면 이 줄은
   '주목' 이 아니라 '구조' 로 읽히고, 빨강은 진짜 강조에만 남는다. */
.program-card { --pc-color: var(--brand-navy); }
.program-card::before { height: 3px; }

/* ── 15. 상단 안내바 글씨 ─────────────────────────────────── */
/* 주 메뉴가 --text-muted(회색) 13px/500 이라 흰 배경에서 가장 흐린 글씨였다.
   페이지에서 제일 먼저 읽혀야 할 줄이 제일 약하면 안 된다.
   네이비 + 600 으로 올리면 흰 배경 대비가 5.9:1 에서 12.6:1 이 된다. */
.nav-links a {
  color: var(--brand-navy);
  font-weight: 600;
  font-size: 13.5px;
}
.nav-links a:hover,
.nav-links a:focus-visible { color: var(--brand-red); }
.nav-links a.active { color: var(--brand-red); font-weight: 700; }

/* 로고 옆 영문 태그라인도 같은 이유로 한 단계 올린다. */
.nav-logo-text small { color: var(--body-text); }

/* ── 16. 파머스 디테일 ────────────────────────────────────── */
/* 파머스 페이지에 있는데 아직 안 가져온 잔손질 네 가지. */

/* (1) 가운데 정렬 섹션 제목 아래 짧은 빨간 선.
       파머스의 .rule 에 해당한다 — 제목과 본문 사이를 끊어 주는 역할. */
.text-center .section-title::after {
  content: "";
  display: block;
  width: 44px;
  height: 3px;
  background: var(--brand-red);
  margin: 26px auto 0;
}
.us-zig-section .text-center .section-title::after { background: var(--red-on-dark); }

/* (2) 상단 메뉴에 밑줄이 왼쪽에서 밀려 들어온다.
       파머스의 .gnb a::after 와 같은 동작. */
.nav-links a { position: relative; }
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 2px;
  background: var(--brand-red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s var(--us-ease);
}
.nav-links a:hover::after,
.nav-links a.active::after { transform: scaleX(1); }

/* (3) 드래그 선택 색도 브랜드 빨강으로. */
::selection { background: var(--brand-red); color: #fff; }

/* (4) 카드에 마우스를 올리면 조금 더 떠오르고 테두리는 그림자에 자리를 내준다. */
.program-card:hover,
.test-card:hover,
.phil-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--us-shadow-navy);
  border-color: transparent;
}

/* ── 17. 빠른 메뉴 띠 ─────────────────────────────────────── */
/* 띠 전체가 선명한 빨강이면 페이지에서 가장 크게 소리치는 면이 된다.
   파머스도 같은 자리(.quickbar)를 네이비로 쓴다 — 빨강은 강조에만 남긴다. */
.quick-menu { background: var(--brand-navy); }
.quick-item {
  background: none;
  border: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 0;
  color: #fff;
}
.quick-item:last-child { border-right: 0; }
.quick-item:hover { background: rgba(255, 255, 255, 0.08); }
.quick-icon { color: var(--red-on-dark); font-family: var(--display); font-weight: 800; }

/* ── 18. 남은 옛 팔레트 잔재 ──────────────────────────────── */
/* 토큰으로 안 잡히고 직접 색을 적어둔 자리들. 불투명도가 높아 눈에 띄는 것만 손본다. */

/* 대상 안내 패널의 아이브로우만 아직 '꽉 찬 알약' 이었다 — 다른 섹션과 같은 납작한 형태로. */
.target-panel .section-label {
  background: none;
  border: 0;
  box-shadow: none;
  color: var(--red-on-dark);
}

/* 상담봇 버튼 그림자도 와인빛이 남아 있었다. */
.chatbot-toggle { box-shadow: 0 8px 24px rgba(228, 33, 47, .35); }
.chatbot-toggle:hover { box-shadow: 0 12px 32px rgba(228, 33, 47, .45); }

/* ── 19. 메인 헤더 사진 크로스페이드 ──────────────────────── */
/* 사진 여러 장이 겹쳐 넘어가면서 천천히 움직여 동영상처럼 보이게 한다.
   동영상 파일을 쓰지 않으므로 17MB 대신 사진 6장 1.8MB 로 끝난다.

   시간을 맞추는 것이 핵심이다. 한 장이 화면에 보이는 총 시간은
   들어오는 1.6초 + 머무는 4.5초 + 나가는 1.6초 = 7.7초다.
   예전에는 확대 애니메이션만 12초로 잡혀 있어서, 다 자라기 전에
   사진이 바뀌고 다음 차례에 처음 크기로 되감겨 툭 끊겨 보였다.
   8초로 맞추고 등속(linear)으로 두면 영상처럼 일정하게 흐른다. */
.hero-video-wrap .hero-static-image {
  opacity: 0;
  transition: opacity 1.6s ease-in-out;
  will-change: opacity, transform;
}
.hero-video-wrap .hero-static-image.is-on { opacity: 1; }

/* 홀수·짝수 장의 움직임을 반대로 둔다 —
   전부 같은 방향으로 확대되면 같은 장면이 반복되는 느낌이 든다. */
.hero-video-wrap .hero-static-image:nth-child(odd).is-on {
  animation: heroDriftIn 8s linear forwards;
}
.hero-video-wrap .hero-static-image:nth-child(even).is-on {
  animation: heroDriftOut 8s linear forwards;
}

@keyframes heroDriftIn {
  from { transform: scale(1.03) translate3d(-0.6%, 0, 0); }
  to   { transform: scale(1.11) translate3d(0.6%, 0, 0); }
}
@keyframes heroDriftOut {
  from { transform: scale(1.11) translate3d(0.6%, 0, 0); }
  to   { transform: scale(1.03) translate3d(-0.6%, 0, 0); }
}

/* 움직임을 줄여 달라는 설정에서는 첫 장만 조용히 보여 준다. */
@media (prefers-reduced-motion: reduce) {
  .hero-video-wrap .hero-static-image { opacity: 0; transition: none; animation: none; }
  .hero-video-wrap .hero-static-image.is-on { opacity: 1; animation: none; transform: none; }
}

/* ────────────────────────────────────────────────────────────────
   §20. 원서정독 결과물 (#student-work)
   워크시트는 세로로 긴 종이다. 정사각 타일에 넣으면 제목이 잘려서
   무슨 활동인지 알 수 없다. 3:4 로 두고 위쪽을 기준으로 맞춘다.
   ──────────────────────────────────────────────────────────────── */
.student-work {
  background: var(--soft-2);           /* 위 흰 섹션, 아래 연한 섹션 사이의 띠 */
  border-bottom: 1px solid var(--line);
  padding: var(--us-pad) 40px;
}

.work-grid {
  max-width: 1240px;
  margin: 44px auto 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}

/* 처음에는 15장만 보이고 나머지는 버튼으로 편다.
   display:none 인 동안에는 lazy 이미지가 내려받아지지 않아
   페이지가 무거워지지 않는다. */
.work-grid:not(.is-open) .work-item:nth-child(n+16) { display: none; }

.work-more-wrap { max-width: 1240px; margin: 26px auto 0; text-align: center; }
.work-more {
  font: inherit;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--brand-navy);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--us-pill);
  padding: 12px 26px;
  cursor: pointer;
  transition: border-color .2s ease, color .2s ease, box-shadow .2s ease;
}
.work-more:hover {
  border-color: var(--brand-red);
  color: var(--brand-red);
  box-shadow: 0 6px 18px rgba(18, 48, 71, .10);
}
.work-more::after { content: " ↓"; }
.work-grid.is-open + .work-more-wrap .work-more::after { content: " ↑"; }

.work-item {
  display: block;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--us-round);
  overflow: hidden;
  text-decoration: none;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.work-item:hover {
  transform: translateY(-6px);
  border-color: var(--red-line);
  box-shadow: 0 14px 34px rgba(18, 48, 71, .12);
}

.work-item img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: top center;   /* 워크시트 제목이 보이는 쪽 */
  background: var(--soft-2);
}

/* 가로로 긴 결과물은 잘라내면 내용이 사라진다. 통째로 담는다. */
.work-item--doc img { object-fit: contain; object-position: center; background: #fff; }

.work-cap { padding: 12px 13px 14px; }
.work-cap b {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--brand-navy);
  letter-spacing: -0.02em;
}
.work-cap span {
  display: block;
  margin-top: 5px;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--body-text);
}

.work-note {
  max-width: 1200px;
  margin: 22px auto 0;
  font-size: 12.5px;
  color: var(--muted-text);
  text-align: center;
}

@media (max-width: 1200px) { .work-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 1024px) { .work-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px)  { .work-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; } }

/* ────────────────────────────────────────────────────────────────
   §21. 원장 강연·설명회 (#director 안)
   약력·저서가 글로만 이어져서 원장이 실제로 강단에 서는 모습이
   보이지 않았다. 두 장으로 그 자리를 채운다.
   ──────────────────────────────────────────────────────────────── */
.director-talks { margin-top: 34px; }
.director-talks h4 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--brand-red);
  margin-bottom: 14px;
}
.talk-list { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.talk { margin: 0; }
.talk img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--us-round);
  border: 1px solid var(--line);
  background: var(--soft);
}
.talk figcaption { margin-top: 10px; }
.talk figcaption b {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--brand-navy);
  letter-spacing: -0.02em;
}
.talk figcaption span {
  display: block;
  margin-top: 4px;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--body-text);
}
@media (max-width: 620px) { .talk-list { grid-template-columns: 1fr; } }

/* ────────────────────────────────────────────────────────────────
   §22. 원장 1:1 학습 로드맵 상담 (#director 안)
   약력·저서·강연이 모두 '밖에서의 이력'이라, 정작 학부모가 가장
   궁금해하는 '내 아이를 어떻게 봐 주는가'가 비어 있었다.
   ──────────────────────────────────────────────────────────────── */
.director-roadmap { margin-top: 34px; }
.director-roadmap h4 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--brand-red);
  margin-bottom: 14px;
}
.roadmap-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.roadmap-shot { margin: 0; }
.roadmap-shot img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--us-round);
  border: 1px solid var(--line);
  background: var(--soft);
}
.roadmap-body > p {
  margin: 0 0 14px;
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--body-text);
}
.roadmap-body > p strong { color: var(--brand-navy); font-weight: 700; }

.roadmap-points { list-style: none; margin: 0; padding: 0; }
.roadmap-points li {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 10px;
  padding: 9px 0;
  border-top: 1px solid var(--line);
}
.roadmap-points li:first-child { border-top: 0; padding-top: 0; }
.roadmap-points b {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--brand-red);
  letter-spacing: -0.01em;
}
.roadmap-points span {
  font-size: 13px;
  line-height: 1.65;
  color: var(--body-text);
}

@media (max-width: 760px) { .roadmap-row { grid-template-columns: 1fr; } }

/* ─── 23. 키보드 포커스 ────────────────────────────────────────────
   탭으로 다닐 때 지금 어디인지 보이게 한다. 마우스로는 안 나온다.
   챗봇 입력창은 outline:none 으로 지워져 있어 따로 되돌린다. */
/* :where() 는 특이도가 0 이라 버튼에 걸린 box-shadow 에 밀린다.
   흰 테두리가 이겨야 하므로 보통 선택자로 적는다. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--brand-red);
  outline-offset: 2px;
  border-radius: 3px;
  /* 빨강은 네이비 위에서 2.96:1 뿐이라 WCAG 3:1 에 못 미친다.
     테두리 사이 틈을 흰색으로 채우면 어두운 배경에서 13.6:1 이 된다.
     밝은 배경에서는 흰색이 묻히고 빨강(4.1:1)이 보인다. */
  box-shadow: 0 0 0 2px #FFFFFF;
}
.chatbot-form input:focus-visible {
  outline: 3px solid var(--brand-red);
  outline-offset: 2px;
  box-shadow: 0 0 0 2px #FFFFFF;
}

/* ─── 24. 읽는 글자 키우기 ──────────────────────────────────────────
   학부모가 실제로 읽는 문단만 13px → 15px 로 올린다.
   라벨·번호·버튼·통계 밑단(11~13px)은 장식이라 그대로 둔다. */
.original-effect-card p,
.why-card p,
.program-target,
.diag-list li,
.proof-body,
.admissions-pillars p,
.loc-text span,
.roadmap-points span,
.director-content p,
.original-effects-note,
.studyforce-summary-grid span {
  font-size: 15px;
}


/* 11px 로 찍히던 설명 한 문장 — 읽으라고 쓴 글이라 올린다 */
.ar-stat-tip { font-size: 13px; }

/* 카드 안 상세 설명 — 본문(15px)보다 한 단 아래, 라벨(13px)보다 한 단 위 */
.program-detail-list li,
.track-list li,
.sf-points li,
.ep-top p,
.ep-body p,
.footer-brand-area p,
.heidi-flow-card span,
.heidi-homework__details span {
  font-size: 14px;
}

/* 인라인 <style> 에 더 구체적인 규칙이 있어 같은 무게로 맞춘다 */
.studyforce-center .studyforce-summary-grid span,
.myuse-prep p { font-size: 14px; }
