/* ============================================================
   수업 안내 페이지 (programs) v1 — 크리에이티브 SVG 디자인
   ============================================================ */

.programs-page { font-size: 17px; line-height: 1.65; color: var(--c-text); }

/* === HERO === */
.pg-hero {
  position: relative;
  background:
    radial-gradient(circle at 80% 20%, rgba(212,160,23,.10) 0%, transparent 50%),
    radial-gradient(circle at 20% 80%, rgba(30,58,138,.08) 0%, transparent 50%),
    linear-gradient(135deg, #f8faff 0%, #fdfbf7 100%);
  padding: clamp(60px, 9vw, 120px) 0 clamp(80px, 11vw, 140px);
  overflow: hidden;
  border-bottom: 1px solid rgba(15,23,42,.06);
}
.pg-hero-grid {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: center;
}
.pg-hero-left .pg-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg, var(--c-navy), #3b5fc7);
  color: #fff;
  padding: 9px 20px;
  border-radius: 30px;
  font-weight: 800;
  font-size: 16px;
  letter-spacing: 0.04em;
  margin-bottom: 24px;
  box-shadow: 0 8px 22px rgba(30,58,138,.30);
}
.pg-hero-left h1 {
  font-size: clamp(34px, 4.6vw, 56px);
  font-weight: 800;
  color: var(--c-navy);
  line-height: 1.18;
  margin: 0 0 28px;
  letter-spacing: -0.02em;
}
.pg-hero-left h1 em {
  font-style: normal;
  color: var(--c-gold);
  position: relative;
  display: inline-block;
}
.pg-hero-left h1 em::after {
  content: ''; position: absolute;
  bottom: 6px; left: 0; right: 0;
  height: 12px;
  background: rgba(212,160,23,.20);
  z-index: -1;
}
.pg-hero-left .pg-lead {
  font-size: clamp(17px, 1.4vw, 19px);
  color: var(--c-text-soft);
  line-height: 1.7;
  margin-bottom: 32px;
}
.pg-hero-stats {
  display: flex; flex-wrap: wrap; gap: 14px;
}
.pg-hero-stat {
  flex: 1 1 0; min-width: 130px;
  background: #fff;
  border: 1px solid rgba(15,23,42,.08);
  border-radius: 14px;
  padding: 18px 16px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(15,23,42,.04);
}
.pg-hero-stat strong {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 30px;
  font-weight: 900;
  color: var(--c-gold);
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.pg-hero-stat span {
  display: block;
  font-size: 16px;
  color: var(--c-text-soft);
  margin-top: 4px;
  font-weight: 600;
}

.pg-hero-svg-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  max-width: 620px;
  margin: 0 auto;
  filter: drop-shadow(0 30px 40px rgba(15,23,42,.10));
}
.pg-hero-svg { width: 100%; height: 100%; display: block; overflow: visible; }

