/* 프로그램 소개(/info) — landing.css 의 토큰·헤더·푸터 위에 얹는다. 색은 티일 계열 + CTA 테라코타만. */
.info-hero { padding-block: 64px 72px; background: linear-gradient(180deg, #f3f8f6 0%, #fff 100%); border-bottom: 1px solid var(--line); }
.info-hero-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 56px; align-items: center; }
.info-hero h1 { font-size: clamp(2.2rem, 4vw, 3.4rem); font-weight: 700; line-height: 1.28; text-wrap: balance; }
.info-hero h1 em { font-style: normal; color: var(--teal-700); }
.info-hero-copy > p { margin-top: 22px; max-width: 30em; color: var(--muted); font-size: 1.0625rem; }
.info-hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; margin-top: 30px; }
.info-hero-actions .text-link { border-bottom: 1px solid var(--line); }
.info-video { margin: 0; scroll-margin-top: 100px; }
.info-video video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: 8px; background: var(--teal-950); box-shadow: 0 24px 60px -30px rgba(8, 45, 40, .55); }
.info-video figcaption { margin-top: 10px; color: var(--muted); font-size: .8125rem; }

.info-head { max-width: 40em; margin-bottom: 32px; }
.info-head h2 { font-size: clamp(1.65rem, 2.6vw, 2.1rem); line-height: 1.42; }
.info-head > p { margin-top: 12px; color: var(--muted); }

