/* Pretendard 동적 서브셋.
   한글 웹폰트는 전체를 받으면 1MB 를 넘지만, 동적 서브셋은 페이지에 실제로
   쓰인 글자가 속한 조각만 내려받는다. jsDelivr CDN 을 쓰므로 우리 서버
   트래픽은 발생하지 않는다. */
@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/pretendardvariable-dynamic-subset.css');

/* 색상은 한맥학원 로고에서 추출했다.
   책 아이콘의 틸(#70c0c0), 글자의 다크그레이(#404040), 스마일의 오렌지.
   오렌지는 흰 글자와 대비가 모자라 버튼 배경으로는 쓰지 않고 포인트에만 쓴다. */
:root {
  --brand: #74c5bc;
  --brand-deep: #2c7a72;
  --brand-dark: #1b4f4a;
  --brand-darker: #123734;
  --brand-pale: #e8f4f2;
  --accent: #f0921e;
  --accent-text: #a85f08;
  --ink: #33332f;
  --ink-60: #6a6a64;
  --cream: #fbf9f4;
  --line: #e4e0d6;
  --radius: 16px;
  --radius-lg: 22px;
  --wrap: 1120px;
  --ease: cubic-bezier(.22, .68, .3, 1);
  --shadow: 0 22px 46px -30px rgba(18, 55, 52, 0.55);
  /* 이 사이트는 라이트 전용으로 고정한다. OS/브라우저가 다크모드에서 색을
     임의로 뒤집지 않게 하여, 다크모드 사용자도 라이트와 동일한 색을 본다. */
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  margin: 0;
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont,
    "Malgun Gothic", "맑은 고딕", "Apple SD Gothic Neo", system-ui, sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.75;
  letter-spacing: -0.01em;
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

/* 라이트 전용 고정 보강.
   :root 의 color-scheme:light 만으로 안 막히는 환경(카카오톡·네이버 인앱
   브라우저, 일부 삼성인터넷, 강제 다크)에서도 폼 요소·주요 표면 색을 다시
   못박아, 다크모드 사용자도 라이트와 똑같은 색을 보게 한다. */
html, body, input, textarea, select, button { color-scheme: light; }
@media (prefers-color-scheme: dark) {
  html, body { background: var(--cream); color: var(--ink); }
}

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.wrap.narrow { max-width: 720px; }
.center { text-align: center; margin-top: 2rem; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--brand-deep); color: #fff; padding: 0.7rem 1.2rem; border-radius: 0 0 8px 0;
}
.skip:focus { left: 0; }

:focus-visible { outline: 3px solid var(--brand-deep); outline-offset: 2px; border-radius: 4px; }

/* ---------- 스크롤 등장 ----------
   .js 가 붙었을 때만 숨긴다. JS 가 막히면 그냥 다 보이게 둔다. */
.js .reveal { opacity: 0; transform: translateY(20px); }
.js .reveal.in {
  opacity: 1;
  transform: none;
  transition: opacity 0.75s var(--ease) var(--d, 0ms), transform 0.75s var(--ease) var(--d, 0ms);
}
.js .reveal-2 { --d: 120ms; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 249, 244, 0.86);
  backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.site-header.scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 6px 24px -18px rgba(0, 0, 0, 0.5);
}
.site-header .wrap {
  position: relative;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 88px;
  transition: min-height 0.3s var(--ease);
}
.hd-right { display: flex; align-items: center; gap: 0.6rem; }
/* 모바일: 햄버거는 왼쪽, 로고는 항상 정중앙 */
.site-header .logo {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
}
.site-header.scrolled .wrap { min-height: 72px; }
.logo img { width: 148px; transition: width 0.3s var(--ease); }
.site-header.scrolled .logo img { width: 124px; }
.nav a { text-decoration: none; color: var(--ink-60); font-weight: 600; }

/* 모바일: 헤더 아래로 촤르륵 펼쳐지는 드롭다운 패널 */
.nav {
  position: absolute; top: 100%; left: 0; right: 0; z-index: 40;
  display: flex; flex-direction: column;
  background: rgba(251, 249, 244, 0.98);
  backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 18px 32px -22px rgba(0, 0, 0, 0.5);
  padding: 0 clamp(1rem, 5vw, 1.6rem);
  max-height: 0; overflow: hidden; opacity: 0;
  visibility: hidden; pointer-events: none;
  transition: max-height 0.38s var(--ease), opacity 0.28s, visibility 0.38s, padding 0.38s var(--ease);
}
.nav.open {
  max-height: 80vh; opacity: 1; visibility: visible; pointer-events: auto;
  padding-block: 0.4rem 0.8rem;
}
.nav a {
  padding: 0.95rem 0.3rem; font-size: 1.02rem;
  border-bottom: 1px solid var(--line);
}
.nav a:last-child { border-bottom: 0; }
.nav a:active { color: var(--brand-deep); }

