/* =====================================================================
   READINGPOWER — 디자인 파일
   색상은 아래 :root 의 값만 바꾸면 홈페이지 전체에 반영됩니다.
   ===================================================================== */
:root {
  --green: #0D6952;        /* 리파잉글리시 로고 그린 */
  --green-deep: #08473A;
  --green-tint: #EAF3EF;
  --amber: #3F8F70;        /* 보조 그린 (옐로우 제거) */
  --amber-soft: #CDE6DA;   /* 연한 그린 강조 */
  --amber-tint: #EEF6F2;
  --ochre: #08473A;        /* 진한 그린 */
  --ink: #1F1A1A;          /* 리드인 로고 글자색 */
  --body: #3B3D3C;
  --muted: #6E7370;
  --line: #E2E4E2;
  --paper: #FAF7EE;        /* 아이보리 */
  --white: #FFFFFF;

  --sans: "Pretendard Variable", "Pretendard", -apple-system, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  --serif: var(--sans);    /* 제목도 Pretendard 고딕으로 통일 */

  --pad: 22px;
  --max: 1120px;
  --header-h: 70px;
  --cta-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--sans); color: var(--body); background: var(--white);
  font-size: 16px; line-height: 1.75; letter-spacing: -0.01em; word-break: keep-all;
  padding-bottom: calc(var(--cta-h) + env(safe-area-inset-bottom));
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4 { color: var(--ink); margin: 0; line-height: 1.3; letter-spacing: -0.03em; }
p { margin: 0; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; z-index: 100; background: var(--ink); color: #fff; padding: 8px 12px; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }

/* ---------- 공지 배너 ---------- */
#notice-banner:empty { display: none; }
.notice-banner { display: flex; align-items: center; justify-content: center; gap: 10px; background: var(--green-deep); color: #fff; font-size: 14px; padding: 9px 40px 9px 16px; position: relative; text-decoration: none; }
.notice-banner strong { color: var(--amber-soft); font-weight: 700; }
.notice-banner .nb-close { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); background: none; border: 0; color: #fff; font-size: 20px; width: 32px; height: 32px; }

/* ---------- 상단 헤더 ---------- */
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-inner { max-width: var(--max); margin: 0 auto; height: var(--header-h); padding: 0 var(--pad); display: flex; align-items: center; gap: 16px; }
.brand { display: flex; flex-direction: column-reverse; justify-content: center; gap: 4px; text-decoration: none; min-width: 0; margin-right: auto; }
.brand-logos { display: flex; align-items: center; gap: 9px; }
.brand img.logo-en { height: 17px; width: auto; }
.brand img.logo-ko { height: 15px; width: auto; }   /* 리파잉글리시와 시각적으로 같은 크기 */
.brand-tag { font-size: 11.5px; font-weight: 700; color: var(--green); letter-spacing: -0.01em; line-height: 1; white-space: nowrap; }
.brand .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--muted); flex: none; }
.brand .text-logo { font-weight: 900; color: var(--green); font-size: 18px; }
.quick-nav { display: none; }
.menu-btn { width: 44px; height: 44px; border: 0; background: none; display: flex; flex-direction: column; justify-content: center; gap: 6px; padding: 10px; margin-right: -10px; }
.menu-btn span { display: block; height: 2px; background: var(--ink); transition: transform .25s, opacity .25s; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- 전체 메뉴 ---------- */
.menu { position: fixed; inset: var(--header-h) 0 0 0; z-index: 39; background: var(--white); overflow-y: auto; }
.menu-inner { max-width: var(--max); margin: 0 auto; padding: 18px var(--pad) 120px; }
.menu-group { padding: 14px 0 6px; }
.menu-group-title { font-size: 12px; font-weight: 700; letter-spacing: .14em; color: var(--muted); margin-bottom: 4px; }
.menu-list { list-style: none; margin: 0; padding: 0; }
.menu-list a { display: flex; align-items: baseline; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); text-decoration: none; font-size: 19px; font-weight: 700; color: var(--ink); }
.menu-list a .n { font-family: var(--serif); font-size: 13px; color: var(--green); width: 22px; }
.menu-list a.ko .n { color: var(--amber); }
.menu-links { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 22px; font-size: 14px; }
.menu-links a { color: var(--muted); }

/* ---------- 섹션 공통 ---------- */
.section { padding: 76px 0; border-top: 1px solid var(--line); }
.section.paper { background: var(--paper); }
.sec-head { margin-bottom: 36px; }
.sec-label { display: flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 700; letter-spacing: .16em; color: var(--green); margin-bottom: 18px; }
.sec-label .num { font-family: var(--serif); font-size: 14px; letter-spacing: 0; }
.sec-label .bar { width: 28px; height: 1px; background: currentColor; }
.theme-ko .sec-label { color: var(--ochre); }
.sec-title { font-family: var(--sans); font-weight: 800; letter-spacing: -0.04em; font-size: clamp(28px, 7.6vw, 46px); line-height: 1.28; }
.sec-sub { margin-top: 14px; font-size: 17px; color: var(--muted); }
.lead { font-size: 17px; line-height: 1.85; color: var(--body); max-width: 680px; }

