:root {
  --burgundy: #951e23;
  --burgundy-deep: #7a171c;
  --burgundy-mid: #a82d33;
  --burgundy-soft: #c3595d;
  --ink: #2a1718;
  --muted: rgba(42, 23, 24, 0.68);
  --bg: #f7f3f2;
  --paper: #ffffff;
  --line: #eadfe0;
  --white: #ffffff;
  --max: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Pretendard Variable", Pretendard, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  letter-spacing: -0.01em;
  line-height: 1.7;
}
body.is-checking { visibility: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }

.admin-bar,
.admin-bar[hidden] {
  display: none !important;
}
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 20px;
  background: #1a1212;
  color: rgba(255,255,255,.84);
  font-size: .82rem;
}
.admin-bar-actions { display: flex; gap: 8px; }
.admin-bar a, .admin-bar button {
  color: rgba(255,255,255,.9);
  background: transparent;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 8px;
  padding: 6px 10px;
  font: inherit;
  text-decoration: none;
  cursor: pointer;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 24px;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  min-width: 0;
}
.brand img {
  width: 150px;
  height: auto;
  display: block;
  background: transparent;
}
.brand span {
  font-size: .92rem;
  font-weight: 700;
  color: var(--burgundy);
  white-space: nowrap;
}
.nav { display: flex; gap: 18px; flex-wrap: wrap; justify-content: center; }
.nav a {
  text-decoration: none;
  font-size: .92rem;
  font-weight: 600;
  color: var(--ink);
}
.nav a:hover { color: var(--burgundy); }
.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--burgundy);
  color: var(--white);
  text-decoration: none;
  font-size: .88rem;
  font-weight: 800;
  white-space: nowrap;
}

.hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background: var(--burgundy);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 15% 20%, rgba(255,255,255,.12), transparent 45%),
    linear-gradient(145deg, var(--burgundy-mid), var(--burgundy) 45%, var(--burgundy-deep));
}
.hero-grid {
  position: relative;
  z-index: 1;
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
  padding: 72px 0 80px;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 28px;
  align-items: start;
}
.eyebrow {
  margin: 0 0 12px;
  color: var(--burgundy);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .16em;
}
.eyebrow.light { color: rgba(255,255,255,.78); }
.hero-copy h1 {
  margin: 0 0 16px;
  font-size: clamp(1.9rem, 4.5vw, 3.25rem);
  line-height: 1.22;
  letter-spacing: -0.03em;
  font-weight: 900;
}
.hero-lead {
  margin: 0 0 24px;
  color: rgba(255,255,255,.9);
  font-size: 1.05rem;
  line-height: 1.8;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 22px; }
.hero-badges {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.hero-badges li {
  font-size: .9rem;
  color: rgba(255,255,255,.82);
}
.hero-badges li::before {
  content: "· ";
  color: rgba(255,255,255,.55);
}

.hero-tracks {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 16px;
  padding: 20px;
  backdrop-filter: blur(6px);
}
.tracks-title {
  margin: 0 0 6px;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.tracks-sub {
  margin: 0 0 14px;
  color: rgba(255,255,255,.75);
  font-size: .9rem;
}
.track-card {
  display: grid;
  grid-template-columns: 52px 1fr;
  column-gap: 12px;
  row-gap: 4px;
  align-items: start;
  padding: 14px 0;
  border-top: 1px solid rgba(255,255,255,.12);
  text-decoration: none;
  color: var(--white);
}
.track-card:first-of-type { border-top: 0; }
.track-code {
  grid-column: 1;
  grid-row: 1 / span 3;
  margin-top: 2px;
  color: #ffd0d2;
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .06em;
  line-height: 1.2;
}
.track-card strong {
  grid-column: 2;
  font-size: .98rem;
  line-height: 1.35;
}
.track-card .track-desc {
  grid-column: 2;
  color: rgba(255,255,255,.72);
  font-size: .84rem;
  line-height: 1.5;
}
.track-card em {
  grid-column: 2;
  font-style: normal;
  color: #ffd0d2;
  font-size: .82rem;
  font-weight: 700;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  border: 0;
  text-decoration: none;
  font-size: .95rem;
  font-weight: 800;
  cursor: pointer;
  transition: transform .15s ease, opacity .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--burgundy); color: var(--white); }
.hero .btn-primary { background: var(--white); color: var(--burgundy); }
.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255,255,255,.45);
}
.btn-outline {
  background: transparent;
  color: var(--burgundy);
  border: 1px solid var(--burgundy);
}
.btn.full { width: 100%; }