/* 햄버거 버튼 */
.navtoggle {
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 5px; flex: 0 0 auto;
  width: 44px; height: 44px; padding: 0;
  border: 0; background: transparent; cursor: pointer;
}
.navtoggle span {
  display: block; width: 24px; height: 2.5px; border-radius: 2px;
  background: var(--brand-dark);
  transition: transform 0.3s var(--ease), opacity 0.2s;
}
.navtoggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.navtoggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.navtoggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.45rem;
  padding: 0.82rem 1.5rem; border-radius: 999px;
  font-weight: 700; font-size: 0.95rem; text-decoration: none;
  border: 2px solid transparent; white-space: nowrap;
  transition: background 0.2s, color 0.2s, transform 0.15s var(--ease), box-shadow 0.2s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--brand-deep); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); box-shadow: 0 10px 24px -12px var(--brand-deep); }
.btn-ghost { background: transparent; color: var(--brand-deep); border-color: var(--brand-deep); }
.btn-ghost:hover { background: var(--brand-pale); }
.btn-light { background: #fff; color: var(--brand-deep); }
.btn-light:hover { background: var(--brand-pale); }
.btn-sm { padding: 0.5rem 1rem; font-size: 0.86rem; border-width: 1.5px; }

/* 헤더의 상담 전화 버튼. 헤더(88px)보다 확실히 작게 잡아 위아래 여백이 생기게 한다. */
.site-header .btn { padding: 0.7rem 1.4rem; font-size: 0.92rem; align-self: center; }

/* ---------- hero ----------
   글자를 사진 위에 얹지 않는다. 좌우로 나눠 겹침 자체를 없앴다. */
.hero { padding: 2.5rem 0 3rem; overflow: hidden; }
.hero-grid { display: grid; gap: 2rem; align-items: center; }
.eyebrow {
  display: inline-block; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em;
  padding: 0.35rem 0.9rem; border-radius: 999px;
  background: var(--brand-pale); color: var(--brand-deep); margin: 0 0 1.1rem;
}
.hero h1 {
  font-size: clamp(2rem, 7.5vw, 3.4rem);
  line-height: 1.24; letter-spacing: -0.035em;
  margin: 0 0 1.1rem; font-weight: 800;
}
.hero h1 em {
  font-style: normal; color: var(--brand-deep);
  background: linear-gradient(transparent 62%, rgba(116, 197, 188, 0.35) 62%);
}
.lead { font-size: clamp(1rem, 2.5vw, 1.13rem); color: var(--ink-60); margin: 0 0 2rem; max-width: 32rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.7rem; }
.hero-media picture, .hero-media img {
  width: 100%; border-radius: 20px;
  aspect-ratio: 4 / 3; object-fit: cover;
}
.hero-media { position: relative; }
.hero-media::after {
  content: ""; position: absolute; inset: auto -14px -14px auto;
  width: 58%; height: 58%; border-radius: 20px; z-index: -1;
  background: var(--brand-pale);
}

/* ---------- sections ---------- */
section { padding: 3.8rem 0; }
.alt { background: #fff; }
.section-head { max-width: 42rem; margin-bottom: 2.4rem; }
.kicker {
  font-size: 0.78rem; font-weight: 800; letter-spacing: 0.14em;
  color: var(--accent-text); margin: 0 0 0.6rem;
}
h2 {
  font-size: clamp(1.5rem, 4.2vw, 2.15rem);
  line-height: 1.34; letter-spacing: -0.03em; margin: 0 0 0.7rem; font-weight: 800;
}
.section-head p:not(.kicker) { margin: 0; color: var(--ink-60); }
/* 이름에 살짝 밑줄 (연혁 제목 등) */
h2 .ul {
  text-decoration: underline;
  text-decoration-color: var(--brand);
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}

/* ---------- cards ---------- */
.grid { display: grid; gap: 1rem; }
.cards { grid-template-columns: 1fr; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.6rem; position: relative; overflow: hidden;
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
}
.alt .card { background: var(--cream); }
.card::before {
  content: ""; position: absolute; left: 1.6rem; top: 0;
  width: 34px; height: 3px; background: var(--accent); border-radius: 0 0 3px 3px;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -28px rgba(0, 0, 0, 0.5); }
.card .num { font-size: 0.74rem; font-weight: 800; letter-spacing: 0.1em; color: var(--accent-text); margin: 0; }
.card h3 { font-size: 1.08rem; margin: 0.5rem 0; letter-spacing: -0.02em; }
.card p:last-child { margin: 0; font-size: 0.95rem; color: var(--ink-60); }

/* ---------- campus ---------- */
.campus-note {
  display: flex; gap: 0.7rem; align-items: flex-start;
  background: #fff6ea; border: 1px solid #f3dcbb; border-radius: var(--radius);
  padding: 0.95rem 1.15rem; font-size: 0.92rem; margin-bottom: 1.6rem;
}
.campus-note strong { color: var(--accent-text); }
.campus-note p { margin: 0; }

.campus {
  background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
}
.campus:hover { transform: translateY(-4px); box-shadow: 0 22px 46px -32px rgba(0, 0, 0, 0.5); }
.campus > picture > img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.campus-body { padding: 1.6rem; flex: 1; }
.campus-tag {
  display: inline-block; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.1em;
  padding: 0.3rem 0.8rem; border-radius: 999px;
  background: var(--brand-deep); color: #fff; margin-bottom: 0.9rem;
}
.campus h3 { font-size: 1.28rem; margin: 0 0 0.35rem; letter-spacing: -0.03em; }
.campus .addr { font-size: 0.9rem; color: var(--ink-60); margin: 0 0 1.1rem; }
.campus h4 {
  font-size: 0.76rem; letter-spacing: 0.1em; color: var(--ink-60);
  margin: 1.2rem 0 0.5rem; font-weight: 800;
}
.chips { display: flex; flex-wrap: wrap; gap: 0.4rem; padding: 0; margin: 0; list-style: none; }
.chips li {
  font-size: 0.85rem; font-weight: 600; padding: 0.32rem 0.8rem;
  border-radius: 999px; background: #fff; border: 1px solid var(--line);
}
.campus p.how { font-size: 0.94rem; color: var(--ink-60); margin: 0; }
.campus-links { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.3rem; }

/* ---------- subjects ---------- */
.subjects { background: var(--brand-pale); }
.subject {
  background: #fff; border-radius: var(--radius); padding: 1.6rem; border: 1px solid #d5e8e4;
  transition: transform 0.3s var(--ease);
}
.subject:hover { transform: translateY(-4px); }
.subject h3 {
  font-size: 1.1rem; margin: 0 0 0.9rem; padding-bottom: 0.7rem;
  border-bottom: 2px solid var(--brand-pale); letter-spacing: -0.02em;
}
.subject ul { margin: 0; padding-left: 1.1rem; font-size: 0.94rem; color: var(--ink-60); }
.subject li { margin-bottom: 0.35rem; }

/* ---------- photo strip ---------- */
.strip { display: grid; gap: 0.7rem; grid-template-columns: repeat(2, 1fr); margin-top: 1.8rem; }
.strip img {
  border-radius: 12px; aspect-ratio: 1; object-fit: cover; width: 100%;
  transition: transform 0.4s var(--ease);
}
.strip picture { overflow: hidden; border-radius: 12px; display: block; }
.strip picture:hover img { transform: scale(1.05); }

/* ---------- teachers ---------- */
.teachers { display: grid; gap: 1.2rem; }
.teacher {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
}
.teacher:hover { transform: translateY(-4px); box-shadow: 0 22px 46px -32px rgba(0, 0, 0, 0.5); }
.teacher img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.teacher .body { padding: 1.3rem 1.5rem 1.6rem; }
.teacher h3 { margin: 0 0 0.3rem; font-size: 1.05rem; }
.teacher p { margin: 0; font-size: 0.93rem; color: var(--ink-60); }

/* ---------- process ---------- */
.steps { counter-reset: step; }
.step { display: flex; gap: 1.2rem; padding: 1.3rem 0; border-bottom: 1px solid var(--line); }
.step:last-child { border-bottom: 0; }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  font-weight: 800; font-size: 0.88rem; color: var(--accent-text);
  flex: 0 0 2.4rem; padding-top: 0.2rem;
}
.step h3 { font-size: 1.05rem; margin: 0 0 0.3rem; letter-spacing: -0.02em; }
.step p { margin: 0; font-size: 0.94rem; color: var(--ink-60); }

/* ---------- column cards ---------- */
.col-card {
  display: flex; flex-direction: column; gap: 0.5rem;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.6rem; text-decoration: none;
  transition: transform 0.3s var(--ease), box-shadow 0.3s, border-color 0.3s;
}
.alt .col-card { background: var(--cream); }
.col-card:hover { transform: translateY(-4px); border-color: var(--brand); box-shadow: 0 22px 46px -32px rgba(0, 0, 0, 0.5); }
.col-card h3 { margin: 0; font-size: 1.1rem; letter-spacing: -0.025em; line-height: 1.45; }
.col-card p { margin: 0; font-size: 0.93rem; color: var(--ink-60); flex: 1; }
.col-card .more { font-size: 0.88rem; font-weight: 700; color: var(--brand-deep); }

/* ---------- 교실 사진 ----------
   강사를 한 명씩 소개하는 카드 대신, 교실에서 일어나는 일을 보여준다.
   세로 사진과 가로 사진이 섞여 있어 높이를 고정하지 않고 비율을 살린다. */
.shots { display: grid; gap: 1.2rem; }
.shot { margin: 0; }
.shot img {
  width: 100%;
  border-radius: var(--radius);
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 35%;
}
.shot figcaption {
  margin-top: 0.8rem;
  font-size: 0.9rem;
  color: var(--ink-60);
  padding-left: 0.9rem;
  border-left: 3px solid var(--brand);
}

/* ---------- 큰 인용(pull-quote) ---------- */
.pullquote {
  margin: 2.4rem 0 0;
  background: var(--brand-dark);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 2.4rem 1.8rem;
  text-align: center;
}
.pullquote blockquote {
  margin: 0 0 1rem;
  font-size: clamp(1.3rem, 4vw, 1.9rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.4;
  color: #fff;
}
.pullquote figcaption {
  margin: 0 auto;
  max-width: 40rem;
  font-size: 0.96rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.82);
}

/* ---------- 콜아웃(강조 문단) ---------- */
.callout {
  background: #fff;
  border: 1px solid #d5e8e4;
  border-left: 4px solid var(--brand-deep);
  border-radius: var(--radius);
  padding: 1.5rem 1.7rem;
  margin: 1.6rem 0;
}
.callout-q {
  margin: 0 0 0.6rem;
  font-size: clamp(1.05rem, 3vw, 1.25rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--brand-deep);
}
.callout p:last-child { margin: 0; color: var(--ink-60); font-size: 0.95rem; }

/* ---------- 사진첩 ---------- */
.album-grid { display: grid; gap: 1rem; grid-template-columns: repeat(2, 1fr); }
.album-card { margin: 0; overflow: hidden; border-radius: var(--radius); position: relative; }
.album-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.album-card figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 1.4rem 1rem 0.9rem;
  font-size: 0.86rem; font-weight: 600; color: #fff;
  background: linear-gradient(transparent, rgba(18, 55, 52, 0.72));
}
.album-note { margin: 1.1rem 0 0; font-size: 0.8rem; color: var(--ink-60); text-align: center; }

