/* ===== KPBA — Neutral Sand base + Brand Blue accent ===== */
:root {
  --sand-50: #FBF9F5;
  --sand-100: #F4EFE7;
  --sand-200: #EAE2D5;
  --sand-300: #DBCFBC;

  --blue: #3D4CB0;        /* 브랜드 로열블루 (primary) */
  --blue-deep: #2A3585;   /* 딥 블루 */
  --navy: #1E2650;        /* 다크 섹션 */
  --azure: #2E7BF0;       /* 밝은 포인트 */

  --ink: #26251F;
  --ink-soft: #6B6459;
  --line: rgba(30, 38, 80, 0.10);
  --white: #FFFFFF;

  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 18px 50px -24px rgba(30, 38, 80, 0.40);
  --shadow-sm: 0 6px 20px -12px rgba(30, 38, 80, 0.28);
  --wrap: 1160px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font: "Pretendard", "Pretendard Variable", -apple-system, BlinkMacSystemFont,
    "Segoe UI", "Malgun Gothic", "Apple SD Gothic Neo", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  font-family: var(--font); color: var(--ink); background: var(--sand-50);
  line-height: 1.65; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.accent { color: var(--blue); }
.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }
.br-pc { display: none; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 26px; border-radius: 999px; font-weight: 700; font-size: 15px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .25s;
  cursor: pointer; border: none; white-space: nowrap;
}
.btn--primary { background: var(--blue); color: var(--white); box-shadow: var(--shadow-sm); }
.btn--primary:hover { transform: translateY(-3px); box-shadow: 0 16px 30px -14px rgba(61,76,176,.7); }
.btn--ghost { background: rgba(255,255,255,.7); color: var(--ink); backdrop-filter: blur(6px); }
.btn--ghost:hover { transform: translateY(-3px); background: #fff; }
.btn--outline { background: transparent; color: var(--blue); border: 1.5px solid var(--blue); }
.btn--outline:hover { background: var(--blue); color: #fff; transform: translateY(-3px); }
.btn--lg { padding: 18px 40px; font-size: 19px; }
.btn--full { width: 100%; }

/* ===== Nav ===== */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; transition: background .3s, box-shadow .3s, padding .3s; padding: 18px 0; }
.nav.is-scrolled { background: rgba(251,249,245,.85); backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--line); padding: 12px 0; }
.nav__inner { width: min(100% - 40px, var(--wrap)); margin-inline: auto; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); }
.brand__mark { display: grid; place-items: center; }
.brand__mark img { display: block; width: 40px; height: 40px; object-fit: contain; }
.footer__brand .brand__mark img { width: 36px; height: 36px; }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__text strong { font-size: 19px; letter-spacing: .5px; color: var(--blue-deep); }
.brand__text em { font-style: normal; font-size: 11px; color: var(--ink-soft); }
.nav__links { display: flex; align-items: center; gap: 26px; }
.nav__links a { font-size: 15px; font-weight: 600; color: var(--ink); transition: color .2s; }
.nav__links a:hover { color: var(--blue); }
.nav__cta { background: var(--blue-deep); color: #fff !important; padding: 9px 20px; border-radius: 999px; transition: background .25s, transform .25s; }
.nav__cta:hover { background: var(--blue); transform: translateY(-2px); }
.nav__toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.nav__toggle span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .3s var(--ease), opacity .2s; }
.nav__toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle.is-open span:nth-child(2) { opacity: 0; }
.nav__toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Hero ===== */
.hero { position: relative; min-height: 100svh; display: grid; place-items: center; text-align: center; overflow: hidden; padding: 120px 20px 80px; }
.hero__bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(58% 55% at 80% 12%, rgba(61,76,176,.28), transparent 60%),
    radial-gradient(55% 50% at 10% 88%, rgba(219,207,188,.75), transparent 60%),
    radial-gradient(70% 60% at 50% 50%, var(--sand-100), var(--sand-200));
  animation: heroFloat 16s ease-in-out infinite alternate;
}
@keyframes heroFloat { 0% { background-position: 0 0, 0 0, 0 0; } 100% { background-position: 8% 6%, -6% -4%, 0 0; } }
.hero__inner { max-width: 840px; }
.hero__eyebrow { font-size: 14px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; color: var(--blue); margin-bottom: 20px; }
.hero__title { font-size: clamp(2.3rem, 6.6vw, 4.4rem); font-weight: 800; line-height: 1.14; letter-spacing: -1px; }
.hero__sub { margin: 26px auto 0; font-size: clamp(1rem, 2.4vw, 1.2rem); color: var(--ink-soft); max-width: 660px; }
.hero__cta { margin-top: 38px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero__badges { margin-top: 40px; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.hero__badges span { font-size: 13px; font-weight: 600; color: var(--ink-soft); background: rgba(255,255,255,.65); padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); }
.hero__scroll { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); width: 26px; height: 42px; border: 2px solid rgba(30,38,80,.3); border-radius: 999px; }
.hero__scroll span { position: absolute; top: 8px; left: 50%; width: 4px; height: 8px; background: var(--blue); border-radius: 2px; transform: translateX(-50%); animation: scrollDot 1.6s infinite; }
@keyframes scrollDot { 0% { opacity: 0; top: 8px; } 40% { opacity: 1; } 80% { opacity: 0; top: 22px; } 100% { opacity: 0; } }