.section {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
  padding: 96px 0;
}
.section.alt {
  width: 100%;
  max-width: none;
  padding: 96px 0;
  background: var(--bg);
}
.section.alt > .section-head,
.section.alt > .course-grid,
.section.alt > .filter-chips,
.section.alt > .article-grid,
.section.alt > .calendar,
.section.alt > .compare {
  width: min(var(--max), calc(100% - 48px));
  margin-left: auto;
  margin-right: auto;
}
.section-head {
  margin-bottom: 36px;
  max-width: 46rem;
  text-align: left;
}
/* alt 섹션에서도 합격성과처럼 왼쪽 정렬 (max-width로 가운데 몰리지 않게) */
.section.alt > .section-head {
  max-width: min(var(--max), calc(100% - 48px));
  text-align: left;
}
.section-head .lead { max-width: 40rem; }
.section h2 {
  margin: 0 0 14px;
  font-size: clamp(1.7rem, 3.5vw, 2.25rem);
  line-height: 1.25;
  letter-spacing: -0.03em;
  font-weight: 900;
}
.lead {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.8;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-bottom: 28px;
}
.feature-grid article,
.course-card,
.stat,
.article-card,
.campus-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 28px;
}
.feature-grid span {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--burgundy);
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .08em;
}
.feature-grid h3,
.course-card h3,
.article-card h3,
.campus-card h3 {
  margin: 0 0 10px;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}
.feature-grid p,
.course-card p,
.article-card p { margin: 0; color: var(--muted); font-size: .92rem; line-height: 1.7; }

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.steps > div {
  padding: 22px;
  border-radius: 14px;
  background: var(--bg);
  border: 1px solid var(--line);
}
.step-label {
  margin: 0 0 8px;
  color: var(--burgundy);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .08em;
}
.steps h3 { margin: 0 0 6px; font-size: 1.1rem; }
.steps p { margin: 0; color: var(--muted); font-size: .9rem; }

.course-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}
.course-tag {
  margin: 0 0 10px;
  color: var(--burgundy);
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .1em;
}
.course-range {
  margin: 0 0 10px !important;
  color: var(--ink) !important;
  font-weight: 700;
}
.course-goal {
  margin: 0 0 14px !important;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.course-card ul {
  margin: 0 0 16px;
  padding-left: 18px;
  color: var(--muted);
  font-size: .9rem;
}
.course-card li + li { margin-top: 6px; }
.course-output {
  margin: 0 !important;
  color: var(--burgundy) !important;
  font-weight: 700 !important;
  font-size: .9rem !important;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}
.stat { text-align: center; }
.stat strong {
  display: block;
  margin-bottom: 6px;
  color: var(--burgundy);
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: -0.03em;
}
.stat span { display: block; font-weight: 700; }
.stat small { color: var(--muted); }

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
}
table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
}
th, td {
  padding: 18px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  font-size: .92rem;
  vertical-align: top;
  line-height: 1.55;
}
th {
  background: var(--bg);
  font-weight: 800;
}
tr:last-child td { border-bottom: 0; }
.note {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: .86rem;
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}
.chip {
  display: inline-flex;
  align-items: center;
  height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--muted);
  font-size: .82rem;
  font-weight: 700;
  cursor: pointer;
  font: inherit;
}
button.chip {
  font-family: inherit;
  font-size: .82rem;
  font-weight: 700;
}
.chip.active,
.chip.is-active {
  background: var(--burgundy);
  border-color: var(--burgundy);
  color: var(--white);
}
.article-card[hidden] { display: none !important; }