/* ---------- 성과 카드 ---------- */
.result {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.7rem;
  position: relative;
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
}
.result:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.result-meta {
  font-size: 0.76rem; font-weight: 800; letter-spacing: 0.1em;
  color: var(--accent-text); margin: 0 0 0.6rem;
}
.result h3 {
  font-size: clamp(1.15rem, 3.4vw, 1.45rem);
  letter-spacing: -0.035em;
  margin: 0 0 0.8rem;
  color: var(--brand-deep);
  line-height: 1.35;
}
.result p:last-child { margin: 0; font-size: 0.93rem; color: var(--ink-60); }

.hme {
  margin-top: 1rem;
  background: var(--brand-dark);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 1.9rem;
  display: grid;
  gap: 1.6rem;
}
.hme .kicker { color: var(--brand); }
.hme h3 { margin: 0 0 0.6rem; font-size: clamp(1.2rem, 3.6vw, 1.6rem); letter-spacing: -0.03em; }
.hme p { margin: 0; color: rgba(255, 255, 255, 0.78); font-size: 0.93rem; }
.winners { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.4rem; }
.winners li {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 0.6rem 0.9rem;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 9px;
  font-size: 0.88rem;
}
.winners strong { color: var(--brand); white-space: nowrap; }

/* ---------- 과목별 시스템 ---------- */
.system {
  background: #fff;
  border: 1px solid #d5e8e4;
  border-radius: var(--radius-lg);
  padding: 1.8rem;
  margin-bottom: 1rem;
}
.system-head { margin-bottom: 1.4rem; }
.system-head h3 {
  font-size: 1.3rem; letter-spacing: -0.03em; margin: 0 0 0.35rem;
  display: inline-block;
  padding-bottom: 0.3rem;
  border-bottom: 3px solid var(--brand);
}
.system-head p { margin: 0.4rem 0 0; color: var(--ink-60); font-size: 0.95rem; }
.system-items { display: grid; gap: 1.1rem; }
.system-item h4 { margin: 0 0 0.3rem; font-size: 0.98rem; letter-spacing: -0.02em; }
.system-item p { margin: 0; font-size: 0.9rem; color: var(--ink-60); }