/* ===== Section base ===== */
.section { padding: clamp(64px, 10vw, 116px) 0; }
.section--tint { background: var(--sand-100); }
.section__head { text-align: center; max-width: 760px; margin: 0 auto clamp(40px, 6vw, 60px); }
.section__head h2 { font-size: clamp(1.7rem, 4.4vw, 2.7rem); font-weight: 800; line-height: 1.2; letter-spacing: -.5px; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase; color: var(--blue); margin-bottom: 14px; }
.section__desc { margin-top: 16px; color: var(--ink-soft); font-size: 1.05rem; }

/* ===== About ===== */
.about { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.about__text p { color: var(--ink-soft); margin-bottom: 16px; font-size: 1.06rem; }
.about__text strong { color: var(--ink); }
.about__points { list-style: none; margin-top: 26px; display: grid; gap: 12px; }
.about__points li { display: flex; align-items: center; gap: 14px; font-weight: 600; }
.about__points span { flex: none; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: var(--sand-200); color: var(--blue); font-size: 13px; font-weight: 800; }
.about__stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 18px; text-align: center; box-shadow: var(--shadow-sm); }
.stat strong { display: block; font-size: clamp(1.9rem, 5vw, 2.5rem); font-weight: 800; color: var(--blue); line-height: 1; }
.stat span { font-size: 14px; color: var(--ink-soft); margin-top: 8px; display: block; }