/* TBP 스타일 텍스트 탭 — 모바일에서 과정/비교 전환 */
.panel-tabs {
  display: none;
  gap: 0;
  margin: 0 0 18px;
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.panel-tab {
  flex: 0 0 auto;
  appearance: none;
  border: 0;
  background: transparent;
  padding: 12px 14px;
  margin-bottom: -1px;
  color: #9a8a8b;
  font-size: .95rem;
  font-weight: 600;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.panel-tab.is-active {
  color: var(--ink);
  font-weight: 800;
  border-bottom-color: var(--ink);
}
.compare .panel-tabs {
  margin-top: 8px;
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 36px;
  margin-bottom: 40px;
}
.article-card {
  min-height: 100%;
}
.article-cat {
  margin: 0 0 8px;
  color: var(--burgundy);
  font-size: .78rem;
  font-weight: 800;
}
.article-date {
  display: inline-block;
  margin-top: 12px;
  color: var(--muted);
  font-size: .82rem;
}

.calendar {
  padding: 28px;
  border-radius: 14px;
  background: var(--paper);
  border: 1px solid var(--line);
}
.calendar h3 { margin: 0 0 14px; font-size: 1.15rem; }
.calendar ul { list-style: none; margin: 0; padding: 0; }
.calendar li {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}
.calendar li:first-of-type { border-top: 0; }
.calendar strong { color: var(--burgundy); }

.campus-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.campus-region {
  margin: 0 0 8px;
  color: var(--burgundy);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .1em;
}
.campus-addr { margin: 0 0 10px; color: var(--muted); }
.campus-tel {
  display: inline-block;
  margin-bottom: 16px;
  color: var(--burgundy);
  font-size: 1.2rem;
  font-weight: 900;
  text-decoration: none;
  letter-spacing: -0.02em;
}
.campus-actions { display: flex; gap: 8px; }

.consult {
  width: 100%;
  max-width: none;
  padding: 40px 0 96px;
}
.consult-wrap {
  width: min(920px, calc(100% - 48px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  gap: 28px;
  padding: 36px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background:
    linear-gradient(160deg, rgba(149, 30, 35, .05), rgba(149, 30, 35, .02)),
    #fff;
  color: var(--ink);
}
.consult-copy .eyebrow { color: var(--burgundy); }
.consult-copy h2 {
  margin: 0 0 12px;
  font-size: clamp(1.5rem, 2.8vw, 1.95rem);
  line-height: 1.28;
  letter-spacing: -0.03em;
  font-weight: 900;
  color: var(--ink);
}
.consult-copy p { margin: 0 0 10px; color: var(--muted); line-height: 1.75; }
.consult-note { color: rgba(42, 23, 24, .55) !important; font-size: .88rem; }
.consult-form {
  background: var(--bg);
  color: var(--ink);
  border-radius: 14px;
  border: 1px solid var(--line);
  padding: 28px;
}
.consult-form h3 { margin: 0 0 20px; font-size: 1.15rem; }
.consult-form label {
  display: block;
  margin-bottom: 18px;
  font-size: .84rem;
  font-weight: 700;
  color: var(--muted);
}
.consult-form input,
.consult-form select {
  display: block;
  width: 100%;
  height: 46px;
  margin-top: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfe;
  padding: 0 12px;
  font: inherit;
  color: var(--ink);
}
.consult-form .check {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-weight: 500;
}
.consult-form .check input {
  width: auto;
  height: auto;
  margin-top: 4px;
}
.consult-form .check a { color: var(--burgundy); }
.form-msg {
  margin: 10px 0 0;
  color: var(--burgundy);
  font-size: .86rem;
  font-weight: 700;
}

.site-footer {
  background: #fff;
  border-top: 1px solid var(--line);
  padding: 48px 24px 110px;
}
.footer-top {
  width: min(var(--max), 100%);
  margin: 0 auto 24px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 28px;
}
.site-footer img { width: 140px; height: auto; margin-bottom: 12px; }
.site-footer p { margin: 0 0 6px; color: var(--muted); font-size: .9rem; }
.footer-meta { font-size: .82rem !important; }
.footer-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.footer-links strong {
  display: block;
  margin-bottom: 10px;
  color: var(--ink);
}
.footer-links a {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  text-decoration: none;
  font-size: .9rem;
}
.footer-bottom {
  width: min(var(--max), 100%);
  margin: 0 auto;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: center;
  gap: 28px;
  color: var(--muted);
  font-size: .82rem;
}
.footer-copy {
  justify-self: start;
}
/* footer-links와 동일: 교육과정 | 바로가기 */
.footer-bottom-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-items: center;
  min-width: 0;
}
.footer-social {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-self: start; /* 교육과정 열 아래 */
}
.footer-legal {
  justify-self: end; /* 바로가기 열 안, 오른쪽=블로그 열 경계 */
  text-align: right;
  white-space: nowrap;
  max-width: 100%;
  overflow: hidden;
  min-width: 0;
}
/* 하위 호환: 예전 footer-bottom-end */
.footer-bottom-end {
  display: contents;
}
@media (max-width: 800px) {
  .footer-bottom {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .footer-bottom-links {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .footer-legal {
    justify-self: start;
    text-align: left;
  }
}
.footer-social a,
.footer-social .footer-social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid #e5e5e5;
  background: #fff;
  color: #333;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease;
  cursor: default;
}
.footer-social a {
  cursor: pointer;
}
.footer-social a:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, .12);
  color: #111;
}
.footer-social svg {
  width: 16px;
  height: 16px;
  display: block;
  pointer-events: none;
}

.mobile-dock {
  display: none;
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 50;
  grid-template-columns: 1fr 1.2fr;
  gap: 8px;
}
.mobile-dock a {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 800;
  background: var(--paper);
  color: var(--burgundy);
  border: 1px solid var(--line);
  box-shadow: 0 10px 24px rgba(42, 23, 24, .12);
}
.mobile-dock a.primary {
  background: var(--burgundy);
  color: var(--white);
  border-color: var(--burgundy);
}

/* Kakao 1:1 floating — PC: 원형+라벨 / 모바일: 1:1톡상담 이미지 */
.kakao-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 60;
  text-decoration: none;
  color: #191600;
  font-weight: 800;
  font-size: 0.92rem;
}
.kakao-float-desktop {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.22));
}
.kakao-float-mobile {
  display: none;
}
.kakao-float-icon {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #fee500;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 8px 20px rgba(254, 229, 0, 0.35);
}
.kakao-float-icon svg {
  width: 30px;
  height: 30px;
  display: block;
}
.kakao-float-label {
  display: none;
  padding: 8px 12px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  white-space: nowrap;
}
.kakao-float:hover .kakao-float-icon {
  transform: translateY(-2px) scale(1.04);
}
@media (min-width: 1001px) {
  .kakao-float-label {
    display: inline-block;
  }
}
@media (max-width: 1000px) {
  .kakao-float {
    right: 10px;
    bottom: 76px;
    background: transparent;
  }
  .kakao-float-desktop {
    display: none;
  }
  .kakao-float-mobile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    background: transparent;
    filter: none;
  }
  .kakao-mobile-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: #fae100;
    display: grid;
    place-items: center;
    box-shadow: 0 6px 16px rgba(42, 23, 24, 0.14);
  }
  .kakao-mobile-icon svg {
    width: 26px;
    height: 22px;
    display: block;
  }
  .kakao-mobile-text {
    font-size: 0.72rem;
    font-weight: 800;
    color: #1a1a1a;
    line-height: 1;
    letter-spacing: -0.02em;
  }
}