/* ---------- 임시 영역 표시 ---------- */
.tbd { color: #9A9E9B; font-style: normal; }
.tbd::before { content: "준비 중 · "; font-size: .82em; font-weight: 700; color: #B5B8B6; }
body.show-draft .tbd { background: #FDECEC; outline: 1px dashed #D9534F; outline-offset: 2px; color: #A33; }
.ph { position: relative; background: repeating-linear-gradient(-45deg, #F1F2F0, #F1F2F0 10px, #F7F8F6 10px, #F7F8F6 20px); display: flex; align-items: center; justify-content: center; text-align: center; color: #8C918E; font-size: 13px; padding: 16px; border: 1px dashed #CDD1CE; }
.ph span::before { content: ""; display: block; width: 26px; height: 22px; margin: 0 auto 8px; border: 1.5px solid currentColor; border-radius: 2px; background: radial-gradient(circle at 70% 35%, currentColor 2.5px, transparent 3px), linear-gradient(135deg, transparent 55%, currentColor 55% 62%, transparent 62%); opacity: .7; }
body.show-draft .ph { border-color: #D9534F; }

/* ---------- 01 메인 ---------- */
.hero { padding: 44px 0 0; position: relative; overflow: hidden; }
.hero .desc { font-size: 14.5px; font-weight: 600; color: var(--green); letter-spacing: -0.02em; }
.hero h1 { margin-top: 16px; font-family: var(--sans); font-weight: 800; font-size: clamp(24px, 7.6vw, 72px); line-height: 1.24; letter-spacing: -0.055em; color: var(--ink); }
.hero h1 span { display: block; white-space: nowrap; }
.hero h1::after { content: ""; display: block; width: 48px; height: 4px; background: var(--green); margin-top: 22px; }
.hero .brand-line { margin-top: 18px; font-size: 15px; font-weight: 600; color: var(--body); letter-spacing: -0.02em; }
.hero-cta { display: flex; gap: 10px; margin-top: 32px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 50px; padding: 0 22px; font-weight: 700; font-size: 15px; text-decoration: none; border: 1px solid transparent; border-radius: 2px; }
.btn-green { background: var(--green); color: #fff; }
.btn-green:hover { background: var(--green-deep); }
.btn-line { border-color: var(--ink); color: var(--ink); background: transparent; }

.hero-visual { margin-top: 48px; aspect-ratio: 4 / 3; }
.hero-visual img { width: 100%; height: 100%; object-fit: cover; }
.hero-index { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--ink); margin-top: 0; }
.hero-index a { display: block; padding: 18px 0 18px; text-decoration: none; border-bottom: 1px solid var(--line); }
.hero-index a { padding-left: 12px; border-right: 1px solid var(--line); }
.hero-index a:first-child { padding-left: 0; }
.hero-index a:last-child { border-right: 0; }
.hero-index .k { font-size: 11px; letter-spacing: .14em; font-weight: 700; color: var(--green); }
.hero-index .is-ko .k { color: var(--ochre); }
.hero-index .t { display: block; font-weight: 700; color: var(--ink); font-size: 16px; margin-top: 2px; }

/* ---------- 02 교육철학 ---------- */
.phil-sub { font-family: var(--serif); font-weight: 700; font-size: clamp(19px, 5vw, 26px); color: var(--green); margin-top: 12px; }
.phil-body p + p { margin-top: 14px; }
.phil-blocks { border-top: 1px solid var(--ink); }
.phil-block { padding: 28px 0; border-bottom: 1px solid var(--line); }
.phil-block h3 { font-size: clamp(21px, 5.6vw, 26px); font-weight: 800; letter-spacing: -0.04em; }
.phil-block h3::before { content: ""; display: block; width: 22px; height: 3px; background: var(--green); margin-bottom: 14px; }
.phil-block p { margin-top: 12px; font-size: 16px; line-height: 1.85; }
.phil-block .phil-note { margin-top: 14px; padding-left: 12px; border-left: 2px solid var(--amber); font-size: 14.5px; color: var(--muted); line-height: 1.7; }
.phil-closing { margin-top: 56px; font-size: clamp(27px, 7.4vw, 46px); font-weight: 800; letter-spacing: -0.05em; line-height: 1.35; color: var(--ink); }
.phil-closing strong { display: inline; font-weight: 800; color: var(--green); background: linear-gradient(transparent 64%, var(--amber-soft) 64%); }
.phil-closing span { display: block; }
#philosophy { padding-bottom: 64px; }

/* ---------- 03 차별성 ---------- */
.kw-list { list-style: none; margin: 40px 0 0; padding: 0; border-top: 1px solid var(--ink); }
.sec-logo { display: block; height: 22px; width: auto; margin-top: 18px; }
.kw-list li { display: grid; grid-template-columns: 1fr; gap: 6px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.kw-list .en { font-size: clamp(34px, 11vw, 58px); font-weight: 900; letter-spacing: -0.04em; line-height: 1; color: var(--green); }
.kw-list li:nth-child(even) .en { color: var(--ink); }
.kw-list li:nth-child(even) .en::after { content: "."; color: var(--amber); }
.kw-list li:nth-child(odd) .en::after { content: "."; color: var(--amber); }
.kw-list .ko { font-weight: 700; color: var(--ink); font-size: 18px; margin-top: 6px; }
.kw-list .desc { color: var(--muted); font-size: 15px; }
.subjects { display: grid; grid-template-columns: 1fr 1fr; margin-top: 40px; border: 1px solid var(--line); }
.subjects a { padding: 20px 18px; text-decoration: none; }
.subjects a + a { border-left: 1px solid var(--line); }
.subjects .s-en { border-top: 3px solid var(--green); }
.subjects .s-ko { border-top: 3px solid var(--amber); }
.subjects small { font-size: 11px; letter-spacing: .14em; font-weight: 700; color: var(--muted); }
.subjects b { display: block; font-size: 18px; color: var(--ink); margin-top: 2px; }
.subjects span { font-size: 13px; color: var(--green); font-weight: 700; }
.subjects .s-ko span { color: var(--ochre); }

/* ---------- 04 영어 ---------- */
.theme-en .sec-title em { font-style: normal; color: var(--green); }
.theme-ko .sec-title em { font-style: normal; background: linear-gradient(transparent 60%, var(--amber-soft) 60%); }
.stage-tabs { display: grid; grid-template-columns: repeat(4, 1fr); position: relative; margin-top: 8px; }
.stage-tabs button { border: 0; background: none; padding: 0 0 14px; text-align: left; font-weight: 800; font-size: 14px; letter-spacing: .04em; color: #A7ACA9; position: relative; }
.stage-tabs button .i { display: block; font-family: var(--serif); font-size: 12px; font-weight: 700; margin-bottom: 2px; }
.stage-tabs button::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--line); }
.stage-tabs button.on { color: var(--green); }
.stage-tabs button.on::after, .stage-tabs button.done::after { background: var(--green); }
.stage-panel { padding: 30px 0 6px; }
.stage-panel h3 { font-size: clamp(30px, 9vw, 48px); font-weight: 900; color: var(--green); letter-spacing: -0.04em; }
.stage-panel .target { margin-top: 4px; color: var(--muted); font-size: 15px; }
.dl { margin: 24px 0 0; border-top: 1px solid var(--ink); }
.dl > div { display: grid; grid-template-columns: 92px 1fr; gap: 14px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.dl dt { font-weight: 700; color: var(--ink); font-size: 15px; }
.dl dd { margin: 0; font-size: 15px; white-space: pre-line; }
.sub-h { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 60px 0 16px; padding-bottom: 12px; border-bottom: 1px solid var(--ink); }
.sub-h h3 { font-size: 20px; font-weight: 900; }
.sub-h small { font-size: 12px; color: var(--muted); letter-spacing: .1em; }
.prog-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr; }
.prog-list li { display: grid; gap: 2px; padding: 16px 0; border-bottom: 1px solid var(--line); border-left: 0; }
.prog-list b::before { content: ""; display: inline-block; width: 6px; height: 6px; background: var(--green); margin: 0 10px 3px 0; vertical-align: middle; }
.theme-ko .prog-list b::before, .prog-list.ko b::before { background: var(--amber); }
.prog-list .n { font-family: var(--serif); font-weight: 700; color: var(--green); font-size: 14px; padding-top: 2px; }
.theme-ko .prog-list .n { color: var(--amber); }
.prog-list b { color: var(--ink); font-size: 17px; }
.prog-list p { font-size: 14px; color: var(--muted); padding-left: 16px; }
.wide-photo { margin-top: 44px; aspect-ratio: 16 / 9; }
.wide-photo img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- 05 국어 ---------- */
.theme-ko .sec-label .bar { background: var(--amber); }
.area-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--ink); }
.area-grid li { padding: 18px 14px 18px 0; border-bottom: 1px solid var(--line); }
.area-grid li:nth-child(even) { padding-left: 14px; border-left: 1px solid var(--line); }

.area-grid b { display: block; color: var(--ink); font-size: 17px; }
.area-grid p { font-size: 13px; color: var(--muted); margin-top: 4px; line-height: 1.6; }
.ko-programs { display: grid; gap: 0; margin-top: 44px; }
.ko-programs article { padding: 26px 0; border-top: 3px solid var(--amber); }
.ko-programs article + article { border-top-color: var(--ink); }
.ko-programs .tag { font-size: 11px; font-weight: 700; letter-spacing: .14em; color: var(--ochre); }
.ko-programs h4 { font-size: 22px; font-weight: 900; margin-top: 4px; }
.ko-programs p { margin-top: 10px; font-size: 15px; white-space: pre-line; }

/* ---------- 06 중등 ---------- */
.mid-tabs { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--ink); }
.mid-tabs button { border: 0; background: var(--white); padding: 14px 8px; font-weight: 700; font-size: 16px; color: var(--muted); }
.mid-tabs button + button { border-left: 1px solid var(--ink); }
.mid-tabs button.on[data-k="english"] { background: var(--green); color: #fff; }
.mid-tabs button.on[data-k="korean"] { background: var(--amber); color: var(--ink); }
.mid-panel { margin-top: 8px; }
.mid-cols { display: none; }

/* ---------- 07 진단 ---------- */
.diag-steps { list-style: none; padding: 0; margin: 0; counter-reset: d; }
.diag-steps li { display: grid; grid-template-columns: 22px 1fr; gap: 2px 12px; padding: 18px 0; border-bottom: 1px solid var(--line); position: relative; }
.diag-steps li:first-child { border-top: 1px solid var(--ink); }
.diag-steps .n { grid-row: span 2; width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--green); margin-top: 8px; }
.diag-steps li:last-child .n { background: var(--amber); border-color: var(--amber); }
.diag-steps b { color: var(--ink); font-size: 17px; }
.diag-steps p { font-size: 14px; color: var(--muted); }
.doc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 36px; }
.doc-grid figure { margin: 0; }
.doc-grid .ph, .doc-grid img { aspect-ratio: 3 / 4; width: 100%; object-fit: cover; border: 1px solid var(--line); }
.doc-grid figcaption { font-size: 13px; color: var(--muted); margin-top: 8px; }
.doc-grid button { padding: 0; border: 0; background: none; display: block; width: 100%; }

/* ---------- 08 성장 기록 ---------- */
.chips { display: flex; gap: 6px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 calc(var(--pad) * -1) 26px; padding: 0 var(--pad); }
.chips::-webkit-scrollbar { display: none; }
.chips button { flex: none; border: 1px solid var(--line); background: var(--white); padding: 7px 14px; font-size: 14px; border-radius: 999px; color: var(--body); }
.chips button.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.cases { display: grid; gap: 0; }
.case { padding: 26px 0; border-top: 1px solid var(--ink); }
.case .cat { font-size: 12px; font-weight: 700; color: var(--green); letter-spacing: .06em; }
.case h3 { font-size: 21px; margin-top: 4px; }
.case .period { font-size: 13px; color: var(--muted); margin-top: 2px; }
.case p { margin-top: 10px; font-size: 15px; white-space: pre-line; }
.case .img { margin-top: 16px; aspect-ratio: 16 / 10; }
.case .img img { width: 100%; height: 100%; object-fit: cover; }
.case svg { width: 100%; height: auto; margin-top: 16px; overflow: visible; }
.empty-cases { border-top: 1px solid var(--ink); }
.empty-cases li { list-style: none; display: flex; justify-content: space-between; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--line); font-weight: 700; color: var(--ink); }
.empty-cases ul { padding: 0; margin: 0; }
.empty-note { font-size: 13px; color: var(--muted); margin-top: 14px; }

/* ---------- 09 갤러리 ---------- */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; }
.gallery .g { aspect-ratio: 1; position: relative; overflow: hidden; }
.gallery .g:first-child { grid-column: span 2; aspect-ratio: 16 / 10; }
.gallery button.g { border: 0; padding: 0; background: #eee; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.gallery button.g:hover img { transform: scale(1.04); }
.gallery .cap { position: absolute; left: 0; bottom: 0; right: 0; padding: 18px 10px 8px; font-size: 12px; color: #fff; text-align: left; background: linear-gradient(transparent, rgba(0,0,0,.45)); }
.gallery .ph { height: 100%; }

/* ---------- 10 교육 이야기 ---------- */
.blog-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--ink); }
.blog-list li { border-bottom: 1px solid var(--line); }
.blog-list a, .blog-list .row { display: grid; grid-template-columns: 1fr 104px; gap: 16px; padding: 20px 0; text-decoration: none; align-items: start; }
.blog-list .th { aspect-ratio: 1; width: 104px; }
.blog-list .th img { width: 100%; height: 100%; object-fit: cover; }
.blog-list .th.ph { padding: 4px; font-size: 11px; }
.blog-list .th.ph span::before { display: none; }
.blog-list .cat { font-size: 11px; font-weight: 700; letter-spacing: .1em; }
.blog-list .cat.english { color: var(--green); }
.blog-list .cat.korean { color: var(--ochre); }
.blog-list h3 { font-size: 17px; margin-top: 4px; line-height: 1.45; }
.blog-list p { font-size: 14px; color: var(--muted); margin-top: 6px; line-height: 1.6; }
.more-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 22px; font-weight: 700; font-size: 15px; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--ink); padding-bottom: 2px; }