/* ---------- 특강 ---------- */
.special-grid { display: grid; gap: 1.8rem; align-items: start; }
.special-media img { border-radius: var(--radius); border: 1px solid var(--line); width: 100%; }
.facts { display: grid; gap: 0.5rem; margin: 0 0 1.6rem; }
.facts > div {
  display: flex; gap: 1rem; align-items: baseline;
  padding: 0.7rem 0; border-bottom: 1px solid var(--line);
}
.facts dt {
  flex: 0 0 4.5rem; font-size: 0.78rem; font-weight: 800;
  letter-spacing: 0.08em; color: var(--ink-60);
}
.facts dd { margin: 0; font-size: 0.95rem; font-weight: 600; }
.curriculum { list-style: none; counter-reset: c; margin: 0; padding: 0; display: grid; gap: 0.55rem; }
.curriculum li {
  counter-increment: c;
  display: grid; gap: 0.15rem;
  padding: 0.85rem 1rem 0.85rem 2.9rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 11px;
  position: relative;
}
.curriculum li::before {
  content: counter(c);
  position: absolute; left: 0.95rem; top: 0.9rem;
  width: 1.4rem; height: 1.4rem; border-radius: 50%;
  background: var(--brand-deep); color: #fff;
  font-size: 0.72rem; font-weight: 800;
  display: grid; place-items: center;
}
.curriculum strong { font-size: 0.93rem; letter-spacing: -0.02em; }
.curriculum span { font-size: 0.82rem; color: var(--ink-60); }