.hero-mark {
  position: absolute;
  right: -4%;
  top: 8%;
  width: min(520px, 48vw);
  opacity: .08;
  pointer-events: none;
  z-index: 0;
  animation: logoFloat 8s ease-in-out infinite;
}
.hero-copy h1,
.section h2,
.quote-band p,
.blog-strip h2 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 700;
}

.trust-strip {
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.trust-track {
  display: flex;
  gap: 28px;
  width: max-content;
  padding: 14px 0;
  animation: marquee 28s linear infinite;
  color: var(--burgundy);
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.trust-track span::after {
  content: "•";
  margin-left: 28px;
  color: rgba(149, 30, 35, .35);
}

.section-head.split {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 24px;
  align-items: end;
  max-width: none;
}
.mosaic {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  grid-template-rows: 220px 180px;
  gap: 14px;
}
.mosaic-item {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid var(--line);
}
.mosaic-item.large { grid-row: 1 / span 2; }
.mosaic-item.wide { grid-column: 2 / span 2; }
.mosaic-fill {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  transition: transform .5s ease;
}
.mosaic-item:hover .mosaic-fill { transform: scale(1.04); }
.mosaic-a {
  background:
    linear-gradient(160deg, rgba(26,18,18,.02), rgba(26,18,18,.38)),
    url("/assets/photos/lab-experiment.png") center / cover no-repeat;
}
.mosaic-b {
  background:
    linear-gradient(160deg, rgba(26,18,18,.02), rgba(26,18,18,.42)),
    url("/assets/photos/coding-research.png") center / cover no-repeat;
}
.mosaic-c {
  background:
    linear-gradient(160deg, rgba(26,18,18,.02), rgba(26,18,18,.42)),
    url("/assets/photos/student-presentation.png") center / cover no-repeat;
}
.mosaic-d {
  background:
    linear-gradient(90deg, rgba(26,18,18,.25), rgba(26,18,18,.05)),
    url("/assets/photos/project-mentoring.png") center / cover no-repeat;
}
.mosaic-item figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 18px;
  color: #fff;
  background: linear-gradient(transparent, rgba(0,0,0,.55));
}
.mosaic-item strong { display: block; font-size: 1.05rem; margin-bottom: 4px; }
.mosaic-item span { font-size: .86rem; opacity: .86; }

.quote-band {
  padding: 72px 24px;
  background:
    radial-gradient(ellipse at center, rgba(149,30,35,.08), transparent 60%),
    var(--bg);
  text-align: center;
}
.quote-band blockquote { margin: 0 auto; max-width: 820px; }
.quote-band p {
  margin: 0 0 16px;
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  line-height: 1.35;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.quote-band cite {
  color: var(--burgundy);
  font-style: normal;
  font-weight: 800;
  font-size: .9rem;
  letter-spacing: .04em;
}

.compare {
  margin: 56px auto 0;
  max-width: none;
  width: 100%;
}
.compare h3 {
  margin: 0 0 18px;
  font-size: 1.2rem;
  text-align: left;
}
.compare-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.compare-grid article {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 16px;
}
.compare-label {
  margin: 0 0 12px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--burgundy);
  color: var(--burgundy);
  font-size: .92rem;
  font-weight: 900;
  letter-spacing: -0.02em;
}
.compare-grid dl {
  margin: 0;
  display: grid;
  gap: 10px;
}
.compare-grid dl > div {
  display: grid;
  gap: 2px;
}
.compare-grid dt {
  color: rgba(42, 23, 24, .5);
  font-size: .75rem;
  font-weight: 700;
}
.compare-grid dd {
  margin: 0;
  color: var(--ink);
  font-size: .92rem;
  font-weight: 700;
  line-height: 1.45;
}
.compare-note {
  margin: 18px 0 0;
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(149, 30, 35, .06);
  color: var(--burgundy-deep);
  font-size: .88rem;
  font-weight: 700;
  text-align: left;
}

.blog-strip {
  padding: 56px 24px 64px;
}
.blog-inner {
  width: min(720px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 28px;
  padding: 36px 32px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: #fff;
}
.blog-inner h2 {
  margin: 10px 0 12px;
  font-size: clamp(1.25rem, 2.4vw, 1.55rem);
  line-height: 1.3;
  letter-spacing: -0.03em;
}
.blog-inner p {
  margin: 0 0 18px;
  color: var(--muted);
  max-width: none;
  font-size: .92rem;
  line-height: 1.7;
}
.blog-inner img {
  width: 96px;
  height: auto;
  flex: 0 0 auto;
}

.campus-visual {
  position: relative;
  height: 210px;
  margin: -28px -28px 18px;
  border-radius: 14px 14px 0 0;
  display: grid;
  place-content: center;
  text-align: center;
  color: #fff;
  gap: 6px;
  overflow: hidden;
  background-position: center;
  background-size: cover;
}
.campus-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(30, 8, 10, .65));
}
.campus-visual span {
  position: relative;
  z-index: 1;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .16em;
  opacity: .8;
}
.campus-visual strong {
  position: relative;
  z-index: 1;
  font-size: .95rem;
}
.campus-visual.songdo {
  background:
    url("/assets/photos/songdo-campus.png") center / cover no-repeat;
}
.campus-visual.daechi {
  background:
    url("/assets/photos/daechi-campus.png") center / cover no-repeat;
}
.campus-points {
  margin: 0 0 16px;
  padding-left: 18px;
  color: var(--muted);
  font-size: .9rem;
}
.campus-points li + li { margin-top: 4px; }

