:root {
  --navy: #1F3A5F;
  --navy-dark: #152A45;
  --sage: #7C9A84;
  --sage-light: #E7EEE8;
  --gold: #B08D57;
  --ivory: #FAF8F4;
  --sand: #F2EEE6;
  --ink: #222A33;
  --muted: #6B7480;
  --line: #E3DED4;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(31, 58, 95, .08);
  --serif: "Noto Serif KR", "Nanum Myeongjo", serif;
  --sans: "Pretendard", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; font-family: var(--sans); color: var(--ink); background: var(--ivory); line-height: 1.7; word-break: keep-all; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--navy); }
h1, h2, h3, h4 { line-height: 1.35; margin: 0 0 .5em; color: var(--navy); }
h1, h2 { font-family: var(--serif); font-weight: 700; letter-spacing: -.01em; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.15rem; }
.container { width: min(1140px, 100% - 40px); margin-inline: auto; }
.narrow { width: min(780px, 100% - 40px); }
.center { text-align: center; }
.muted { color: var(--muted); font-weight: 400; }
.small { font-size: .9rem; }
.hidden { display: none; }

/* Buttons */
.btn { display: inline-block; background: var(--navy); color: #fff; text-decoration: none; padding: 14px 28px; border-radius: 999px; font-weight: 600; border: 2px solid var(--navy); transition: transform .2s, background .2s, color .2s; cursor: pointer; font-size: 1rem; font-family: inherit; }
.btn:hover { background: var(--navy-dark); transform: translateY(-2px); }
.btn-ghost { background: rgba(255,255,255,.85); color: var(--navy); border-color: rgba(255,255,255,.85); }
.btn-ghost:hover { background: #fff; color: var(--navy); }
.btn-outline { background: transparent; color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-small { padding: 8px 18px; font-size: .92rem; }
.btn-block { width: 100%; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(250, 248, 244, .92); backdrop-filter: blur(10px); border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s; }
.site-header.scrolled { border-color: var(--line); box-shadow: 0 2px 16px rgba(0,0,0,.04); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); font-family: var(--serif); font-weight: 700; font-size: 1.3rem; }
.brand svg { width: 40px; height: 26px; }
.brand.light { color: #fff; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { text-decoration: none; font-weight: 500; font-size: .96rem; }
.nav-links a:not(.btn) { color: var(--ink); }
.nav-links a:not(.btn):hover { color: var(--gold); }
.nav-links .btn { color: #fff; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--navy); margin: 5px 0; transition: .3s; }

/* Hero */
.hero { position: relative; min-height: min(88vh, 760px); display: flex; align-items: center; overflow: hidden; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 65% center; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(250,248,244,.96) 0%, rgba(250,248,244,.86) 34%, rgba(250,248,244,0) 62%); }
.hero-inner { position: relative; padding: 80px 0; }
.hero-inner > * { max-width: 560px; }
.eyebrow { color: var(--gold); font-weight: 700; letter-spacing: .08em; font-size: .9rem; margin: 0 0 12px; }
.hero-question { font-size: clamp(1.05rem, 1.8vw, 1.3rem); color: var(--gold); font-weight: 600; margin: 0 0 16px; line-height: 1.6; }
.hero h1 { font-size: clamp(2.2rem, 4.8vw, 3.5rem); margin-bottom: 20px; }
.hero-sub { font-size: 1.08rem; color: #3A4552; margin: 0 0 32px; }
.hero-sub strong { color: var(--navy); }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero .btn-ghost { border-color: var(--navy); }

/* Sections */
.section { padding: 100px 0; }
.section.alt { background: var(--sand); }
.section.navy { background: var(--navy); color: #fff; }
.light { color: #fff; }
.lead { font-size: 1.1rem; color: var(--muted); margin: 0 auto 48px; max-width: 640px; }
.sub-title { margin: 72px 0 28px; font-size: 1.3rem; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.stat { background: #fff; border-radius: var(--radius); padding: 36px 28px; box-shadow: var(--shadow); text-align: center; border-top: 4px solid var(--sage); }
.stat .num { display: block; font-family: var(--serif); font-size: clamp(2rem, 3.6vw, 2.7rem); color: var(--navy); font-weight: 700; line-height: 1.2; margin-bottom: 12px; }
.stat .num small { font-size: .55em; }
.stat .num em { font-style: normal; font-size: .45em; color: var(--muted); margin: 0 4px; vertical-align: middle; }
.stat p { margin: 0; }
.stat .muted { font-size: .88rem; }
.source { font-size: .8rem; color: var(--muted); text-align: center; margin-top: 28px; }

/* Curriculum cards */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card { background: #fff; border-radius: var(--radius); padding: 28px 24px; box-shadow: var(--shadow); display: flex; flex-direction: column; transition: transform .25s; }
.card:hover { transform: translateY(-4px); }
.card p { color: #4A5360; font-size: .95rem; flex: 1; margin: 0 0 18px; }
.card .icon { width: 48px; height: 48px; border-radius: 14px; background: var(--sage-light); display: grid; place-items: center; margin-bottom: 18px; }
.card .icon svg { width: 26px; height: 26px; fill: none; stroke: var(--navy); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.card.featured { background: var(--navy); }
.card.featured h3, .card.featured p { color: #fff; }
.card.featured .icon { background: rgba(255,255,255,.12); }
.card.featured .icon svg { stroke: #fff; }
.card.featured .tag { background: rgba(255,255,255,.14); color: #F1E3C8; }
.card.closing { background: var(--sage-light); box-shadow: none; border: 1px dashed var(--sage); }
.badge { display: inline-block; background: var(--gold); color: #fff; font-size: .7rem; padding: 2px 8px; border-radius: 999px; vertical-align: middle; margin-left: 4px; font-family: var(--sans); }
.tag { font-size: .8rem; font-weight: 600; color: var(--navy); background: var(--sand); padding: 6px 12px; border-radius: 999px; align-self: flex-start; }

/* Levels */
.levels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.level { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 34px 28px; display: flex; flex-direction: column; }
.level.main { border: 2px solid var(--navy); box-shadow: var(--shadow); }
.level h3 { font-family: var(--serif); font-size: 1.5rem; margin: 6px 0 16px; }
.level dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; margin: 0 0 18px; padding: 16px; background: var(--ivory); border-radius: 12px; font-size: .92rem; }
.level dt { font-weight: 700; color: var(--navy); }
.level dd { margin: 0; color: #4A5360; }
.level ul { margin: 0 0 24px; padding: 0; list-style: none; flex: 1; }
.level li { padding: 8px 0 8px 26px; position: relative; border-bottom: 1px solid var(--sand); font-size: .95rem; }
.level li::before { content: ""; position: absolute; left: 4px; top: 16px; width: 10px; height: 6px; border-left: 2px solid var(--sage); border-bottom: 2px solid var(--sage); transform: rotate(-45deg); }
.level .btn { text-align: center; }
.step-no { font-size: .78rem; font-weight: 700; letter-spacing: .06em; color: var(--gold); }

/* Flow */
.flow { display: grid; grid-template-columns: 1fr 1.15fr 1fr; gap: 20px; align-items: stretch; position: relative; }
.flow-step { background: #fff; border-radius: var(--radius); padding: 28px; border: 1px solid var(--line); position: relative; }
.flow-step.main { background: var(--navy); color: #fff; border-color: var(--navy); }
.flow-step.main h4, .flow-step.main .step-no { color: #fff; }
.flow-step.main .time { color: #D9E2EC; }
.flow-step h4 { font-size: 1.2rem; margin: 4px 0 2px; }
.flow-step .time { font-size: .88rem; color: var(--muted); margin: 0 0 12px; }
.flow-step ul { margin: 0; padding-left: 18px; }
.flow-step:not(:last-child)::after { content: "→"; position: absolute; right: -16px; top: 50%; transform: translateY(-50%); color: var(--gold); font-weight: 700; z-index: 2; }

/* Timetable + image */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 64px; align-items: center; }
.timetable { background: #fff; border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); }
.timetable ol { list-style: none; margin: 12px 0 0; padding: 0; }
.timetable li { display: flex; gap: 18px; padding: 11px 0; border-bottom: 1px solid var(--sand); }
.timetable li:last-child { border-bottom: 0; }
.timetable time { font-weight: 700; color: var(--gold); min-width: 52px; font-variant-numeric: tabular-nums; }
.timetable li.hl { background: var(--sage-light); margin: 0 -14px; padding-inline: 14px; border-radius: 10px; }
.timetable em { font-style: normal; font-size: .8rem; background: var(--navy); color: #fff; padding: 2px 8px; border-radius: 999px; margin-left: 6px; }
.split-img img { border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 4/3; object-fit: cover; width: 100%; }

.for-whom { margin-top: 64px; background: var(--sage-light); border-radius: var(--radius); padding: 36px; text-align: center; }
.for-whom ul { list-style: none; padding: 0; margin: 16px 0 12px; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.for-whom li { background: #fff; padding: 10px 20px; border-radius: 999px; font-weight: 500; }

/* Principles */
.principles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; margin-top: 40px; }
.principles div { border-top: 1px solid rgba(255,255,255,.25); padding-top: 22px; }
.principles h3 { color: #F1E3C8; font-family: var(--serif); }
.principles p { color: #D9E2EC; margin: 0; font-size: .95rem; }

/* World */
.world { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; margin-top: 40px; }
.world article { background: #fff; border-radius: var(--radius); padding: 26px 22px; box-shadow: var(--shadow); }
.world .flag { display: inline-block; font-size: .78rem; font-weight: 700; color: var(--sage); margin-bottom: 8px; }
.world h3 { font-size: 1.02rem; }
.world p { font-size: .9rem; color: #4A5360; margin: 0; }

/* FAQ */
.faq { margin-top: 36px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 14px; margin-bottom: 12px; padding: 0 24px; }
.faq summary { cursor: pointer; padding: 20px 0; font-weight: 600; list-style: none; position: relative; padding-right: 30px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 1.4rem; color: var(--gold); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { margin: 0 0 20px; color: #4A5360; }

/* Apply */
.apply { background: linear-gradient(180deg, var(--sand), var(--ivory)); }
.apply-inner { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: start; }
.apply-copy h2 { font-size: clamp(2rem, 4vw, 2.8rem); }
.checks { list-style: none; padding: 0; margin: 24px 0 0; }
.checks li { padding: 8px 0 8px 30px; position: relative; font-weight: 500; }
.checks li::before { content: ""; position: absolute; left: 0; top: 13px; width: 18px; height: 18px; border-radius: 50%; background: var(--sage); }
.checks li::after { content: ""; position: absolute; left: 5px; top: 18px; width: 7px; height: 4px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg); }
.apply-form { background: #fff; border-radius: var(--radius); padding: 36px; box-shadow: var(--shadow); display: grid; gap: 16px; }
.apply-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.apply-form label { display: grid; gap: 6px; font-size: .9rem; font-weight: 600; color: var(--navy); }
.apply-form input:not([type=checkbox]), .apply-form select, .apply-form textarea { font: inherit; font-weight: 400; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--ivory); color: var(--ink); width: 100%; }
.apply-form input:focus, .apply-form select:focus, .apply-form textarea:focus { outline: 2px solid var(--sage); border-color: transparent; background: #fff; }
.apply-form .agree { display: flex; align-items: center; gap: 10px; font-weight: 400; color: var(--ink); }
.apply-form .agree input { width: 18px; height: 18px; accent-color: var(--navy); }

/* Footer */
.site-footer { background: var(--navy-dark); color: #C9D3DE; padding: 56px 0 24px; font-size: .9rem; }
.footer-inner { display: grid; grid-template-columns: 1fr 1.2fr 1.4fr; gap: 40px; }
.site-footer p { margin: 4px 0; }
.site-footer a { color: #fff; }
.muted-light { color: #8FA0B3; }
.footer-help { background: rgba(255,255,255,.06); border-radius: 14px; padding: 18px 20px; }
.copyright { text-align: center; color: #7F90A4; font-size: .8rem; margin: 40px 0 0; }

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* Sub pages */
.page { padding: 80px 0 100px; }
.page h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.page h2 { font-size: 1.25rem; font-family: var(--sans); margin-top: 36px; }
.page table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: .93rem; }
.page th, .page td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.page th { background: var(--sand); color: var(--navy); }
.thanks { min-height: 70vh; display: grid; place-items: center; text-align: center; }
.thanks .ring { width: 88px; height: 56px; margin: 0 auto 24px; color: var(--navy); }

/* Responsive */
@media (max-width: 1080px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .world { grid-template-columns: repeat(3, 1fr); }
  .principles { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-links { position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--ivory); border-bottom: 1px solid var(--line); padding: 8px 20px 20px; display: none; }
  .nav-links.open { display: flex; }
  .nav-links a { width: 100%; padding: 14px 0; border-bottom: 1px solid var(--sand); }
  .nav-links .btn { margin-top: 12px; text-align: center; border-bottom: 0; }
  .nav-toggle[aria-expanded=true] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded=true] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded=true] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .hero { min-height: auto; align-items: flex-end; }
  .hero-img { position: relative; height: 340px; object-position: 62% center; }
  .hero { flex-direction: column; }
  .hero-overlay { display: none; }
  .hero-inner { padding: 36px 0 56px; }
  .section { padding: 72px 0; }
  .stats, .levels, .flow, .split, .apply-inner, .footer-inner { grid-template-columns: 1fr; }
  .flow-step:not(:last-child)::after { content: "↓"; right: 50%; top: auto; bottom: -18px; transform: translateX(50%); }
  .world { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .cards, .world, .principles, .apply-form .row { grid-template-columns: 1fr; }
  .apply-form, .timetable, .level { padding: 26px 20px; }
  .hero-cta .btn { flex: 1; text-align: center; }
}