/* ---------- 수상 · 연혁 ---------- */
.awards { display: grid; gap: 1rem; grid-template-columns: 1fr; margin-bottom: 2.6rem; }
.award {
  margin: 0;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
}
.award:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.award img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.award figcaption { padding: 1.1rem 1.2rem 1.3rem; }
.award h3 { margin: 0 0 0.3rem; font-size: 0.98rem; letter-spacing: -0.02em; }
.award p { margin: 0; font-size: 0.85rem; color: var(--ink-60); }

.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before {
  content: ""; position: absolute; left: 0.44rem; top: 0.6rem; bottom: 0.6rem;
  width: 2px; background: linear-gradient(var(--brand), var(--brand-pale));
}
.timeline li { position: relative; padding: 0 0 1.5rem 2.2rem; }
.timeline li::before {
  content: ""; position: absolute; left: 0; top: 0.55rem;
  width: 0.95rem; height: 0.95rem; border-radius: 50%;
  background: #fff; border: 3px solid var(--brand-deep);
}
.timeline .year {
  display: block; font-size: 0.82rem; font-weight: 800;
  letter-spacing: 0.08em; color: var(--accent-text); margin-bottom: 0.2rem;
}
.timeline p { margin: 0; font-size: 0.94rem; color: var(--ink-60); }

/* ---------- 질문 목록 (학습 칼럼) ----------
   썸네일 없이 질문 자체가 먼저 읽히도록 한 줄씩 쌓는다. */
.q-list { display: grid; gap: 0.6rem; }
.q-item {
  display: block;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.3rem 3rem 1.3rem 1.5rem;
  text-decoration: none;
  position: relative;
  transition: border-color 0.25s, transform 0.25s var(--ease), box-shadow 0.25s;
}
.alt .q-item { background: var(--cream); }
.q-item::after {
  content: "→";
  position: absolute; right: 1.4rem; top: 50%;
  transform: translateY(-50%);
  color: var(--brand-deep); font-weight: 700;
  transition: transform 0.25s var(--ease);
}
.q-item:hover { border-color: var(--brand); transform: translateX(3px); box-shadow: var(--shadow); }
.q-item:hover::after { transform: translateY(-50%) translateX(4px); }
.q-item h3 {
  margin: 0 0 0.3rem;
  font-size: 1.03rem; line-height: 1.5; letter-spacing: -0.025em;
  color: var(--ink);
}
.q-item p {
  margin: 0; font-size: 0.88rem; color: var(--ink-60);
  display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}

/* ---------- 지도 ----------
   구글 지도 임베드는 API 키가 필요 없고, 주소 문자열을 그대로 넘기면
   구글이 좌표를 찾아 핀을 찍는다. 좌표를 직접 적어두지 않으므로 틀릴 일이 없다.
   실제 길찾기는 국내 사용자가 많이 쓰는 네이버 지도로 넘긴다. */