.faq-list {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
  display: grid;
  gap: 16px;
}
.faq-list details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 6px 22px;
}
.faq-list summary {
  cursor: pointer;
  list-style: none;
  padding: 20px 0;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.45;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  float: right;
  color: var(--burgundy);
  font-weight: 700;
}
.faq-list details[open] summary::after { content: "–"; }
.faq-list details p {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: .95rem;
  line-height: 1.75;
}

#faq.section.alt {
  padding-bottom: 48px;
}

.feature-grid article,
.course-card,
.article-card,
.campus-card,
.stat {
  transition: transform .2s ease, box-shadow .2s ease;
}
.feature-grid article:hover,
.course-card:hover,
.article-card:hover,
.campus-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 34px rgba(122, 23, 28, .08);
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@keyframes logoFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* —— Persuasion subpages —— */
.page-hero {
  position: relative;
  min-height: clamp(420px, 58vh, 560px);
  display: grid;
  align-items: end;
  color: #fff;
  overflow: hidden;
}
.page-hero-media {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  transform: scale(1.02);
  animation: heroKen 18s ease-in-out infinite alternate;
}
.page-hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(26, 10, 12, .82) 0%, rgba(26, 10, 12, .55) 48%, rgba(26, 10, 12, .28) 100%),
    linear-gradient(0deg, rgba(26, 10, 12, .55), transparent 55%);
}
.page-hero-curriculum .page-hero-media {
  background-image: url("/assets/photos/classroom-mentoring.png");
}
.page-hero-results .page-hero-media {
  background-image: url("/assets/photos/student-presentation.png");
}
.page-hero-admissions .page-hero-media {
  background-image: url("/assets/photos/admissions-seminar.png");
}
.page-hero-faq .page-hero-media {
  background-image: url("/assets/photos/project-mentoring.png");
}
.page-hero-copy {
  position: relative;
  z-index: 1;
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
  padding: 72px 0 56px;
}
.page-hero h1 {
  margin: 10px 0 16px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2rem, 4.6vw, 3.15rem);
  line-height: 1.18;
  letter-spacing: -0.03em;
  font-weight: 700;
}
.page-hero .lead.light,
.eyebrow.light { color: rgba(255,255,255,.9); }
.page-hero .lead.light {
  max-width: 640px;
  font-size: 1.02rem;
  line-height: 1.75;
}
.page-hero .lead.light a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.page-hero .lead.light strong { color: #fff; font-weight: 800; }
.page-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
.btn-ghost-light {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.45);
  color: #fff;
  text-decoration: none;
  font-size: .9rem;
  font-weight: 700;
  background: rgba(255,255,255,.08);
}
.btn-ghost-light:hover { background: rgba(255,255,255,.16); }

