/* 벌크농부 클래스 — 공통 스타일 */
:root {
  --green: #5B9B75;
  --green-dark: #47795C;
  --green-deep: #365B44;
  --pink: #F2B5A0;
  --pink-soft: #FBEAE2;
  --red: #E03030;
  --ink: #1A1A1A;
  --ink-soft: #2C2C2C;
  --dim: #6B6B6B;
  --line: #E8E4DC;
  --bg: #F7F5F0;
  --card: #FFFFFF;
  --radius: 14px;
  --radius-lg: 22px;
  /* 부드럽게 겹쳐 쌓은 그림자 — 단일 하드 섀도우보다 깊이감이 자연스럽다 */
  --sh-sm: 0 1px 2px rgba(26,26,26,.04), 0 3px 10px rgba(26,26,26,.05);
  --sh-md: 0 4px 14px rgba(26,26,26,.06), 0 14px 34px rgba(26,26,26,.08);
  --sh-lg: 0 20px 56px rgba(26,26,26,.14);
  --ease: cubic-bezier(.22,.61,.36,1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body { height: 100%; }

body {
  font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  letter-spacing: -0.01em;
  /* 한글이 줄 끝에서 단어 중간에 잘리지 않게 (가독성 핵심) */
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* 제목류는 줄간격을 조금 더 촘촘하게, 본문은 넉넉하게 */
h1, h2, h3 { word-break: keep-all; }
p, li { overflow-wrap: break-word; }

/* 줄바꿈 품질 — 제목은 줄 길이를 고르게(balance), 본문은 마지막 줄에 한 단어만
   외톨이로 떨어지지 않게(pretty). 폰에서 어색하게 끊기는 문제를 줄인다. */
h1, h2, h3,
.hero h1, .about-hero h1, .course-hero h1,
.about-tagline, .course-hero .tagline, .hero .eyebrow,
.review-highlight .rh-quote, .section-head h2, .card-body h3, .thumb strong {
  text-wrap: balance;
}
p, li, .lead, .story p, .value-card p, .review-card p,
.comment p, .post-detail .p-body, .instructor-card ul li {
  text-wrap: pretty;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; font-size: 15px; }

.container { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 20px; }
main { flex: 1; }

/* ---------- 헤더 ---------- */
#siteHeader {
  background: var(--card);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}
.header-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 28px;
}
.logo { font-size: 20px; font-weight: 900; letter-spacing: -0.5px; }
.logo span { color: var(--green); }
#siteHeader nav { display: flex; gap: 4px; flex: 1; }
#siteHeader nav a {
  padding: 8px 14px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 15px;
  color: var(--dim);
}
#siteHeader nav a:hover { background: var(--bg); color: var(--ink); }
#siteHeader nav a.active { color: var(--green-dark); background: #EAF3EE; }
.user-area { display: flex; align-items: center; gap: 8px; }
.user-name { font-size: 14px; font-weight: 700; white-space: nowrap; border-radius: 8px; padding: 6px 8px; }
.user-name:hover { background: #EAF3EE; color: var(--green-dark); }
.coach-tag {
  background: var(--green);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  border-radius: 5px;
  padding: 1px 7px;
  vertical-align: middle;
}
.user-chip {
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}
.user-chip:hover { border-color: var(--green); }
.user-chip.chip-primary { background: var(--green); border-color: var(--green); color: #fff; }
.user-chip.chip-primary:hover { background: var(--green-dark); }

/* ---------- 푸터 ---------- */
#siteFooter {
  background: var(--ink);
  color: #fff;
  margin-top: 72px;
}
.footer-inner { max-width: 1080px; margin: 0 auto; padding: 36px 20px; }
.footer-inner .logo span { color: var(--pink); }
.footer-inner p { margin-top: 8px; font-size: 14px; }
.footer-inner .dim { color: #999; }

/* ---------- 버튼 ---------- */
.btn {
  display: inline-block;
  border: none;
  border-radius: 10px;
  padding: 13px 26px;
  font-size: 16px;
  font-weight: 800;
  text-align: center;
  transition: transform 0.06s ease, opacity 0.15s ease;
}
.btn:active { transform: scale(0.98); }
.btn-green { background: var(--green); color: #fff; }
.btn-green:hover { background: var(--green-dark); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { opacity: 0.85; }
.btn-ghost { background: transparent; border: 2px solid var(--ink); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-sm { padding: 8px 14px; font-size: 14px; border-radius: 8px; }
.btn-red { background: #fff; border: 1px solid var(--line); color: var(--red); }
.btn-red:hover { border-color: var(--red); }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }

/* ---------- 히어로 ---------- */
.hero {
  position: relative;
  background: var(--green);
  color: #fff;
  padding: 96px 0 128px;
  overflow: hidden;
  isolation: isolate;
}
/* 하단에 얇은 심도 라인 하나 — 그라디언트·글로우 없이 평면을 유지 */
.hero::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 160px;
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,.08) 100%);
  pointer-events: none;
  z-index: -1;
}
.hero .container { position: relative; max-width: 900px; }
.hero .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 999px;
  padding: 7px 17px 7px 14px;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: .1px;
  margin-bottom: 26px;
  backdrop-filter: blur(4px);
}
.hero .eyebrow::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--pink);
  box-shadow: 0 0 0 4px rgba(242,181,160,.28);
}
.hero h1 {
  font-size: clamp(34px, 6.2vw, 60px);
  font-weight: 900;
  line-height: 1.14;
  letter-spacing: -1.8px;
}
.hero h1 em {
  font-style: normal;
  color: #FFE3D6;
  position: relative;
}
.hero p.lead {
  margin-top: 24px;
  font-size: clamp(16px, 2.1vw, 19px);
  line-height: 1.7;
  opacity: 0.94;
  max-width: 540px;
}
.hero .hero-cta { margin-top: 36px; display: flex; gap: 12px; flex-wrap: wrap; }
.hero .btn { padding: 15px 30px; box-shadow: var(--sh-sm); }
.hero .btn-ghost { border-color: rgba(255,255,255,.55); color: #fff; box-shadow: none; }
.hero .btn-ghost:hover { background: #fff; color: var(--green-deep); border-color: #fff; }
.hero .btn-pink { background: var(--pink); color: var(--ink); }
.hero .btn-pink:hover { background: #F6C4B2; opacity: 1; }

/* 신뢰 지표 — 부드럽게 뜨는 카드. 홈에선 히어로 아래로 겹친다 (에디토리얼 무빙) */
.stat-strip { position: relative; z-index: 2; }
.stat-strip .container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 28px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--sh-md);
  padding: 30px 24px;
}
.stat-strip .stat { text-align: center; position: relative; }
.stat-strip .stat + .stat::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 42px;
  background: var(--line);
}
.stat-strip .stat strong {
  display: block;
  font-size: clamp(24px, 3.2vw, 32px);
  font-weight: 900;
  letter-spacing: -1px;
  color: var(--green-dark);
  line-height: 1.1;
}
.stat-strip .stat span { font-size: 13px; color: var(--dim); font-weight: 600; margin-top: 5px; display: block; }
/* 홈 히어로 바로 뒤에 올 때만 위로 겹친다 (about 페이지 뱃지 가림 방지) */
.hero + .stat-strip .container { margin-top: -72px; }