/* ---------- 11 입학 ---------- */
.adm-steps { list-style: none; padding: 0; margin: 0; position: relative; }
.adm-steps li { position: relative; padding: 0 0 30px 46px; }
.adm-steps li::before { content: ""; position: absolute; left: 15px; top: 32px; bottom: 0; width: 1px; background: var(--green); opacity: .35; }
.adm-steps li:last-child::before { display: none; }
.adm-steps .n { position: absolute; left: 8px; top: 7px; width: 15px; height: 15px; border-radius: 50%; background: var(--white); border: 3px solid var(--green); }
.adm-steps li:last-child .n { background: var(--amber); border-color: var(--amber); }
.adm-steps b { display: block; color: var(--ink); font-size: 19px; padding-top: 1px; }
.adm-steps p { font-size: 14px; color: var(--muted); margin-top: 2px; }
.adm-cta { margin-top: 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

/* ---------- 12 FAQ ---------- */
.faq-tabs { display: flex; gap: 0; overflow-x: auto; scrollbar-width: none; margin: 0 calc(var(--pad) * -1); padding: 0 var(--pad); border-bottom: 1px solid var(--line); }
.faq-tabs::-webkit-scrollbar { display: none; }
.faq-tabs button { flex: none; border: 0; background: none; padding: 12px 12px; font-size: 15px; font-weight: 700; color: #9A9F9C; position: relative; }
.faq-tabs button:first-child { padding-left: 0; }
.faq-tabs button.on { color: var(--green); }
.faq-tabs button.on::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: -1px; height: 2px; background: var(--green); }
.faq-tabs button:first-child.on::after { left: 0; }
.faq-list { list-style: none; padding: 0; margin: 0; }
.faq-list li { border-bottom: 1px solid var(--line); }
.faq-q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; text-align: left; border: 0; background: none; padding: 20px 0; font-size: 17px; font-weight: 700; color: var(--ink); line-height: 1.5; }
.faq-q::before { content: "Q"; font-family: var(--serif); color: var(--green); font-weight: 900; margin-right: -4px; flex: none; }
.faq-q .t { flex: 1; }
.faq-q .ic { position: relative; width: 16px; height: 16px; flex: none; }
.faq-q .ic::before, .faq-q .ic::after { content: ""; position: absolute; left: 0; right: 0; top: 7px; height: 2px; background: var(--ink); transition: transform .25s; }
.faq-q .ic::after { transform: rotate(90deg); }
.faq-q[aria-expanded="true"] .ic::after { transform: rotate(0); }
.faq-a { padding: 0 0 22px 22px; font-size: 15px; color: var(--body); white-space: pre-line; }

