/* =====================================================================
 *  program.css — 상세(교육 프로그램) · 강사/기관 무료지원 페이지 공용 스타일
 *  키오런 블루 브랜드 · 원형 카테고리 메뉴 · 세그먼트 UI · 커리큘럼/후기
 * =================================================================== */
*{ box-sizing:border-box; }
:root{
  --primary:#6AAEFF; --strong:#5B94F5; --deep:#3d6fd6;
  --grad:linear-gradient(135deg,#A8C8FF 0%,#7AABFF 30%,#5B94F5 60%,#7EC8FF 100%);
  --ink:#161b22; --body:#33415c; --muted:#5b6779; --line:#e6eef9; --line2:#eef3fb; --bg:#f6f9ff;
  --amber:#ffb020;
}
html{ scroll-behavior:smooth; }
body{ margin:0; background:#fff; color:var(--body);
  font-family:"Pretendard","Apple SD Gothic Neo","Malgun Gothic",system-ui,sans-serif;
  font-size:17px; line-height:1.72; word-break:keep-all; overflow-wrap:break-word; -webkit-font-smoothing:antialiased; }
a{ color:var(--strong); text-decoration:none; }
h1,h2,h3,h4{ text-wrap:balance; }
p{ text-wrap:pretty; }
.wrap{ max-width:1080px; margin:0 auto; padding:0 22px; }

/* SVG 아이콘 공통 */
.ic{ width:1em; height:1em; display:inline-block; vertical-align:-.15em; fill:none; stroke:currentColor;
  stroke-width:1.9; stroke-linecap:round; stroke-linejoin:round; }

/* ── 헤더 ── */
.site-h{ background:rgba(255,255,255,.92); backdrop-filter:saturate(180%) blur(9px);
  border-bottom:1px solid var(--line); position:sticky; top:0; z-index:40; }
.site-h .in{ max-width:1080px; margin:0 auto; padding:13px 22px; display:flex; align-items:center; gap:14px; }
.site-h .logo{ font-size:22px; font-weight:900; letter-spacing:-.5px; color:var(--ink); display:flex; align-items:center; gap:8px; line-height:1.05; }
.site-h .logo small{ display:block; font-size:11px; font-weight:700; color:var(--muted); letter-spacing:0; }
.site-h .logo .dot{ width:11px; height:11px; border-radius:50%; background:var(--strong); flex:0 0 auto; }
.site-h nav{ margin-left:auto; display:flex; align-items:center; gap:20px; }
.site-h nav a{ color:#48536b; font-weight:700; font-size:15px; }
.site-h nav a:hover{ color:var(--strong); }
.site-h .cta-s{ background:var(--grad); color:#fff !important; padding:9px 17px; border-radius:10px; font-weight:800; font-size:14px; box-shadow:0 6px 14px rgba(91,148,245,.32); }
.site-h .hb{ display:none; margin-left:auto; border:0; background:#eef4ff; color:var(--strong); width:44px; height:44px; border-radius:11px; cursor:pointer; }
.site-h .hb .ic{ width:24px; height:24px; }
@media (max-width:760px){
  .site-h nav{ display:none; position:absolute; top:100%; left:0; right:0; flex-direction:column; align-items:stretch; gap:0;
    background:#fff; padding:6px 22px 14px; box-shadow:0 12px 24px rgba(0,0,0,.1); border-bottom:1px solid var(--line); }
  .site-h.open nav{ display:flex; }
  .site-h nav a{ padding:14px 2px; border-top:1px solid var(--line2); font-size:16px; }
  .site-h nav a.cta-s{ margin-top:10px; text-align:center; border:0; }
  .site-h .hb{ display:inline-flex; align-items:center; justify-content:center; }
}

/* ── 세그먼트 UI (대메뉴) — sticky · 컴팩트(70%) ── */
.segment{ position:sticky; top:0; z-index:40; background:rgba(255,255,255,.94); backdrop-filter:saturate(180%) blur(8px);
  border-bottom:1px solid var(--line); padding:11px 0; }
.seg-track{ max-width:470px; margin:0 auto; background:#fff; border:1.5px solid var(--line);
  border-radius:999px; padding:4px; display:flex; gap:3px; box-shadow:0 3px 10px rgba(40,70,130,.06); }
.seg-track a{ flex:1; text-align:center; padding:9px 8px; border-radius:999px; font-weight:800; font-size:13px; line-height:1;
  color:var(--muted); transition:.15s; display:inline-flex; align-items:center; justify-content:center; gap:6px; }
.seg-track a .ic{ width:15px; height:15px; }
.seg-track a:hover{ color:var(--strong); }
.seg-track a.on{ background:var(--grad); color:#fff; box-shadow:0 5px 13px rgba(91,148,245,.32); }
@media (max-width:560px){ .seg-track a{ font-size:11.5px; padding:8px 5px; } .seg-track a .ic{ display:none; } }

/* ── 원형 카테고리 메뉴 (알록달록 · 플랫 · sticky: 세그먼트 아래 고정) ── */
.catmenu{ position:sticky; top:66px; z-index:39; background:#fff; border-bottom:1px solid var(--line); padding:15px 0; }
.catmenu .cat-scroll{ display:flex; gap:12px; justify-content:center; flex-wrap:wrap; }
.cat{ display:flex; flex-direction:column; align-items:center; gap:10px; width:104px; padding:6px 2px;
  color:var(--body); transition:.14s; }
.cat:hover{ transform:translateY(-4px); }
/* 영역만 확보, 배경·보더 없음 */
.cat .cc{ width:60px; height:60px; display:flex; align-items:center; justify-content:center; color:var(--strong); transition:.15s; }
.cat .cc .ic{ width:44px; height:44px; stroke-width:1.8; }
.cat:hover .cc{ transform:scale(1.08); }
.cat span{ font-size:14px; font-weight:800; text-align:center; line-height:1.25; }
.cat.on span{ color:var(--deep); }
.cat.c1 .cc{ color:#3b82f6; } .cat.c2 .cc{ color:#8b5cf6; } .cat.c3 .cc{ color:#ec4899; }
.cat.c4 .cc{ color:#10b981; } .cat.c5 .cc{ color:#f59e0b; } .cat.c6 .cc{ color:#ef4444; }
.cat.on .cc{ transform:scale(1.06); }
@media (max-width:760px){
  .catmenu .cat-scroll{ flex-wrap:nowrap; overflow-x:auto; justify-content:flex-start; padding:2px 4px 8px;
    scrollbar-width:none; -webkit-overflow-scrolling:touch; }
  .catmenu .cat-scroll::-webkit-scrollbar{ display:none; }
  .cat{ width:84px; flex:0 0 auto; }
  .cat .cc{ width:54px; height:54px; }
  .cat .cc .ic{ width:40px; height:40px; }
  .cat span{ font-size:12.5px; }
}
/* 상단 고정(stuck) 시 : 캡션 없음 · 아이콘+라벨 가로 컴팩트 칩 */
.catmenu.stuck{ padding:7px 0; box-shadow:0 4px 12px rgba(40,70,130,.06); }
.catmenu.stuck .cat-scroll{ gap:6px; flex-wrap:wrap; }
.catmenu.stuck .cat{ flex-direction:row; align-items:center; gap:6px; width:auto; padding:6px 12px; border-radius:999px; }
.catmenu.stuck .cat:hover{ transform:none; background:#f2f6ff; }
.catmenu.stuck .cat .cc{ width:22px; height:22px; }
.catmenu.stuck .cat .cc .ic{ width:20px; height:20px; }
.catmenu.stuck .cat:hover .cc, .catmenu.stuck .cat.on .cc{ transform:none; }
.catmenu.stuck .cat span{ font-size:13px; }
@media (max-width:760px){
  .catmenu.stuck .cat-scroll{ flex-wrap:nowrap; overflow-x:auto; justify-content:flex-start; }
  .catmenu.stuck .cat{ flex:0 0 auto; padding:5px 10px; }
  .catmenu.stuck .cat span{ font-size:12.5px; }
}

/* ── 상세 히어로 (좌 텍스트 / 우 비주얼) ── */
.p-hero{ background:linear-gradient(165deg,#f4f9ff,#e9f2ff); padding:40px 0 46px; }
.p-hero .grid{ display:grid; grid-template-columns:1.05fr .95fr; gap:34px; align-items:center; }
.p-hero .eyebrow{ display:inline-block; font-size:13px; font-weight:800; letter-spacing:.4px; color:var(--deep);
  background:#e2edff; padding:6px 13px; border-radius:999px; }
.p-hero h1{ font-size:38px; font-weight:900; line-height:1.28; letter-spacing:-.6px; color:var(--ink); margin:16px 0 12px; }
.p-hero .sub{ font-size:18px; color:var(--muted); line-height:1.65; margin:0 0 22px; }
.goal{ background:#fff; border:1.5px solid #d9e7ff; border-left:5px solid var(--strong); border-radius:14px; padding:18px 20px; box-shadow:0 6px 18px rgba(40,70,130,.06); }
.goal .gt{ font-size:13px; font-weight:900; color:var(--strong); letter-spacing:.3px; margin:0 0 6px; }
.goal p{ margin:0; font-size:16px; color:#2b384f; }
/* 히어로 비주얼 : 배경·보더 없이 큰 컬러 아이콘 + 태그만 (영역만 확보) */
.p-hero .visual{ position:relative; min-height:250px; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:22px; }
.p-hero .visual .big{ width:160px; height:160px; color:var(--strong); stroke-width:1.4; }
.p-hero .visual.v1 .big{ color:#3b82f6; } .p-hero .visual.v2 .big{ color:#8b5cf6; } .p-hero .visual.v3 .big{ color:#ec4899; }
.p-hero .visual.v4 .big{ color:#10b981; } .p-hero .visual.v5 .big{ color:#f59e0b; } .p-hero .visual.v6 .big{ color:#ef4444; }
.p-hero .visual .tags{ display:flex; gap:8px; flex-wrap:wrap; justify-content:center; }
.p-hero .visual .tags span{ background:#eaf1ff; color:var(--deep); font-weight:800; font-size:13.5px; padding:7px 14px; border-radius:999px; }
@media (max-width:820px){ .p-hero .grid{ grid-template-columns:1fr; gap:22px; } .p-hero h1{ font-size:30px; } .p-hero .visual{ min-height:auto; order:-1; } .p-hero .visual .big{ width:110px; height:110px; } }

/* ── 섹션 공통 ── */
.sec{ padding:56px 0; }
.sec.alt{ background:var(--bg); }
.sec .st{ text-align:center; margin:0 0 6px; }
.sec .st .kick{ display:block; font-size:14px; font-weight:800; color:var(--strong); margin-bottom:8px; }
.sec .st h2{ font-size:29px; font-weight:900; letter-spacing:-.5px; color:var(--ink); margin:0; line-height:1.3; }
.sec .st h2 b{ color:var(--strong); }
.sec .sd{ text-align:center; color:var(--muted); font-size:16px; margin:8px 0 34px; }

/* 추천 대상 체크리스트 */
.reco{ max-width:760px; margin:0 auto; display:flex; flex-direction:column; gap:12px; }
.reco .item{ display:flex; align-items:center; gap:14px; background:#fff; border:1.5px solid var(--line);
  border-radius:14px; padding:17px 20px; font-size:17px; font-weight:600; color:#2b384f; box-shadow:0 3px 10px rgba(40,70,130,.04); }
/* 체크 아이콘 : 배경 없이 컬러 아이콘만 */
.reco .item .chk{ flex:0 0 auto; width:28px; height:28px; color:#10b981; display:flex; align-items:center; justify-content:center; }
.reco .item .chk .ic{ width:26px; height:26px; stroke-width:2.6; }

/* 커리큘럼 6차시 카드 */
.cur-note{ text-align:center; color:var(--muted); font-size:14.5px; margin:4px 0 30px; }
.cur-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:16px; }
/* 커리큘럼 카드 : 컬러 아이콘(배경 없음) + 차시 텍스트 배지 */
.cur-card{ background:#fff; border:1.5px solid var(--line); border-radius:16px; padding:20px 18px 18px; box-shadow:0 5px 16px rgba(40,70,130,.05); transition:.14s; }
.cur-card:hover{ transform:translateY(-4px); box-shadow:0 12px 26px rgba(40,70,130,.1); }
.cur-card .top{ display:flex; align-items:center; justify-content:space-between; margin-bottom:14px; }
.cur-card .top .icn{ color:var(--strong); display:flex; }
.cur-card .top .icn .ic{ width:40px; height:40px; }
.cur-card .no{ font-size:12px; font-weight:900; color:var(--strong); background:#eef5ff; padding:5px 12px; border-radius:999px; }
.cur-card h4{ margin:0; font-size:16.5px; font-weight:800; color:var(--ink); line-height:1.35; }
@media (max-width:760px){ .cur-grid{ grid-template-columns:1fr 1fr; gap:12px; } }
@media (max-width:460px){ .cur-grid{ grid-template-columns:1fr; } }

/* 커리큘럼 표 */
.ctable{ overflow-x:auto; border:1.5px solid var(--line); border-radius:16px; background:#fff; }
.ctable table{ width:100%; border-collapse:collapse; font-size:15.5px; min-width:560px; }
.ctable th,.ctable td{ padding:14px 16px; text-align:left; vertical-align:top; border-bottom:1px solid var(--line2); }
.ctable thead th{ background:#eef5ff; color:var(--deep); font-weight:900; font-size:14px; }
.ctable tbody td:first-child{ width:56px; text-align:center; font-weight:900; color:var(--strong); }
.ctable tbody td:nth-child(2){ width:34%; font-weight:800; color:var(--ink); }
.ctable tbody tr:last-child td{ border-bottom:0; }
.ctable ul{ margin:0; padding-left:18px; } .ctable li{ margin:3px 0; }
.cur-foot{ text-align:center; color:var(--muted); font-size:13.5px; margin-top:16px; }

/* 키오런 방식 배너 (디바이스 목업) */
.showcase{ display:grid; grid-template-columns:1fr 1fr; gap:34px; align-items:center; }
.showcase .txt h3{ font-size:24px; font-weight:900; color:var(--ink); margin:0 0 12px; letter-spacing:-.4px; }
.showcase .txt p{ margin:0 0 16px; font-size:16.5px; color:var(--muted); }
.showcase .flist{ display:flex; flex-direction:column; gap:11px; }
.showcase .flist .f{ display:flex; gap:12px; align-items:flex-start; }
.showcase .flist .f .fi{ flex:0 0 auto; width:32px; height:32px; color:var(--strong); display:flex; align-items:center; justify-content:center; }
.showcase .flist .f .fi .ic{ width:26px; height:26px; }
.showcase .flist .f b{ display:block; color:var(--ink); font-size:16px; }
.showcase .flist .f span{ font-size:14.5px; color:var(--muted); }
.device{ background:#0f1826; border-radius:22px; padding:16px; box-shadow:0 24px 50px rgba(15,24,38,.28); }
.device .screen{ background:linear-gradient(160deg,#fff,#eaf3ff); border-radius:14px; padding:22px; min-height:250px; display:flex; flex-direction:column; gap:12px; }
.device .screen .row{ height:16px; border-radius:6px; background:#dfeaff; }
.device .screen .row.w1{ width:60%; } .device .screen .row.w2{ width:85%; }
.device .screen .pad{ margin-top:auto; display:grid; grid-template-columns:repeat(3,1fr); gap:8px; }
.device .screen .pad i{ height:44px; border-radius:10px; background:#e7f1ff; border:1.5px solid #d3e4ff; }
.device .screen .pad i.hl{ background:var(--amber); border-color:var(--amber); box-shadow:0 0 0 4px rgba(255,176,32,.25); }
.device .bar{ height:8px; width:120px; margin:12px auto 2px; border-radius:99px; background:#2a394f; }
@media (max-width:820px){ .showcase{ grid-template-columns:1fr; gap:24px; } .showcase .device{ order:-1; } }

/* 후기 카드 */
.reviews{ display:grid; grid-template-columns:repeat(3,1fr); gap:16px; }
.rev{ background:#fff; border:1.5px solid var(--line); border-radius:16px; padding:22px 22px 20px; box-shadow:0 5px 16px rgba(40,70,130,.05); position:relative; }
.rev .q{ font-size:34px; line-height:1; color:var(--primary); font-weight:900; }
.rev p{ margin:8px 0 16px; font-size:15.5px; color:#2b384f; line-height:1.6; }
.rev .who{ font-size:13.5px; font-weight:800; color:var(--strong); }
.rev .stars{ margin-top:8px; letter-spacing:2px; color:var(--amber); font-size:15px; }
@media (max-width:760px){ .reviews{ grid-template-columns:1fr; } }

/* 하단 CTA 밴드 */
.cta-band{ background:linear-gradient(135deg,#1e2b45,#2a3f6b); color:#fff; text-align:center; padding:52px 0; }
.cta-band h2{ font-size:27px; font-weight:900; margin:0 0 8px; letter-spacing:-.4px; }
.cta-band p{ margin:0 0 24px; color:#c9d7f2; font-size:16px; }
.btn{ display:inline-flex; align-items:center; gap:8px; background:var(--grad); color:#fff; font-size:18px; font-weight:900;
  padding:16px 40px; border-radius:999px; box-shadow:0 12px 26px rgba(91,148,245,.4); cursor:pointer; border:0; }
.btn.ghost{ background:rgba(255,255,255,.12); box-shadow:none; border:1.5px solid rgba(255,255,255,.4); }
.btn-row{ display:flex; gap:12px; justify-content:center; flex-wrap:wrap; }

/* ── FAQ 아코디언 (AEO · 구조화 FAQPage와 표시 내용 일치) ── */
.faq{ max-width:820px; margin:0 auto; display:flex; flex-direction:column; gap:12px; }
.faq details{ background:#fff; border:1.5px solid var(--line); border-radius:14px; padding:0 22px;
  box-shadow:0 3px 10px rgba(40,70,130,.04); transition:border-color .15s, box-shadow .15s; }
.faq details[open]{ border-color:#cfe0ff; box-shadow:0 8px 22px rgba(40,70,130,.08); }
.faq summary{ list-style:none; cursor:pointer; padding:18px 2px; font-size:16.5px; font-weight:800; color:var(--ink);
  display:flex; align-items:center; gap:12px; }
.faq summary::-webkit-details-marker{ display:none; }
.faq summary::after{ content:""; margin-left:auto; flex:0 0 auto; width:11px; height:11px;
  border-right:2.4px solid var(--strong); border-bottom:2.4px solid var(--strong);
  transform:rotate(45deg); transition:transform .2s; }
.faq details[open] summary::after{ transform:rotate(-135deg); }
.faq .a{ padding:0 2px 20px; margin-top:-2px; color:var(--body); font-size:15.5px; line-height:1.75; }

/* ── 푸터 ── */
.site-f{ background:#fafcff; border-top:1px solid var(--line); }
.site-f .in{ max-width:1080px; margin:0 auto; padding:30px 22px; text-align:center; color:var(--muted); font-size:13.5px; line-height:1.9; }
.site-f a{ color:#56627c; font-weight:700; }
.site-f a:hover{ color:var(--strong); }
.site-f .biz{ color:#8696b0; font-size:12.5px; }
.site-f .links{ margin:0 0 12px; }
.site-f .copy{ margin-top:10px; font-size:12px; color:#9aa6bd; }

/* ── 문의 모달 (program.js가 주입) ── */
.cm-overlay{ position:fixed; inset:0; background:rgba(18,28,48,.55); display:flex; align-items:center; justify-content:center; padding:18px; z-index:80; }
.cm-overlay[hidden]{ display:none; }
.cmodal{ position:relative; background:#fff; width:100%; max-width:460px; max-height:92vh; overflow-y:auto; border-radius:18px; box-shadow:0 24px 60px rgba(0,0,0,.3); }
.cmodal h3{ margin:0; padding:20px 22px 14px; font-size:21px; font-weight:900; color:var(--ink); border-bottom:1px solid var(--line); }
.cm-x{ position:absolute; top:14px; right:14px; width:34px; height:34px; border:0; background:#f1f4fa; border-radius:9px; font-size:17px; font-weight:800; cursor:pointer; color:#667; }
.cform{ padding:18px 22px 22px; }
.cform label{ display:block; font-size:15px; font-weight:800; color:var(--ink); margin:12px 0 6px; }
.cform label:first-child{ margin-top:0; }
.cform .req{ color:#e3502f; }
.cform input,.cform textarea,.cform select{ width:100%; border:1.5px solid var(--line); border-radius:10px; padding:13px; font-size:16px; font-family:inherit; color:var(--ink); }
.cform input:focus,.cform textarea:focus,.cform select:focus{ outline:none; border-color:var(--primary); }
.cform textarea{ resize:none; }
.cform-msg{ font-size:14px; font-weight:700; margin-top:12px; min-height:18px; text-align:center; }
.cform-msg.ok{ color:#1f8a4c; } .cform-msg.bad{ color:#c0392b; }
.cform-agree{ display:flex; gap:8px; align-items:flex-start; font-size:13px; color:#555; margin-top:12px; cursor:pointer; }
.cform-agree input{ width:auto; margin:3px 0 0; flex:0 0 auto; }
.cform-btns{ display:flex; gap:10px; margin-top:14px; }
.cform-btns button{ flex:1; border:1.5px solid var(--line); background:#fafafa; font-size:17px; font-weight:800; padding:14px; border-radius:12px; cursor:pointer; }
.cform-btns button.primary{ background:var(--strong); color:#fff; border-color:var(--strong); }

/* ── 스크롤 등장 ── */
html.anim .reveal{ opacity:0; transform:translateY(24px); }
html.anim .reveal.in{ opacity:1; transform:none; transition:opacity .6s cubic-bezier(.2,.7,.3,1), transform .6s cubic-bezier(.2,.7,.3,1); }
@media (prefers-reduced-motion:reduce){ html.anim .reveal{ opacity:1; transform:none; } }

/* ===== 전역 퀵메뉴(PC 우측) / 탭바(모바일 하단) — program.js가 주입 ===== */
.quickmenu{ position:fixed; right:18px; top:50%; transform:translateY(-50%); z-index:45; display:flex; flex-direction:column; gap:10px; }
.qm{ display:flex; flex-direction:column; align-items:center; justify-content:center; gap:5px; width:74px; height:74px; background:#fff; border:2px solid var(--line); border-radius:16px; text-decoration:none; color:var(--ink); font-size:12px; font-weight:800; text-align:center; box-shadow:0 6px 18px rgba(0,0,0,.1); transition:transform .08s, border-color .15s; }
.qm:hover{ border-color:var(--primary); transform:translateY(-2px); }
.qm .qi{ font-size:23px; line-height:1; color:var(--strong); }
.qm small{ font-size:11px; line-height:1.15; font-weight:800; }
.qm.primary{ background:var(--grad); color:#fff; border:0; }
.qm.primary .qi{ color:#fff; }
.tabbar{ display:none; }
@media (max-width:720px){
  .quickmenu{ display:none; }
  .tabbar{ display:flex; position:fixed; left:0; right:0; bottom:0; z-index:45; background:#fff; border-top:1px solid var(--line); box-shadow:0 -4px 16px rgba(0,0,0,.08); }
  .tabbar a{ flex:1; display:flex; flex-direction:column; align-items:center; gap:3px; padding:9px 2px calc(9px + env(safe-area-inset-bottom)); text-decoration:none; color:var(--ink); font-size:11px; font-weight:800; }
  .tabbar a .qi{ font-size:20px; line-height:1; color:var(--strong); }
  .tabbar a.primary .qi{ color:var(--primary); }
  body{ padding-bottom:66px; }
}