/* ---------- 섹션 ---------- */
.section { padding: 72px 0 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 26px; }
.section-head h2 {
  font-size: clamp(23px, 3.4vw, 30px);
  font-weight: 900;
  letter-spacing: -0.9px;
  position: relative;
  padding-left: 16px;
}
.section-head h2::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.12em;
  bottom: 0.12em;
  width: 5px;
  border-radius: 3px;
  background: var(--green);
}
.section-head a { font-size: 14px; font-weight: 700; color: var(--dim); white-space: nowrap; transition: color .15s ease; }
.section-head a:hover { color: var(--green-dark); }

/* ---------- 강의 카드 ---------- */
.course-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 22px;
}
.course-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--sh-sm);
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease), border-color 0.22s var(--ease);
}
.course-card:hover { transform: translateY(-5px); box-shadow: var(--sh-lg); border-color: transparent; }
.thumb {
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: flex-end;
  padding: 20px;
  position: relative;
  color: #fff;
  overflow: hidden;
}
/* 썸네일에 미세한 결(그레인/광택)을 얹어 단조로운 그라디언트를 보완 */
.thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 90% at 85% 0%, rgba(255,255,255,.22) 0%, rgba(255,255,255,0) 55%);
  pointer-events: none;
}
.thumb strong { position: relative; z-index: 1; font-size: 20px; font-weight: 900; line-height: 1.3; letter-spacing: -0.5px; word-break: keep-all; }
.thumb-green { background: linear-gradient(135deg, #6FAE88, #47795C); }
.thumb-pink { background: linear-gradient(135deg, #F2B5A0, #DE8F73); color: var(--ink); }
.thumb-dark { background: linear-gradient(135deg, #3A3A3A, #1A1A1A); }
.thumb-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--red);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  border-radius: 6px;
  padding: 3px 9px;
}
.thumb-pink .thumb-badge { background: var(--ink); }
.card-body { padding: 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-body h3 { font-size: 17px; font-weight: 800; letter-spacing: -0.3px; word-break: keep-all; }
.card-body p { font-size: 14px; color: var(--dim); flex: 1; }
.card-meta { display: flex; justify-content: space-between; font-size: 13px; color: var(--dim); margin-top: 8px; }
.card-meta .price { font-weight: 900; color: var(--ink); font-size: 15px; }

/* ---------- 강의 상세 ---------- */
.course-hero { background: var(--ink); color: #fff; padding: 56px 0; }
.course-hero .badge {
  display: inline-block;
  background: var(--red);
  border-radius: 6px;
  padding: 4px 12px;
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 14px;
}
.course-hero h1 { font-size: clamp(26px, 4vw, 38px); font-weight: 900; letter-spacing: -0.8px; line-height: 1.3; word-break: keep-all; }
.course-hero .tagline { margin-top: 12px; font-size: 17px; color: #ccc; max-width: 620px; }
.course-hero .meta-row { margin-top: 20px; display: flex; gap: 18px; flex-wrap: wrap; font-size: 14px; color: #aaa; }
.course-hero .cta-row { margin-top: 28px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.course-hero .price-tag { font-size: 26px; font-weight: 900; color: var(--pink); }

.detail-grid { display: grid; grid-template-columns: 1fr 320px; gap: 32px; margin-top: 40px; }
.detail-main > section + section { margin-top: 40px; }
.detail-main h2 { font-size: 21px; font-weight: 900; margin-bottom: 14px; letter-spacing: -0.4px; }
.outcome-list { list-style: none; display: grid; gap: 10px; }
.outcome-list li {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 13px 16px;
  font-size: 15px;
  font-weight: 500;
}
.outcome-list li::before { content: '✓'; color: var(--green); font-weight: 900; margin-right: 10px; }

.curriculum { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--card); }
.curr-section + .curr-section { border-top: 1px solid var(--line); }
.curr-section-head {
  width: 100%;
  background: #FAF8F4;
  border: none;
  text-align: left;
  padding: 14px 18px;
  font-size: 15px;
  font-weight: 800;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.curr-section-head .count { font-size: 13px; color: var(--dim); font-weight: 500; }
.curr-lectures { display: none; }
.curr-section.open .curr-lectures { display: block; }
.curr-lecture {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-top: 1px solid #F1EDE6;
  font-size: 14px;
}
.curr-lecture .dur { color: var(--dim); font-size: 13px; white-space: nowrap; }

.instructor-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  position: sticky;
  top: 84px;
}
.instructor-card .avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-size: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}
.instructor-card h3 { font-size: 18px; font-weight: 900; }
.instructor-card .role { font-size: 13px; color: var(--dim); margin-bottom: 12px; }
.instructor-card ul { list-style: none; display: grid; gap: 6px; font-size: 14px; }
.instructor-card ul li::before { content: '·'; margin-right: 8px; color: var(--green); font-weight: 900; }

/* ---------- 강의실 ---------- */
.classroom { display: grid; grid-template-columns: 320px 1fr; min-height: calc(100vh - 61px); }
.class-sidebar {
  background: var(--card);
  border-right: 1px solid var(--line);
  padding: 22px 0;
  overflow-y: auto;
}
.class-sidebar .sb-head { padding: 0 20px 16px; border-bottom: 1px solid var(--line); }
.class-sidebar .sb-head a { font-size: 13px; color: var(--dim); }
.class-sidebar .sb-head a:hover { color: var(--green-dark); }
.class-sidebar .sb-head h2 { font-size: 17px; font-weight: 900; margin-top: 6px; word-break: keep-all; }
.progress-wrap { padding: 14px 20px; border-bottom: 1px solid var(--line); }
.progress-bar { height: 8px; background: var(--line); border-radius: 999px; overflow: hidden; }
.progress-bar i { display: block; height: 100%; background: var(--green); border-radius: 999px; }
.progress-wrap span { font-size: 12px; color: var(--dim); }
.sb-section-title { padding: 16px 20px 8px; font-size: 13px; font-weight: 800; color: var(--dim); }
.sb-lecture {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  border: none;
  background: none;
  text-align: left;
  padding: 10px 20px;
  font-size: 14px;
  color: var(--ink);
}
.sb-lecture:hover { background: var(--bg); }
.sb-lecture.current { background: #EAF3EE; font-weight: 800; color: var(--green-dark); }
.sb-lecture .check { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line); flex-shrink: 0; font-size: 11px; line-height: 15px; text-align: center; color: transparent; }
.sb-lecture.done .check { background: var(--green); border-color: var(--green); color: #fff; }
.sb-lecture .t { flex: 1; word-break: keep-all; }
.sb-lecture .dur { font-size: 12px; color: var(--dim); }

.class-main { padding: 28px 32px 60px; max-width: 900px; }
.video-frame { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #000; border-radius: var(--radius); overflow: hidden; }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #ccc;
  background: linear-gradient(135deg, #2E2E2E, #1A1A1A);
  text-align: center;
  padding: 20px;
}
.video-placeholder .icon { font-size: 44px; }
.video-placeholder strong { color: #fff; font-size: 17px; }
.video-placeholder small { font-size: 13px; color: #999; }
.lecture-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; margin-top: 20px; flex-wrap: wrap; }
.lecture-head h1 { font-size: 22px; font-weight: 900; letter-spacing: -0.5px; word-break: keep-all; }
.lecture-head .sec-name { font-size: 13px; color: var(--dim); }
.lecture-nav { display: flex; gap: 8px; margin-top: 18px; flex-wrap: wrap; }

/* ---------- 댓글 ---------- */
.comments { margin-top: 40px; }
.comments h2 { font-size: 18px; font-weight: 900; margin-bottom: 14px; }
.comment-form { display: flex; gap: 10px; align-items: flex-start; }
.comment-form textarea {
  flex: 1;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  resize: vertical;
  min-height: 70px;
  background: var(--card);
}
.comment-form textarea:focus { outline: 2px solid var(--green); border-color: transparent; }
.comment-list { margin-top: 20px; display: grid; gap: 14px; }
.comment {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
}
.comment .c-head { display: flex; gap: 8px; align-items: center; font-size: 13px; margin-bottom: 6px; }
.comment .c-head strong { font-size: 14px; }
.comment .c-head .coach {
  background: var(--green);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  border-radius: 5px;
  padding: 1px 7px;
}
.comment .c-head .time { color: var(--dim); }
.comment p { font-size: 15px; white-space: pre-wrap; word-break: break-word; }
.empty-note {
  text-align: center;
  color: var(--dim);
  font-size: 14px;
  padding: 30px 0;
  border: 1px dashed var(--line);
  border-radius: 12px;
  background: var(--card);
}

/* ---------- 커뮤니티 ---------- */
.tabs { display: flex; gap: 8px; margin: 28px 0 18px; flex-wrap: wrap; }
.tab {
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 999px;
  padding: 8px 18px;
  font-size: 14px;
  font-weight: 700;
  color: var(--dim);
}
.tab.active { background: var(--ink); border-color: var(--ink); color: #fff; }
.post-list { display: grid; gap: 12px; }
.post-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  transition: border-color 0.12s ease;
}
.post-item:hover { border-color: var(--green); }
.cat-badge { font-size: 12px; font-weight: 800; border-radius: 6px; padding: 3px 9px; white-space: nowrap; }
.cat-notice { background: var(--red); color: #fff; }
.cat-qna { background: #EAF3EE; color: var(--green-dark); }
.cat-free { background: #FBEAE2; color: #B3542F; }
.post-item .p-title { flex: 1; font-size: 15px; font-weight: 700; word-break: keep-all; }
.post-item .p-meta { font-size: 13px; color: var(--dim); white-space: nowrap; }
.post-detail { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.post-detail h1 { font-size: 22px; font-weight: 900; margin: 10px 0 6px; word-break: keep-all; }
.post-detail .p-meta { font-size: 13px; color: var(--dim); padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.post-detail .p-body { padding: 20px 0; font-size: 15px; white-space: pre-wrap; word-break: break-word; }
.community-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }

/* ---------- 모달 ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 20px;
}
.modal-overlay.show { display: flex; }
.modal {
  background: var(--card);
  border-radius: var(--radius);
  width: 100%;
  max-width: 540px;
  padding: 26px;
}
.modal h2 { font-size: 20px; font-weight: 900; margin-bottom: 16px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; font-weight: 700; color: var(--dim); margin-bottom: 6px; }
.field input, .field textarea, .field select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 11px 13px;
  background: #fff;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: 2px solid var(--green); border-color: transparent; }
.field textarea { min-height: 140px; resize: vertical; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 8px; }

/* ---------- 관리자 ---------- */
.admin-block {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  margin-top: 24px;
}
.admin-block > h2 { font-size: 19px; font-weight: 900; margin-bottom: 6px; }
.admin-block > .desc { font-size: 14px; color: var(--dim); margin-bottom: 16px; }
.admin-course { border: 1px solid var(--line); border-radius: 12px; padding: 18px; margin-top: 14px; background: #FCFBF8; }
.admin-course .row { display: grid; grid-template-columns: 2fr 2fr 1fr; gap: 10px; margin-bottom: 10px; }
.admin-course input, .admin-course select {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 11px;
  width: 100%;
  font-size: 14px;
  background: #fff;
}
.admin-section-box { border-top: 1px dashed var(--line); padding-top: 12px; margin-top: 12px; }
.admin-section-box .sec-row { display: flex; gap: 10px; align-items: center; margin-bottom: 8px; }
.admin-section-box .sec-row input { flex: 1; font-weight: 700; }
.admin-lecture-row { display: grid; grid-template-columns: 2fr 90px 3fr 36px; gap: 8px; margin-bottom: 6px; }
.admin-lecture-row button { border: none; background: none; color: var(--red); font-size: 16px; }
.admin-actions { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.hint { font-size: 12px; color: var(--dim); margin-top: 4px; }

/* ---------- 관리자 서브탭 ---------- */
.admin-subnav {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.admin-subnav a {
  padding: 10px 16px;
  font-size: 15px;
  font-weight: 800;
  color: var(--dim);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.admin-subnav a:hover { color: var(--ink); }
.admin-subnav a.active { color: var(--green-dark); border-bottom-color: var(--green); }

/* ---------- 회원 수강 권한 (관리자) ---------- */
.member-access-list { display: grid; gap: 12px; margin-top: 12px; }
.member-access {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  background: #FCFBF8;
}
.ma-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ma-head strong { font-size: 15px; font-weight: 800; }
.ma-sub { font-size: 12.5px; color: var(--dim); }
.ma-note { font-size: 13px; color: var(--dim); margin-top: 6px; }
.ma-courses { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.access-pill {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 7px 13px;
  font-size: 13px;
  font-weight: 700;
  color: var(--dim);
  transition: all 0.12s ease;
}
.access-pill:hover { border-color: var(--green); }
.access-pill.on { background: var(--green); border-color: var(--green); color: #fff; }
.access-pill i { font-style: normal; opacity: 0.7; font-size: 11px; font-weight: 800; }
.access-pill[disabled] { opacity: 0.5; }

/* ---------- 토스트 ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 34px;
  transform: translateX(-50%);
  background: var(--ink);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  border-radius: 999px;
  padding: 12px 24px;
  z-index: 200;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  animation: toast-in 0.2s ease;
}
@keyframes toast-in {
  from { opacity: 0; transform: translateX(-50%) translateY(10px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* ---------- 로그인/회원가입 ---------- */
.auth-wrap {
  max-width: 440px;
  margin: 56px auto 0;
  padding: 0 20px;
}
.auth-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
}
.auth-card h1 { font-size: 24px; font-weight: 900; text-align: center; letter-spacing: -0.5px; }
.auth-card .sub { text-align: center; font-size: 14px; color: var(--dim); margin: 6px 0 20px; }
.auth-tabs { display: flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; margin-bottom: 22px; }
.auth-tabs button {
  flex: 1;
  border: none;
  background: #FAF8F4;
  padding: 11px 0;
  font-size: 15px;
  font-weight: 800;
  color: var(--dim);
}
.auth-tabs button.active { background: var(--green); color: #fff; }
.auth-msg { font-size: 14px; font-weight: 700; margin-top: 4px; min-height: 20px; }
.auth-msg.err { color: var(--red); }
.auth-msg.ok { color: var(--green-dark); }
.auth-card .btn { width: 100%; margin-top: 8px; }
.mode-note {
  text-align: center;
  font-size: 12px;
  color: var(--dim);
  margin-top: 16px;
  line-height: 1.6;
}
.auth-alt { text-align: center; margin-top: 14px; font-size: 14px; }
.auth-alt a { color: var(--dim); font-weight: 700; text-decoration: underline; }
.auth-alt a:hover { color: var(--green-dark); }

/* 비밀번호 보기 토글 */
.pw-wrap { position: relative; }
.pw-wrap input { width: 100%; padding-right: 46px; }
.pw-eye {
  position: absolute;
  right: 6px; top: 50%; transform: translateY(-50%);
  border: none; background: none;
  width: 34px; height: 34px;
  font-size: 17px; line-height: 1;
  opacity: 0.4;
  border-radius: 8px;
}
.pw-eye:hover { background: var(--bg); }
.pw-eye.on { opacity: 1; }

/* 위험 동작 버튼(회원 탈퇴) */
.btn-danger { background: #fff; border: 1px solid var(--line); color: var(--red); }
.btn-danger:hover { background: var(--red); color: #fff; border-color: var(--red); }
.danger-zone { border-color: #F0C8C0; }
.danger-zone > h2 { color: var(--red); }

/* ---------- 약관 동의 (회원가입) ---------- */
.consent {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 16px;
  background: #FCFBF8;
}
.consent label { display: flex; align-items: flex-start; gap: 9px; font-size: 14px; line-height: 1.5; cursor: pointer; }
.consent-all { font-weight: 800; padding-bottom: 10px; margin-bottom: 10px; border-bottom: 1px solid var(--line); }
.consent-list { display: grid; gap: 10px; }
.consent input[type=checkbox] { margin-top: 2px; width: 17px; height: 17px; accent-color: var(--green); flex-shrink: 0; }
.consent em { font-style: normal; font-weight: 800; color: var(--green-dark); }
.consent em.opt { color: var(--dim); }
.consent a { text-decoration: underline; font-weight: 700; }

/* ---------- 보안문자 (로그인 무차별 대입 방지) ---------- */
.captcha-row { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
#captchaCanvas { border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.captcha-reload {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
  width: 44px; height: 52px;
  font-size: 20px;
  color: var(--dim);
}
.captcha-reload:hover { border-color: var(--green); color: var(--green-dark); }

/* Turnstile 위젯 자리 — 로드 전 레이아웃 밀림 방지 */
.turnstile-box:not(:empty) { margin-bottom: 14px; min-height: 65px; }

/* ---------- 법률 문서 (약관·처리방침) ---------- */
.legal {
  max-width: 760px;
  margin: 40px auto 20px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 40px 36px;
}
.legal h1 { font-size: 26px; font-weight: 900; letter-spacing: -0.5px; }
.legal-updated { color: var(--dim); font-size: 13px; margin: 6px 0 22px; }
.legal h2 { font-size: 17px; font-weight: 800; margin: 26px 0 8px; }
.legal p, .legal li { font-size: 14.5px; line-height: 1.8; color: #333; }
.legal ul { padding-left: 18px; margin: 6px 0; display: grid; gap: 4px; }
.legal-table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 13.5px; }
.legal-table th, .legal-table td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.legal-table th { background: #FAF8F4; font-weight: 800; }
.legal-note { font-size: 13px; color: var(--dim); margin-top: 6px; }
.legal-fill { color: var(--red); font-weight: 700; }
.legal-disclaimer {
  margin-top: 28px;
  padding: 14px 16px;
  background: var(--pink-soft);
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.7;
  color: #8a4a30;
}
.legal-back { margin-top: 24px; }
.legal-back a { color: var(--green-dark); font-weight: 700; }

/* 푸터 법적 링크 */
.footer-legal { margin-top: 14px; display: flex; gap: 16px; flex-wrap: wrap; }
.footer-legal a { color: #bbb; font-size: 13px; font-weight: 600; text-decoration: underline; }
.footer-legal a:hover { color: #fff; }

/* ---------- 마이페이지 ---------- */
.profile-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  margin-top: 32px;
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.profile-avatar {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-size: 30px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.profile-info { flex: 1; min-width: 200px; }
.profile-info h1 { font-size: 24px; font-weight: 900; letter-spacing: -0.5px; }
.profile-info p { font-size: 14px; color: var(--dim); margin-top: 4px; }
.count-tag { font-size: 14px; color: var(--dim); font-weight: 500; }
.my-course-list { display: grid; gap: 12px; margin-top: 12px; }
.my-course {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 18px;
  background: #FCFBF8;
  flex-wrap: wrap;
}
.my-course .mc-info { flex: 1; min-width: 220px; }
.my-course .mc-info strong { font-size: 16px; font-weight: 800; word-break: keep-all; }
.my-course .mc-meta { font-size: 13px; color: var(--dim); display: block; margin-top: 6px; }
.setting-row { display: flex; align-items: flex-end; gap: 10px; margin-bottom: 16px; max-width: 480px; }

/* ---------- 회원 목록 ---------- */
.member-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.member-table th, .member-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.member-table th { font-size: 12px; color: var(--dim); font-weight: 800; background: #FAF8F4; }
.role-pill { font-size: 12px; font-weight: 800; border-radius: 999px; padding: 2px 10px; }
.role-coach { background: var(--green); color: #fff; }
.role-member { background: var(--bg); color: var(--dim); border: 1px solid var(--line); }

/* ---------- 코치 소개 페이지 ---------- */
.about-hero {
  background: var(--green);
  color: #fff;
  padding: 60px 0 48px;
  text-align: center;
}
.about-avatar {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  font-size: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  border: 3px solid rgba(255, 255, 255, 0.4);
}
.about-hero h1 { font-size: 34px; font-weight: 900; letter-spacing: -1px; }
.about-tagline { margin-top: 8px; font-size: 19px; opacity: 0.95; }
.about-tagline em { font-style: normal; color: #FFE3D6; font-weight: 800; }
.about-badges { margin-top: 22px; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.about-badges span {
  background: rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  padding: 7px 16px;
  font-size: 13px;
  font-weight: 700;
}

.about-section { padding: 52px 0 0; }
.about-section > h2 { font-size: 26px; font-weight: 900; letter-spacing: -0.6px; margin-bottom: 8px; word-break: keep-all; }
.about-section .section-sub { color: var(--dim); font-size: 15px; margin-bottom: 22px; }
.story { max-width: 720px; }
.story p { font-size: 16px; line-height: 1.85; margin-top: 14px; color: #333; }
.story strong { color: var(--green-dark); font-weight: 800; }

.value-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-top: 22px; }
.value-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}
.value-card .v-num { font-size: 26px; font-weight: 900; color: var(--pink); }
.value-card h3 { font-size: 19px; font-weight: 900; margin: 8px 0 8px; }
.value-card p { font-size: 14px; color: var(--dim); line-height: 1.7; }
.value-card strong { color: var(--ink); }

.review-highlight {
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius);
  padding: 36px 32px;
  text-align: center;
  margin-top: 8px;
}
.review-highlight .rh-quote { font-size: 26px; font-weight: 900; line-height: 1.5; letter-spacing: -0.5px; word-break: keep-all; }
.review-highlight .rh-quote em { font-style: normal; color: var(--pink); }
.review-highlight .rh-detail { margin-top: 16px; font-size: 16px; color: #ccc; line-height: 1.7; max-width: 560px; margin-left: auto; margin-right: auto; word-break: keep-all; }
.review-highlight .rh-name { margin-top: 18px; font-size: 14px; font-weight: 700; color: var(--pink); }

.review-numbers { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin-top: 16px; }
.rn-item {
  background: #EAF3EE;
  border-radius: 12px;
  padding: 16px;
  text-align: center;
}
.rn-item span { display: block; font-size: 12px; color: var(--dim); font-weight: 700; }
.rn-item strong { display: block; font-size: 18px; font-weight: 900; color: var(--green-dark); margin-top: 4px; }

.review-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; margin-top: 16px; }
.review-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 4px solid var(--green);
  border-radius: 12px;
  padding: 20px;
}
.review-card p { font-size: 15px; line-height: 1.7; word-break: keep-all; }
.review-card span { display: block; margin-top: 12px; font-size: 13px; color: var(--dim); font-weight: 700; }

.link-list { display: grid; gap: 12px; max-width: 560px; }
.link-btn {
  display: block;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 22px;
  transition: transform 0.1s ease, border-color 0.1s ease;
}
.link-btn:hover { transform: translateY(-2px); border-color: var(--green); }
.link-btn.primary { background: var(--green); border-color: var(--green); }
.link-btn.primary .lb-title, .link-btn.primary .lb-sub { color: #fff; }
.link-btn.primary .lb-sub { opacity: 0.9; }
.link-btn .lb-title { display: block; font-size: 16px; font-weight: 800; }
.link-btn .lb-sub { display: block; font-size: 13px; color: var(--dim); margin-top: 3px; }

/* ---------- 모션 (animate.css 진입 + 튜닝된 스크롤 캐스케이드) ----------
   점진적 향상: html.js 가 있을 때만 숨긴다. JS 실패 시 콘텐츠는 그대로 보인다.
   rv        = 부드럽게 떠오르는 단일 요소 (제목·부제·강조 카드)
   rv-fade   = 큰 색상 밴드 — 이동 없이 페이드 (거대한 슬라이드는 촌스럽다)
   rv-stagger= 그리드 — 자식이 순차적으로 얕게 떠오르는 캐스케이드 */
html.js .rv,
html.js .rv-fade,
html.js .rv-stagger > * { opacity: 0; }

.rv.in            { animation: rvRise 0.66s var(--ease) both; }
.rv-fade.in       { animation: rvFade 0.8s ease both; }
.rv-stagger.in > * { animation: rvRise 0.58s var(--ease) both; }
/* 캐스케이드 지연 — 얕고 촘촘하게(70ms) 흐른다 */
.rv-stagger.in > *:nth-child(1) { animation-delay: 0s; }
.rv-stagger.in > *:nth-child(2) { animation-delay: 0.07s; }
.rv-stagger.in > *:nth-child(3) { animation-delay: 0.14s; }
.rv-stagger.in > *:nth-child(4) { animation-delay: 0.21s; }
.rv-stagger.in > *:nth-child(5) { animation-delay: 0.28s; }
.rv-stagger.in > *:nth-child(6) { animation-delay: 0.35s; }
.rv-stagger.in > *:nth-child(7) { animation-delay: 0.42s; }
.rv-stagger.in > *:nth-child(n+8) { animation-delay: 0.48s; }

@keyframes rvRise {
  from { opacity: 0; transform: translate3d(0, 22px, 0); }
  to   { opacity: 1; transform: none; }
}
@keyframes rvFade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* 히어로 — 로드 시 animate.css fadeInUp 를 촘촘히 스태거. 기본보다 느리게(품격) */
.hero .animate__animated { --animate-duration: 0.9s; animation-timing-function: var(--ease); }
.hero .eyebrow  { animation-delay: 0.05s; }
.hero h1        { animation-delay: 0.15s; }
.hero p.lead    { animation-delay: 0.30s; }
.hero .hero-cta { animation-delay: 0.45s; }

@media (prefers-reduced-motion: reduce) {
  html.js .rv, html.js .rv-fade, html.js .rv-stagger > *,
  .hero .animate__animated {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }
}

/* 버튼 — 미세한 상승 + 그림자로 촉감을 준다 */
.btn { transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease), background 0.15s ease, opacity 0.15s ease; }
.btn-green, .btn-dark { box-shadow: var(--sh-sm); }
.btn-green:hover, .btn-dark:hover, .hero .btn-pink:hover { transform: translateY(-2px); box-shadow: var(--sh-md); }
.btn:active { transform: translateY(0) scale(0.985); }

/* 커뮤니티 최근 글 카드 결 정리 */
.post-item { box-shadow: var(--sh-sm); transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease), border-color 0.18s var(--ease); }
.post-item:hover { transform: translateY(-2px); box-shadow: var(--sh-md); border-color: var(--green); }

/* 푸터 — 상단에 브랜드 그린 하이라이트 라인 */
#siteFooter { position: relative; }
#siteFooter::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--green) 0%, var(--pink) 100%);
}

/* ---------- 홈 전환 섹션 (공감·전환점·CTA) ---------- */
/* 섹션 부제 — 제목 액센트 바와 정렬 */
.sec-sub {
  color: var(--dim);
  font-size: clamp(14px, 2vw, 15.5px);
  line-height: 1.7;
  margin: -16px 0 26px;
  padding-left: 16px;
  max-width: 640px;
}

/* 공감 — 페인포인트 카드 */
.pain-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.pain-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 20px 22px 24px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.55;
  letter-spacing: -0.3px;
  box-shadow: var(--sh-sm);
  position: relative;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.pain-card::before {
  content: '';
  position: absolute;
  left: 0; top: 20px; bottom: 20px;
  width: 4px;
  border-radius: 0 3px 3px 0;
  background: var(--pink);
}
.pain-card:hover { transform: translateY(-3px); box-shadow: var(--sh-md); }
.pain-foot {
  margin-top: 26px;
  text-align: center;
  font-size: clamp(17px, 2.6vw, 21px);
  font-weight: 800;
  letter-spacing: -0.5px;
}
.pain-foot b { color: var(--green-dark); }

/* 전환점 밴드 — 문제 정의를 뒤집는 지점 */
.turn {
  position: relative;
  margin-top: 80px;
  background: var(--green-deep);
  color: #fff;
  text-align: center;
  padding: 84px 20px;
  overflow: hidden;
  isolation: isolate;
}
.turn-eyebrow {
  display: inline-block;
  font-size: 13px; font-weight: 800;
  letter-spacing: 3px;
  color: #FFE3D6;
  margin-bottom: 16px;
}
.turn h2 {
  font-size: clamp(28px, 5.4vw, 48px);
  font-weight: 900;
  line-height: 1.18;
  letter-spacing: -1.4px;
}
.turn p {
  margin-top: 20px;
  font-size: clamp(16px, 2.3vw, 19px);
  line-height: 1.75;
  opacity: 0.95;
  max-width: 600px;
  margin-left: auto; margin-right: auto;
}

/* 최종 CTA 밴드 */
.cta-band {
  position: relative;
  margin-top: 80px;
  background: var(--ink);
  color: #fff;
  text-align: center;
  padding: 82px 20px;
  overflow: hidden;
  isolation: isolate;
  border-top: 3px solid var(--green);
}
.cta-band h2 {
  font-size: clamp(26px, 4.8vw, 42px);
  font-weight: 900;
  letter-spacing: -1.1px;
  line-height: 1.2;
}
.cta-band p {
  margin-top: 15px;
  font-size: clamp(15px, 2.1vw, 18px);
  color: #cfcccc;
  line-height: 1.7;
  max-width: 560px;
  margin-left: auto; margin-right: auto;
}
.cta-band .cta-actions {
  margin-top: 32px;
  display: flex; gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.cta-band .btn { padding: 15px 30px; }
.cta-band .btn-pink { background: var(--pink); color: var(--ink); }
.cta-band .btn-pink:hover { background: #F6C4B2; }
.cta-band .btn-ghost { border-color: rgba(255,255,255,.5); color: #fff; box-shadow: none; }
.cta-band .btn-ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }

/* 전환·CTA 밴드는 아래에 붙는 섹션의 상단 여백을 흡수 */
.turn + .container .section,
.cta-band + .container .section { padding-top: 72px; }

/* ---------- FAQ 아코디언 ---------- */
.faq-list { display: grid; gap: 10px; }
.faq-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--sh-sm);
}
.faq-item summary {
  padding: 16px 18px;
  font-weight: 800;
  font-size: 15.5px;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; color: var(--green); font-weight: 900; font-size: 20px; flex-shrink: 0; }
.faq-item[open] summary::after { content: '−'; }
.faq-item summary:hover { color: var(--green-dark); }
.faq-a { padding: 0 18px 16px; font-size: 14.5px; line-height: 1.75; color: #333; }

/* 이런 분께 추천 (강의 상세) */
.recommend-list { list-style: none; display: grid; gap: 10px; }
.recommend-list li {
  background: #EAF3EE;
  border-radius: 10px;
  padding: 13px 16px;
  font-size: 15px;
  font-weight: 500;
  word-break: keep-all;
}
.recommend-list li::before { content: '✔'; color: var(--green-dark); font-weight: 900; margin-right: 10px; }

/* ---------- 반응형 ---------- */
@media (max-width: 900px) {
  .detail-grid { grid-template-columns: 1fr; }
  .instructor-card { position: static; }
  /* 강의실 — 모바일에선 영상을 먼저 보여주고, 강의 목록은 아래로 */
  .classroom { grid-template-columns: 1fr; min-height: 0; }
  .class-main { order: 1; padding: 20px 16px 40px; }
  .class-sidebar {
    order: 2;
    max-height: none;               /* 40vh 고정 박스가 만들던 빈 공간 제거 */
    border-right: none;
    border-top: 1px solid var(--line);
    border-bottom: none;
    padding-top: 8px;
  }
  .admin-course .row { grid-template-columns: 1fr; }
  .admin-lecture-row { grid-template-columns: 1fr 70px 1fr 32px; }
}

/* 관리자 강의 편집 — 좁은 화면에선 칸을 세로로 풀어 입력 가능하게 */
@media (max-width: 620px) {
  .admin-lecture-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
  }
  .admin-lecture-row input[data-f="ltitle"] { flex: 1 1 100%; }
  .admin-lecture-row input[data-f="dur"] { flex: 0 0 76px; }
  .admin-lecture-row input[data-f="url"] { flex: 1 1 auto; min-width: 0; }
  .admin-lecture-row button[data-act="del-lecture"] { flex: 0 0 30px; }
  .admin-block { padding: 18px 16px; }
}

/* 태블릿·모바일 헤더 — 메뉴가 넘치지 않게 재배치 */
@media (max-width: 720px) {
  .header-inner {
    flex-wrap: wrap;
    gap: 10px 12px;
    padding: 12px 16px;
  }
  .logo { font-size: 19px; }
  .user-area { margin-left: auto; }        /* 로고와 같은 줄, 오른쪽 정렬 */
  .user-name { font-size: 13px; padding: 6px 6px; }
  .user-chip { padding: 6px 12px; font-size: 13px; }
  #siteHeader nav {
    order: 3;
    width: 100%;
    flex: 0 0 100%;
    gap: 2px;
    overflow-x: auto;             /* 항목이 많아도 가로 스크롤 */
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 2px;
  }
  #siteHeader nav::-webkit-scrollbar { display: none; }
  #siteHeader nav a {
    padding: 7px 12px;
    font-size: 14px;
    white-space: nowrap;          /* "코치 소개"가 두 줄로 깨지지 않게 */
    flex: 0 0 auto;
  }
}

/* 공감 페인 카드 — 화면 폭에 따라 3 → 2 → 1열 */
@media (max-width: 780px) {
  .pain-grid { grid-template-columns: repeat(2, 1fr); }
  .turn { margin-top: 60px; padding: 64px 20px; }
  .cta-band { margin-top: 60px; padding: 62px 20px; }
}
@media (max-width: 460px) {
  .pain-grid { grid-template-columns: 1fr; }
}

/* 신뢰 지표 카드 — 좁은 화면에선 2×2 */
@media (max-width: 620px) {
  .stat-strip .container { grid-template-columns: 1fr 1fr; gap: 22px 10px; margin-top: 20px; padding: 26px 18px; }
  .hero + .stat-strip .container { margin-top: -56px; }
  .stat-strip .stat:nth-child(odd)::before { display: none; }   /* 왼쪽 열엔 구분선 없음 */
  .stat-strip .stat:nth-child(3)::before,
  .stat-strip .stat:nth-child(4)::before { height: 100%; }        /* 아랫줄은 위 여백까지 */
}

/* 폰 가독성 — 글씨를 조금 키우고 줄간격·여백을 넉넉하게 */
@media (max-width: 600px) {
  body { line-height: 1.75; }
  .hero { padding: 72px 0 96px; }
  .hero p.lead { font-size: 16px; line-height: 1.85; }
  .story p { font-size: 16px; line-height: 1.9; margin-top: 16px; }
  .about-tagline { font-size: 17px; line-height: 1.6; }
  .course-hero .tagline { font-size: 16px; line-height: 1.75; }
  .course-hero .meta-row { gap: 8px 14px; font-size: 14px; }
  .outcome-list li { font-size: 15.5px; line-height: 1.65; padding: 14px 16px; }
  .curr-lecture { font-size: 15px; padding: 13px 16px; }
  .card-body h3 { font-size: 17px; }
  .card-body p { font-size: 14.5px; line-height: 1.65; }
  .card-meta, .card-meta .price { font-size: 14px; }
  .value-card p { font-size: 15px; line-height: 1.75; }
  .review-card p { font-size: 15px; line-height: 1.75; }
  .comment p, .post-detail .p-body { font-size: 15.5px; line-height: 1.8; }
  .comment .c-head { font-size: 13.5px; }
  .detail-main h2, .about-section > h2 { font-size: 22px; }
  #siteFooter .footer-inner p { font-size: 13.5px; line-height: 1.7; }
  .instructor-card ul { font-size: 14.5px; }
}

/* 아주 좁은 화면 */
@media (max-width: 380px) {
  .hero h1 { font-size: 26px; }
  .about-hero h1 { font-size: 28px; }
  .stat-strip .stat { min-width: 110px; }
}
