/* 디미가 온라인교육 공통 디자인 — 디미가도시농업 색(소나무 초록·수확 오커·쌀종이) (2026-11-20) */
@import url('https://fonts.googleapis.com/css2?family=Gowun+Batang:wght@400;700&display=swap');
:root {
  --pri: #3D6B34; --pri-2: #2c4a22; --pri-soft: #e4ecd6;
  --acc: #C9862F; --acc-soft: #F6EACB;
  --ok: #138a4f; --ok-soft: #e6f6ee; --bad: #d23a3a; --bad-soft: #fdecec; --warn: #b7791f; --warn-soft: #fff6e0;
  --live: #e5363b;
  --ink: #22251C; --ink-2: #4B4C3F; --ink-3: #6f6e60; --line: #ddd6c2; --line-2: #eee9da;
  --bg: #F6F3E8; --card: #fff;
  --r: 14px; --r-sm: 10px;
  --sh: 0 1px 2px rgba(34, 37, 28, .05), 0 4px 16px rgba(34, 37, 28, .06);
  --sh-lg: 0 10px 40px rgba(34, 37, 28, .14);
  --font: 'Pretendard Variable', Pretendard, -apple-system, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); font-size: 15.5px; line-height: 1.6; word-break: keep-all; overflow-wrap: anywhere; }
a { color: var(--pri); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }
h1, h2, h3, h4 { line-height: 1.3; margin: 0 0 .5em; letter-spacing: -.02em; }
button, input, select, textarea { font: inherit; color: inherit; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--ink-3); }
.small { font-size: 13.5px; }
.hide { display: none !important; }
.center { text-align: center; }

