/* ===== 위드클래스 프론트엔드 v2 — titanclass 레이아웃 정밀 재현 ===== */
:root{
  --primary:#1d4ed8;          /* blue-700 */
  --primary-dark:#1e40af;    /* blue-800 */
  --primary-deep:#1e3a8a;    /* blue-900 */
  --primary-soft:#eff6ff;    /* blue-50 */
  --ink:#171717; --ink2:#1b1b1b;
  --gray:#737373; --gray2:#a3a3a3;
  --line:#e5e5e5;
  --dark:#0a0a0a; --dark2:#161616; --dark-line:#2e2e2e;
}
*{ box-sizing:border-box; margin:0; padding:0; }
html{ scroll-behavior:smooth; }
body{
  font-family:"Pretendard Variable",Pretendard,-apple-system,"Malgun Gothic",sans-serif;
  color:var(--ink); background:#fff; line-height:1.5; -webkit-font-smoothing:antialiased;
}
a{ color:inherit; text-decoration:none; }
button{ font-family:inherit; cursor:pointer; }
.wrap{ max-width:1280px; margin:0 auto; padding:0 24px; }

/* ---------- 상단 유틸 탭 ---------- */
.utility{ display:flex; border-bottom:1px solid var(--line); background:#fff; }
.utility a{ flex:1; text-align:center; padding:12px 8px; font-size:15px; font-weight:500;
  color:var(--ink); border-right:1px solid var(--line); background:#fafafa; }
.utility a:last-child{ border-right:0; }
.utility a.active{ background:#fff; font-weight:700; }
.utility a:hover{ background:#fff; }

/* ---------- 헤더 (로고 + 햄버거) ---------- */
.header{ position:sticky; top:0; z-index:200; background:#fff; border-bottom:1px solid var(--line); }
.header .wrap{ height:80px; display:flex; align-items:center; justify-content:space-between; }
.logo{ display:flex; align-items:center; gap:9px; }
.logo .mark{ color:var(--primary); font-size:30px; line-height:1; }
.logo .txt{ font-weight:900; font-size:26px; letter-spacing:-.5px; line-height:1; }
.logo .txt small{ display:block; font-size:10px; font-weight:700; letter-spacing:6px; color:var(--ink); }
.hamburger{ background:none; border:0; font-size:26px; line-height:1; color:var(--ink); }

/* 드로어 메뉴 */
.drawer{ position:fixed; inset:0; z-index:300; display:none; }
.drawer.open{ display:block; }
.drawer .dim{ position:absolute; inset:0; background:rgba(0,0,0,.45); }
.drawer .panel{ position:absolute; top:0; right:0; width:320px; max-width:85%; height:100%;
  background:#fff; padding:28px 26px; overflow:auto; }
.drawer .panel .close{ background:none; border:0; font-size:26px; float:right; }
.drawer .panel nav{ margin-top:44px; display:flex; flex-direction:column; }
.drawer .panel nav a{ padding:15px 4px; font-size:18px; font-weight:700; border-bottom:1px solid var(--line); }
.drawer .panel nav a:hover{ color:var(--primary); }

/* ---------- 히어로 (라이트 톤 + 사진영역) ---------- */
.hero{ position:relative; height:520px; overflow:hidden;
  background:
    radial-gradient(640px 420px at 62% 34%, #d9d4cd 0%, rgba(217,212,205,0) 70%),
    radial-gradient(900px 600px at 80% 10%, #e9e6e1 0%, rgba(233,230,225,0) 60%),
    linear-gradient(180deg,#f3f2f0 0%, #ecebe9 55%, #ffffff 100%);
}
.hero .figure{ position:absolute; left:50%; top:54%; transform:translate(-50%,-50%);
  width:430px; height:430px; border-radius:50%;
  background:radial-gradient(circle at 38% 30%, #cfc9c0 0%, #b8b1a6 45%, #a49d92 100%);
  filter:blur(1px); opacity:.85; }
.hero .figure:after{ content:""; position:absolute; left:50%; bottom:-8%; transform:translateX(-50%);
  width:78%; height:64%; border-radius:46% 46% 8% 8%;
  background:linear-gradient(180deg,#efece7,#d9d3ca); }
.hero .wrap{ position:relative; height:100%; z-index:2; }
.hero .txtbox{ position:absolute; left:24px; bottom:64px; }
.hero h2{ font-size:40px; font-weight:800; color:var(--ink2); letter-spacing:-1px; }
.hero p{ margin-top:10px; font-size:22px; color:#9b9b9b; font-weight:500; letter-spacing:-.5px; }

/* ---------- 섹션 공통 헤더 ---------- */
.section{ padding:64px 0; }
.section.dark{ background:var(--dark); color:#fff; }
.sec-head{ display:flex; align-items:center; gap:16px; margin-bottom:32px; }
.sec-head .ico{ font-size:26px; color:var(--primary); flex:0 0 auto; line-height:1; }
.sec-head h2{ font-size:28px; font-weight:700; letter-spacing:-.5px; line-height:1.3;
  min-width:0; overflow-wrap:break-word; }
.sec-head .vline{ width:1px; height:24px; background:var(--line); flex:0 0 auto; }
.section.dark .sec-head .vline{ background:var(--dark-line); }
.sec-head .en{ font-size:14px; color:var(--gray2); font-weight:500; white-space:nowrap; flex:0 0 auto; }
.sec-head .arrow{ margin-left:auto; font-size:24px; color:var(--ink); background:none; border:0; flex:0 0 auto; }
.section.dark .sec-head .arrow{ color:#fff; }
.sec-head .arrow:hover{ color:var(--primary); }

/* ---------- 무료강의 카드 (2열, 뱃지 하단) ---------- */
.wb-cards{ display:grid; grid-template-columns:repeat(2,1fr); gap:28px 24px; }
.wb-card{ display:block; }
.wb-card .thumb{ position:relative; aspect-ratio:16/9; border-radius:10px; overflow:hidden;
  background:linear-gradient(120deg,var(--tc,#3a0d0d) 0%, #150505 100%);
  color:#fff; padding:22px 24px; display:flex; flex-direction:column; }
.wb-card .thumb .brand{ font-size:12px; font-weight:700; opacity:.9; display:flex; align-items:center; gap:6px; }
.wb-card .thumb .brand .m{ color:var(--primary); }
.wb-card .thumb .dt{ margin-top:14px; font-size:15px; font-weight:600; opacity:.95; }
.wb-card .thumb .big{ margin-top:6px; font-size:30px; font-weight:900; line-height:1.2; letter-spacing:-.5px;
  text-shadow:0 2px 12px rgba(0,0,0,.35); }
.wb-card .thumb .sub{ margin-top:auto; font-size:13px; opacity:.85; }
.wb-card .thumb .sub b{ color:#c7dbff; }
.wb-card .badges{ display:flex; gap:6px; margin:12px 0 8px; }
.badge{ display:inline-flex; align-items:center; border-radius:6px; padding:4px 8px;
  font-size:12px; font-weight:600; color:#fff; line-height:16px; }
.badge.BEST{ background:var(--primary); } .badge.HOT{ background:#f97316; }
.badge.NEW{ background:#111827; } .badge.NICE{ background:#334155; }
.wb-card .tit{ font-size:16px; font-weight:600; color:var(--ink); line-height:24px; }
.wb-card .meta{ margin-top:8px; font-size:14px; color:var(--gray); display:flex; align-items:center; gap:10px; }
.wb-card .meta .dv{ width:1px; height:12px; background:var(--line); }

/* ---------- 수강생 사례 (다크 아코디언) ---------- */
.tm-acc{ border-top:1px solid var(--dark-line); }
.tm-item{ border-bottom:1px solid var(--dark-line); }
.tm-item .tm-q{ width:100%; background:none; border:0; color:#fff; text-align:left;
  display:flex; align-items:center; justify-content:space-between; gap:20px; padding:24px 4px; }
.tm-item .tm-q h3{ font-size:19px; font-weight:600; letter-spacing:-.3px; }
.tm-item .tm-q .who{ font-size:15px; color:#8f8f8f; flex:0 0 auto; }
.tm-item .tm-q .who b{ color:#c9c9c9; }
.tm-item .tm-a{ display:none; padding:8px 4px 36px; }
.tm-item.open .tm-a{ display:block; }
.tm-item .tm-a .photo{ aspect-ratio:16/8; border-radius:10px; margin-bottom:26px;
  background:linear-gradient(120deg,#3a3a3f,#1c1c20 60%, #2a2a30); position:relative; overflow:hidden; }
.tm-item .tm-a .photo:after{ content:"\201C"; position:absolute; right:28px; bottom:6px;
  font-size:120px; font-weight:900; color:rgba(29,78,216,.55); line-height:1; }
.tm-item .tm-a p{ color:#d4d4d4; font-size:15.5px; line-height:1.85; margin-bottom:18px; max-width:900px; }
.tm-item .tm-a .nm{ font-weight:800; color:#fff; margin-top:6px; }
.tm-item .tm-a .course{ margin-top:6px; font-size:13.5px; color:#8f8f8f; }

/* ---------- 캘린더 ---------- */
.cal-top{ display:flex; align-items:flex-end; justify-content:space-between; margin-bottom:10px; }
.cal-month .y{ font-size:14px; color:var(--ink); }
.cal-month .mon{ font-size:56px; line-height:56px; font-weight:900; letter-spacing:3px; color:var(--ink2);
  font-stretch:expanded; text-transform:uppercase; }
.cal-legend{ display:flex; flex-direction:column; gap:8px; font-size:14px; color:var(--ink); }
.cal-legend span{ display:flex; align-items:center; gap:8px; }
.cal-legend i{ width:12px; height:12px; display:inline-block; }
.cal-legend .r{ background:var(--primary); } .cal-legend .g{ background:#b6b6b6; }
.cal-nav{ display:flex; align-items:center; gap:14px; margin-left:auto; font-size:20px; }
.cal-nav .mn{ font-size:22px; font-weight:700; }
.cal-nav button{ background:none; border:0; font-size:22px; color:var(--ink); }
.cal-rows{ margin-top:24px; border-top:1px solid var(--line); }
.cal-row{ display:flex; align-items:center; gap:26px; padding:20px 4px; border-bottom:1px solid var(--line); }
.cal-row .d{ width:56px; text-align:center; flex:0 0 auto; }
.cal-row .d .n{ font-size:28px; line-height:1.1; color:var(--ink); }
.cal-row .d .w{ font-size:15px; color:var(--gray); }
.cal-row .body .t{ font-size:16px; font-weight:600; color:var(--ink); }
.cal-row .body .meta{ margin-top:8px; display:flex; align-items:center; gap:14px; font-size:13.5px; color:var(--gray); }
.cal-row .body .meta i{ color:var(--primary); font-style:normal; margin-right:4px; }
.cal-row.ended{ opacity:.45; }
.cal-row.ended .body .meta i{ color:#999; }
.cal-mark{ width:12px; height:12px; background:#b6b6b6; display:inline-block; margin:14px 0 0 4px; }

/* ---------- 인사이트 (가로 스크롤 영상 카드) ---------- */
.hscroll{ display:flex; gap:20px; overflow-x:auto; padding-bottom:12px; scrollbar-width:thin;
  margin:0 -24px; padding-left:24px; padding-right:24px; }
.ins-card{ flex:0 0 360px; }
.ins-card .thumb{ aspect-ratio:16/9; border-radius:10px; overflow:hidden; position:relative;
  background:linear-gradient(120deg,var(--tc,#33261a),#120d08); color:#fff; padding:18px; display:flex; align-items:flex-end; }
.ins-card .thumb .cap{ font-size:20px; font-weight:900; line-height:1.3; text-shadow:0 2px 10px rgba(0,0,0,.5); }
.ins-card .thumb .play{ position:absolute; top:14px; right:14px; width:34px; height:24px; border-radius:6px;
  background:var(--primary); display:flex; align-items:center; justify-content:center; font-size:11px; color:#fff; }
.ins-card .t{ margin-top:12px; font-size:15.5px; font-weight:700; line-height:1.45; }
.ins-card .s{ margin-top:5px; font-size:13.5px; color:var(--gray); }

/* ---------- 강사진 (가로 스크롤) ---------- */
.tc-card{ flex:0 0 200px; }
.tc-card .ph{ position:relative; aspect-ratio:10/13; border-radius:4px; overflow:hidden;
  background:linear-gradient(160deg,#eef3fb 0%, #dfe8f6 60%, #d4e0f2 100%); }
.tc-card .ph .wm{ position:absolute; inset:0; display:flex; align-items:center; justify-content:center;
  font-size:120px; color:rgba(29,78,216,.10); font-weight:900; }
.tc-card .ph .init{ position:absolute; left:50%; bottom:0; transform:translateX(-50%);
  font-size:84px; font-weight:900; color:#3f3a3a; line-height:1; }
.tc-card .nm{ margin-top:12px; font-size:17px; font-weight:700; }
.tc-card .ca{ margin-top:3px; font-size:14px; color:var(--gray); padding-bottom:10px; border-bottom:1px solid var(--line); }
.tc-card .sns{ margin-top:10px; display:flex; gap:8px; }
.tc-card .sns i{ width:18px; height:18px; border:1.5px solid var(--primary); border-radius:5px; display:inline-block;
  color:var(--primary); font-size:10px; text-align:center; line-height:15px; font-style:normal; font-weight:800; }

/* ---------- 마퀴 CTA ---------- */
.marquee{ background:var(--dark); overflow:hidden; padding:34px 0; }
.marquee .track{ display:flex; gap:70px; white-space:nowrap; width:max-content; animation:mq 16s linear infinite; }
.marquee span{ font-size:88px; font-weight:900; color:#fff; letter-spacing:1px; text-transform:uppercase; }
.marquee span b{ color:var(--primary); }
@keyframes mq{ from{ transform:translateX(0);} to{ transform:translateX(-50%);} }

/* ---------- 푸터 ---------- */
.footer{ background:#1b1b1b; color:#cfcfcf; }
.footer .biglinks{ display:grid; grid-template-columns:repeat(2,1fr); gap:8px 60px; padding:56px 0 40px; }
.footer .biglinks a{ font-size:22px; font-weight:700; color:#fff; padding:14px 0 4px; width:max-content; }
.footer .biglinks a:after{ content:""; display:block; width:26px; height:3px; background:var(--primary); margin-top:8px; }
.footer .helpband{ display:grid; grid-template-columns:1fr 1.1fr; border-top:1px solid #333; }
.footer .helpband .l{ padding:44px 40px 44px 0; border-right:1px solid #333; }
.footer .helpband .l h3{ color:#fff; font-size:24px; font-weight:800; margin-bottom:16px; }
.footer .helpband .l p{ font-size:14.5px; line-height:1.8; color:#a9a9a9; max-width:340px; }
.footer .helpband .l .ask{ margin-top:26px; display:flex; align-items:center; justify-content:space-between;
  border-bottom:1px solid #444; padding-bottom:12px; max-width:340px; color:#fff; font-size:16px; }
.footer .helpband .l .ask .ch{ color:var(--primary); font-weight:900; }
.footer .helpband .r a{ display:flex; align-items:center; justify-content:space-between;
  padding:26px 8px 26px 40px; border-bottom:1px solid #333; color:#fff; font-size:20px; font-weight:600; }
.footer .helpband .r a:last-child{ border-bottom:0; }
.footer .helpband .r .ch{ color:var(--primary); font-weight:900; }
.footer .infoarea{ background:#121212; padding:34px 0 60px; }
.footer .infoarea .cols{ display:grid; grid-template-columns:1fr 1.4fr; gap:6px 60px; font-size:13.5px; color:#8f8f8f; line-height:2; }
.footer .infoarea .disc{ margin-top:20px; font-size:13px; color:#7a7a7a; }

/* ---------- 플로팅 버튼 ---------- */
.floats{ position:fixed; right:26px; bottom:26px; z-index:250; display:flex; flex-direction:column; gap:12px; align-items:center; }
.floats .fbtn{ width:52px; height:52px; border-radius:50%; border:0; display:flex; align-items:center; justify-content:center; }
.floats .chat{ background:var(--primary); color:#fff; font-size:22px; box-shadow:0 6px 18px rgba(29,78,216,.4); }
.floats .top{ background:#1b1b1b; color:#fff; font-size:18px; width:44px; height:44px; }

/* ---------- 서브페이지 ---------- */
.page-title{ font-size:30px; font-weight:800; margin:6px 0 28px; }
.cards{ display:grid; grid-template-columns:repeat(4,1fr); gap:22px; }
.card{ display:block; }
.card .thumb{ aspect-ratio:16/10; border-radius:10px; position:relative; overflow:hidden;
  display:flex; align-items:flex-end; padding:16px;
  background:linear-gradient(135deg,var(--tc,#1b2a4a),#0b0b0d); color:#fff; }
.card .thumb .cat{ font-size:12px; font-weight:700; background:rgba(255,255,255,.16); padding:4px 10px; border-radius:20px; }
.card .body{ padding:12px 2px 0; }
.card .badges{ display:flex; gap:6px; margin-bottom:8px; }
.card .tit{ font-size:16px; font-weight:600; line-height:1.4; }
.card .meta{ margin-top:8px; display:flex; align-items:center; justify-content:space-between; }
.card .ins{ font-size:13.5px; color:var(--gray); }
.card .price{ font-size:15px; font-weight:800; }
.card .price s{ color:#bbb; font-weight:500; font-size:12.5px; margin-right:5px; }
.card .price .free{ color:var(--primary); }
.detail{ padding:44px 0 80px; }
.detail .top{ display:grid; grid-template-columns:1.2fr 1fr; gap:36px; }
.detail .cover{ aspect-ratio:16/10; border-radius:14px; background:linear-gradient(135deg,var(--tc,#1b2a4a),#0b0b0d); }
.detail h1{ font-size:28px; font-weight:800; margin-bottom:12px; letter-spacing:-.5px; }
.detail .desc{ color:#555; margin:14px 0; }
.detail .buy{ border:1px solid var(--line); border-radius:12px; padding:24px; }
.detail .buy .price{ font-size:28px; font-weight:900; margin-bottom:14px; }
.btn-red{ background:var(--primary); color:#fff; border:0; border-radius:8px; font-weight:700; }

@media (max-width:900px){
  .wb-cards{ grid-template-columns:1fr; }
  .cards{ grid-template-columns:repeat(2,1fr); }
  .hero{ height:420px; } .hero h2{ font-size:32px; } .hero p{ font-size:17px; }
  .marquee span{ font-size:52px; }
  .footer .helpband{ grid-template-columns:1fr; }
  .footer .helpband .l{ border-right:0; padding-right:0; }
  .footer .helpband .r a{ padding-left:8px; }
  .footer .infoarea .cols{ grid-template-columns:1fr; }
  .detail .top{ grid-template-columns:1fr; }
  .cal-month .mon{ font-size:40px; line-height:42px; }
}

/* ---------- 히어로 켄번즈(영상 느낌) ---------- */
.hero-media{ position:absolute; inset:-4%; background-size:cover; background-position:center 30%;
  animation:kb 18s ease-in-out infinite alternate; }
@keyframes kb{ from{ transform:scale(1) translateX(0);} to{ transform:scale(1.08) translateX(-1.5%);} }
.hero .wrap{ position:relative; z-index:2; }

/* ---------- 영상 모달 ---------- */
.vmodal{ position:fixed; inset:0; z-index:400; background:rgba(0,0,0,.78); display:none;
  align-items:center; justify-content:center; padding:24px; }
.vmodal.open{ display:flex; }
.vmodal .vbox{ width:min(880px,96vw); background:#111; border-radius:14px; overflow:hidden;
  box-shadow:0 30px 80px rgba(0,0,0,.6); }
.vmodal .vhead{ display:flex; align-items:center; justify-content:space-between;
  padding:14px 20px; color:#fff; font-weight:700; font-size:15px; }
.vmodal .vhead button{ background:none; border:0; color:#aaa; font-size:26px; line-height:1; }
.vmodal .vbody video, .vmodal .vbody img{ display:block; width:100%; }

.tm-item .tm-a .photo.hasimg:after{ display:none; }

/* ================= 탈잉형 강좌 상세페이지 ================= */
.tl-page{ max-width:860px; margin:0 auto; padding:0 20px 120px; }
.tl-cover{ aspect-ratio:16/9; border-radius:12px; margin-top:22px;
  background:linear-gradient(135deg,var(--tc,#1b2a4a),#0b0b0d); background-size:cover; background-position:center; }
.tl-title{ font-size:24px; font-weight:800; letter-spacing:-.5px; margin:22px 0 10px; line-height:1.35; }
.tl-rate{ display:flex; align-items:center; gap:10px; font-size:15px; margin-bottom:18px; }
.tl-rate .star{ color:var(--primary); font-weight:800; }
.tl-rate .dv{ width:1px; height:12px; background:var(--line); }
.tl-rate a{ text-decoration:underline; font-weight:600; }
.tl-price .orig{ color:#b5b5b5; text-decoration:line-through; font-size:15px; }
.tl-price .now{ margin-top:4px; font-size:24px; font-weight:900; }
.tl-price .now .pct{ color:var(--primary); margin-right:8px; }
.tl-price .permo{ margin-top:4px; font-size:14px; color:var(--gray); }
.tl-price .permo b{ color:var(--primary); }
.tl-info{ list-style:none; margin:24px 0 8px; padding:20px 0; border-top:1px solid var(--line); }
.tl-info li{ display:flex; align-items:center; gap:12px; padding:7px 0; font-size:15px; color:#333; }
.tl-info li i{ font-style:normal; width:22px; text-align:center; color:#888; }
.tl-sec-t{ font-size:19px; font-weight:800; margin:26px 0 14px; }
.tl-opts{ display:flex; flex-direction:column; gap:12px; }
.tl-opt{ display:block; border:1.5px solid var(--line); border-radius:12px; padding:18px 20px; }
.tl-opt.sel{ border-color:var(--primary); background:var(--primary-soft); }
.tl-opt .nm{ font-weight:800; font-size:15.5px; }
.tl-opt .pr{ margin-top:8px; font-size:15px; font-weight:900; }
.tl-opt .pr .pct{ color:var(--primary); margin-right:6px; }
.tl-opt .pr .mo{ font-weight:500; color:var(--gray); font-size:13px; }
.tl-opt .og{ margin-top:2px; font-size:12.5px; color:#b5b5b5; text-decoration:line-through; }

.tl-tabs{ position:sticky; top:56px; z-index:150; display:flex; background:#fff;
  border-bottom:1px solid var(--line); margin:34px -20px 0; padding:0 20px; }
.tl-tabs a{ flex:1; text-align:center; padding:15px 4px; font-size:15.5px; font-weight:600; color:#555;
  border-bottom:2.5px solid transparent; }
.tl-tabs a.on{ color:var(--primary); border-bottom-color:var(--primary); font-weight:800; }
.tl-tabs a .cnt{ color:var(--primary); }

.tl-section{ padding-top:44px; }
.tl-section h2{ font-size:19px; font-weight:800; margin-bottom:16px; }
.tl-intro-block{ border-radius:12px; overflow:hidden; margin-bottom:14px; }
.tl-intro-txt{ font-size:15.5px; line-height:1.9; color:#333; }
.tl-intro-txt ul{ margin:14px 0 0 2px; list-style:none; }
.tl-intro-txt li{ padding:6px 0 6px 26px; position:relative; }
.tl-intro-txt li:before{ content:"✓"; position:absolute; left:0; color:var(--primary); font-weight:900; }

.tl-acc{ display:flex; flex-direction:column; gap:12px; }
.tl-ch{ border:1px solid var(--line); border-radius:12px; overflow:hidden; }
.tl-ch .hd{ width:100%; background:#fff; border:0; display:flex; align-items:center; justify-content:space-between;
  gap:12px; padding:18px 20px; font-size:15.5px; font-weight:800; text-align:left; }
.tl-ch .hd .meta{ font-size:13px; color:#888; font-weight:500; display:flex; align-items:center; gap:10px; flex:0 0 auto; }
.tl-ch .hd .chev{ transition:transform .15s; color:#888; }
.tl-ch.open .hd .chev{ transform:rotate(180deg); }
.tl-ch .bd{ display:none; border-top:1px solid var(--line); padding:6px 20px; }
.tl-ch.open .bd{ display:block; }
.tl-ch .row{ display:flex; align-items:center; gap:12px; padding:13px 0; font-size:14.5px; border-bottom:1px solid #f2f2f2; }
.tl-ch .row:last-child{ border-bottom:0; }
.tl-ch .row .time{ margin-left:auto; color:#999; font-size:13px; display:flex; align-items:center; gap:5px; flex:0 0 auto; }
.tl-ch .preview-btn{ display:inline-flex; align-items:center; gap:6px; margin:8px 0 12px; padding:8px 14px;
  border:1.5px solid var(--primary); color:var(--primary); border-radius:8px; font-size:13.5px; font-weight:700; background:#fff; }

.tl-score{ display:flex; gap:34px; align-items:center; margin-bottom:26px; flex-wrap:wrap; }
.tl-score .big{ font-size:44px; font-weight:900; line-height:1; }
.tl-score .big .st{ color:var(--primary); font-size:26px; vertical-align:middle; margin-right:6px; }
.tl-bars{ flex:1; min-width:220px; display:flex; flex-direction:column; gap:6px; }
.tl-bar{ display:flex; align-items:center; gap:10px; font-size:12.5px; color:#888; }
.tl-bar .tr{ flex:1; height:6px; background:#efefef; border-radius:3px; overflow:hidden; }
.tl-bar .fl{ height:100%; background:var(--primary); }
.tl-review{ border-bottom:1px solid var(--line); padding:20px 2px; }
.tl-review .who{ display:flex; align-items:center; gap:10px; font-weight:700; font-size:14.5px; }
.tl-review .who .st{ color:var(--primary); font-weight:800; }
.tl-review .who .dt{ color:#aaa; font-weight:400; font-size:12.5px; }
.tl-review p{ margin-top:10px; font-size:14.5px; line-height:1.8; color:#444; }

.tl-notice .nrow{ display:flex; justify-content:space-between; align-items:center; padding:16px 2px;
  border-bottom:1px solid var(--line); font-size:14.5px; }
.tl-notice .nrow b{ font-weight:700; }
.tl-notice .nrow span{ color:#777; }

.tl-bottom{ position:fixed; left:0; right:0; bottom:0; z-index:260; background:#fff;
  border-top:1px solid var(--line); padding:12px 16px calc(12px + env(safe-area-inset-bottom)); }
.tl-bottom .in{ max-width:860px; margin:0 auto; display:flex; align-items:center; gap:14px; }
.tl-bottom .ic{ background:none; border:0; font-size:22px; color:#555; }
.tl-bottom .ic.liked{ color:var(--primary); }
.tl-bottom .cta{ flex:1; background:var(--primary); color:#fff; border:0; border-radius:10px;
  padding:15px; font-size:16px; font-weight:800; }
.tl-bottom .cta:hover{ background:var(--primary-dark); }
.tl-hide-floats .floats{ display:none; }

/* ================= 탈잉형 상단 영역 ================= */
.th-header{ background:#0a0a0a; }
.th-header .in{ max-width:1280px; margin:0 auto; padding:0 24px; height:72px;
  display:flex; align-items:center; gap:22px; }
.th-header .logo .txt{ color:#fff; }
.th-header .logo .txt small{ color:#bbb; }
.th-header .logo .mark{ color:var(--primary); }
.th-search{ flex:1; max-width:420px; margin-left:auto; display:flex; align-items:center;
  background:#2a2a2a; border-radius:24px; padding:0 8px 0 18px; height:42px; }
.th-search input{ flex:1; background:none; border:0; outline:none; color:#eee; font-size:14px; font-family:inherit; }
.th-search input::placeholder{ color:#8a8a8a; }
.th-search button{ background:none; border:0; color:#bbb; font-size:17px; padding:6px 10px; }
.th-chat{ background:none; border:0; color:#ddd; font-size:21px; }
.th-login{ background:var(--primary); color:#fff; border:0; border-radius:8px;
  padding:9px 18px; font-size:14px; font-weight:700; }
.th-login:hover{ background:var(--primary-dark); }

.th-catbar{ position:sticky; top:0; z-index:200; background:#fff; border-bottom:1px solid var(--line); }
.th-catbar .in{ max-width:1280px; margin:0 auto; padding:0 24px; height:56px;
  display:flex; align-items:center; gap:14px; }
.th-catbar .all{ display:flex; align-items:center; gap:10px; background:none; border:0;
  font-size:16.5px; font-weight:800; }
.th-catbar .all .bars{ font-size:19px; }
.th-catbar .links{ margin-left:auto; display:flex; align-items:center; }
.th-catbar .links a{ font-size:14.5px; font-weight:600; color:#333; padding:0 18px; }
.th-catbar .links a:hover{ color:var(--primary); }
.th-catbar .links a + a{ border-left:1px solid var(--line); }

/* 히어로 캐러셀 */
.th-hero{ padding:32px 0 8px; }
.th-track{ display:flex; gap:18px; overflow-x:auto; scroll-behavior:smooth;
  scrollbar-width:none; -ms-overflow-style:none; }
.th-track::-webkit-scrollbar{ display:none; }
.th-card{ flex:0 0 calc((100% - 36px)/3); min-width:280px; position:relative;
  aspect-ratio:395/315; border-radius:16px; overflow:hidden; color:#fff; display:flex; }
.th-card .ph{ position:absolute; right:-4%; bottom:0; width:62%; height:96%;
  background-size:cover; background-position:top center; border-radius:200px 200px 0 0; opacity:.96; }
.th-card .badge-mk{ position:absolute; top:16px; left:18px; width:34px; height:34px; border-radius:9px;
  background:rgba(255,255,255,.92); color:var(--primary); display:flex; align-items:center;
  justify-content:center; font-size:17px; }
.th-card .txts{ position:relative; z-index:2; margin-top:auto; padding:18px 20px; width:100%;
  background:linear-gradient(180deg,transparent, rgba(0,0,0,.42) 55%); }
.th-card .chip{ display:inline-block; background:rgba(10,10,10,.55); font-size:12px; font-weight:600;
  padding:5px 11px; border-radius:16px; margin-bottom:10px; }
.th-card .t{ font-size:19px; font-weight:800; line-height:1.35; letter-spacing:-.3px;
  text-shadow:0 2px 10px rgba(0,0,0,.35); }
.th-card .tu{ margin-top:12px; font-size:13px; opacity:.92; }
.th-ctrl{ display:flex; align-items:center; gap:16px; margin-top:18px; }
.th-progress{ flex:1; height:3px; background:#e8e8e8; border-radius:2px; overflow:hidden; }
.th-progress .fl{ height:100%; width:33%; background:#1b1b1b; transition:width .25s, margin-left .25s; }
.th-ctrl .nav{ display:flex; gap:10px; }
.th-ctrl .nav button{ width:40px; height:40px; border-radius:50%; border:1px solid var(--line);
  background:#fff; font-size:16px; color:#333; }
.th-ctrl .nav button:hover{ border-color:#999; }

/* 아이콘 카테고리 행 */
.th-icons{ display:flex; gap:8px; justify-content:space-between; flex-wrap:wrap;
  padding:32px 0 0; }
.th-icons a{ display:flex; flex-direction:column; align-items:center; gap:10px;
  font-size:13.5px; font-weight:600; color:#333; width:9%; min-width:74px; }
.th-icons .cir{ width:62px; height:62px; border-radius:50%; display:flex; align-items:center;
  justify-content:center; font-size:27px; background:var(--cbg,#eef3fb); }
.th-icons a:hover{ color:var(--primary); }

@media (max-width:900px){
  .th-search{ display:none; }
  .th-card{ flex-basis:calc((100% - 18px)/1.15); }
  .th-catbar .links a{ padding:0 10px; font-size:13px; }
  .th-icons a{ width:18%; }
}

/* ================= 월부형 전환 장치 ================= */
.wb-strip{ background:var(--primary-soft); border-bottom:1px solid #dbe7fb; }
.wb-strip a{ max-width:1280px; margin:0 auto; padding:9px 24px; display:flex; align-items:center;
  justify-content:center; gap:10px; font-size:14px; font-weight:600; color:var(--ink); }
.wb-strip .tag{ background:var(--primary); color:#fff; font-size:12px; font-weight:800;
  padding:4px 10px; border-radius:14px; display:inline-flex; gap:5px; align-items:center; }
.wb-strip .go{ color:var(--primary); font-weight:800; }

.wb-popup{ position:fixed; inset:0; z-index:500; display:none; align-items:center;
  justify-content:center; background:rgba(0,0,0,.55); padding:20px; }
.wb-popup.open{ display:flex; }
.wb-popup .box{ width:min(400px,92vw); background:#fff; border-radius:16px; overflow:hidden; }
.wb-popup .vis{ background:linear-gradient(135deg,#2c4ea0,#0f1c3d); color:#fff; padding:30px 26px; text-align:center; }
.wb-popup .vis .nb{ display:inline-block; background:#ffd83d; color:#1b1b1b; font-size:12px;
  font-weight:800; padding:5px 12px; border-radius:14px; margin-bottom:14px; }
.wb-popup .vis .t1{ font-size:15px; opacity:.9; }
.wb-popup .vis .t2{ font-size:26px; font-weight:900; margin-top:6px; line-height:1.3; }
.wb-popup .vis .t3{ margin-top:10px; font-size:13px; opacity:.85; }
.wb-popup .cta{ display:block; background:var(--primary); color:#fff; text-align:center;
  padding:15px; font-size:15.5px; font-weight:800; }
.wb-popup .foot{ display:flex; justify-content:space-between; align-items:center; padding:12px 18px; }
.wb-popup .foot button{ background:none; border:0; color:#888; font-size:13.5px; }

.floats .consult{ width:auto; height:48px; border-radius:26px; padding:0 20px; background:#1b1b1b;
  color:#fff; font-size:14.5px; font-weight:700; display:flex; gap:8px; align-items:center;
  box-shadow:0 8px 22px rgba(0,0,0,.28); border:0; }
.th-ctrl .cnt{ font-size:13px; color:#888; min-width:38px; text-align:center; }

/* ================= 월부형 커뮤니티 밴드 ================= */
.cm-band{ background:#101c36; padding:64px 0; color:#fff; }
.cm-band .head{ display:flex; align-items:center; justify-content:center; gap:12px;
  font-size:26px; margin-bottom:36px; letter-spacing:-.5px; }
.cm-band .head .ic{ font-size:30px; }
.cm-band .head b{ font-weight:900; }
.cm-grid{ display:grid; grid-template-columns:1.4fr 1fr 1fr; gap:18px; }
.cm-card{ background:#fff; color:var(--ink); border-radius:14px; padding:26px 26px 22px; display:block; }
.cm-card h3{ font-size:17px; font-weight:800; margin-bottom:14px; }
.cm-best li{ display:flex; gap:12px; padding:11px 0; border-bottom:1px solid #f0f0f0;
  font-size:14.5px; list-style:none; align-items:baseline; }
.cm-best li:last-child{ border-bottom:0; }
.cm-best .no{ color:var(--primary); font-weight:900; flex:0 0 auto; }
.cm-best li span{ overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.cm-card .lb{ color:var(--primary); font-size:13px; font-weight:800; }
.cm-card .tt{ font-size:17.5px; font-weight:800; line-height:1.4; margin:8px 0 10px; letter-spacing:-.3px; }
.cm-card .pv{ font-size:13.5px; color:#666; line-height:1.7; display:-webkit-box;
  -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden; }
.cm-card .au{ display:flex; align-items:center; gap:10px; margin-top:16px; font-size:13.5px; font-weight:700; }
.cm-card .au .av{ width:34px; height:34px; border-radius:50%; background:#dfe8f6 center/cover; flex:0 0 auto;
  display:flex; align-items:center; justify-content:center; font-weight:900; color:#40506e; }
@media (max-width:900px){ .cm-grid{ grid-template-columns:1fr; } }

/* 월부형 파스텔 태그 칩 */
.chips2{ display:flex; gap:5px; flex-wrap:wrap; margin-top:8px; }
.chip2{ font-size:11.5px; font-weight:700; padding:3px 8px; border-radius:5px; }
.chip2.eb{ background:#e8f1fe; color:#1d4ed8; }     /* 얼리버드 */
.chip2.fs{ background:#fdeef5; color:#d6336c; }     /* 선착순한정 */
.chip2.nw{ background:#fff4e6; color:#e8590c; }     /* NEW */
.chip2.cp{ background:#e6fcf5; color:#0ca678; }     /* 쿠폰할인 */

/* ============================================================
   반응형 종합 (벤치마크 플랫폼들의 모바일 동작 반영)
   1024 태블릿 / 768 모바일 / 420 소형
   ============================================================ */
html, body{ overflow-x:hidden; }

@media (max-width:1024px){
  .sec-head h2{ font-size:25px; line-height:1.3; }
  .cards{ grid-template-columns:repeat(3,1fr); gap:18px; }
  .wb-cards{ gap:22px 18px; }
  .marquee span{ font-size:64px; }
}

@media (max-width:768px){
  .wrap{ padding:0 16px; }

  /* --- 상단 배너: 한 줄 말줄임 --- */
  .wb-strip a{ padding:8px 14px; font-size:12.5px; gap:7px; }
  .wb-strip a span:nth-child(2){ overflow:hidden; white-space:nowrap; text-overflow:ellipsis; min-width:0; }
  .wb-strip .tag{ font-size:11px; padding:3px 8px; flex:0 0 auto; }
  .wb-strip .go{ flex:0 0 auto; }

  /* --- 다크 헤더: 탈잉 모바일처럼 검색 유지 + 축소 --- */
  .th-header .in{ height:56px; padding:0 14px; gap:10px; }
  .logo .txt{ font-size:19px; }
  .logo .txt small{ font-size:8px; letter-spacing:4px; }
  .logo .mark{ font-size:22px; }
  .th-search{ display:flex; flex:1; min-width:0; max-width:none; height:36px; padding:0 4px 0 13px; }
  .th-search input{ font-size:16px; }  /* iOS 자동 줌 방지 */
  .th-chat{ display:none; }
  .th-login{ padding:7px 12px; font-size:12.5px; flex:0 0 auto; }

  /* --- 카테고리바: 가로 스크롤 --- */
  .th-catbar .in{ height:46px; padding:0 14px; }
  .th-catbar .all{ font-size:15px; flex:0 0 auto; }
  .th-catbar .links{ overflow-x:auto; scrollbar-width:none; }
  .th-catbar .links::-webkit-scrollbar{ display:none; }
  .th-catbar .links a{ padding:0 11px; font-size:13.5px; white-space:nowrap; }

  /* --- 히어로 캐러셀: 1장 + peek --- */
  .th-hero{ padding:18px 0 4px; }
  .th-track{ gap:12px; }
  .th-card{ flex:0 0 82%; min-width:0; }
  .th-card .t{ font-size:17px; }
  .th-card .chip{ font-size:11px; padding:4px 9px; }
  .th-card .tu{ font-size:12px; margin-top:8px; }
  .th-ctrl{ margin-top:12px; gap:10px; }
  .th-ctrl .nav button{ width:34px; height:34px; font-size:14px; }

  /* --- 아이콘: 5열 그리드 (월부/탈잉 모바일) --- */
  .th-icons{ padding:24px 0 0; gap:14px 0; justify-content:flex-start; }
  .th-icons a{ width:20%; min-width:0; font-size:12px; gap:7px; }
  .th-icons .cir{ width:52px; height:52px; font-size:23px; }

  /* --- 섹션 공통 --- */
  .section{ padding:44px 0; }
  .sec-head{ gap:10px; margin-bottom:22px; }
  .sec-head .ico{ font-size:20px; }
  .sec-head h2{ font-size:20px; line-height:1.35; }
  .sec-head .en{ display:none; }
  .sec-head .vline{ display:none; }
  .sec-head .arrow{ font-size:20px; }

  /* --- 무료강의 카드 --- */
  .wb-cards{ grid-template-columns:1fr; gap:26px; }
  .wb-card .thumb{ padding:16px 18px; }
  .wb-card .thumb .big{ font-size:23px; }
  .wb-card .tit{ font-size:15px; }

  /* --- 수강생 사례 --- */
  .tm-item .tm-q{ padding:18px 2px; gap:12px; }
  .tm-item .tm-q h3{ font-size:15.5px; }
  .tm-item .tm-q .who{ font-size:12.5px; }
  .tm-item .tm-a p{ font-size:14px; }

  /* --- 캘린더 --- */
  .cal-month .mon{ font-size:34px; line-height:36px; letter-spacing:2px; }
  .cal-legend{ font-size:12px; gap:5px; }
  .cal-row{ gap:14px; padding:16px 2px; }
  .cal-row .d{ width:42px; }
  .cal-row .d .n{ font-size:21px; }
  .cal-row .d .w{ font-size:12px; }
  .cal-row .body .t{ font-size:14.5px; }
  .cal-row .body .meta{ gap:10px; font-size:12px; flex-wrap:wrap; }

  /* --- 인사이트/강사진 가로 스크롤 --- */
  .hscroll{ gap:12px; margin:0 -16px; padding-left:16px; padding-right:16px; }
  .ins-card{ flex-basis:265px; }
  .ins-card .t{ font-size:14px; }
  .tc-card{ flex-basis:150px; }
  .tc-card .nm{ font-size:15px; }

  /* --- 커뮤니티 밴드 --- */
  .cm-band{ padding:40px 0 46px; }
  .cm-band .head{ font-size:18px; gap:8px; margin-bottom:22px; }
  .cm-band .head .ic{ font-size:22px; }
  .cm-card{ padding:20px 18px 16px; }
  .cm-card .tt{ font-size:16px; }

  /* --- 주목받는 클래스 / 강의 목록 --- */
  .cards{ grid-template-columns:1fr !important; gap:24px; }
  .card .tit{ font-size:15px; }

  /* --- 마퀴/푸터 --- */
  .marquee{ padding:18px 0; }
  .marquee span{ font-size:38px; }
  .footer .biglinks{ padding:36px 0 24px; gap:2px 30px; }
  .footer .biglinks a{ font-size:17px; padding:10px 0 2px; }
  .footer .helpband .l{ padding:28px 0; }
  .footer .helpband .l h3{ font-size:19px; }
  .footer .helpband .r a{ padding:18px 4px; font-size:16px; }
  .footer .infoarea{ padding:24px 0 90px; }
  .footer .infoarea .cols{ font-size:12px; line-height:1.9; }

  /* --- 플로팅 --- */
  .floats{ right:14px; bottom:14px; gap:9px; }
  .floats .consult{ height:42px; font-size:13px; padding:0 15px; }
  .floats .top{ width:38px; height:38px; font-size:15px; }

  /* --- 상세페이지 --- */
  .tl-page{ padding:0 16px 110px; }
  .tl-cover{ border-radius:10px; margin-top:14px; }
  .tl-title{ font-size:19px; margin:16px 0 8px; }
  .tl-price .now{ font-size:21px; }
  .tl-tabs{ top:46px; margin:26px -16px 0; padding:0 16px; }
  .tl-tabs a{ font-size:14px; padding:13px 2px; }
  .tl-section{ padding-top:34px; }
  .tl-ch .hd{ padding:15px 16px; font-size:14.5px; }
  .tl-score .big{ font-size:36px; }
  .tl-bottom .cta{ padding:14px; font-size:15px; }

  /* --- 신청/주문 폼: iOS 줌 방지 --- */
  input, select, textarea{ font-size:16px !important; }

  /* --- 팝업 --- */
  .wb-popup .vis .t2{ font-size:21px; }

  /* --- 드로어 --- */
  .drawer .panel{ width:280px; }
}

@media (max-width:420px){
  .th-card{ flex:0 0 88%; }
  .th-icons a{ font-size:11px; }
  .th-icons .cir{ width:46px; height:46px; font-size:20px; }
  .logo .txt{ font-size:17px; }
  .marquee span{ font-size:30px; }
  .cal-month .mon{ font-size:28px; }
}


/* ===== UI 폴리시: 제목 줄수 고정 + 헤더 통일 ===== */
.th-card .t, .wb-card .tit, .card .tit, .ins-card .t{
  display:-webkit-box; -webkit-box-orient:vertical; overflow:hidden; }
.th-card .t{ -webkit-line-clamp:2; }
.wb-card .tit{ -webkit-line-clamp:2; min-height:48px; }
.card .tit{ -webkit-line-clamp:2; min-height:44px; }
.ins-card .t{ -webkit-line-clamp:2; min-height:44px; }
.wb-card .thumb .big{ display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden; }

@media (max-width:768px){
  .sec-head{ gap:9px; margin-bottom:20px; }
  .sec-head h2{ font-size:19px; }
  .wb-card .tit{ min-height:0; }
  .card .tit{ min-height:0; }
  .cm-band{ padding:44px 0; }
  .floats{ bottom:calc(14px + env(safe-area-inset-bottom)); }
}