.maps { display: grid; gap: 1rem; margin-bottom: 1.6rem; }
.map-card {
  margin: 0;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.map-card iframe { width: 100%; height: 260px; border: 0; display: block; filter: saturate(0.92); }
.map-card figcaption {
  padding: 1.1rem 1.3rem 1.3rem;
  display: grid; gap: 0.3rem; justify-items: start;
}
.map-card strong { font-size: 0.98rem; }
.map-card span { font-size: 0.88rem; color: rgba(255, 255, 255, 0.72); }
.map-card .btn { margin-top: 0.6rem; }

/* ---------- 성과 레이아웃 ---------- */
.results-grid { display: grid; gap: 1.4rem; }
.results-cards { gap: 1rem; }
.results-media img {
  width: 100%; border-radius: var(--radius);
  aspect-ratio: 4 / 3; object-fit: cover;
  border: 1px solid var(--line);
}
.caption { margin: 0.7rem 0 0; font-size: 0.82rem; color: var(--ink-60); text-align: center; }

/* ---------- 시험지 인증 갤러리 ---------- */
.proof-gallery {
  display: grid; gap: 0.8rem; margin-top: 1.6rem;
  grid-template-columns: repeat(2, 1fr);
}
.proof-shot { margin: 0; overflow: hidden; border-radius: var(--radius); border: 1px solid var(--line); }
.proof-shot img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.proof-shot:hover img { transform: scale(1.05); }
.proof-note { margin: 0.9rem 0 0; font-size: 0.82rem; color: var(--ink-60); text-align: center; }

/* ---------- 학부모 피드백 (세로 스크린샷) ----------
   실제 대화 캡처가 증거다. 휴대폰처럼 보이게 감싸고, 답장을 인용으로 붙인다. */
.feedback-grid { display: grid; gap: 1.4rem; grid-template-columns: 1fr; }
.feedback-card { margin: 0; display: flex; flex-direction: column; }
/* 캡처마다 세로 길이가 달라 카드 높이가 들쭉날쭉해지므로 틀을 3:4 로 고정한다.
   아래쪽(흰색 학부모 답장)이 보이도록 object-position 을 bottom 으로 둔다.
   검은 테두리 대신 얇은 선 + 부드러운 그림자로 정돈된 느낌을 준다. */
.feedback-card .phone {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: #fff;
  padding: 6px;
  aspect-ratio: 3 / 4;
}
.feedback-card .phone img {
  width: 100%; height: 100%; display: block;
  border-radius: 11px;
  object-fit: cover; object-position: center bottom;
}
.feedback-card figcaption { padding: 1rem 0.3rem 0; }
.feedback-tag {
  display: inline-block; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.08em;
  color: var(--brand-deep); background: var(--brand-pale);
  padding: 0.24rem 0.7rem; border-radius: 999px; margin-bottom: 0.6rem;
}
.feedback-card .reply {
  margin: 0; font-size: 0.92rem; line-height: 1.65; color: var(--ink);
  font-weight: 500;
}

/* ---------- 재원생 학교 (학교급별) ---------- */
.school-groups { display: grid; gap: 1.4rem; }
.school-group h3 {
  font-size: 0.86rem; font-weight: 800; letter-spacing: 0.06em;
  color: var(--accent-text); margin: 0 0 0.15rem;
}
.school-sub { margin: 0 0 0.8rem; font-size: 0.8rem; color: var(--ink-60); }

/* ---------- 블로그 카드 ----------
   썸네일 + 제목 + 발췌. 카드 전체가 링크라 어디를 눌러도 글로 이동한다. */
.post-grid { display: grid; gap: 1.1rem; grid-template-columns: 1fr; }
.post-card {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; text-decoration: none; height: 100%;
  transition: transform 0.3s var(--ease), box-shadow 0.3s, border-color 0.3s;
}
.alt .post-card { background: var(--cream); }
.post-card:hover { transform: translateY(-5px); border-color: var(--brand); box-shadow: 0 24px 48px -32px rgba(0, 0, 0, 0.55); }
.post-card picture { display: block; overflow: hidden; }
.post-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform 0.5s var(--ease); }
.post-card:hover img { transform: scale(1.06); }
.post-body { padding: 1.2rem 1.3rem 1.4rem; display: flex; flex-direction: column; gap: 0.45rem; flex: 1; }
.post-body time { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em; color: var(--ink-60); }
.post-meta { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; margin: 0 !important; }
.post-meta .cat {
  font-size: 0.72rem; font-weight: 700; padding: 0.15rem 0.55rem; border-radius: 999px;
  background: var(--brand-pale); color: var(--brand-deep);
}
.feed-note { display: flex; align-items: center; gap: 0.8rem; flex-wrap: wrap; margin-top: 1.2rem !important; }
.feed-note .fetched { font-size: 0.8rem; color: var(--ink-60); }
.post-body h3 { margin: 0; font-size: 1.04rem; line-height: 1.5; letter-spacing: -0.025em; }
.post-body p {
  margin: 0; font-size: 0.9rem; color: var(--ink-60); flex: 1;
  /* 발췌는 3줄까지만 보여 카드 높이를 고르게 맞춘다. */
  display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.post-body .more { font-size: 0.86rem; font-weight: 700; color: var(--brand-deep); }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 0.6rem; }