/* 분야 필터 — 스크롤해도 위에 붙어 있다 */
.info-programs { background: #f6faf8; border-bottom: 1px solid var(--line); }
.prog-filter { position: sticky; top: 78px; z-index: 10; display: flex; flex-wrap: wrap; gap: 8px; overflow-x: auto; margin: 0 -4px 36px; padding: 12px 4px; background: #f6faf8; scrollbar-width: none; }
.prog-filter::-webkit-scrollbar { display: none; }
.pf-btn { flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 6px 16px; border: 1px solid #cfe0da; border-radius: 999px; background: white; font-size: .8125rem; font-weight: 500; color: var(--teal-900); cursor: pointer; white-space: nowrap; }
.pf-btn span { color: var(--muted); font-size: .75rem; }
.pf-btn:hover { border-color: var(--teal-700); }
.pf-btn[aria-pressed='true'] { background: var(--teal-900); border-color: var(--teal-900); color: white; }
.pf-btn[aria-pressed='true'] span { color: #b9d6cf; }
.pf-btn:focus-visible { outline: 3px solid var(--teal-500); outline-offset: 2px; }

.part { padding-block: 4px 32px; scroll-margin-top: 150px; }
.part[hidden] { display: none; }
.part + .part { border-top: 1px solid var(--line); padding-top: 28px; }
.part-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 16px; }
.part-no { color: var(--teal-700); font-size: .8125rem; font-weight: 600; letter-spacing: .05em; }
.part-head h3 { font-size: 1.25rem; }
.part-count { min-width: 24px; padding: 0 8px; border-radius: 999px; background: var(--teal-100); color: var(--teal-900); font-size: .75rem; font-weight: 600; text-align: center; }

.prog-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.pc { display: flex; flex-direction: column; overflow: hidden; background: white; border: 1px solid var(--line); border-radius: 8px; transition: transform .2s, box-shadow .2s; }
.pc:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -26px rgba(8, 45, 40, .45); }
.pc-plain { border-top: 4px solid var(--teal-500); }
.pc-plain .pc-body { flex: 1; padding: 18px 18px 20px; gap: 10px; }
.pc-plain .pc-body strong { font-size: 1.0625rem; }
.pc-body { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px 22px; }
.pc-job { margin-top: auto; }
.pc-job { align-self: flex-start; padding: 2px 10px; border-radius: 999px; background: var(--teal-100); color: var(--teal-900); font-size: .75rem; font-weight: 500; }
.pc-body strong { font-size: 1.0625rem; font-weight: 600; color: var(--ink); line-height: 1.45; }
.pc-act { color: var(--muted); font-size: .875rem; line-height: 1.6; }

.flow-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; counter-reset: flow; }
.flow-list li { position: relative; padding: 26px 24px 28px; border-top: 3px solid var(--teal-100); }
.flow-list li:first-child { border-top-color: var(--teal-500); }
.flow-list li::before { counter-increment: flow; content: '0' counter(flow); position: absolute; top: -14px; left: 24px; padding: 0 8px; background: white; color: var(--teal-700); font-size: .75rem; font-weight: 600; letter-spacing: .05em; }
.flow-list b { display: block; font-size: 2.5rem; line-height: 1.1; font-weight: 700; color: var(--teal-700); letter-spacing: -.04em; }
.flow-list b small { font-size: 1rem; margin-left: 4px; font-weight: 500; }
.flow-list span { display: block; margin-top: 12px; font-weight: 500; }
.flow-list em { display: block; font-style: normal; font-size: .8125rem; color: var(--muted); font-weight: 400; }
.guide-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin: 28px 0 0; border: 1px solid var(--line); border-radius: 8px; background: #f6faf8; }
.guide-facts div { padding: 18px 22px; }
.guide-facts div + div { border-left: 1px solid var(--line); }
.guide-facts dt { font-size: .75rem; color: var(--muted); }
.guide-facts dd { margin: 4px 0 0; font-weight: 600; color: var(--teal-900); }

.info-contact { padding-block: 72px; background: var(--teal-950); color: white; }
.info-contact .eyebrow { color: #7fd8ca; }
.info-contact h2 { font-size: clamp(1.9rem, 3.4vw, 2.75rem); font-weight: 700; }
.contact-need { margin-top: 20px; color: #cfe3de; font-size: .9375rem; }
.contact-need b { color: white; font-weight: 500; }
.contact-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 30px; }
.contact-link { display: inline-flex; align-items: center; min-height: 44px; color: white; border-bottom: 1px solid rgba(255, 255, 255, .4); font-weight: 500; }
.contact-link:hover { border-bottom-color: white; }
.contact-who { margin-top: 18px; color: #b9d6cf; font-size: .8125rem; }

@media (prefers-reduced-motion: reduce) { .pc, .pc:hover { transition: none; transform: none; } }
@media (max-width: 960px) {
  .info-hero-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .prog-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .flow-list, .guide-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flow-list { row-gap: 24px; }
  .guide-facts div:nth-child(3) { border-left: 0; }
  .guide-facts div:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 720px) {
  .info-hero { padding-block: 28px 36px; }
  .info-hero h1 { font-size: 2rem; }
  .info-hero h1 br { display: none; }
  .info-hero-copy > p { margin-top: 12px; font-size: 1rem; }
  .info-hero-actions { margin-top: 20px; }
  .section.info-programs, .section.info-guide { padding-block: 44px; }
  .info-head { margin-bottom: 16px; }
  .prog-filter { top: 68px; flex-wrap: nowrap; margin: 0 calc(50% - 50vw) 20px; padding: 10px calc(50vw - 50%); }
  .pf-btn { min-height: 36px; padding: 4px 14px; }
  .part { padding-bottom: 24px; scroll-margin-top: 130px; }
  .part + .part { padding-top: 20px; }
  .part-head { margin-bottom: 12px; }
  .part-head h3 { font-size: 1.0625rem; }
  .prog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .pc-plain { border-top-width: 3px; }
  .pc-plain .pc-body { padding: 14px 14px 16px; gap: 8px; }
  .pc-plain .pc-body strong { font-size: .9375rem; line-height: 1.4; }
  .pc-job { font-size: .6875rem; padding: 1px 8px; }
  .pc:hover { transform: none; box-shadow: none; }
  .flow-list li { padding: 20px 8px 4px 0; }
  .flow-list li::before { left: 0; padding-left: 0; }
  .flow-list b { font-size: 1.875rem; }
  .flow-list span { margin-top: 6px; font-size: .9375rem; }
  .guide-facts div { padding: 14px 16px; }
  .info-contact { padding-block: 48px; }
  .info-contact h2 { font-size: 1.625rem; }
  .contact-need { margin-top: 12px; }
  .contact-actions { margin-top: 22px; }
}

/* 수업 카드 → 홍보영상 팝업 */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.pc-video { border-top: 0; }
.pc-open { display: flex; flex-direction: column; width: 100%; height: 100%; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.pc-open:focus-visible { outline: 3px solid var(--teal-500); outline-offset: 2px; border-radius: 8px; }
.pc-thumb { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--teal-950); }
.pc-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.pc-play { position: absolute; left: 50%; top: 50%; width: 48px; height: 48px; margin: -24px 0 0 -24px; border-radius: 50%; background: rgba(8, 45, 40, .78); box-shadow: 0 6px 18px -6px rgba(0, 0, 0, .5); }
.pc-play::after { content: ''; position: absolute; left: 19px; top: 15px; border-style: solid; border-width: 9px 0 9px 15px; border-color: transparent transparent transparent white; }
.pc-video .pc-body { flex: 1; padding: 14px 16px 16px; gap: 8px; border-top: 3px solid var(--teal-500); }
.pc-video .pc-body strong { font-size: 1rem; }
.pc-open:hover .pc-thumb img { transform: scale(1.04); }
.pc-open:hover .pc-play { background: var(--terracotta); }
.vp { width: min(960px, calc(100% - 32px)); max-height: calc(100% - 32px); padding: 0; border: 0; border-radius: 10px; background: var(--teal-950); color: white; overflow: hidden; }
.vp::backdrop { background: rgba(8, 20, 18, .78); }
.vp-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 10px 10px 18px; }
.vp-head h3 { font-size: 1rem; font-weight: 600; }
.vp-close { flex: none; width: 44px; height: 44px; border: 0; border-radius: 6px; background: rgba(255, 255, 255, .1); color: white; font-size: 1.5rem; line-height: 1; cursor: pointer; }
.vp-close:hover, .vp-close:focus-visible { background: rgba(255, 255, 255, .22); outline: none; }
.vp-video { display: block; width: 100%; aspect-ratio: 16 / 9; background: black; }
@media (prefers-reduced-motion: reduce) { .pc-thumb img, .pc-open:hover .pc-thumb img { transition: none; transform: none; } }
@media (max-width: 720px) {
  .pc-play { width: 38px; height: 38px; margin: -19px 0 0 -19px; }
  .pc-play::after { left: 15px; top: 12px; border-width: 7px 0 7px 12px; }
  .pc-video .pc-body { padding: 10px 12px 12px; gap: 6px; }
  .pc-video .pc-body strong { font-size: .875rem; line-height: 1.4; }
  .vp { width: calc(100% - 16px); }
}
.prog-note { margin: -16px 0 4px; color: var(--muted); font-size: .875rem; }

/* 수업 결과물 갤러리 (사진이 없으면 section 이 hidden) */
.info-gallery[hidden] { display: none; }
.gallery-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.gi-open { display: block; width: 100%; padding: 0; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: white; color: inherit; font: inherit; text-align: left; cursor: zoom-in; }
.gi-open:focus-visible { outline: 3px solid var(--teal-500); outline-offset: 2px; }
.gi-open img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; transition: transform .3s; }
.gi-open:hover img { transform: scale(1.04); }
.gi-cap { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px 14px; border-top: 3px solid var(--teal-500); }
.gi-cap strong { font-size: .9375rem; font-weight: 600; }
.gi-cap span { color: var(--muted); font-size: .8125rem; }
.lb { width: min(1000px, calc(100% - 32px)); max-height: calc(100% - 32px); padding: 0; border: 0; border-radius: 10px; background: var(--teal-950); color: white; overflow: hidden; }
.lb::backdrop { background: rgba(8, 20, 18, .82); }
.lb-img { display: block; width: 100%; max-height: calc(100vh - 140px); object-fit: contain; background: black; }
@media (prefers-reduced-motion: reduce) { .gi-open img, .gi-open:hover img { transition: none; transform: none; } }
@media (max-width: 960px) { .gallery-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 720px) {
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .gi-cap { padding: 10px 12px 12px; }
  .gi-cap strong { font-size: .875rem; }
  .lb { width: calc(100% - 16px); }
}