.trust-proof {
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.trust-proof-grid {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
}
.trust-proof-grid article {
  padding: 22px 18px;
  border-right: 1px solid var(--line);
}
.trust-proof-grid article:last-child { border-right: 0; }
.trust-proof-grid strong {
  display: block;
  color: var(--burgundy);
  font-size: .98rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}
.trust-proof-grid span {
  color: var(--muted);
  font-size: .86rem;
  line-height: 1.55;
}

.side-photo {
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 16px 40px rgba(122, 23, 28, .08);
}
.side-photo img {
  width: 100%;
  height: 280px;
  object-fit: cover;
}
.side-photo figcaption {
  padding: 12px 16px 14px;
  font-size: .86rem;
  color: var(--muted);
  font-weight: 600;
}

.reason-grid {
  width: min(var(--max), calc(100% - 48px));
  margin: 36px auto 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.reason-grid article {
  padding: 24px 22px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fff;
}
.reason-grid h3 {
  margin: 0 0 10px;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}
.reason-grid p {
  margin: 0;
  color: var(--muted);
  font-size: .93rem;
  line-height: 1.7;
}

.track-detail {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto 28px;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 28px;
  align-items: center;
  padding: 28px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: #fff;
}
.track-detail.reverse { grid-template-columns: .85fr 1.15fr; }
.track-detail.reverse .track-detail-copy { order: 2; }
.track-detail.reverse .track-detail-photo { order: 1; }
.track-detail-copy .course-tag { margin-bottom: 8px; }
.track-detail-copy h3 {
  margin: 0 0 8px;
  font-size: clamp(1.25rem, 2.2vw, 1.55rem);
  letter-spacing: -0.03em;
  line-height: 1.35;
}
.track-detail-copy > p {
  color: var(--muted);
  font-size: .95rem;
  line-height: 1.75;
}
.track-detail-photo {
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  min-height: 280px;
}
.track-detail-photo img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
}
.text-link {
  display: inline-block;
  margin-top: 8px;
  color: var(--burgundy);
  font-weight: 800;
  text-decoration: none;
  font-size: .92rem;
}
.text-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.article-card .text-link { margin-top: 12px; }

.enroll-cta {
  padding: 56px 24px 72px;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(255,255,255,.12), transparent 50%),
    linear-gradient(135deg, var(--burgundy-mid), var(--burgundy) 40%, var(--burgundy-deep));
  color: #fff;
}
.enroll-cta-inner {
  width: min(var(--max), 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr auto;
  gap: 28px;
  align-items: center;
}
.enroll-cta h2 {
  margin: 8px 0 12px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  line-height: 1.25;
  letter-spacing: -0.03em;
}
.enroll-cta p {
  margin: 0;
  max-width: 560px;
  color: rgba(255,255,255,.88);
  font-size: .98rem;
  line-height: 1.7;
}
.enroll-cta-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: min(280px, 100%);
}
.enroll-cta .btn-primary {
  background: #fff;
  color: var(--burgundy);
}
.enroll-cta .btn-primary:hover { background: #f7f3f2; }

@keyframes heroKen {
  from { transform: scale(1.02) translateY(0); }
  to { transform: scale(1.08) translateY(-1.5%); }
}

@media (max-width: 1000px) {
  .hero-grid,
  .feature-grid,
  .steps,
  .course-grid,
  .stat-grid,
  .article-grid,
  .campus-grid,
  .consult-wrap,
  .footer-top,
  .section-head.split,
  .mosaic,
  .blog-inner,
  .trust-proof-grid,
  .reason-grid,
  .track-detail,
  .track-detail.reverse,
  .enroll-cta-inner { grid-template-columns: 1fr; }
  .mosaic {
    grid-template-columns: 1fr;
    grid-template-rows: none;
  }
  .mosaic-item.large,
  .mosaic-item.wide { grid-column: auto; grid-row: auto; min-height: 180px; }
  .blog-inner { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .compare-grid { grid-template-columns: 1fr; }
  .nav, .header-cta, .brand span { display: none; }
  .mobile-dock { display: grid; }
  .section, .section.alt { padding: 56px 0; }

  /* 모바일: 과정/비교 탭 — 같은 프레임에서 전환 */
  .panel-tabs[data-tabs="courses"],
  .panel-tabs[data-tabs="compare"] {
    display: flex;
  }
  [data-panels="courses"] > [data-panel]:not(.is-active),
  [data-panels="compare"] > [data-panel]:not(.is-active) {
    display: none !important;
  }
  [data-panels="courses"],
  [data-panels="compare"] {
    grid-template-columns: 1fr;
  }
  .consult-wrap { padding: 28px 20px; }
  .hero-mark { opacity: .05; width: 70vw; right: -18%; }
  .trust-proof-grid article {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .trust-proof-grid article:last-child { border-bottom: 0; }
  .track-detail.reverse .track-detail-copy,
  .track-detail.reverse .track-detail-photo { order: initial; }
  .page-hero-copy { padding: 56px 0 40px; }
  .side-photo img { height: 220px; }
  .board-layout { grid-template-columns: 1fr; padding-top: 28px; }
  .board-sidebar { position: static; }
  .board-main-head { flex-direction: column; align-items: stretch; }
  .board-search { width: 100%; }
  .board-search input { flex: 1; }
  .board-table .num,
  .board-table .author { display: none; }
  .board-table { min-width: 0; }
  .consult-photo { max-width: none; }
}

.page-hero-about .page-hero-media {
  background-image: url("/assets/photos/lab-experiment.png");
}
.page-hero-consult .page-hero-media {
  background-image: url("/assets/photos/project-mentoring.png");
}

.consult-bullets {
  margin: 16px 0 18px;
  padding-left: 18px;
  color: var(--muted);
  font-size: .95rem;
  line-height: 1.75;
}
.consult-bullets li + li { margin-top: 6px; }
.consult-photo {
  margin: 22px 0 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  max-width: 420px;
}
.consult-photo img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.consult-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  font: inherit;
  resize: vertical;
  min-height: 88px;
}

/* Board (CTI-style) */
.board-hero {
  position: relative;
  padding: 72px 24px 56px;
  color: #fff;
  background:
    linear-gradient(120deg, rgba(26,10,12,.88), rgba(122,23,28,.72)),
    url("/assets/photos/coding-research.png") center / cover no-repeat;
  text-align: center;
}
.board-hero-compact { padding: 48px 24px 36px; }
.board-hero-inner { width: min(720px, 100%); margin: 0 auto; }
.board-hero h1 {
  margin: 0 0 10px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  letter-spacing: -0.03em;
}
.board-hero-sub {
  margin: 0 0 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,.92);
}
.board-hero p { margin: 0; color: rgba(255,255,255,.82); line-height: 1.7; }

.board-layout {
  width: min(1100px, calc(100% - 48px));
  margin: 0 auto;
  padding: 40px 0 72px;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}
.board-sidebar {
  position: sticky;
  top: 88px;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}
.board-sidebar-title {
  padding: 16px 18px;
  background: var(--burgundy);
  color: #fff;
  font-weight: 900;
  font-size: .98rem;
  letter-spacing: -0.02em;
}
.board-sidebar ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.board-sidebar a {
  display: block;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: var(--ink);
  font-size: .92rem;
  font-weight: 700;
}
.board-sidebar a:hover { background: var(--bg); color: var(--burgundy); }
.board-sidebar a.active {
  background: var(--burgundy-deep);
  color: #fff;
}
.board-sidebar-cta {
  display: block;
  margin: 14px;
  text-align: center;
  padding: 12px;
  border-radius: 10px;
  background: rgba(149, 30, 35, .08);
  color: var(--burgundy) !important;
  font-weight: 800 !important;
  border-bottom: 0 !important;
  text-decoration: none;
}

.board-main {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px 22px 28px;
}
.board-main-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-end;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.board-main h2 {
  margin: 0;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}
.board-count {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: .86rem;
  font-weight: 700;
}
.board-cat-desc {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: .9rem;
}
.board-search {
  display: flex;
  gap: 8px;
}
.board-search input {
  height: 40px;
  min-width: 180px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  font: inherit;
}
.board-search button {
  height: 40px;
  padding: 0 16px;
  border: 0;
  border-radius: 8px;
  background: var(--burgundy);
  color: #fff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}
.board-table-wrap { overflow-x: auto; }
.board-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 560px;
}
.board-table th,
.board-table td {
  padding: 14px 12px;
  border-bottom: 1px solid var(--line);
  font-size: .9rem;
  text-align: left;
}
.board-table th {
  background: var(--bg);
  font-weight: 800;
}
.board-table .num { width: 64px; color: var(--muted); }
.board-table .date { width: 110px; color: var(--muted); white-space: nowrap; }
.board-table .author { width: 100px; color: var(--muted); }
.board-table .title a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
}
.board-table .title a:hover { color: var(--burgundy); }

