/* =========================================================
   Palette — ivory · deep navy · muted gold (static / refined)
   ========================================================= */
:root {
  --ivory: #f8f5ef;
  --paper: #fffdf9;
  --navy: #14213a;
  --navy-2: #1d2d4b;
  --ink: #23262d;
  --muted: #6d6a64;
  --line: #e4ddd0;
  --gold: #b0915a;
  --gold-soft: #d8c49b;
  --serif: "Noto Serif KR", "Nanum Myeongjo", serif;
  --latin: "Cormorant Garamond", "Noto Serif KR", serif;
  --sans: "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
}
ul, ol { list-style: none; }
strong { font-weight: 600; }

.container { max-width: 1040px; margin: 0 auto; padding: 0 28px; }

/* ===== Hero ===== */
.hero {
  background: var(--navy);
  background-image:
    radial-gradient(ellipse at 50% 0%, rgba(176,145,90,.14), transparent 60%),
    linear-gradient(180deg, var(--navy) 0%, #0f1a2e 100%);
  color: #f3eee4;
  text-align: center;
  padding: 120px 24px 110px;
  position: relative;
}
.hero::after {
  content: "";
  position: absolute; inset: 18px;
  border: 1px solid rgba(216,196,155,.28);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; }
.back-home {
  position: absolute;
  top: 42px; left: 46px;
  z-index: 2;
  font-size: .85rem;
  letter-spacing: .08em;
  color: var(--gold-soft);
  text-decoration: none;
  border-bottom: 1px solid rgba(216,196,155,.4);
  padding-bottom: 2px;
  transition: color .2s, border-color .2s;
}
.back-home:hover { color: #fff; border-color: #fff; }
@media (max-width: 600px) {
  .back-home { top: 26px; left: 28px; font-size: .8rem; }
}
.eyebrow {
  font-family: var(--latin);
  font-size: .95rem;
  letter-spacing: .32em;
  color: var(--gold-soft);
  margin-bottom: 22px;
}
.hero-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.9rem, 4.6vw, 3rem);
  line-height: 1.38;
  letter-spacing: -.01em;
}
.nowrap { display: inline-block; white-space: nowrap; }
.hero-note {
  margin-top: 18px;
  font-size: .92rem;
  color: #cfc8ba;
}
.hero-note strong { color: var(--gold-soft); font-weight: 600; }
.apply-highlight { color: var(--gold-soft); font-weight: 600; }
.hero-weeks {
  display: inline-block;
  white-space: nowrap;
  color: var(--gold-soft);
  margin-left: .4em;
}
.hero-rule {
  display: block;
  width: 56px; height: 1px;
  background: var(--gold);
  margin: 30px auto;
}
.hero-period {
  font-family: var(--serif);
  font-size: 1.05rem;
  color: #d9d3c6;
  letter-spacing: .02em;
  /* 블록으로 두어 버튼이 옆이 아닌 아래에 오도록 하고, 3칸 그리드로 두 줄의 위치를 맞춤 */
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  column-gap: 14px;
  row-gap: 10px;
  width: fit-content;
  margin: 0 auto 40px;
  text-align: left;
}
.hero-period li { display: contents; line-height: 1.6; }
.hero-period .hero-term { margin-right: 0; justify-self: start; }
.hero-period .hero-weeks { margin-left: 0; }
@media (max-width: 600px) {
  .hero-period { grid-template-columns: auto; row-gap: 4px; text-align: center; }
  .hero-period li { display: block; }
  .hero-period li + li { margin-top: 14px; }
  .hero-period .hero-term { display: table; margin: 0 auto 6px; }
  .hero-period .hero-weeks { margin-left: .4em; }
}
.hero-term {
  display: inline-block;
  font-size: .82rem;
  letter-spacing: .08em;
  color: var(--gold-soft);
  border: 1px solid rgba(216,196,155,.45);
  padding: 1px 10px;
  margin-right: 12px;
  vertical-align: 2px;
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 500;
  letter-spacing: .08em;
  text-decoration: none;
  transition: background-color .25s, color .25s, border-color .25s;
}
.btn-outline {
  padding: 13px 34px;
  border: 1px solid var(--gold-soft);
  color: var(--gold-soft);
  font-size: .92rem;
}
.btn-outline:hover { background: var(--gold-soft); color: var(--navy); }
.btn-gold {
  padding: 17px 64px;
  background: var(--gold);
  color: #fff;
  font-size: 1.02rem;
  border: 1px solid var(--gold);
}
.btn-gold:hover { background: transparent; color: var(--gold-soft); border-color: var(--gold-soft); }