/* === 공통 섹션 헤드 === */
.pg-section { padding: clamp(70px, 9vw, 110px) 0; }
.pg-section-head {
  text-align: center; max-width: 720px; margin: 0 auto 56px;
}
.pg-section-head .eyebrow {
  display: inline-block;
  color: var(--c-gold);
  font-weight: 800;
  letter-spacing: 0.08em;
  font-size: 16px;
  margin-bottom: 14px;
  text-transform: uppercase;
}
.pg-section-head h2 {
  font-size: clamp(28px, 3.6vw, 42px);
  color: var(--c-navy);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
  line-height: 1.25;
}
.pg-section-head h2 em {
  font-style: normal;
  background: linear-gradient(120deg, var(--c-gold), #b8860b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.pg-section-head .sub { color: var(--c-text-soft); font-size: 17px; }

/* === 1. 수업 대상 (학년별) === */
.pg-target { background: #fff; }
.pg-target-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.pg-target-col {
  background: linear-gradient(180deg, #fdfbf7 0%, #fff 100%);
  border: 1px solid rgba(15,23,42,.07);
  border-radius: 22px;
  padding: 32px 32px 28px;
  position: relative;
  overflow: hidden;
  transition: all .3s ease;
}
.pg-target-col:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 50px rgba(15,23,42,.10);
}
.pg-target-col.col-middle { border-top: 4px solid #fbbf24; }
.pg-target-col.col-high { border-top: 4px solid #1e3a8a; }
.pg-target-icon {
  width: 80px; height: 80px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #fffaf0, #fef3c7);
  border-radius: 18px;
  margin-bottom: 18px;
}
.col-high .pg-target-icon { background: linear-gradient(135deg, #eff6ff, #dbeafe); }
.pg-target-col h3 {
  font-size: 24px;
  color: var(--c-navy);
  font-weight: 800;
  margin: 0 0 8px;
}
.pg-target-col .school-sub {
  color: var(--c-text-soft);
  font-size: 16px;
  margin: 0 0 22px;
}
.grade-row {
  display: flex; gap: 10px; flex-wrap: wrap;
}
.grade-pill {
  flex: 1; min-width: 80px;
  text-align: center;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid rgba(15,23,42,.10);
  border-radius: 12px;
  font-weight: 700;
  font-size: 16px;
  color: var(--c-navy);
  transition: all .2s;
}
.col-middle .grade-pill:hover { border-color: #fbbf24; background: #fffaf0; transform: translateY(-2px); }
.col-high .grade-pill:hover { border-color: #1e3a8a; background: #eff6ff; transform: translateY(-2px); }
.grade-pill strong {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 900;
  color: var(--c-gold);
  line-height: 1;
  margin-bottom: 2px;
}
.col-high .grade-pill strong { color: #1e3a8a; }

/* === 2. 5단계 상세 (지그재그) === */
.pg-stages {
  background: linear-gradient(180deg, #fdfbf7 0%, #ffffff 100%);
}
.stage-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
  margin-bottom: 60px;
}
.stage-row:last-child { margin-bottom: 0; }
.stage-row.reverse { direction: rtl; }
.stage-row.reverse > * { direction: ltr; }

.stage-illust {
  position: relative;
  aspect-ratio: 1.3 / 1;
  background: linear-gradient(135deg, var(--bg-1, #fef3c7) 0%, var(--bg-2, #fde68a) 100%);
  border-radius: 24px;
  padding: 30px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(15,23,42,.10);
}
.stage-illust svg { width: 100%; height: 100%; display: block; }

.stage-info .stage-num {
  display: inline-flex; align-items: center; gap: 12px;
  margin-bottom: 16px;
}
.stage-num-badge {
  width: 50px; height: 50px;
  background: var(--stage-color, #fbbf24);
  color: #fff;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(15,23,42,.15);
}
.stage-label {
  font-size: 16px;
  font-weight: 800;
  color: var(--stage-color, #fbbf24);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.stage-info h3 {
  font-size: clamp(26px, 2.8vw, 34px);
  color: var(--c-navy);
  font-weight: 800;
  margin: 0 0 14px;
  letter-spacing: -0.02em;
  line-height: 1.25;
}
.stage-info p {
  font-size: 17px;
  color: var(--c-text-soft);
  line-height: 1.75;
  margin: 0 0 20px;
}
.stage-tags {
  display: flex; flex-wrap: wrap; gap: 8px;
}
.stage-tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px;
  background: rgba(15,23,42,.05);
  border-radius: 20px;
  font-size: 16px;
  font-weight: 600;
  color: var(--c-navy);
}
.stage-tag::before {
  content: ''; width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--stage-color, #fbbf24);
}

/* 5단계 컬러 테마 */
.stage-row.s1 { --stage-color: #fbbf24; --bg-1: #fffbeb; --bg-2: #fde68a; }
.stage-row.s2 { --stage-color: #06b6d4; --bg-1: #ecfeff; --bg-2: #a5f3fc; }
.stage-row.s3 { --stage-color: #ec4899; --bg-1: #fdf2f8; --bg-2: #fbcfe8; }
.stage-row.s4 { --stage-color: #10b981; --bg-1: #ecfdf5; --bg-2: #a7f3d0; }
.stage-row.s5 { --stage-color: #a78bfa; --bg-1: #f5f3ff; --bg-2: #ddd6fe; }

/* === 3. 평소 vs 내신 비교 === */
.pg-compare {
  background: linear-gradient(135deg, #0a1230 0%, #1e3a8a 50%, #0f172a 100%);
  position: relative;
  overflow: hidden;
}
.pg-compare::before, .pg-compare::after {
  content: ''; position: absolute;
  border-radius: 50%; filter: blur(80px);
  pointer-events: none;
}
.pg-compare::before {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(96,165,250,.20) 0%, transparent 70%);
  top: -200px; left: -100px;
}
.pg-compare::after {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(251,191,36,.20) 0%, transparent 70%);
  bottom: -200px; right: -100px;
}
.pg-compare .pg-section-head h2,
.pg-compare .pg-section-head .sub { color: #fff; }
.pg-compare .pg-section-head h2 em {
  background: linear-gradient(120deg, #fbbf24, #fde047);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.pg-compare .pg-section-head .sub { color: rgba(255,255,255,.85); }

.compare-grid {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.compare-box {
  position: relative;
  background: rgba(255,255,255,.06);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 22px;
  padding: 36px 32px;
  transition: all .3s ease;
}
.compare-box.normal { border-top: 4px solid #60a5fa; }
.compare-box.exam   { border-top: 4px solid #fbbf24; }
.compare-box:hover { transform: translateY(-4px); background: rgba(255,255,255,.08); }

.compare-head {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 22px;
}
.compare-icon {
  width: 54px; height: 54px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
}
.compare-box.normal .compare-icon { background: linear-gradient(135deg, #3b82f6, #1e3a8a); }
.compare-box.exam .compare-icon { background: linear-gradient(135deg, #fbbf24, #d4a017); }
.compare-box h3 {
  font-size: 22px;
  color: #fff;
  font-weight: 800;
  margin: 0 0 4px;
}
.compare-box .compare-tag {
  font-size: 16px;
  font-weight: 700;
  color: var(--c-gold-soft, #fde68a);
  letter-spacing: 0.05em;
}
.compare-box.normal .compare-tag { color: #93c5fd; }
.compare-list {
  list-style: none; padding: 0; margin: 0;
}
.compare-list li {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 12px 0;
  border-top: 1px solid rgba(255,255,255,.10);
  color: rgba(255,255,255,.88);
  font-size: 16px;
  line-height: 1.55;
}
.compare-list li:first-child { border-top: none; }
.compare-list li .li-icon {
  flex: 0 0 24px;
  font-size: 16px;
}
.compare-box.normal .compare-list li .li-icon { color: #60a5fa; }
.compare-box.exam .compare-list li .li-icon { color: #fbbf24; }
.compare-list strong { color: #fbbf24; font-weight: 700; }
.compare-box.normal .compare-list strong { color: #93c5fd; }

/* === 4. 시간표 === */
.pg-schedule { background: #fff; }
.schedule-card {
  max-width: 900px; margin: 0 auto;
  background: linear-gradient(135deg, #fdfbf7 0%, #fff 100%);
  border: 1px solid rgba(212,160,23,.18);
  border-radius: 24px;
  padding: 0;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(15,23,42,.06);
}
.schedule-head {
  background: linear-gradient(135deg, var(--c-navy) 0%, #1e3a8a 100%);
  color: #fff;
  padding: 26px 32px;
  display: flex; align-items: center; gap: 16px;
}
.schedule-head .sh-icon { font-size: 32px; }
.schedule-head h3 { color: #fff; font-size: 22px; margin: 0; font-weight: 800; }
.schedule-head p { color: rgba(255,255,255,.78); margin: 4px 0 0; font-size: 16px; }
.schedule-body { padding: 32px 32px 24px; }
.schedule-row {
  display: grid;
  grid-template-columns: 130px 1fr auto;
  align-items: center;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px dashed rgba(15,23,42,.10);
}
.schedule-row:last-child { border-bottom: none; }
.schedule-day {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 800;
  color: var(--c-navy);
  letter-spacing: -0.01em;
}
.schedule-time {
  font-size: 17px;
  font-weight: 700;
  color: var(--c-gold);
  font-family: 'Playfair Display', serif;
  letter-spacing: 0.02em;
}
.schedule-note {
  font-size: 16px;
  color: var(--c-text-soft);
  padding: 5px 12px;
  background: rgba(212,160,23,.10);
  border-radius: 12px;
}
.schedule-row.holiday .schedule-day { color: #ef4444; }
.schedule-row.holiday .schedule-time { color: #94a3b8; font-style: italic; }
.schedule-foot {
  background: #fdfbf7;
  padding: 18px 32px;
  font-size: 16px;
  color: var(--c-text-soft);
  text-align: center;
  border-top: 1px solid rgba(212,160,23,.18);
}

/* === 5. FAQ 카드 === */
.pg-faq { background: linear-gradient(180deg, #fdfbf7 0%, #fff 100%); }
.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  max-width: 1080px;
  margin: 0 auto;
}
.faq-card {
  background: #fff;
  border: 1px solid rgba(15,23,42,.08);
  border-radius: 18px;
  padding: 26px 28px;
  transition: all .3s ease;
  position: relative;
}
.faq-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(15,23,42,.08);
  border-color: var(--c-gold);
}
.faq-q {
  display: flex; align-items: flex-start; gap: 12px;
  margin-bottom: 12px;
}
.faq-q-mark {
  flex: 0 0 32px;
  width: 32px; height: 32px;
  background: linear-gradient(135deg, var(--c-gold), #d4a017);
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Playfair Display', serif;
  font-size: 16px;
  font-weight: 900;
  flex-shrink: 0;
}
.faq-q h4 {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
  color: var(--c-navy);
  line-height: 1.4;
  padding-top: 4px;
}
.faq-a {
  margin-left: 44px;
  font-size: 16px;
  color: var(--c-text-soft);
  line-height: 1.7;
}
.faq-a strong { color: var(--c-navy); font-weight: 700; }

/* === 6. CTA (페이지 끝) === */
.pg-cta {
  background:
    linear-gradient(135deg, rgba(15,23,42,.82) 0%, rgba(30,58,138,.78) 60%, rgba(15,23,42,.88) 100%),
    url("/data/uploads/branding/cta-bg.jpg") center/cover no-repeat;
  color: #fff;
  padding: clamp(70px, 9vw, 110px) 0;
  text-align: center;
  position: relative;
}
.pg-cta-inner { position: relative; z-index: 1; }
.pg-cta h2 {
  font-size: clamp(28px, 3.6vw, 42px);
  color: #fff;
  font-weight: 800;
  margin: 0 0 18px;
  line-height: 1.3;
  text-shadow: 0 2px 20px rgba(0,0,0,.3);
}
.pg-cta h2 em {
  font-style: normal;
  background: linear-gradient(120deg, #fbbf24, #fde047);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.pg-cta .sub {
  color: rgba(255,255,255,.88);
  font-size: 18px;
  margin-bottom: 36px;
}
.pg-cta-btns {
  display: inline-flex; flex-wrap: wrap; gap: 16px; justify-content: center;
}
.pg-cta-btns .btn {
  font-size: clamp(18px, 1.8vw, 24px) !important;
  padding: 18px 38px !important;
  font-weight: 800 !important;
  border-radius: 50px !important;
  min-width: 280px;
  box-shadow: 0 10px 30px rgba(0,0,0,.3);
}
.pg-cta-btns .btn-primary {
  background: linear-gradient(135deg, #fbbf24, #d4a017);
  border-color: transparent;
  color: #0f172a;
}
.pg-cta-btns .btn-outline-light {
  border: 2.5px solid rgba(255,255,255,.8);
  background: rgba(255,255,255,.08);
  backdrop-filter: blur(6px);
}

/* === 반응형 === */
@media (max-width: 980px) {
  .pg-hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .pg-target-grid { grid-template-columns: 1fr; }
  .stage-row, .stage-row.reverse { grid-template-columns: 1fr; gap: 24px; direction: ltr; }
  .stage-row.reverse > * { direction: ltr; }
  .compare-grid { grid-template-columns: 1fr; }
  .faq-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .schedule-row { grid-template-columns: 1fr; gap: 6px; text-align: center; }
  .schedule-note { justify-self: center; }
  .pg-cta-btns .btn { min-width: 0; width: 100%; font-size: 18px !important; padding: 16px 24px !important; }
  .grade-row { flex-direction: column; }
}