.board-post h2 {
  margin: 8px 0 12px;
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  letter-spacing: -0.03em;
  line-height: 1.35;
}
.board-post-cat {
  margin: 0;
  color: var(--burgundy);
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}
.board-post-meta {
  display: flex;
  gap: 16px;
  padding-bottom: 16px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: .88rem;
  font-weight: 600;
}
.board-post-body {
  color: var(--ink);
  font-size: .98rem;
  line-height: 1.85;
  min-height: 120px;
}
.board-post-body p { margin: 0 0 14px; }
.board-post-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

/* Consult — Google map (Daechi HQ) */
.map-section {
  padding-top: 24px;
}
.map-layout {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.95fr 1.15fr;
  gap: 28px;
  align-items: stretch;
}
.map-copy h2 {
  margin: 8px 0 14px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.55rem, 3vw, 2.1rem);
  line-height: 1.25;
  letter-spacing: -0.03em;
}
.map-lead {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: .98rem;
  line-height: 1.75;
  max-width: 36em;
}
.map-facts {
  margin: 0 0 22px;
  display: grid;
  gap: 14px;
}
.map-facts > div {
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
}
.map-facts dt {
  margin: 0 0 4px;
  color: var(--burgundy);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}
.map-facts dd {
  margin: 0;
  font-size: .95rem;
  font-weight: 700;
  line-height: 1.55;
  color: var(--ink);
}
.map-facts a {
  color: var(--burgundy);
  text-decoration: none;
}
.map-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.map-frame-wrap {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 16px 40px rgba(122, 23, 28, .08);
  display: flex;
  flex-direction: column;
  min-height: 360px;
}
.map-frame {
  border: 0;
  width: 100%;
  flex: 1;
  min-height: 320px;
}
.map-caption {
  margin: 0;
  padding: 12px 16px;
  border-top: 1px solid var(--line);
  font-size: .86rem;
  font-weight: 700;
  color: var(--muted);
  background: var(--bg);
}

@media (max-width: 1000px) {
  .map-layout { grid-template-columns: 1fr; }
  .map-frame { min-height: 280px; }
}