/* ===== Sections ===== */
.section { padding: 100px 0; }
.section-tint { background: var(--ivory); }
.section-head { text-align: center; margin-bottom: 56px; }
.section-no {
  display: block;
  font-family: var(--latin);
  font-size: 1.15rem;
  color: var(--gold);
  letter-spacing: .2em;
  margin-bottom: 8px;
}
.section-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.5rem, 3vw, 1.95rem);
  color: var(--navy);
  letter-spacing: -.01em;
}
.section-sub {
  margin-top: 12px;
  color: var(--muted);
  font-size: .95rem;
}

/* ===== Overview ===== */
.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--navy);
}
.info-item {
  display: grid;
  grid-template-columns: 110px 1fr;
  align-items: baseline;
  padding: 26px 8px;
  border-bottom: 1px solid var(--line);
}
.info-wide { grid-column: 1 / -1; }
.info-item dt {
  font-family: var(--serif);
  font-weight: 600;
  color: var(--gold);
  letter-spacing: .1em;
}
.info-item dd { font-size: 1.02rem; color: var(--ink); }
.terms li { margin-bottom: 6px; }
.terms li:last-child { margin-bottom: 0; }
.terms strong { color: var(--navy); }
.compose li { display: flex; gap: 10px; margin-bottom: 6px; }
.compose-same {
  margin-top: 14px;
  font-size: .97rem;
  color: var(--navy);
  font-weight: 500;
}
.compose-same a {
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px solid var(--gold-soft);
}
.compose-same a:hover { color: var(--navy); border-color: var(--navy); }
.compose .mark { color: var(--gold); font-family: var(--serif); }
.compose-detail {
  display: block;
  margin-top: 4px;
  font-size: .95rem;
  color: var(--muted);
}
.compose-detail::before { content: "- "; color: var(--gold); }
.compose-detail.is-note { font-size: .88rem; }
.compose-detail.is-note::before { content: "※ "; }
.lecture-grid.lecture-single { grid-template-columns: 1fr; max-width: 680px; margin: 0 auto; }
.conditions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  margin-top: 10px;
}
.conditions li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--ivory);
  border: 1px solid var(--line);
  font-size: .93rem;
}
.conditions b {
  font-family: var(--latin);
  font-weight: 600;
  color: var(--gold);
}
.lecture-notes { margin-top: 18px; }
.lecture-notes li {
  position: relative;
  padding-left: 14px;
  font-size: .93rem;
  color: var(--muted);
  line-height: 1.7;
}
.lecture-notes li::before { content: "-"; position: absolute; left: 0; color: var(--gold); }
.compose-note {
  margin-top: 14px;
  padding: 12px 16px;
  background: var(--ivory);
  border-left: 2px solid var(--gold);
  font-size: .94rem;
  color: var(--muted);
}

/* ===== Feature (통찰반) ===== */
.feature {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px 40px;
  align-items: center;
  background: var(--navy);
  color: #f1ece2;
  padding: 44px 52px;
  margin-bottom: 72px;
  position: relative;
}
.feature::before {
  content: "";
  position: absolute; inset: 10px;
  border: 1px solid rgba(216,196,155,.25);
  pointer-events: none;
}
.badge {
  display: inline-block;
  font-size: .78rem;
  letter-spacing: .14em;
  color: var(--gold-soft);
  border: 1px solid rgba(216,196,155,.55);
  padding: 3px 12px;
  margin-bottom: 12px;
}
.feature h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.6rem;
}
.feature-time { display: flex; align-items: center; gap: 28px; }
.slot { text-align: center; }
.slot-tag {
  display: block;
  font-size: .8rem;
  letter-spacing: .2em;
  color: var(--gold-soft);
  margin-bottom: 4px;
}
.slot-time {
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 500;
}
.slot-divider { width: 1px; height: 44px; background: rgba(216,196,155,.4); }
.feature-note {
  grid-column: 1 / -1;
  padding-top: 18px;
  border-top: 1px solid rgba(216,196,155,.25);
  font-size: .92rem;
  color: #c9c2b4;
}

/* ===== 사유반 표 ===== */
.sub-head { display: flex; align-items: center; gap: 20px; margin-bottom: 22px; }
.sub-head h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.3rem;
  color: var(--navy);
  white-space: nowrap;
}
.sub-line { flex: 1; height: 1px; background: var(--line); }