/* ---------- 13 오시는 길 ---------- */
.loc-head { font-family: var(--serif); font-weight: 900; font-size: clamp(26px, 7vw, 40px); color: var(--ink); line-height: 1.3; }
.loc-addr { margin-top: 10px; font-size: 16px; }
.loc-map { margin-top: 26px; aspect-ratio: 16 / 10; }
.loc-map img { width: 100%; height: 100%; object-fit: cover; }
.loc-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.info-table { margin-top: 36px; border-top: 1px solid var(--ink); }
.info-table h3 { font-size: 15px; letter-spacing: .02em; padding: 16px 0 6px; color: var(--green); }
.info-row { display: grid; grid-template-columns: 112px 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.info-row b { color: var(--ink); }
.info-row span { white-space: pre-line; }

/* ---------- 하단 ---------- */
.site-footer { background: var(--green-deep); color: rgba(255,255,255,.78); padding: 54px 0 34px; font-size: 14px; }
.site-footer .f-logos { display: flex; align-items: center; gap: 12px; }
.site-footer .f-logos img { filter: brightness(0) invert(1); }
.site-footer .f-logos img.logo-en { height: 16px; }
.site-footer .f-logos img.logo-ko { height: 20px; }
.site-footer .f-slogan { color: #fff; font-family: var(--serif); font-size: 20px; margin-top: 20px; font-weight: 700; }
.site-footer .f-phil { color: var(--amber-soft); margin-top: 2px; }
.f-links { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; margin-top: 30px; border-top: 1px solid rgba(255,255,255,.16); }
.f-links a, .f-links span { display: flex; justify-content: space-between; padding: 13px 0; border-bottom: 1px solid rgba(255,255,255,.12); color: #fff; text-decoration: none; font-size: 14px; }
.f-links span { color: rgba(255,255,255,.45); }
.f-links span small { font-size: 11px; }
.f-meta { margin-top: 26px; font-size: 12px; line-height: 1.8; color: rgba(255,255,255,.55); }
.f-meta .tbd { color: rgba(255,255,255,.4); }
.f-meta .tbd::before { color: rgba(255,255,255,.35); }

/* ---------- 모바일 하단 고정 버튼 ---------- */
.cta-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; display: grid; grid-template-columns: 1fr 1fr; gap: 0; background: var(--white); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
.cta-bar a { height: var(--cta-h); display: flex; align-items: center; justify-content: center; gap: 8px; font-weight: 700; font-size: 16px; text-decoration: none; }
.cta-bar .c-test { background: var(--green); color: #fff; }
.cta-bar .c-kakao { background: #FEE500; color: #191919; }
.cta-bar a.is-pending { position: relative; }
.cta-bar a.is-pending::after { content: "준비 중"; position: absolute; top: 7px; right: 8px; font-size: 10px; font-weight: 700; padding: 1px 6px; border-radius: 999px; background: rgba(0,0,0,.18); color: inherit; }
.cta-bar svg { width: 20px; height: 20px; }

.to-top { position: fixed; right: 16px; bottom: calc(var(--cta-h) + 16px + env(safe-area-inset-bottom)); z-index: 44; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); background: var(--white); color: var(--ink); display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity .25s; }
.to-top.show { opacity: 1; pointer-events: auto; }
.to-top svg { width: 22px; height: 22px; }

/* ---------- 라이트박스 ---------- */
.lightbox { position: fixed; inset: 0; z-index: 80; background: rgba(12,16,14,.94); display: flex; align-items: center; justify-content: center; }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; max-width: 92vw; max-height: 84vh; text-align: center; }
.lightbox img { max-width: 92vw; max-height: 76vh; object-fit: contain; margin: 0 auto; }
.lightbox figcaption { color: #fff; margin-top: 12px; font-size: 14px; }
.lightbox button { position: absolute; border: 0; background: none; color: #fff; font-size: 40px; width: 56px; height: 56px; line-height: 1; }
.lb-close { top: 10px; right: 8px; }
.lb-prev { left: 4px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 4px; top: 50%; transform: translateY(-50%); }

/* ---------- 팝업 ---------- */
.popup { position: fixed; inset: 0; z-index: 90; background: rgba(0,0,0,.5); display: flex; align-items: center; justify-content: center; padding: 24px; }
.popup[hidden] { display: none; }
.popup-box { background: var(--white); width: 100%; max-width: 400px; border-top: 4px solid var(--green); }
.popup-box img { width: 100%; }
.popup-body { padding: 24px 22px 18px; }
.popup-body h3 { font-size: 21px; }
.popup-body p { margin-top: 10px; font-size: 15px; white-space: pre-line; }
.popup-body .btn { margin-top: 18px; width: 100%; }
.popup-foot { display: flex; border-top: 1px solid var(--line); }
.popup-foot button { flex: 1; border: 0; background: none; padding: 13px; font-size: 14px; color: var(--muted); }
.popup-foot button + button { border-left: 1px solid var(--line); color: var(--ink); font-weight: 700; }

/* ---------- 토스트 / 시안 배지 ---------- */
.toast { position: fixed; left: 50%; bottom: calc(var(--cta-h) + 20px + env(safe-area-inset-bottom)); transform: translate(-50%, 10px); z-index: 95; background: var(--ink); color: #fff; font-size: 14px; padding: 10px 18px; border-radius: 999px; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; white-space: nowrap; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.draft-badge { position: fixed; left: 12px; bottom: calc(var(--cta-h) + 16px + env(safe-area-inset-bottom)); z-index: 44; border: 1px solid #9AA09C; background: #fff; color: var(--body); font-size: 12px; font-weight: 700; padding: 7px 12px; border-radius: 999px; }

/* ---------- 등장 효과 ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

#seo-fallback { padding: 60px var(--pad); max-width: var(--max); margin: 0 auto; }
#seo-fallback h1 { font-size: 34px; }
#seo-fallback h2 { font-size: 22px; margin-top: 30px; }

/* =====================================================================
   태블릿 · PC
   ===================================================================== */
@media (min-width: 760px) {
  :root { --pad: 40px; --header-h: 76px; }
  body { font-size: 17px; }
  .brand img.logo-en { height: 21px; }
  .section { padding: 120px 0; }
  .sec-head { margin-bottom: 52px; }
  .phil-closing { margin-top: 88px; }
  .sec-logo { height: 26px; }
  #philosophy { padding-bottom: 96px; }
  .hero { padding-top: 90px; }
  .hero-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 56px; align-items: end; }
  .hero h1 { font-size: clamp(40px, 4.2vw, 60px); }
  .hero .desc { font-size: 16px; }
  .hero .brand-line { font-size: 17px; }
  .brand img.logo-ko { height: 19px; }
  .brand-tag { font-size: 12.5px; }
  .hero-visual { margin-top: 0; aspect-ratio: 4 / 5; }
  .hero-index { grid-template-columns: repeat(3, 1fr); margin-top: 72px; }
  .hero-index a, .hero-index a:nth-child(odd), .hero-index a:nth-child(even) { padding: 22px 18px; border-right: 1px solid var(--line); border-bottom: 0; }
  .hero-index a:first-child { padding-left: 0; }
  .hero-index a:last-child, .hero-index a:last-child:nth-child(odd) { border-right: 0; grid-column: auto; padding-left: 18px; }
  .two-col { display: grid; grid-template-columns: 1fr 1.25fr; gap: 72px; align-items: start; }
  .two-col .sec-head { position: sticky; top: calc(var(--header-h) + 30px); }
    .kw-list li { grid-template-columns: 1.3fr 1fr; align-items: end; gap: 24px; }
  .kw-list .ko { margin-top: 0; }
  .prog-list { grid-template-columns: 1fr 1fr; column-gap: 40px; }
  .area-grid { grid-template-columns: repeat(4, 1fr); }
  .area-grid li, .area-grid li:nth-child(even) { padding: 22px 18px; border-left: 1px solid var(--line); }
  .area-grid li:nth-child(4n+1) { border-left: 0; padding-left: 0; }
  .ko-programs { grid-template-columns: 1fr 1fr; gap: 40px; }
  .mid-tabs { display: none; }
  .mid-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
  .mid-panel { display: none; }
  .mid-cols h3 { font-size: 24px; font-weight: 900; padding-bottom: 14px; border-bottom: 3px solid var(--green); }
  .mid-cols .mk h3 { border-color: var(--amber); }
  .doc-grid { gap: 28px; max-width: 760px; }
  .cases { grid-template-columns: 1fr 1fr; column-gap: 40px; }
  .gallery { grid-template-columns: repeat(4, 1fr); gap: 10px; }
  .gallery .g:first-child { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
  .blog-list a, .blog-list .row { grid-template-columns: 1fr 168px; gap: 28px; }
  .blog-list .th { width: 168px; aspect-ratio: 4 / 3; }
  .adm-steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
  .adm-steps li { padding: 38px 0 0; }
  .adm-steps .n { left: 0; top: 0; }
  .adm-steps li::before { left: 22px; right: -10px; top: 7px; bottom: auto; width: auto; height: 1px; }
  .adm-cta { max-width: 520px; margin-top: 44px; }
  .loc-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: start; }
  .info-table { margin-top: 0; }
  .f-links { grid-template-columns: repeat(3, 1fr); }
  .faq-q { font-size: 18px; }
}

@media (min-width: 1024px) {
  .quick-nav { display: flex; gap: 26px; margin-right: 18px; }
  .quick-nav a { text-decoration: none; font-size: 15px; font-weight: 700; color: var(--ink); }
  .quick-nav a:hover { color: var(--green); }
  /* PC에서는 하단 고정 버튼을 오른쪽 아래 작은 버튼으로 */
  body { padding-bottom: 0; }
  .cta-bar { left: auto; right: 24px; bottom: 24px; width: auto; grid-template-columns: auto auto; border: 0; background: none; gap: 8px; }
  .cta-bar a { height: 52px; padding: 0 22px; font-size: 15px; border-radius: 999px; }
  .cta-bar a.is-pending::after { top: -8px; right: 6px; background: var(--ink); color: #fff; }
  .to-top { bottom: 92px; right: 24px; }
  .draft-badge { bottom: 24px; left: 24px; }
  .toast { bottom: 96px; }
}
@media (min-width: 760px) { .mid-cols .prog-list { grid-template-columns: 1fr; } }

/* ---------- 교육과정 공통 (시안 4) ---------- */
.phil-block .phil-note { border-left: 0; padding-left: 0; color: var(--green); font-weight: 600; display: flex; gap: 8px; }
.phil-block .phil-note::before { content: "✓"; font-weight: 800; }
.logo-title { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.sec-logo-main { height: 34px; width: auto; display: block; }
.sec-logo-main.ko { height: 40px; }
.logo-cap { font-size: 20px; font-weight: 800; color: var(--ink); letter-spacing: -0.04em; line-height: 1; padding-bottom: 4px; }
.ko-title { margin-top: 26px; }
.stage-panel .step { font-size: 12px; font-weight: 700; letter-spacing: .14em; color: var(--muted); }
.stage-panel h3 { margin-top: 4px; }
.stage-panel .headline { margin-top: 14px; font-size: 19px; font-weight: 800; color: var(--ink); letter-spacing: -0.03em; line-height: 1.45; }
.stage-panel .body { margin-top: 10px; font-size: 15.5px; line-height: 1.85; }
.tags { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.tags li { font-size: 13.5px; font-weight: 500; padding: 5px 10px; border: 1px solid var(--line); background: var(--white); color: var(--body); line-height: 1.4; }
.exam-block { margin-top: 56px; padding: 30px 22px 28px; background: var(--green-deep); color: rgba(255,255,255,.86); }
.exam-block h3 { color: #fff; font-size: clamp(26px, 7vw, 36px); font-weight: 800; letter-spacing: -0.04em; margin-top: 6px; }
.exam-block h4 { color: #fff; font-size: 16px; margin-top: 22px; }
.eb-label { font-size: 12px; font-weight: 700; letter-spacing: .14em; color: #9FD3BD; }
.eb-sub { margin-top: 8px; font-size: 16px; }
.eb-feature { margin-top: 16px; font-weight: 700; color: #fff; font-size: 15px; }
.eb-closing { margin-top: 22px; font-size: 15px; line-height: 1.8; border-top: 1px solid rgba(255,255,255,.18); padding-top: 18px; }
.schools { list-style: none; padding: 0; margin: 16px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid rgba(255,255,255,.25); border-bottom: 1px solid rgba(255,255,255,.25); }
.schools li { text-align: center; padding: 12px 0; font-weight: 700; color: #fff; font-size: 15px; }
.schools li + li { border-left: 1px solid rgba(255,255,255,.18); }
.exam-block .tags li { background: transparent; border-color: rgba(255,255,255,.3); color: #fff; }
.ko-part { margin-top: 44px; }
.kp-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--ink); }
.kp-head h3 { font-size: 22px; font-weight: 800; letter-spacing: -0.04em; }
.kp-head small { font-size: 12px; font-weight: 700; letter-spacing: .14em; color: var(--green); }
.kp-intro { margin-top: 14px; font-size: 15.5px; }
.feat-list { list-style: none; padding: 0; margin: 0; }
.feat-list li { padding: 20px 0; border-bottom: 1px solid var(--line); }
.feat-list h4 { font-size: 17px; font-weight: 800; color: var(--ink); }
.feat-list h4::before { content: ""; display: inline-block; width: 6px; height: 6px; background: var(--green); margin: 0 10px 3px 0; vertical-align: middle; }
.feat-list p { margin-top: 6px; font-size: 15px; line-height: 1.8; padding-left: 16px; }
.tag-group { margin-top: 20px; }
.tag-group h4 { font-size: 16px; font-weight: 800; color: var(--ink); }
.tag-group .tags { margin-top: 10px; }
.growth-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.growth-grid .gr { aspect-ratio: 3 / 4; border: 0; padding: 0; background: #eee; overflow: hidden; display: block; }
.growth-grid .gr img { width: 100%; height: 100%; object-fit: cover; }
.growth-grid .ph { height: 100%; }
@media (min-width: 760px) {
  .sec-logo-main { height: 44px; }
  .sec-logo-main.ko { height: 52px; }
  .logo-cap { font-size: 26px; padding-bottom: 6px; }
  .exam-block { padding: 48px 48px 44px; }
  .ko-part { display: grid; grid-template-columns: 260px 1fr; gap: 40px; }
  .ko-part .kp-head { flex-direction: column; border-bottom: 0; border-top: 1px solid var(--ink); padding-top: 18px; }
  .ko-part > :not(.kp-head) { grid-column: 2; }
  .ko-part .kp-intro { margin-top: 0; }
  .ko-part .feat-list { grid-row: 1; border-top: 1px solid var(--ink); }
  .ko-part .kp-intro, .ko-part .kp-intro ~ .tag-group { grid-column: 2; }
  .growth-grid { grid-template-columns: repeat(4, 1fr); gap: 12px; }
}
.exam-block .tag-group h4 { color: #fff; }
#korean .sec-label { letter-spacing: .02em; font-size: 13px; }
/* 하단: 슬로건 · 교습비 */
.site-footer .f-tag { color: rgba(255,255,255,.7); font-size: 12px; font-weight: 600; letter-spacing: .02em; margin-bottom: 8px; }
.site-footer .f-logos img.logo-ko { height: 15px; }
.f-fee { margin-top: 28px; }
.f-fee-title { color: #fff; font-size: 14px; font-weight: 700; margin-bottom: 8px; }
.f-fee-title small { font-size: 11px; font-weight: 400; color: rgba(255,255,255,.5); margin-left: 6px; }
.f-fee ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.f-fee li { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid rgba(255,255,255,.12); font-size: 13px; }
.f-fee li b { color: #fff; font-weight: 600; }
.f-fee-note { font-size: 12px; color: rgba(255,255,255,.5); margin-top: 8px; }
@media (min-width: 1024px) { .f-links { grid-template-columns: repeat(4, 1fr); } .f-fee ul { grid-template-columns: repeat(4, 1fr); gap: 0 28px; } .site-footer .f-logos img.logo-ko { height: 18px; } }
/* 주제 글쓰기 (강조 영역) */
.section.writing { background: var(--green-deep); color: rgba(255,255,255,.86); }
.wr-label { display: inline-block; font-size: 13px; font-weight: 700; color: var(--green-deep); background: #fff; padding: 5px 12px; letter-spacing: .02em; }
.wr-title { color: #fff; font-size: clamp(30px, 8.4vw, 56px); font-weight: 900; letter-spacing: -0.045em; line-height: 1.22; margin-top: 18px; }
.wr-intro { margin-top: 18px; font-size: 16px; line-height: 1.75; max-width: 680px; }
.wr-note { margin-top: 14px; font-size: 14px; font-weight: 700; color: var(--amber-soft); }
.wr-steps { list-style: none; margin: 40px 0 0; padding: 0; border-top: 1px solid rgba(255,255,255,.35); }
.wr-steps li { padding: 22px 0; border-bottom: 1px solid rgba(255,255,255,.16); display: grid; grid-template-columns: 44px 1fr; column-gap: 10px; }
.wr-steps .wr-n { grid-row: span 2; font-size: 15px; font-weight: 800; color: var(--amber-soft); padding-top: 3px; }
.wr-steps b { color: #fff; font-size: 20px; font-weight: 800; }
.wr-steps p { margin-top: 4px; font-size: 14.5px; line-height: 1.65; }
.wr-cols { display: grid; gap: 14px; margin-top: 36px; }
.wr-col { border: 1px solid rgba(255,255,255,.3); padding: 24px 20px; }
.wr-col h3 { color: #fff; font-size: 20px; font-weight: 800; }
.wr-col p { margin-top: 8px; font-size: 14.5px; line-height: 1.7; }
.wr-col .tags { margin-top: 14px; }
.wr-col .tags li { background: transparent; border-color: rgba(255,255,255,.3); color: #fff; }
.wr-img { margin-top: 28px; aspect-ratio: 16 / 9; }
.writing .ph { background-color: rgba(255,255,255,.06); border-color: rgba(255,255,255,.2); color: rgba(255,255,255,.55); }
.loc-walk { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.loc-walk li { font-size: 13.5px; font-weight: 600; color: var(--green); border: 1px solid var(--green); padding: 5px 11px; }
.loc-btns { grid-template-columns: 1fr; }
@media (min-width: 1024px) {
  .wr-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 32px; }
  .wr-steps li { border-bottom: 0; padding-top: 26px; }
  .wr-cols { grid-template-columns: 1fr 1fr; gap: 20px; }
  .wr-col { padding: 32px 30px; }
  .loc-btns { max-width: 320px; }
}
.section.writing .ph { background: repeating-linear-gradient(-45deg, rgba(255,255,255,.05), rgba(255,255,255,.05) 10px, rgba(255,255,255,.09) 10px, rgba(255,255,255,.09) 20px); color: rgba(255,255,255,.6); border-color: rgba(255,255,255,.25); }
@media (min-width: 1024px) { .wr-img { aspect-ratio: 21 / 8; } }
.loc-head { font-size: clamp(19px, 5.2vw, 24px); font-weight: 800; line-height: 1.45; letter-spacing: -0.03em; }

/* ===== 과목 대표색: 영어 = 녹색, 국어 = 진한 노란색 ===== */
:root { --ko: #F2A100; --ko-deep: #9A6400; --ko-soft: #FCE7B0; --ko-tint: #FFF2CC; }

/* 영어 단계: 탭 없이 펼쳐서 보기 */
.stage-list { list-style: none; margin: 8px 0 0; padding: 0; border-top: 2px solid var(--green); }
.stage { padding: 28px 0 30px; border-bottom: 1px solid var(--line); }
.stage .step { font-size: 12px; font-weight: 700; letter-spacing: .14em; color: var(--muted); }
.stage h3 { margin-top: 4px; font-size: clamp(30px, 9vw, 44px); font-weight: 900; color: var(--green); letter-spacing: -0.04em; line-height: 1.05; }
.stage .headline { margin-top: 14px; font-size: 18px; font-weight: 800; color: var(--ink); letter-spacing: -0.03em; line-height: 1.45; }
.stage .body { margin-top: 8px; font-size: 15.5px; line-height: 1.85; }
.stage .tags { margin-top: 14px; }
@media (min-width: 1024px) {
  .stage { display: grid; grid-template-columns: 260px 1fr; gap: 40px; padding: 36px 0 38px; }
  .stage .headline { margin-top: 0; font-size: 20px; }
}

/* 중등 박스: 진한 배경 대신 밝은 톤 */
.exam-block { background: var(--amber-tint); color: #3A3F3C; border-top: 3px solid var(--green); }
.exam-block h3, .exam-block h4, .exam-block .tag-group h4 { color: var(--ink); }
.exam-block .eb-label { color: var(--green); }
.exam-block .eb-sub { color: var(--muted); }
.exam-block .eb-feature { color: var(--green); }
.exam-block .eb-closing { border-top-color: rgba(0,0,0,.1); color: var(--muted); }
.exam-block .schools { border-top-color: rgba(0,0,0,.12); border-bottom-color: rgba(0,0,0,.12); background: #fff; }
.exam-block .schools li { color: var(--ink); }
.exam-block .schools li + li { border-left-color: rgba(0,0,0,.1); }
.exam-block .tags li { background: #fff; border-color: rgba(0,0,0,.14); color: var(--ink); }
.exam-block.ko { background: var(--ko-tint); border-top-color: var(--ko); }
.exam-block.ko .eb-label, .exam-block.ko .eb-feature { color: var(--ko-deep); }

/* 국어 섹션 포인트 색 */
.theme-ko .sec-label { color: var(--ko-deep); }
.theme-ko .sec-label .bar { background: var(--ko); }
.theme-ko .kp-head small { color: var(--ko-deep); }
.theme-ko .kp-head, .theme-ko .ko-part .feat-list { border-color: var(--ink); }
.theme-ko .feat-list h4::before, .theme-ko .prog-list b::before { background: var(--ko); }
.theme-ko .sub-h { border-bottom-color: var(--ink); }
.hero-index .is-ko .k { color: var(--ko-deep); }
.subjects .s-ko { border-top-color: var(--ko); }
.subjects .s-ko span { color: var(--ko-deep); }
.menu-list a.ko .n { color: var(--ko-deep); }
.wr-col.ko { border-color: rgba(242,161,0,.55); }
.wr-col.ko h3::before, .wr-col.en h3::before { content: ""; display: inline-block; width: 8px; height: 8px; margin: 0 10px 3px 0; vertical-align: middle; background: #7FCBA9; }
.wr-col.ko h3::before { background: var(--ko); }
.brand-tag:empty { display: none; }
/* 영어·국어 머리 부분 통일 */
#english .sec-label, #korean .sec-label { letter-spacing: .02em; font-size: 13px; }
.sec-logo-main { height: 38px; }
.sec-logo-main.ko { height: 38px; }
.stage-list { margin-top: 36px; }
@media (min-width: 1024px) { .sec-logo-main, .sec-logo-main.ko { height: 50px; } }
.sec-rule { height: 2px; background: var(--green); margin-top: 36px; }
.sec-rule.ko { background: var(--ko); }
.theme-ko .sec-rule + .ko-part { margin-top: 32px; }
/* 수업 모습 사진 */
.class-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.class-grid .cl { border: 0; padding: 0; background: none; display: block; cursor: zoom-in; aspect-ratio: 1 / 1; overflow: hidden; }
.class-grid .cl img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (min-width: 1024px) { .class-grid { grid-template-columns: repeat(4, 1fr); gap: 12px; } }
.class-grid { margin-top: 32px; }
.class-grid + .stage-list, .class-grid + .ko-part { margin-top: 40px; }
#korean { background: #fff; }
.theme-ko .kp-head { border-bottom-color: var(--ko); border-bottom-width: 2px; }
.theme-ko .feat-list li { border-bottom-color: #F3E6BF; }
.theme-ko .tags li { background: var(--ko-tint); border-color: #EBD594; }
.theme-ko .exam-block .tags li { background: #fff; }
.loc-map-link { display: block; } .loc-map { overflow: hidden; border: 1px solid var(--line); }

/* 주제 글쓰기 · 학생 활동지 갤러리 */
.wr-gallery { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 36px; }
.wr-gallery .cl { border: 0; padding: 0; margin: 0; background: #fff; cursor: zoom-in; position: relative; overflow: hidden; display: block;
  width: calc(50% - 4px); aspect-ratio: 3 / 4; outline: 1px solid rgba(255,255,255,.14); }
.wr-gallery .cl.wide { width: 100%; aspect-ratio: 4 / 3; }
.wr-gallery .cl img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wr-gallery .cl span { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 10px 8px; text-align: left; font-size: 12px; line-height: 1.35; color: #fff;
  background: linear-gradient(to top, rgba(0,0,0,.62), rgba(0,0,0,0)); }
.wr-gnote { margin: 12px 0 0; font-size: 12px; text-align: center; opacity: .7; }
@media (min-width: 720px) { .wr-gallery { gap: 12px; } .wr-gallery .cl { width: calc(33.333% - 8px); } .wr-gallery .cl.wide { width: calc(66.666% - 4px); aspect-ratio: auto; } }

/* 성장 기록 · 상장 */
.gr-note { margin: 14px 0 0; font-size: 12px; text-align: center; color: #777; }
@media (min-width: 1024px) { .growth-grid.g3 { grid-template-columns: repeat(3, 1fr); } }

/* 수업 공간·활동 / 월간 교재 */
.scene-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.scene-grid .cl, .mat-row .cl { border: 0; padding: 0; margin: 0; background: #fff; cursor: zoom-in; overflow: hidden; display: block; position: relative; }
.scene-grid .cl { aspect-ratio: 1 / 1; }
.scene-grid .cl img, .mat-row .cl img { width: 100%; height: 100%; object-fit: cover; display: block; }
.scene-grid .cl:first-child { grid-column: span 2; aspect-ratio: 16 / 10; }
.mat-sub { margin: -4px 0 14px; font-size: 14px; color: var(--muted); }
.mat-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.mat-row.n1 { grid-template-columns: minmax(0, 360px); justify-content: center; }
.mat-row .cl { aspect-ratio: 3 / 4; box-shadow: 0 2px 14px rgba(0,0,0,.12); }
.mat-row .cl img { object-position: top; }
@media (min-width: 720px) { .scene-grid { grid-template-columns: repeat(3, 1fr); gap: 12px; } .scene-grid .cl:first-child { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; } .mat-row { gap: 12px; max-width: 760px; margin: 0 auto; } .mat-row.n1 { max-width: none; } }
.mat-row .cl { aspect-ratio: auto; }
.mat-row .cl img { height: auto; }
.scene-grid.odd .cl:last-child { grid-column: span 2; aspect-ratio: 16 / 10; }
@media (min-width: 720px) { .scene-grid.odd .cl:last-child { grid-column: auto; aspect-ratio: 1 / 1; } }

/* NELT 리포트 */
.nelt-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.nelt-grid .cl { border: 1px solid #e3e3e3; padding: 0; margin: 0; background: #fff; cursor: zoom-in; display: block; overflow: hidden; }
.nelt-grid .cl img { width: 100%; height: auto; display: block; }
@media (min-width: 720px) { .nelt-grid { grid-template-columns: repeat(4, 1fr); gap: 12px; } }

/* 성장 · 인스타그램형 정사각 피드 (확대 없음) */
.feed-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin-top: 28px; }
.feed-grid .fd { aspect-ratio: 1 / 1; overflow: hidden; background: #f2f2f2; outline: 1px solid #ececec; outline-offset: -1px; }
.feed-grid .fd img { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
@media (min-width: 720px) { .feed-grid { gap: 8px; max-width: 860px; margin-left: auto; margin-right: auto; } }
.feed-grid .fd { user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; cursor: default; }
.feed-grid { margin-top: 36px; }

/* 주제 글쓰기 · 월간 교재와 도서 공간 (확대 없음) */
.wr-show { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top: 36px; }
.wr-show figure { margin: 0; position: relative; aspect-ratio: 5 / 6; overflow: hidden; background: #fff; user-select: none; -webkit-touch-callout: none; }
.wr-show img { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.wr-show figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 10px 9px; font-size: 12px; line-height: 1.35; color: #fff; background: linear-gradient(to top, rgba(0,0,0,.66), rgba(0,0,0,0)); }
@media (min-width: 720px) { .wr-show { grid-template-columns: repeat(4, 1fr); gap: 12px; } }

/* NELT 리포트 (영어 세부 프로그램 아래, 확대 없음) */
.nelt-wrap { margin-top: 28px; }
.nelt-wrap h4 { font-size: 17px; font-weight: 800; color: var(--green, #0D6952); }
.nelt-wrap p { margin: 4px 0 14px; font-size: 14px; color: var(--muted, #666); }
.nelt-grid { display: grid; grid-template-columns: 1fr; gap: 10px; }
.nelt-grid .nl { border: 1px solid #e3e3e3; background: #fff; user-select: none; -webkit-touch-callout: none; }
.nelt-grid .nl img { width: 100%; height: auto; display: block; pointer-events: none; }
@media (min-width: 720px) { .nelt-grid { grid-template-columns: repeat(3, 1fr); gap: 14px; } }
/* 주제 글쓰기 · 왕과 사는 남자 국어/영어 비교 */
.wr-show { grid-template-columns: repeat(2, 1fr) !important; max-width: 720px; margin-left: auto; margin-right: auto; }
.wr-show figure { aspect-ratio: auto !important; }
.wr-show img { height: auto !important; }

/* ---------- 여백 보정: 챕터·항목 사이 간격 ---------- */
.section { padding: 92px 0; }
.stage-list { margin-top: 52px; }
.stage { padding: 46px 0 50px; }
.stage .headline { margin-top: 18px; }
.stage .body { margin-top: 12px; }
.stage .tags { margin-top: 22px; }
.ko-part { margin-top: 68px; }
.theme-ko .sec-rule + .ko-part { margin-top: 44px; }
.class-grid + .stage-list, .class-grid + .ko-part { margin-top: 56px; }
.feat-list li { padding: 28px 0; }
.feat-list p { margin-top: 10px; line-height: 1.85; }
.kp-intro { margin-top: 20px; }
.tag-group { margin-top: 32px; }
.tag-group .tags { margin-top: 14px; }
.exam-block { margin-top: 76px; }
.exam-block h4 { margin-top: 30px; }
.sub-h { margin: 84px 0 22px; }
.prog-list li { padding: 20px 0; }
.nelt-wrap { margin-top: 64px; }
@media (min-width: 760px) {
  .section { padding: 128px 0; }
}
@media (min-width: 720px) {
  .stage { padding: 58px 0 62px; }
  .ko-part { margin-top: 84px; }
  .exam-block { margin-top: 92px; }
  .sub-h { margin: 100px 0 24px; }
}

/* ---------- 이런 아이에게 맞습니다 · 시작 흐름 ---------- */
.fit-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.fit-list li { position: relative; padding: 20px 0 20px 34px; border-bottom: 1px solid var(--line); font-size: 16px; font-weight: 600; line-height: 1.6; color: var(--ink); }
.fit-list li::before { content: ""; position: absolute; left: 4px; top: 26px; width: 12px; height: 7px; border-left: 2.5px solid var(--green); border-bottom: 2.5px solid var(--green); transform: rotate(-45deg); }
.fit-flow { margin-top: 56px; }
.fit-flow h3 { font-size: 18px; font-weight: 800; color: var(--green); letter-spacing: -0.02em; }
.fit-flow ol { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; }
.fit-flow li { position: relative; padding: 14px 6px 0 0; border-top: 2px solid var(--green); }
.fit-flow li span { display: block; font-family: var(--serif); font-size: 12px; font-weight: 700; color: var(--muted); }
.fit-flow li b { display: block; margin-top: 2px; font-size: 14px; line-height: 1.4; color: var(--ink); letter-spacing: -0.02em; word-break: keep-all; }
@media (min-width: 760px) {
  .fit-list li { font-size: 18px; padding: 24px 0 24px 40px; }
  .fit-list li::before { top: 32px; }
  .fit-flow li b { font-size: 16px; }
}

/* ---------- 철학 블록: 긴 실선 제거 ---------- */
.phil-blocks { border-top: 0; }
.phil-block { border-bottom: 0; }
/* ---------- 주제 글쓰기: 사진 아래 설명 ---------- */
.wr-topics { list-style: none; margin: 40px auto 0; padding: 0; max-width: 720px; display: grid; gap: 14px; }
.wr-topics li { position: relative; padding-left: 26px; font-size: 16px; line-height: 1.7; color: #fff; font-weight: 600; letter-spacing: -0.01em; }
.wr-topics li::before { content: ""; position: absolute; left: 2px; top: 11px; width: 10px; height: 10px; background: #7FCBA9; }
@media (min-width: 760px) { .wr-topics li { font-size: 18px; } .wr-topics li::before { top: 13px; } }

/* 메인 사진이 없을 때: 버튼과 바로가기 줄 사이 간격 (모바일) */
@media (max-width: 759px) { .hero-index { margin-top: 56px; } .hero { padding-bottom: 8px; } }

.wr-desc { max-width: 720px; margin: 40px auto 0; font-size: 16px; line-height: 1.85; color: #fff; font-weight: 600; letter-spacing: -0.01em; }
@media (min-width: 760px) { .wr-desc { font-size: 18px; } }

/* ---------- 소개글 · 사진 구분 · 간격 ---------- */
.hero-index { grid-template-columns: repeat(2, 1fr) !important; }
.section { padding: 112px 0; }
.message { padding-top: 24px; }
.msg-body { max-width: 720px; }
.msg-p { margin: 0 0 34px; font-size: 17px; line-height: 1.95; color: var(--ink); letter-spacing: -0.01em; }
.msg-p:nth-of-type(3) { font-size: 20px; font-weight: 800; line-height: 1.7; color: var(--green); }
.msg-p:nth-of-type(5) { font-size: 19px; font-weight: 800; line-height: 1.7; }
.msg-sign { margin-top: 10px; font-weight: 800; font-size: 16px; color: var(--green); letter-spacing: -0.01em; }
.photo-break { max-width: 880px; margin: 0 auto; padding: 0 20px; aspect-ratio: 4 / 3; box-sizing: content-box; }
.photo-break img { width: 100%; height: 100%; object-fit: cover; display: block; user-select: none; -webkit-touch-callout: none; pointer-events: none; }
.photo-break { padding-top: 20px; padding-bottom: 20px; }
.hero-visual img { object-position: 50% 55%; }
.nelt-wrap > h4 { font-size: 20px; line-height: 1.5; }
@media (min-width: 760px) { .section { padding: 156px 0; } .msg-p { font-size: 19px; } .msg-p:nth-of-type(3) { font-size: 24px; } .msg-p:nth-of-type(5) { font-size: 22px; } .photo-break { aspect-ratio: 16 / 10; padding-top: 28px; padding-bottom: 28px; } .nelt-wrap > h4 { font-size: 24px; } }


/* 소개글: 줄 단위 균형 정렬 (한 단어만 다음 줄로 넘어가지 않게) */
.msg-p { font-size: 16px; line-height: 1.8; word-break: keep-all; margin-bottom: 38px; }
.msg-p .ln { display: block; margin-bottom: 8px; text-wrap: balance; }
.msg-p .ln:last-child { margin-bottom: 0; }
.msg-p:nth-of-type(3) { font-size: 19px; line-height: 1.6; }
.msg-p:nth-of-type(5) { font-size: 19px; line-height: 1.6; }
@media (min-width: 760px) { .msg-p { font-size: 18px; } .msg-p:nth-of-type(3) { font-size: 24px; } .msg-p:nth-of-type(5) { font-size: 22px; } }

/* NELT: 세부학습 안내(.sub-h)와 같은 디자인 */
.nelt-wrap { margin-top: 0; }
.nelt-wrap .sub-h { margin-top: 84px; }
.nelt-wrap .sub-h h3 { flex: 1; font-size: 16px; line-height: 1.55; font-weight: 800; letter-spacing: -0.02em; word-break: keep-all; }
.nelt-wrap .sub-h small { flex-shrink: 0; }
@media (min-width: 760px) { .nelt-wrap .sub-h { margin-top: 100px; } .nelt-wrap .sub-h h3 { font-size: 19px; } }

/* 모바일: 나란한 네모칸 두 개를 같은 너비로 맞춤 */
@media (max-width: 759px) {
  .hero-cta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .hero-cta .btn { width: 100%; padding: 0 8px; }
  .loc-walk { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .loc-walk li { text-align: center; padding: 14px 6px; font-size: 15px; font-weight: 700; }
}

.cta-bar .c-sms { background: var(--ink); color: #fff; }
/* NELT 제목: 모바일에서 한 줄 */
@media (max-width: 759px) {
  .nelt-wrap .sub-h small { display: none; }
  .nelt-wrap .sub-h h3 { font-size: 3.05vw; letter-spacing: -0.035em; white-space: nowrap; }
}

.cta-bar .c-sms { background: #fff; color: var(--ink); border-top: 1px solid var(--line); }