/* ===== Grids / Cards ===== */
.grid { display: grid; gap: 22px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 26px; transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.card__icon { font-size: 30px; margin-bottom: 14px; }
.card h3 { font-size: 1.18rem; margin-bottom: 8px; }
.card p { color: var(--ink-soft); font-size: .98rem; }

/* ===== 통합교과 (subjects) ===== */
.subject { position: relative; padding-top: 34px; }
.subject__no { position: absolute; top: 20px; right: 24px; font-size: 13px; font-weight: 800; color: var(--blue); background: var(--sand-100); padding: 4px 10px; border-radius: 8px; }
.subject h3 { font-size: 1.25rem; }
.subject--cta { background: linear-gradient(135deg, var(--blue-deep), var(--blue)); color: #fff; display: flex; flex-direction: column; justify-content: center; }
.subject--cta h3, .subject--cta p { color: #fff; }
.subject--cta p { opacity: .85; }
.subject--cta .link-arrow { color: #fff; margin-top: 12px; }

/* ===== 커리큘럼 4영역 (pillars) ===== */
.pillars { align-items: stretch; }
.pillar { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.pillar:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.pillar__head { background: var(--sand-200); color: var(--blue-deep); font-weight: 800; font-size: 1.15rem; text-align: center; padding: 18px; }
.pillar--accent .pillar__head { background: var(--blue-deep); color: #fff; }
.pillar ul { list-style: none; padding: 22px 22px 26px; display: grid; gap: 12px; }
.pillar li { position: relative; padding-left: 18px; color: var(--ink-soft); font-size: .95rem; line-height: 1.5; }
.pillar li::before { content: ""; position: absolute; left: 0; top: 9px; width: 7px; height: 7px; border-radius: 50%; background: var(--azure); }

/* ===== 세부 커리큘럼 KPEE ===== */
.kpee { align-items: stretch; }
.kpee__card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px; box-shadow: var(--shadow-sm); transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.kpee__card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.kpee__no { display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: 1px; color: var(--azure); margin-bottom: 8px; }
.kpee__card h3 { font-size: 1.08rem; line-height: 1.35; margin-bottom: 14px; min-height: 2.7em; }
.kpee__card ul { list-style: none; display: grid; gap: 9px; }
.kpee__card li { position: relative; padding-left: 16px; color: var(--ink-soft); font-size: .9rem; line-height: 1.45; }
.kpee__card li::before { content: "–"; position: absolute; left: 0; color: var(--blue); }
.kpee__card--wide { margin-top: 22px; }
.kpee__card--wide h3 { min-height: 0; }
.kpee__grid { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }

/* ===== 실무형 STEP ===== */
.steps { align-items: stretch; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 22px 28px; text-align: center; box-shadow: var(--shadow-sm); transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.step:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.step__badge { display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: 1px; color: #fff; background: var(--blue); padding: 5px 14px; border-radius: 999px; margin-bottom: 18px; }
.step__circle { width: 92px; height: 92px; margin: 0 auto 16px; border-radius: 50%; display: grid; place-items: center; font-size: 34px; background: radial-gradient(circle at 30% 30%, var(--sand-100), var(--sand-300)); border: 2px solid rgba(61,76,176,.18); }
.step h3 { font-size: 1.18rem; margin-bottom: 8px; }
.step p { color: var(--ink-soft); font-size: .95rem; }

/* ===== Gallery ===== */
.gallery { display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: minmax(210px, 1fr); gap: 18px; }
.gallery__item { position: relative; margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); background: linear-gradient(135deg, var(--sand-200), var(--sand-300)); }
.gallery__item--tall { grid-row: span 2; }
.gallery__item::after { content: attr(data-label); position: absolute; inset: 0; display: grid; place-items: center; color: var(--blue-deep); font-weight: 700; font-size: .92rem; padding: 0 14px; text-align: center; z-index: 0; }
.gallery__item img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s var(--ease); }
.gallery__item:hover img { transform: scale(1.05); }
.gallery figcaption { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; padding: 16px 18px; color: #fff; font-weight: 600; font-size: .92rem; background: linear-gradient(transparent, rgba(20, 25, 50, .72)); }

/* ===== Schedule ===== */
.schedule { display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px; align-items: start; }
.schedule__table { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.schedule__row { display: grid; grid-template-columns: 1.1fr 1.6fr 1.3fr .7fr; align-items: center; padding: 18px 22px; border-bottom: 1px solid var(--line); font-size: 15px; }
.schedule__row:last-child { border-bottom: none; }
.schedule__row--head { background: var(--sand-100); font-weight: 700; font-size: 13px; color: var(--ink-soft); }
.schedule__row span:first-child { font-weight: 700; }
.badge { font-style: normal; font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: 999px; }
.badge--open { background: var(--blue); color: #fff; }
.badge--soon { background: var(--sand-200); color: var(--ink-soft); }
.place { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.place__map { aspect-ratio: 4/3; background: linear-gradient(135deg, var(--sand-200), var(--sand-300)); display: grid; place-items: center; position: relative; }
.place__map::after { content: attr(data-label); font-weight: 700; color: var(--blue-deep); font-size: .95rem; text-align: center; padding: 0 16px; }
.place__info { padding: 22px 24px 26px; }
.place__info h3 { font-size: 1.2rem; }
.place__addr { color: var(--ink-soft); font-size: .96rem; margin: 8px 0 14px; }
.link-arrow { color: var(--blue); font-weight: 700; font-size: .95rem; }
.link-arrow:hover { text-decoration: underline; }

/* ===== Pricing ===== */
.pricing-solo { max-width: 460px; margin: 0 auto; }
.price { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 36px 30px; text-align: center; display: flex; flex-direction: column; transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.price h3 { font-size: 1.28rem; margin-bottom: 14px; }
.price__old { color: var(--ink-soft); text-decoration: line-through; font-size: .95rem; }
.price__label { font-size: .9rem; font-weight: 700; color: var(--ink-soft); letter-spacing: 1px; }
.price__now { font-size: 1.1rem; color: var(--ink-soft); margin: 2px 0 8px; }
.price__now strong { font-size: 2.3rem; color: var(--blue); font-weight: 800; }
.price__eb { font-size: .9rem; font-weight: 700; color: var(--azure); margin-bottom: 22px; }
.price ul { list-style: none; display: grid; gap: 11px; margin-bottom: 26px; text-align: left; flex: 1; }
.price li { padding-left: 26px; position: relative; color: var(--ink-soft); font-size: .96rem; }
.price li::before { content: "✓"; position: absolute; left: 0; color: var(--blue); font-weight: 800; }
.price--featured { border: 2px solid var(--blue); position: relative; box-shadow: var(--shadow); }
.price__ribbon { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--blue); color: #fff; font-size: 12px; font-weight: 700; padding: 6px 18px; border-radius: 999px; white-space: nowrap; }
.pricing__note { text-align: center; margin-top: 24px; font-size: 13px; color: var(--ink-soft); }

/* ===== CTA ===== */
.cta { background: linear-gradient(135deg, var(--navy), var(--blue-deep)); color: #fff; }
.cta__inner { text-align: center; max-width: 680px; }
.cta .eyebrow { color: var(--sand-300); }
.cta h2 { color: #fff; font-size: clamp(1.8rem, 4.5vw, 2.7rem); }
.cta .accent { color: #9fb4ff; }
.cta__desc { color: rgba(255,255,255,.8); margin: 16px 0 32px; font-size: 1.08rem; }
.cta .btn--primary { background: #fff; color: var(--blue-deep); }
.cta .btn--primary:hover { background: var(--sand-100); }
.cta__hint { margin-top: 18px; font-size: 14px; color: rgba(255,255,255,.65); }

/* ===== Footer ===== */
.footer { background: var(--sand-200); padding: 50px 0 40px; }
.footer__inner { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.footer__brand { display: flex; gap: 12px; align-items: center; }
.footer__brand strong { font-size: 1.05rem; color: var(--blue-deep); }
.footer__brand p { font-size: 13px; color: var(--ink-soft); }
.footer__meta { text-align: right; font-size: 14px; color: var(--ink-soft); }
.footer__meta a { color: var(--blue); font-weight: 700; }
.footer__copy { margin-top: 8px; font-size: 12px; }

/* ===== Floating call button ===== */
.fab { display: none; position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%); z-index: 90; background: var(--blue); color: #fff; font-weight: 700; padding: 14px 28px; border-radius: 999px; box-shadow: 0 12px 30px -8px rgba(61,76,176,.7); font-size: 15px; }

/* ===== Scroll reveal ===== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.grid .reveal.is-visible { transition-delay: calc(var(--i, 0) * 70ms); }

/* ===== Responsive ===== */
@media (min-width: 700px) { .br-pc { display: inline; } }

@media (max-width: 1000px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .about { grid-template-columns: 1fr; gap: 32px; }
  .schedule { grid-template-columns: 1fr; }
  .grid--2 { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .nav__links {
    position: fixed; inset: 0 0 0 auto; width: min(78vw, 320px);
    background: var(--sand-50); flex-direction: column; align-items: flex-start;
    padding: 90px 32px; gap: 6px; transform: translateX(105%);
    transition: transform .4s var(--ease); box-shadow: -20px 0 50px -20px rgba(0,0,0,.3);
  }
  .nav__links.is-open { transform: translateX(0); }
  .nav__links a { font-size: 18px; padding: 12px 0; width: 100%; }
  .nav__cta { margin-top: 12px; }
  .nav__toggle { display: flex; z-index: 101; }
  .grid--3 { grid-template-columns: 1fr; }
  .about__stats { grid-template-columns: 1fr 1fr; }
  .schedule__row--head { display: none; }
  .schedule__row { grid-template-columns: 1fr; gap: 6px; padding: 18px 20px; }
  .schedule__row span { display: flex; justify-content: space-between; }
  .schedule__row span::before { content: attr(data-th); font-weight: 700; color: var(--ink-soft); font-size: 13px; }
  .schedule__row span:first-child::before { content: "기수"; }
  .fab { display: inline-flex; align-items: center; gap: 6px; }
  .footer__meta { text-align: left; }
  html { scroll-padding-top: 64px; }
}
@media (max-width: 640px) {
  .gallery { grid-template-columns: 1fr; }
  .gallery__item--tall { grid-row: span 1; }
  .gallery__item { min-height: 220px; }
}
@media (max-width: 560px) {
  .grid--4 { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
  .about__stats { grid-template-columns: 1fr; }
  .btn--lg { font-size: 17px; padding: 16px 30px; }
}

/* ===== Reduced motion ===== */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