.table-card { background: var(--paper); border: 1px solid var(--line); }
.tt { width: 100%; border-collapse: collapse; text-align: center; }
.tt thead th {
  background: var(--navy);
  color: #efe9dd;
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: .14em;
  padding: 16px 12px;
  font-size: .95rem;
}
.tt tbody th, .tt tbody td {
  padding: 17px 12px;
  border-bottom: 1px solid var(--line);
  font-size: 1.02rem;
}
.tt tbody tr:last-child th, .tt tbody tr:last-child td { border-bottom: 0; }
.tt tbody th {
  font-family: var(--serif);
  font-weight: 600;
  color: var(--navy);
  width: 34%;
  border-right: 1px solid var(--line);
}
.tt tbody td { color: var(--ink); font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.tt tbody tr:nth-child(even) { background: #fbf8f2; }

/* ===== 단기 등급 약속반 ===== */
.promise {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 40px;
  align-items: center;
  margin-top: 72px;
  padding: 44px 48px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 3px solid var(--gold);
}
.badge-gold {
  color: var(--gold);
  border-color: var(--gold-soft);
}
.promise h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.6rem;
  color: var(--navy);
  margin-bottom: 12px;
}
.promise-table { border: 1px solid var(--line); }
.tt-compact tbody th, .tt-compact tbody td { padding: 14px 10px; }

/* ===== Notice ===== */
.notice {
  margin-top: 40px;
  padding: 26px 30px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 2px solid var(--gold);
}
.notice-row { display: flex; gap: 16px; }
.notice-row + .notice-row {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px dashed var(--line);
}
.notice-mark { color: var(--gold); font-size: 1.1rem; line-height: 1.75; }
.notice p { font-size: .98rem; }

/* ===== 특강 ===== */
.lecture-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.lecture {
  border: 1px solid var(--line);
  background: var(--paper);
  display: flex;
  flex-direction: column;
}
.lecture-top { padding: 38px 36px 30px; border-bottom: 1px solid var(--line); }
.lecture-no {
  font-family: var(--serif);
  color: var(--gold);
  font-size: .9rem;
  letter-spacing: .12em;
}
.lecture-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.35rem;
  color: var(--navy);
  margin: 8px 0 22px;
  line-height: 1.45;
}
.lecture-title:has(+ .lecture-topics) { margin-bottom: 6px; }
.lecture-topics {
  color: var(--gold);
  font-family: var(--serif);
  font-size: .95rem;
  letter-spacing: .06em;
  margin-bottom: 18px;
}
.lecture-meta li {
  display: flex;
  justify-content: space-between;
  padding: 9px 0;
  border-bottom: 1px dashed var(--line);
  font-size: .97rem;
}
.lecture-meta li:last-child { border-bottom: 0; }
.lecture-meta span { color: var(--muted); letter-spacing: .08em; }
.lecture-times { padding: 26px 36px 36px; background: #fbf8f2; flex: 1; }
.times-label {
  font-size: .8rem;
  letter-spacing: .2em;
  color: var(--muted);
  margin-bottom: 14px;
}
.chips { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.chips-3 { grid-template-columns: repeat(3, 1fr); }
.chips li {
  background: var(--paper);
  border: 1px solid var(--line);
  text-align: center;
  padding: 10px 2px 9px;
  font-size: .9rem;
  line-height: 1.35;
  font-variant-numeric: tabular-nums;
}
.chips b {
  display: block;
  font-family: var(--latin);
  font-weight: 600;
  color: var(--gold);
  font-size: .95rem;
}

/* ===== Apply ===== */
.apply {
  background: var(--navy);
  background-image: linear-gradient(180deg, var(--navy-2) 0%, var(--navy) 100%);
  color: #f1ece2;
  text-align: center;
  padding: 100px 0 110px;
}
.apply-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.6rem, 3.4vw, 2.1rem);
}
.apply-desc { color: #c9c2b4; margin-bottom: 40px; }
.apply-notice { margin-top: 18px; color: var(--gold-soft); font-size: .92rem; }

/* ===== 기타 공지 사항 ===== */
.board {
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 2px solid var(--navy);
}
.board li {
  display: flex;
  gap: 22px;
  align-items: baseline;
  padding: 20px 32px;
  border-bottom: 1px solid var(--line);
}
.board li:last-child { border-bottom: 0; }
.board-no {
  flex-shrink: 0;
  width: 28px;
  font-family: var(--latin);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--gold);
  letter-spacing: .04em;
}
.board p { font-size: .99rem; line-height: 1.8; }
.board strong { color: var(--navy); }
.board-sub {
  display: block;
  margin-top: 4px;
  font-size: .9rem;
  color: var(--muted);
}
.board-sub::before { content: "· "; color: var(--gold); }

.contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 28px;
}
.contact-item {
  background: var(--navy);
  color: #efe9dd;
  padding: 26px 30px;
  text-align: center;
}
.contact-item:last-child { background: var(--paper); color: var(--ink); border: 1px solid var(--line); }
.contact-label {
  display: block;
  font-size: .82rem;
  letter-spacing: .16em;
  color: var(--gold-soft);
  margin-bottom: 4px;
}
.contact-item:last-child .contact-label { color: var(--gold); }
.contact-tel {
  display: block;
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: .04em;
  font-variant-numeric: tabular-nums;
}
.contact-item:last-child .contact-tel { color: var(--navy); }
a.contact-tel { color: inherit; text-decoration: none; }
a.contact-tel:hover { color: var(--gold-soft); }
.contact-item:last-child a.contact-tel:hover { color: var(--gold); }
.board-tel {
  color: var(--navy);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid var(--gold-soft);
  white-space: nowrap;
}
.board-tel:hover { color: var(--gold); }
.contact-desc { display: block; margin-top: 4px; font-size: .86rem; color: #c9c2b4; }

/* ===== 학원 교습비 신고 정보 ===== */
.tuition-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  padding-top: 16px;
}
.tuition-card {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 52px 40px 38px;
  text-align: center;
}
.tuition-ribbon {
  position: absolute;
  top: -15px; left: 50%;
  transform: translateX(-50%);
  background: var(--navy);
  color: #efe9dd;
  font-family: var(--serif);
  font-size: .88rem;
  letter-spacing: .08em;
  padding: 5px 22px;
  white-space: nowrap;
  border-bottom: 2px solid var(--gold);
}
.tuition-name {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--navy);
  line-height: 1.45;
}
.tuition-name span {
  display: block;
  font-size: .78rem;
  font-weight: 500;
  color: var(--gold);
  letter-spacing: .18em;
  margin-bottom: 4px;
}
.tuition-course { margin-top: 6px; color: var(--muted); font-size: .93rem; }
.tuition-label {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 26px 0 10px;
  font-family: var(--serif);
  font-size: .9rem;
  color: var(--gold);
  letter-spacing: .14em;
}
.tuition-label::before, .tuition-label::after {
  content: ""; flex: 1; height: 1px; background: var(--line);
}
.fee-list { text-align: left; }
.fee-list div {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 9px 2px;
}
.fee-list dt { font-size: .97rem; color: var(--ink); }
.fee-list dd {
  margin-left: auto;
  font-family: var(--serif);
  font-weight: 600;
  color: var(--navy);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.fee-list div { border-bottom: 1px dashed var(--line); }
.fee-list div:last-child { border-bottom: 0; }
.fee-list .fee-gap { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 16px; }
.tuition-date {
  text-align: center;
  margin-top: 32px;
  font-size: .88rem;
  color: var(--muted);
  letter-spacing: .06em;
}

.footer {
  background: #0d1627;
  color: #7f8798;
  text-align: center;
  font-size: .82rem;
  padding: 26px 20px;
  letter-spacing: .05em;
}

/* ===== Responsive ===== */
@media (max-width: 860px) {
  .lecture-grid { grid-template-columns: 1fr; }
  .feature { grid-template-columns: 1fr; padding: 40px 34px; }
  .promise { grid-template-columns: 1fr; gap: 26px; padding: 40px 34px; }
  .tuition-grid { grid-template-columns: 1fr; gap: 44px; }
  .contact { grid-template-columns: 1fr; gap: 14px; }
}

@media (max-width: 600px) {
  .container { padding: 0 20px; }
  .hero { padding: 92px 20px 84px; }
  .hero::after { inset: 10px; }
  .section { padding: 72px 0; }
  .section-head { margin-bottom: 40px; }

  .info-grid { grid-template-columns: 1fr; }
  .info-item { grid-template-columns: 1fr; gap: 6px; padding: 20px 4px; }

  .feature { padding: 34px 26px; margin-bottom: 56px; }
  .feature h3 { font-size: 1.35rem; }
  .feature-time { justify-content: space-around; gap: 16px; }
  .slot-time { font-size: 1.25rem; }

  .tt tbody th, .tt tbody td { padding: 14px 8px; font-size: .95rem; }
  .tt thead th { padding: 13px 8px; }

  .notice { padding: 22px 20px; }
  .promise { padding: 32px 22px; margin-top: 56px; }
  .promise h3 { font-size: 1.35rem; }

  .lecture-top { padding: 30px 24px 24px; }
  .lecture-times { padding: 22px 24px 28px; }
  .chips { gap: 6px; }
  .chips li { font-size: .85rem; padding: 8px 0; }

  .btn-gold { display: block; padding: 17px 20px; }
}

@media (max-width: 360px) {
  .chips-4 { grid-template-columns: repeat(2, 1fr); }
}