.faq details {
  background: var(--cream); border: 1px solid var(--line); border-radius: 12px;
  padding: 0 1.2rem; transition: border-color 0.25s, background 0.25s;
}
.alt .faq details { background: #fff; }
.faq details[open] { border-color: var(--brand); }
.faq summary {
  cursor: pointer; font-weight: 700; padding: 1.1rem 0; list-style: none;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  font-size: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; font-size: 1.5rem; font-weight: 400; color: var(--brand-deep);
  transition: transform 0.3s var(--ease); flex: none; line-height: 1;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .a { padding: 0 0 1.2rem; }
.faq .a p { margin: 0; color: var(--ink-60); font-size: 0.95rem; }

/* 교습비 게시표. FAQ 답변 안에서만 펼쳐 보이므로 눈에 띄지 않는다.
   문서라 눌러서 원본을 크게 볼 수 있게 링크로 감쌌다. */
.fee-images { display: grid; gap: 1rem; margin-top: 1.1rem; }
.fee-images figure { margin: 0; }
.fee-images a { display: block; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff; }
.fee-images img { width: 100%; height: auto; display: block; }
.fee-images figcaption { margin-top: 0.5rem; font-size: 0.82rem; color: var(--ink-60); }
@media (min-width: 720px) { .fee-images { grid-template-columns: repeat(2, 1fr); } }

/* ---------- schools ---------- */
.schools { display: flex; flex-wrap: wrap; gap: 0.5rem; padding: 0; margin: 0; list-style: none; }
.schools li {
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: 0.5rem 1.1rem; font-size: 0.92rem; font-weight: 600;
}

/* ---------- contact ---------- */
.contact { background: var(--brand-dark); color: #fff; }
.contact h2 { color: #fff; }
.contact .kicker { color: var(--brand); }
.contact .section-head p:not(.kicker) { color: rgba(255, 255, 255, 0.82); }
.contact-grid { margin-top: 1.6rem; }
.contact-card {
  background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius); padding: 1.5rem;
}
.contact-card h3 { margin: 0 0 0.5rem; font-size: 1.05rem; }
.contact-card p { margin: 0 0 0.6rem; font-size: 0.92rem; color: rgba(255, 255, 255, 0.8); }
.contact-card p:last-child { margin: 0; }
.contact-card a { color: var(--brand); font-weight: 600; }
.contact-card .tel-line a { font-size: 1.15rem; font-weight: 800; letter-spacing: -0.02em; }
.contact-card .area { font-size: 0.82rem; color: rgba(255, 255, 255, 0.62); }
.contact-media { margin-top: 1.6rem; }
.contact-media img { border-radius: var(--radius); width: 100%; aspect-ratio: 16 / 7; object-fit: cover; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 2rem; }
.tel-big {
  display: inline-block; font-size: clamp(1.8rem, 6vw, 2.6rem);
  font-weight: 800; letter-spacing: -0.03em; text-decoration: none; color: #fff;
}

/* ---------- article ---------- */
.article { padding: 2.5rem 0 4rem; }
.crumb { font-size: 0.85rem; color: var(--ink-60); margin-bottom: 1.5rem; }
.crumb a { text-decoration: none; color: var(--brand-deep); font-weight: 600; }
.crumb span { margin: 0 0.4rem; opacity: 0.5; }
.article h1 {
  font-size: clamp(1.7rem, 5.2vw, 2.5rem); line-height: 1.32;
  letter-spacing: -0.035em; margin: 0 0 0.7rem; font-weight: 800;
}
.article .meta { font-size: 0.85rem; color: var(--ink-60); margin: 0 0 2rem; }
.article section { padding: 0; margin-bottom: 2.4rem; }
.article h2 { font-size: clamp(1.25rem, 3.6vw, 1.6rem); margin: 0 0 0.9rem; }
.article p { margin: 0 0 1rem; }

/* 직답 블록. AI 와 검색엔진이 인용하는 부분이라 눈에 띄게 둔다. */
.answer {
  background: var(--brand-pale); border-left: 4px solid var(--brand-deep);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.4rem 1.6rem; margin: 0 0 2.6rem;
}
.answer-label {
  font-size: 0.74rem; font-weight: 800; letter-spacing: 0.14em;
  color: var(--brand-deep); margin: 0 0 0.5rem;
}
.answer p:last-child { margin: 0; font-size: 1.03rem; }

.checks { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: 0.55rem; }
.checks li { position: relative; padding-left: 1.7rem; color: var(--ink-60); }
.checks li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  color: var(--brand-deep); font-weight: 800;
}

.cta-box {
  background: var(--brand-dark); color: #fff; border-radius: var(--radius);
  padding: 1.8rem; margin: 2.8rem 0;
}
.cta-box h2 { color: #fff; margin: 0 0 0.5rem; font-size: 1.25rem; }
.cta-box p { color: rgba(255, 255, 255, 0.82); font-size: 0.95rem; margin: 0 0 1.3rem; }

/* ---------- footer ---------- */
footer {
  background: var(--brand-darker); color: rgba(255, 255, 255, 0.66);
  font-size: 0.85rem; padding: 2.4rem 0 5.5rem;
}
footer .wrap { display: grid; gap: 0.9rem; }
footer img { width: 104px; }
footer .links { display: flex; flex-wrap: wrap; gap: 1.1rem; }
footer a { color: rgba(255, 255, 255, 0.84); }
footer .reg { font-size: 0.76rem; color: rgba(255, 255, 255, 0.46); line-height: 1.8; }

/* ---------- mobile sticky CTA ---------- */
.mobile-cta {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 60;
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem;
  padding: 0.6rem 0.9rem calc(0.6rem + env(safe-area-inset-bottom));
  background: rgba(251, 249, 244, 0.96);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
}
.mobile-cta .btn { width: 100%; padding: 0.85rem 0.5rem; }
.mobile-cta .btn:hover { transform: none; }

/* ---------- 터치 영역 ----------
   손가락으로 누르는 링크는 높이를 44px 가까이 확보한다.
   글자만 있는 인라인 링크는 기본적으로 20px 안팎이라 모바일에서 자주 빗나간다. */
footer .links a,
footer .wrap > div > a,
.crumb a,
.contact-card a,
.feed-note a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding-block: 0.35rem;
}
.contact-card .tel-line a { min-height: 44px; }
.logo { display: inline-flex; align-items: center; min-height: 44px; }
.faq summary { min-height: 44px; }

/* ---------- responsive ---------- */
@media (min-width: 600px) {
  .hide-sm { display: inline-flex; }
}
@media (max-width: 599px) {
  .hide-sm { display: none; }

  /* 모바일 편의: 터치 영역을 넉넉히, 요소 사이 간격을 편안하게 */
  .btn { padding-block: 0.92rem; }
  .hero-actions .btn,
  .contact-actions .btn { flex: 1 1 46%; justify-content: center; }
  .section-head { margin-bottom: 1.9rem; }
  .lead { font-size: 1.02rem; line-height: 1.72; }
  .card, .subject, .col-card, .result, .campus-body, .system, .contact-card { padding: 1.45rem; }
  .q-item { padding: 1.25rem 3rem 1.25rem 1.35rem; }
  .mobile-cta { gap: 0.6rem; padding: 0.65rem 1rem calc(0.7rem + env(safe-area-inset-bottom)); }
  .mobile-cta .btn { padding-block: 0.95rem; }
  /* 세로로 쌓이는 피드백·교실 사진은 서로 넉넉히 띄운다 */
  .feedback-grid { gap: 2.4rem; }
  .shots { gap: 2.2rem; }
}

@media (min-width: 720px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .grid.two { grid-template-columns: repeat(2, 1fr); }
  .grid.three { grid-template-columns: repeat(3, 1fr); }
  .strip { grid-template-columns: repeat(4, 1fr); }
  .teachers { grid-template-columns: repeat(2, 1fr); }
  .post-grid { grid-template-columns: repeat(2, 1fr); }
  .care-grid { grid-template-columns: repeat(2, 1fr); }
  .awards { grid-template-columns: repeat(3, 1fr); }
  .stats { grid-template-columns: repeat(4, 1fr); }
  .statband .wrap { padding: 2.4rem 2.2rem; }
  .system { padding: 2.2rem; }
  .system-items { grid-template-columns: repeat(2, 1fr); gap: 1.4rem 2rem; }
  .hme { grid-template-columns: 1fr 1fr; align-items: center; padding: 2.4rem; }
  .winners { grid-template-columns: repeat(2, 1fr); }
  .maps { grid-template-columns: repeat(2, 1fr); }
  .results-cards { grid-template-columns: repeat(2, 1fr); }
  .strip { grid-template-columns: repeat(6, 1fr); }
  .shots { grid-template-columns: repeat(3, 1fr); }
  .proof-gallery { grid-template-columns: repeat(4, 1fr); }
  .feedback-grid { grid-template-columns: repeat(2, 1fr); }
  .school-groups { grid-template-columns: repeat(3, 1fr); }
  .album-grid { grid-template-columns: repeat(4, 1fr); }
  section { padding: 4.8rem 0; }
  .hero { padding: 3.5rem 0 4rem; }
  .cta-box { padding: 2.4rem; }
  .q-item { padding: 1.5rem 3.5rem 1.5rem 1.8rem; }
}

@media (min-width: 960px) {
  .navtoggle { display: none; }
  .site-header .logo { position: static; transform: none; }
  .nav {
    position: static; flex-direction: row; align-items: center;
    gap: 1.5rem; font-size: 0.92rem;
    background: transparent; backdrop-filter: none;
    border-bottom: 0; box-shadow: none; padding: 0;
    max-height: none; overflow: visible; opacity: 1;
    visibility: visible; pointer-events: auto;
  }
  .nav a {
    position: relative; padding: 0.2rem 0;
    font-size: 0.92rem; border-bottom: 0;
  }
  .nav a::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px;
    background: var(--brand-deep); transform: scaleX(0); transform-origin: left;
    transition: transform 0.3s var(--ease);
  }
  .nav a:hover { color: var(--brand-deep); }
  .nav a:hover::after { transform: scaleX(1); }
  .cards { grid-template-columns: repeat(5, 1fr); }
  .care-grid { grid-template-columns: repeat(4, 1fr); }
  .awards { grid-template-columns: repeat(5, 1fr); }
  .hero-grid { grid-template-columns: 1.05fr 0.95fr; gap: 3.5rem; }
  .hero { padding: 4.5rem 0 5rem; }
  .hero-media picture, .hero-media img { aspect-ratio: 5 / 6; }
  .post-grid { grid-template-columns: repeat(3, 1fr); }
  .post-grid.two-up { grid-template-columns: repeat(2, 1fr); }
  .special-grid { grid-template-columns: 0.9fr 1.1fr; gap: 2.6rem; }
  .results-grid { grid-template-columns: 0.78fr 1.22fr; gap: 2rem; align-items: start; }
  .feedback-grid { grid-template-columns: repeat(4, 1fr); }
  .teachers.three-up { grid-template-columns: repeat(3, 1fr); }
  .map-card iframe { height: 300px; }
  .mobile-cta { display: none; }
  footer { padding-bottom: 2.4rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