/* ---------- 머리말 ---------- */
.ed-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .94); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.ed-header .ed-main { display: flex; align-items: center; gap: 18px; height: 64px; }
.ed-topbar { background: #223B1C; color: #C9D8B8; font-size: 12.5px; }
.ed-topbar .wrap { display: flex; justify-content: space-between; align-items: center; height: 30px; gap: 10px; }
.ed-topbar a { color: #F1DCB2; font-weight: 600; }
.ed-topbar .tb-r { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ed-topbar b { color: #fff; }
h1, h2, .ed-logo b, .sec-head h2 { font-family: "Gowun Batang", var(--font); }
.ed-logo { display: flex; align-items: center; gap: 9px; color: var(--ink); flex-shrink: 0; }
.ed-logo:hover { text-decoration: none; }
.ed-logo svg { width: 36px; height: 36px; }
.ed-logo .nm { display: flex; flex-direction: column; line-height: 1.1; }
.ed-logo b { font-size: 18.5px; letter-spacing: -.04em; }
.ed-logo small { font-size: 10.5px; color: var(--ink-3); letter-spacing: .08em; font-weight: 600; }
.ed-nav { display: flex; align-items: center; gap: 4px; flex: 1; min-width: 0; }
.ed-nav > a { padding: 8px 12px; border-radius: 9px; color: var(--ink-2); font-weight: 600; white-space: nowrap; }
.ed-nav > a:hover, .ed-nav > a.on { background: var(--pri-soft); color: var(--pri); text-decoration: none; }
.ed-hsearch { display: flex; margin-left: auto; max-width: 300px; flex: 1; }
.ed-hsearch input { flex: 1; min-width: 0; border: 1px solid var(--line); background: var(--bg); border-radius: 999px 0 0 999px; padding: 8px 14px; outline: none; }
.ed-hsearch input:focus { border-color: var(--pri); background: #fff; }
.ed-hsearch button { border: 0; background: var(--pri); color: #fff; padding: 0 14px; border-radius: 0 999px 999px 0; font-weight: 700; cursor: pointer; }
.ed-user { display: flex; gap: 6px; align-items: center; flex-shrink: 0; }
.ed-user a { padding: 8px 13px; border-radius: 9px; font-weight: 700; color: var(--ink-2); white-space: nowrap; font-size: 14.5px; }
.ed-user a:hover { background: var(--line-2); text-decoration: none; }
.ed-user a.primary { background: var(--pri); color: #fff; }
.ed-user a.primary:hover { background: var(--pri-2); }
.ed-burger { display: none; border: 0; background: none; width: 40px; height: 40px; padding: 9px 8px; cursor: pointer; flex-direction: column; justify-content: space-between; }
.ed-burger span { display: block; height: 2.5px; background: var(--ink); border-radius: 2px; }
.ed-drawer { position: fixed; inset: 0; z-index: 100; visibility: hidden; }
.ed-drawer.open { visibility: visible; }
.ed-drawer-bg { position: absolute; inset: 0; background: rgba(20, 24, 14, .45); opacity: 0; transition: opacity .2s; }
.ed-drawer.open .ed-drawer-bg { opacity: 1; }
.ed-drawer-panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(320px, 86vw); background: #fff; padding: 14px 16px 30px; overflow-y: auto; transform: translateX(100%); transition: transform .22s; }
.ed-drawer.open .ed-drawer-panel { transform: none; }
.ed-drawer-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.ed-drawer-x { border: 0; background: var(--line-2); width: 34px; height: 34px; border-radius: 50%; cursor: pointer; font-size: 16px; }
.ed-drawer-panel > a { display: block; padding: 12px 6px; border-bottom: 1px solid var(--line-2); color: var(--ink); font-weight: 600; font-size: 16px; }
.ed-drawer-panel .dcats { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 10px 0; border-bottom: 1px solid var(--line-2); }
.ed-drawer-panel .dcats a { padding: 8px; background: var(--bg); border-radius: 8px; color: var(--ink-2); font-size: 14px; }

/* ---------- 꼬리말 ---------- */
.ed-footer { background: #1a2416; color: #b5ae98; margin-top: 70px; padding: 36px 0 40px; font-size: 13.5px; }
.ed-footer .top { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 18px; }
.ed-footer b { color: #fff; font-size: 16px; }
.ed-footer .links { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.ed-footer a { color: #d9d2bc; }
.ed-footer .biz { line-height: 1.8; color: #8a8774; margin: 0; }

/* ---------- 버튼 · 입력 ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid transparent; border-radius: var(--r-sm); padding: 11px 18px; font-weight: 700; cursor: pointer; background: var(--line-2); color: var(--ink); white-space: nowrap; transition: background .15s, transform .05s; text-decoration: none !important; line-height: 1.3; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-pri { background: var(--pri); color: #fff; }
.btn-pri:hover { background: var(--pri-2); }
.btn-acc { background: var(--acc); color: #fff; }
.btn-acc:hover { background: #b8762a; }
.btn-ok { background: var(--ok); color: #fff; }
.btn-bad { background: var(--bad); color: #fff; }
.btn-line { background: #fff; border-color: var(--line); color: var(--ink-2); }
.btn-line:hover { border-color: var(--pri); color: var(--pri); }
.btn-ghost { background: transparent; color: var(--ink-2); }
.btn-ghost:hover { background: var(--line-2); }
.btn-sm { padding: 7px 12px; font-size: 13.5px; border-radius: 8px; }
.btn-lg { padding: 15px 26px; font-size: 17px; border-radius: 12px; }
.btn-block { width: 100%; }
.form { display: flex; flex-direction: column; gap: 14px; }
.field label { display: block; font-weight: 700; margin-bottom: 6px; font-size: 14.5px; }
.field .hint { font-size: 13px; color: var(--ink-3); margin-top: 5px; }
.req { color: var(--bad); }
.input, select.input, textarea.input { width: 100%; border: 1px solid var(--line); border-radius: var(--r-sm); padding: 11px 13px; background: #fff; outline: none; transition: border-color .15s, box-shadow .15s; }
.input:focus { border-color: var(--pri); box-shadow: 0 0 0 3px rgba(61, 107, 52, .12); }
textarea.input { resize: vertical; min-height: 90px; line-height: 1.6; }
.row { display: flex; gap: 8px; align-items: center; }
.row > * { min-width: 0; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.check { display: flex; gap: 8px; align-items: flex-start; cursor: pointer; font-size: 14.5px; }
.check input { margin-top: 4px; width: 17px; height: 17px; accent-color: var(--pri); flex-shrink: 0; }
.agree { background: var(--bg); border-radius: var(--r-sm); padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; }
.msg { display: none; padding: 10px 13px; border-radius: var(--r-sm); font-size: 14px; }
.msg.show { display: block; }
.msg.bad { background: var(--bad-soft); color: var(--bad); }
.msg.ok { background: var(--ok-soft); color: var(--ok); }
.pick { display: flex; flex-wrap: wrap; gap: 6px; }
.pick label { display: inline-flex; align-items: center; gap: 5px; padding: 7px 12px; border: 1px solid var(--line); border-radius: 999px; cursor: pointer; font-size: 14px; background: #fff; user-select: none; }
.pick input { display: none; }
.pick label:has(input:checked) { background: var(--pri); border-color: var(--pri); color: #fff; }

/* ---------- 카드 · 칩 ---------- */
.card { background: var(--card); border-radius: var(--r); box-shadow: var(--sh); padding: 22px; }
.chip { display: inline-flex; align-items: center; gap: 3px; padding: 2px 9px; border-radius: 999px; font-size: 12.5px; font-weight: 700; background: var(--line-2); color: var(--ink-2); white-space: nowrap; line-height: 1.6; }
.chip.pri { background: var(--pri-soft); color: var(--pri); }
.chip.acc { background: var(--acc-soft); color: #9c5f1a; }
.chip.ok { background: var(--ok-soft); color: var(--ok); }
.chip.bad { background: var(--bad-soft); color: var(--bad); }
.chip.warn { background: var(--warn-soft); color: var(--warn); }
.chip.live { background: var(--live); color: #fff; }
.chip.live::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: blink 1.2s infinite; }
@keyframes blink { 50% { opacity: .25; } }
.auth-box { max-width: 440px; margin: 40px auto; }
.auth-box h1 { text-align: center; font-size: 24px; margin-bottom: 18px; }
.kakao-btn { display: flex; align-items: center; justify-content: center; gap: 8px; background: #fee500; color: #191919; border-radius: var(--r-sm); padding: 13px; font-weight: 700; text-decoration: none !important; }
.or-line { display: flex; align-items: center; gap: 10px; color: var(--ink-3); font-size: 13px; margin: 14px 0 4px; }
.or-line::before, .or-line::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 18px; overflow-x: auto; scrollbar-width: none; }
.tabs button { border: 0; background: none; padding: 11px 15px; font-weight: 700; color: var(--ink-3); cursor: pointer; border-bottom: 2.5px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs button.on { color: var(--pri); border-bottom-color: var(--pri); }
.tab-pane { display: none; }
.tab-pane.on { display: block; }
.empty { text-align: center; padding: 40px 16px; color: var(--ink-3); }
.empty .ic { font-size: 40px; margin-bottom: 6px; }
.sec { margin-top: 44px; }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; margin-bottom: 16px; }
.sec-head h2 { font-size: 22px; margin: 0; }
.sec-head p { margin: 4px 0 0; color: var(--ink-3); font-size: 14px; }
.sec-head a { font-weight: 700; white-space: nowrap; font-size: 14px; }

/* ---------- 강의 카드 ---------- */
.c-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.c-card { background: #fff; border-radius: var(--r); overflow: hidden; box-shadow: var(--sh); display: flex; flex-direction: column; color: var(--ink); transition: transform .15s, box-shadow .15s; }
.c-card:hover { transform: translateY(-3px); box-shadow: var(--sh-lg); text-decoration: none; }
.c-card .th { position: relative; aspect-ratio: 16 / 9; background: var(--cc, var(--pri)); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.c-card .th img { width: 100%; height: 100%; object-fit: cover; }
.c-card .th .emo { font-size: 54px; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .2)); }
.c-card .th .ttl { position: absolute; left: 14px; right: 14px; bottom: 12px; color: #fff; font-weight: 800; font-size: 15px; line-height: 1.35; text-shadow: 0 1px 6px rgba(0, 0, 0, .35); display: none; }
.c-card .th.noimg { background: linear-gradient(135deg, var(--cc, var(--pri)), color-mix(in srgb, var(--cc, var(--pri)) 60%, #000)); }
.c-card .flags { position: absolute; top: 10px; left: 10px; display: flex; gap: 5px; flex-wrap: wrap; }
.c-card .flags .chip { background: rgba(255, 255, 255, .95); }
.c-card .flags .chip.live { background: var(--live); }
.c-card .bd { padding: 14px 15px 15px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.c-card .meta { display: flex; gap: 6px; align-items: center; font-size: 12.5px; color: var(--ink-3); flex-wrap: wrap; }
.c-card .meta .cat { color: var(--cc); font-weight: 800; }
.c-card h3 { font-size: 16px; margin: 0; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.c-card .sum { font-size: 13.5px; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin: 0; }
.c-card .tch { display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--ink-2); font-weight: 600; margin-top: auto; padding-top: 6px; }
.c-card .tch img, .c-card .tch .av { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; background: var(--line); display: inline-flex; align-items: center; justify-content: center; font-size: 12px; }
.c-card .ft { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--line-2); padding-top: 9px; margin-top: 4px; }
.c-card .price { font-weight: 800; font-size: 16px; }
.c-card .price.free { color: var(--ok); }
.c-card .next { font-size: 12.5px; color: var(--pri); font-weight: 700; }
.c-card .stars { color: #f5a623; font-size: 12.5px; font-weight: 700; }
.av { display: inline-flex; align-items: center; justify-content: center; background: var(--pri-soft); color: var(--pri); font-weight: 800; border-radius: 50%; }

/* ---------- 처음 화면 ---------- */
.hero { background: radial-gradient(1200px 400px at 85% -10%, rgba(201, 134, 47, .22), transparent 60%), linear-gradient(135deg, #2c4a22 0%, #3D6B34 55%, #4f7f43 100%); color: #fff; padding: 56px 0 64px; position: relative; overflow: hidden; }
.hero::after { content: ''; position: absolute; right: -80px; bottom: -120px; width: 420px; height: 420px; border-radius: 50%; background: rgba(255, 255, 255, .06); }
.hero .wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; position: relative; z-index: 1; }
.hero .eyebrow { display: inline-flex; gap: 8px; align-items: center; background: rgba(255, 255, 255, .14); padding: 6px 13px; border-radius: 999px; font-size: 13.5px; font-weight: 700; margin-bottom: 16px; }
.hero h1 { font-size: 42px; font-weight: 800; letter-spacing: -.04em; margin-bottom: 14px; }
.hero h1 em { font-style: normal; color: #ffd27a; }
.hero p.lead { font-size: 17.5px; opacity: .9; margin: 0 0 26px; }
.hero-search { display: flex; background: #fff; border-radius: 14px; padding: 6px; box-shadow: 0 10px 30px rgba(0, 0, 0, .2); max-width: 560px; }
.hero-search input { flex: 1; border: 0; outline: none; padding: 10px 14px; font-size: 16px; min-width: 0; color: var(--ink); }
.hero-search button { border: 0; background: var(--acc); color: #fff; font-weight: 800; padding: 0 22px; border-radius: 10px; cursor: pointer; font-size: 15.5px; }
.hero .hot { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.hero .hot a { color: #fff; background: rgba(255, 255, 255, .13); padding: 5px 12px; border-radius: 999px; font-size: 13.5px; }
.hero .hot a:hover { background: rgba(255, 255, 255, .25); text-decoration: none; }
.hero-visual { background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .2); border-radius: 20px; padding: 14px; backdrop-filter: blur(6px); }
.hv-stage { aspect-ratio: 16 / 10; border-radius: 13px; background: linear-gradient(160deg, #141c10, #2a3a22); position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.hv-board { position: absolute; inset: 12% 10% 26% 10%; background: #fff; border-radius: 8px; padding: 14px; color: var(--ink); font-size: 13px; }
.hv-board b { color: var(--pri); font-size: 15px; }
.hv-board .ln { height: 7px; background: var(--line); border-radius: 4px; margin-top: 9px; }
.hv-board .ln.s { width: 60%; }
.hv-board .ln.a { background: #f1dcb2; width: 75%; }
.hv-tiles { position: absolute; left: 10%; right: 10%; bottom: 6%; display: flex; gap: 6px; }
.hv-tiles span { flex: 1; aspect-ratio: 4 / 3; border-radius: 6px; background: #4a5a3c; display: flex; align-items: center; justify-content: center; font-size: 18px; }
.hv-live { position: absolute; top: 10px; left: 10px; }
.hv-bar { display: flex; justify-content: center; gap: 8px; margin-top: 11px; }
.hv-bar span { width: 36px; height: 36px; border-radius: 50%; background: rgba(255, 255, 255, .16); display: flex; align-items: center; justify-content: center; font-size: 15px; }
.hv-bar span.end { background: var(--live); }
.stats-band { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: -30px; position: relative; z-index: 2; }
.stats-band div { background: #fff; border-radius: var(--r); box-shadow: var(--sh); padding: 16px; text-align: center; }
.stats-band b { display: block; font-size: 24px; color: var(--pri); }
.stats-band span { font-size: 13.5px; color: var(--ink-3); }
.cat-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.cat-grid a { background: #fff; border-radius: var(--r); padding: 16px 10px 14px; text-align: center; box-shadow: var(--sh); color: var(--ink); transition: transform .15s; border: 1.5px solid transparent; }
.cat-grid a:hover { transform: translateY(-2px); border-color: var(--cc); text-decoration: none; }
.cat-grid .ic { width: 52px; height: 52px; border-radius: 15px; background: color-mix(in srgb, var(--cc) 13%, #fff); display: flex; align-items: center; justify-content: center; font-size: 26px; margin: 0 auto 8px; }
.cat-grid b { display: block; font-size: 15px; }
.cat-grid small { color: var(--ink-3); font-size: 12px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.steps .card { position: relative; padding-top: 26px; }
.steps .n { position: absolute; top: -14px; left: 20px; width: 32px; height: 32px; border-radius: 50%; background: var(--acc); color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.steps h3 { font-size: 17px; }
.steps p { margin: 0; color: var(--ink-2); font-size: 14.5px; }
.why { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.why .card { padding: 18px; }
.why .ic { font-size: 28px; }
.why h3 { font-size: 16px; margin: 8px 0 4px; }
.why p { font-size: 13.5px; color: var(--ink-2); margin: 0; }
.up-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.up-item { display: flex; gap: 12px; align-items: center; background: #fff; border-radius: var(--r); box-shadow: var(--sh); padding: 12px; color: var(--ink); }
.up-item:hover { text-decoration: none; box-shadow: var(--sh-lg); }
.up-item .when { flex-shrink: 0; width: 64px; text-align: center; background: var(--pri-soft); border-radius: 10px; padding: 8px 4px; }
.up-item .when b { display: block; font-size: 17px; color: var(--pri); }
.up-item .when small { font-size: 11.5px; color: var(--ink-2); font-weight: 700; }
.up-item .when.live { background: var(--live); }
.up-item .when.live b, .up-item .when.live small { color: #fff; }
.up-item .tx { min-width: 0; }
.up-item .tx b { display: block; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.up-item .tx small { color: var(--ink-3); font-size: 12.5px; }
.cta-band { background: linear-gradient(120deg, #C9862F, #dba154); color: #fff; border-radius: 20px; padding: 32px; display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.cta-band h2 { font-size: 24px; margin-bottom: 6px; }
.cta-band p { margin: 0; opacity: .92; }
.cta-band .btn { background: #fff; color: #a8681f; }
.t-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.t-card { background: #fff; border-radius: var(--r); box-shadow: var(--sh); padding: 18px 14px; text-align: center; color: var(--ink); }
.t-card:hover { text-decoration: none; box-shadow: var(--sh-lg); }
.t-card .ph { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; margin: 0 auto 10px; display: flex; align-items: center; justify-content: center; font-size: 30px; }
.t-card b { display: block; font-size: 16px; }
.t-card p { margin: 4px 0 8px; font-size: 13px; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- 강의 찾기 ---------- */
.page-head { padding: 30px 0 8px; }
.page-head h1 { font-size: 28px; margin-bottom: 4px; }
.page-head p { color: var(--ink-3); margin: 0; }
.filter-bar { background: #fff; border-radius: var(--r); box-shadow: var(--sh); padding: 14px; margin: 18px 0; display: flex; flex-direction: column; gap: 10px; }
.chips-row { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.chips-row::-webkit-scrollbar { display: none; }
.fchip { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 7px 14px; font-weight: 600; font-size: 14px; cursor: pointer; white-space: nowrap; color: var(--ink-2); }
.fchip.on { background: var(--pri); border-color: var(--pri); color: #fff; }
.filter-bar .sub { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.filter-bar select.input { width: auto; padding: 8px 12px; }
.filter-bar .cnt { margin-left: auto; color: var(--ink-3); font-size: 14px; }

/* ---------- 강의 상세 ---------- */
.cd-top { background: linear-gradient(135deg, #1B3116, #3D6B34); color: #fff; padding: 32px 0; }
.cd-top .wrap { display: grid; grid-template-columns: 1fr 380px; gap: 30px; }
.cd-top .crumbs { font-size: 13.5px; opacity: .8; margin-bottom: 8px; }
.cd-top .crumbs a { color: #fff; }
.cd-top h1 { font-size: 30px; margin-bottom: 10px; }
.cd-top .sum { font-size: 16.5px; opacity: .92; margin: 0 0 14px; }
.cd-top .meta { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 14px; opacity: .92; }
.cd-top .tline { display: flex; gap: 10px; align-items: center; margin-top: 18px; }
.cd-top .tline img, .cd-top .tline .av { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.cd-body { display: grid; grid-template-columns: 1fr 380px; gap: 30px; margin-top: 24px; }
.cd-side { position: relative; }
.buy-box { position: sticky; top: 80px; background: #fff; border-radius: var(--r); box-shadow: var(--sh-lg); overflow: hidden; margin-top: -190px; }
.buy-box .th { aspect-ratio: 16 / 9; background: var(--cc, var(--pri)); display: flex; align-items: center; justify-content: center; font-size: 64px; }
.buy-box .th img { width: 100%; height: 100%; object-fit: cover; }
.buy-box .in { padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.buy-box .pr { font-size: 28px; font-weight: 800; }
.buy-box .pr.free { color: var(--ok); }
.buy-box dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 0; font-size: 14px; }
.buy-box dt { color: var(--ink-3); }
.buy-box dd { margin: 0; font-weight: 600; }
.seat-bar { height: 7px; background: var(--line-2); border-radius: 4px; overflow: hidden; }
.seat-bar i { display: block; height: 100%; background: var(--acc); border-radius: 4px; }
.prog { height: 9px; background: var(--line-2); border-radius: 5px; overflow: hidden; }
.prog i { display: block; height: 100%; background: linear-gradient(90deg, var(--pri), #6f9a5c); border-radius: 5px; }
.cd-sec { background: #fff; border-radius: var(--r); box-shadow: var(--sh); padding: 22px; margin-bottom: 18px; }
.cd-sec h2 { font-size: 19px; display: flex; align-items: center; gap: 8px; }
.target-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 7px; }
.target-list li { padding-left: 26px; position: relative; }
.target-list li::before { content: '✓'; position: absolute; left: 0; top: 0; width: 19px; height: 19px; border-radius: 50%; background: var(--ok-soft); color: var(--ok); font-size: 12px; font-weight: 800; display: flex; align-items: center; justify-content: center; margin-top: 3px; }
.rich { font-size: 15.5px; line-height: 1.8; }
.rich h2, .rich h3 { margin-top: 1.2em; }
.rich img { border-radius: 10px; }
.rich table { border-collapse: collapse; width: 100%; }
.rich th, .rich td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; }
.rich th { background: var(--bg); }
.rich .todo { background: #fff3a8; color: #8a5a00; padding: 0 4px; border-radius: 4px; font-weight: 700; }
.curri { list-style: none; padding: 0; margin: 0; border: 1px solid var(--line); border-radius: var(--r-sm); overflow: hidden; }
.curri li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--line-2); }
.curri li:last-child { border-bottom: 0; }
.curri .no { width: 30px; height: 30px; border-radius: 8px; background: var(--pri-soft); color: var(--pri); font-weight: 800; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 13.5px; }
.curri .no.ok { background: var(--ok); color: #fff; }
.curri .tx { flex: 1; min-width: 0; }
.curri .tx b { display: block; font-size: 15px; }
.curri .tx small { color: var(--ink-3); font-size: 13px; }
.curri .act { flex-shrink: 0; display: flex; gap: 6px; }
.mat-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.mat-list li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: var(--bg); border-radius: 9px; }
.mat-list li b { flex: 1; font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rv { border-top: 1px solid var(--line-2); padding: 12px 0; }
.rv .hd { display: flex; gap: 8px; align-items: center; font-size: 13.5px; }
.rv .st { color: #f5a623; letter-spacing: 1px; }
.rv p { margin: 4px 0 0; }
.star-pick { display: flex; gap: 2px; font-size: 28px; cursor: pointer; user-select: none; }
.star-pick span { color: var(--line); }
.star-pick span.on { color: #f5a623; }
.tp { display: flex; gap: 16px; align-items: flex-start; }
.tp img, .tp .av { width: 76px; height: 76px; border-radius: 50%; object-fit: cover; flex-shrink: 0; font-size: 28px; }
.tp ul { margin: 8px 0 0; padding-left: 18px; color: var(--ink-2); font-size: 14px; }

/* ---------- 내 강의실 · 강사 센터 · 관리자 공용 ---------- */
.dash { display: grid; grid-template-columns: 230px 1fr; gap: 22px; margin-top: 26px; align-items: start; }
.side-nav { background: #fff; border-radius: var(--r); box-shadow: var(--sh); padding: 10px; position: sticky; top: 80px; }
.side-nav .who { padding: 10px 10px 14px; border-bottom: 1px solid var(--line-2); margin-bottom: 6px; }
.side-nav .who b { display: block; font-size: 16px; }
.side-nav button { display: flex; width: 100%; gap: 9px; align-items: center; border: 0; background: none; text-align: left; padding: 10px 12px; border-radius: 9px; font-weight: 600; cursor: pointer; color: var(--ink-2); }
.side-nav button:hover { background: var(--bg); }
.side-nav button.on { background: var(--pri-soft); color: var(--pri); }
.side-nav button .badge { margin-left: auto; background: var(--bad); color: #fff; border-radius: 999px; font-size: 11.5px; padding: 0 7px; }
.panel { display: none; }
.panel.on { display: block; }
.panel > h2 { font-size: 22px; display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.my-item { display: grid; grid-template-columns: 180px 1fr auto; gap: 16px; align-items: center; background: #fff; border-radius: var(--r); box-shadow: var(--sh); padding: 14px; margin-bottom: 12px; }
.my-item .th { aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: var(--cc, var(--pri)); display: flex; align-items: center; justify-content: center; font-size: 36px; }
.my-item .th img { width: 100%; height: 100%; object-fit: cover; }
.my-item h3 { font-size: 16.5px; margin-bottom: 4px; }
.my-item .acts { display: flex; flex-direction: column; gap: 6px; align-items: stretch; min-width: 130px; }
.tbl-wrap { overflow-x: auto; background: #fff; border-radius: var(--r); box-shadow: var(--sh); }
table.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { background: #faf8f1; text-align: left; padding: 10px 12px; font-weight: 700; color: var(--ink-2); border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 10px 12px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl .num { text-align: right; font-variant-numeric: tabular-nums; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 18px; }
.kpi { background: #fff; border-radius: var(--r); box-shadow: var(--sh); padding: 16px; }
.kpi small { color: var(--ink-3); font-weight: 600; }
.kpi b { display: block; font-size: 24px; margin-top: 2px; }
.kpi.alert b { color: var(--bad); }
.att-cell { width: 26px; height: 26px; border-radius: 7px; border: 0; cursor: pointer; font-weight: 800; font-size: 12px; background: var(--line-2); color: var(--ink-3); }
.att-cell.ok { background: var(--ok); color: #fff; }
.att-cell.manual { outline: 2px solid var(--acc); outline-offset: 1px; }
.sess-row { display: grid; grid-template-columns: 40px 1fr auto; gap: 10px; align-items: center; padding: 10px 12px; border-bottom: 1px solid var(--line-2); }
.sess-row:last-child { border-bottom: 0; }
.notice-top { display: flex; gap: 12px; align-items: center; padding: 13px 16px; border-bottom: 1px solid var(--line-2); color: var(--ink); }
.notice-top:hover { background: var(--bg); text-decoration: none; }

/* ---------- 알림 창 · 토스트 ---------- */
.modal-dim { position: fixed; inset: 0; background: rgba(20, 24, 14, .5); z-index: 200; display: none; align-items: center; justify-content: center; padding: 16px; }
.modal-dim.open { display: flex; }
.modal { background: #fff; border-radius: 16px; padding: 22px; width: 100%; max-width: 440px; max-height: 90vh; overflow-y: auto; box-shadow: var(--sh-lg); }
.modal.wide { max-width: 680px; }
.modal h3 { font-size: 19px; }
.modal .btns { display: flex; gap: 8px; justify-content: flex-end; margin-top: 18px; }
.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%) translateY(20px); background: #22251C; color: #fff; padding: 12px 20px; border-radius: 12px; z-index: 300; opacity: 0; transition: .25s; pointer-events: none; font-weight: 600; max-width: calc(100% - 32px); text-align: center; }
.toast.show { opacity: 1; transform: translateX(-50%); }
.editor { border: 1px solid var(--line); border-radius: var(--r-sm); overflow: hidden; background: #fff; }
.editor .bar { display: flex; gap: 2px; padding: 5px; background: var(--bg); border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.editor .bar button { border: 0; background: none; padding: 5px 9px; border-radius: 6px; cursor: pointer; font-weight: 700; font-size: 13.5px; }
.editor .bar button:hover { background: #fff; }
.editor .area { min-height: 200px; padding: 12px 14px; outline: none; line-height: 1.75; }
.editor .area:empty::before { content: attr(data-ph); color: var(--ink-3); }

/* ---------- 휴대폰 · 태블릿 ---------- */
@media (max-width: 1080px) {
  .c-grid { grid-template-columns: repeat(3, 1fr); }
  .t-grid { grid-template-columns: repeat(4, 1fr); }
  .cat-grid { grid-template-columns: repeat(4, 1fr); }
  .why { grid-template-columns: repeat(2, 1fr); }
  .ed-hsearch { display: none; }
}
@media (max-width: 860px) {
  .ed-nav, .ed-user .hide-m { display: none; }
  .ed-burger { display: flex; margin-left: auto; }
  .ed-user { margin-left: auto; }
  .hero { padding: 36px 0 54px; }
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .hero h1 { font-size: 31px; }
  .hero p.lead { font-size: 16px; }
  .cd-top .wrap, .cd-body { grid-template-columns: 1fr; }
  .buy-box { margin-top: 0; position: static; }
  .cd-side { order: -1; }
  .dash { grid-template-columns: 1fr; }
  .side-nav { position: static; display: flex; overflow-x: auto; padding: 6px; gap: 2px; scrollbar-width: none; }
  .side-nav .who { display: none; }
  .side-nav button { white-space: nowrap; width: auto; }
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .up-list { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 24px; }
  .cta-band { flex-direction: column; align-items: flex-start; padding: 24px; }
}
@media (max-width: 640px) {
  body { font-size: 15px; }
  .c-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .c-card .bd { padding: 10px 11px 12px; }
  .c-card h3 { font-size: 14.5px; }
  .c-card .sum, .c-card .tch { display: none; }
  .c-card .price { font-size: 14.5px; }
  .t-grid { grid-template-columns: repeat(2, 1fr); }
  .cat-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .cat-grid a { padding: 12px 4px 10px; }
  .cat-grid .ic { width: 44px; height: 44px; font-size: 22px; }
  .cat-grid small { display: none; }
  .stats-band { grid-template-columns: repeat(2, 1fr); }
  .why { grid-template-columns: 1fr; }
  .grid2, .grid3 { grid-template-columns: 1fr; }
  .my-item { grid-template-columns: 96px 1fr; }
  .my-item .acts { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; }
  .my-item .acts .btn { flex: 1; }
  .cd-top h1 { font-size: 23px; }
  .card { padding: 18px; }
  .page-head h1 { font-size: 23px; }
  .sec-head h2 { font-size: 19px; }
}
@media print {
  .ed-header, .ed-footer, .no-print { display: none !important; }
  body { background: #fff; }
}
