/* ── COLOR TOKENS (black & white) ── */
:root {
  --primary:        #111111;
  --primary-dark:   #000000;
  --primary-light:  #888888;
  --accent:         #333333;
  --accent-dark:    #1a1a1a;
  --sage:           #666666;
  --cream:          #f5f5f5;
  --cream-dark:     #e8e8e8;
  --bg:             #ffffff;
  --bg-soft:        #f7f7f7;
  --bg-muted:       #f0f0f0;
  --text-primary:   #111111;
  --text-secondary: #555555;
  --text-muted:     #888888;
  --text-hint:      #aaaaaa;
  --border:         #e5e5e5;
  --border-strong:  #cccccc;
  --dark-bg:        #111111;
  --dark-surface:   rgba(255,255,255,0.07);
  --dark-border:    rgba(255,255,255,0.12);
  --success:        #333333;
  --success-bg:     #f0f0f0;
  --error:          #111111;
  --error-bg:       #f5f5f5;
  --warning:        #666666;
  --warning-bg:     #f5f5f5;

  /* 강의·상품 딱지 전용 (사이트는 흑백, 딱지만 컬러) */
  --badge-new:              #468186;
  --badge-best:             #d4991a;
  --badge-free:             #91A776;
  --badge-live:             #ED6B5A;
  --price-free:             #E53935;
  --badge-offline:          #5c6bc0;
  --badge-disc:             #ED6B5A;
  --badge-disc-bg:          #fce8e8;
  --badge-live-upcoming-bg: #FFEBEE;
  --badge-live-upcoming-text: #E53935;
  --badge-live-active-bg:   #FFEBEE;
  --badge-live-active-text: #E53935;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 25.2px; scroll-behavior: smooth; }
body {
  font-family: 'Pretendard', 'Apple SD Gothic Neo', sans-serif;
  background: #fff;
  color: var(--text-primary);
  line-height: 1.6;
  /* 한글: 어절·구두점(, .) 기준으로만 줄바꿈. 문장 중간에서 글자 단위로 끊지 않음 */
  word-break: keep-all;
  line-break: strict;
  overflow-wrap: normal;
}
/* URL·이메일·코드 등 끊기지 않으면 레이아웃이 깨지는 문자열만 예외 */
code, kbd, samp, pre,
.break-all,
[class*="word-break-all"] {
  word-break: break-all;
  overflow-wrap: anywhere;
  line-break: auto;
}
.readable-chunk {
  white-space: nowrap;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { display: block; max-width: 100%; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ── HEADER ── */
.header { position: sticky; top: 0; z-index: 100; background: #fff; border-bottom: 1px solid var(--border); flex-shrink: 0; }
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  height: 64px;
  min-height: 64px;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  position: relative;
}
.logo { font-size: 24px; font-weight: 900; color: var(--text-primary); white-space: nowrap; letter-spacing: -0.02em; flex: 0 0 auto; }
.logo span { color: inherit; }
.header .logo { color: var(--text-primary); }
.header .logo:hover { color: var(--text-primary); opacity: 1; }
.footer .footer-logo { color: #fff; }
.footer .footer-logo:hover { color: #fff; opacity: .92; }
.header--logo-only .header-inner { justify-content: flex-start; display: flex; }
.header--subpage .header-inner { gap: 16px; }
.gnb--legal { margin-left: auto; flex-wrap: wrap; justify-content: flex-end; }
.gnb--legal a { color: var(--text-secondary); opacity: 1; }
.gnb--legal a:hover { color: var(--primary); background: var(--bg-muted); opacity: 1; }
.gnb--legal a.is-active { color: var(--primary); font-weight: 700; background: var(--bg-muted); }
.footer-logo { display: inline-block; margin-bottom: 12px; }
.footer .nav-btn,
.footer .gnb a { color: inherit; opacity: 1; }
.header:not(.header--logo-only) .header-inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}
.gnb { display: flex; gap: 2px; min-width: 0; white-space: nowrap; overflow-x: auto; scrollbar-width: none; position: absolute; left: 50%; transform: translateX(-50%); }
.gnb::-webkit-scrollbar { display: none; }
.gnb a { font-size: 15px; font-weight: 500; color: var(--text-primary); padding: 8px 12px; border-radius: 6px; transition: background .15s; white-space: nowrap; flex-shrink: 0; }
.gnb a:hover { background: var(--bg-muted); color: var(--primary); }
.header-right { display: flex; align-items: center; gap: 6px; white-space: nowrap; flex-shrink: 0; margin-left: auto; }
.nav-btn { font-size: 14px; font-weight: 500; padding: 6px 10px; border-radius: 7px; color: var(--text-secondary); transition: .15s; white-space: nowrap; }
.nav-user-id { max-width: 140px; overflow: hidden; text-overflow: ellipsis; }
.nav-coin { color: var(--text-primary); font-weight: 700; background: var(--bg-muted); }
.header .nav-btn { opacity: 1; }
.header .nav-btn:hover { opacity: 1; }
.nav-btn:hover { background: var(--bg-muted); }
.nav-btn-outline { border: 1.5px solid var(--border); }
.nav-btn-primary { background: var(--primary); color: #fff !important; }
.nav-btn-primary:hover { background: var(--primary-dark); }
.nav-btn-google {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fff !important;
  color: #3c4043 !important;
  border: 1px solid #dadce0;
  font-weight: 500;
  font-size: 14px;
  padding: 7px 12px;
}
.nav-btn-google:hover {
  background: #f8f9fa !important;
  box-shadow: 0 1px 3px rgba(60,64,67,.15);
}
.nav-btn-google svg { flex-shrink: 0; }

/* ── HERO ── */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(150deg, var(--dark-bg) 0%, #1e1e1e 60%, #2a2a2a 100%);
  padding: 72px 24px;
  min-height: 420px;
  display: flex;
  align-items: center;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    105deg,
    rgba(0, 0, 0, 0.05) 0%,
    rgba(0, 0, 0, 0.05) 42%,
    rgba(0, 0, 0, 0.05) 68%,
    rgba(0, 0, 0, 0.05) 100%
  );
  opacity: 0;
  transition: opacity 0.25s ease;
}
.hero--has-image .hero-overlay { opacity: 1; }
.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
}
.hero-text {
  flex: 1;
  max-width: 760px;
  color: #fff;
  padding-left: 20px;
}
.hero-badge { display: inline-flex; align-items: center; gap: 5px; background: #fff; border-radius: 20px; padding: 4px 12px; font-size: 13.6px; color: #555555; margin-bottom: 14px; }
.hero-badge i { color: #555555; font-size: 13.6px; }
.hero-text h1 { font-size: 41.6px; font-weight: 800; line-height: 1.25; margin-bottom: 11px; color: #fff; }
.hero-text h1 em { font-style: normal; color: #fff; }
.hero-text p { font-size: 17.6px; color: rgba(255,255,255,.7); line-height: 1.7; margin-bottom: 22px; }
.hero-btns { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-start; align-items: center; }
.btn-hero-primary,
.btn-hero-ghost,
.btn-hero-knockout {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  box-sizing: border-box;
  transition: background 0.15s ease, border-color 0.15s ease, opacity 0.15s ease;
}
.btn-hero-primary { background: var(--primary); color: #fff; border: none; }
.btn-hero-primary:hover { background: var(--primary-dark); }
.btn-hero-knockout {
  background: #fff;
  border: none;
  color: transparent;
}
.btn-hero-knockout:hover { background: rgba(255, 255, 255, 0.94); }
.btn-hero-knockout__label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-image: var(--hero-knockout-bg-image, linear-gradient(150deg, #1e1e1e 0%, #2a2a2a 100%));
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.btn-hero-ghost {
  gap: 6px;
  border: 2px solid rgba(255, 255, 255, 0.55);
  color: #fff;
  background: transparent;
}
.btn-hero-ghost:hover { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.75); }
.btn-hero-ghost__label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.hero-card { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.15); border-radius: 16px; padding: 28px; min-width: 280px; backdrop-filter: blur(8px); }
.hero-avatar { width: 72px; height: 72px; border-radius: 50%; background: rgba(255,255,255,.2); display: flex; align-items: center; justify-content: center; font-size: 50.4px; color: rgba(255,255,255,.8); margin-bottom: 16px; }
.hero-card-name { font-size: 31.2px; font-weight: 800; color: #fff; }
.hero-card-role { font-size: 20.4px; color: rgba(255,255,255,.6); margin-top: 4px; margin-bottom: 14px; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 20px; }
.hero-tags span { background: rgba(255,255,255,.15); color: rgba(255,255,255,.9); font-size: 19.2px; padding: 4px 10px; border-radius: 20px; }
.hero-stats { display: flex; gap: 20px; border-top: 1px solid rgba(255,255,255,.15); padding-top: 16px; }
.hero-stats div { text-align: center; }
.hero-stats strong { display: block; font-size: 27.6px; font-weight: 800; color: #fff; }
.hero-stats span { font-size: 19.2px; color: rgba(255,255,255,.6); }

/* ── INSTRUCTORS ── */
.instructors-section { background: #fff; }
.instructors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}
.instructor-card {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  background: #fff;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  transition: box-shadow .2s, transform .2s;
}
.instructor-card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,.08);
  transform: translateY(-2px);
}
.instructor-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
}
.instructor-avatar img { width: 100%; height: 100%; object-fit: cover; }
.instructor-avatar--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 28px;
  font-weight: 800;
}
.instructor-name { font-size: 22px; font-weight: 800; color: var(--text-primary); margin-bottom: 4px; }
.instructor-role { font-size: 15px; color: var(--text-muted); margin-bottom: 10px; line-height: 1.5; }
.instructor-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.instructor-tags span {
  background: var(--bg-soft);
  color: var(--text-secondary);
  font-size: 13px;
  padding: 4px 10px;
  border-radius: 20px;
}
.instructor-bio {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.instructors-page-hero {
  background: linear-gradient(150deg, var(--dark-bg) 0%, #1e1e1e 60%, #2a2a2a 100%);
  padding: 56px 24px;
  text-align: center;
  color: #fff;
}
.instructors-page-hero h1 { font-size: 40px; font-weight: 900; margin-bottom: 12px; }
.instructors-page-hero p { font-size: 18px; color: rgba(255,255,255,.75); line-height: 1.7; max-width: 640px; margin: 0 auto; }

/* ── START GUIDE ── */
.start-guide { padding: 64px 0; background: #fff; border-bottom: 1px solid var(--border); }
.start-guide-header { margin-bottom: 40px; }
.start-guide-title { font-size: 34.8px; font-weight: 800; color: var(--text-primary); letter-spacing: -0.02em; }
.start-guide-sub { font-size: 21.6px; color: var(--text-muted); margin-top: 8px; }
.start-guide-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.sg-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-soft);
  border: 1.5px solid var(--border);
  border-radius: 16px;
  padding: 32px 28px;
  transition: border-color .18s, box-shadow .18s, background .18s;
  position: relative;
  overflow: hidden;
}
.sg-card:hover {
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 8px 32px rgba(0,0,0,.09);
}
.sg-card-num {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-hint);
  text-transform: uppercase;
  margin-bottom: 24px;
}
.sg-card-icon {
  width: 56px; height: 56px;
  background: var(--primary);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px;
  color: #fff;
  margin-bottom: 20px;
  flex-shrink: 0;
}
.sg-card-label {
  font-size: 21.6px;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.4;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}
.sg-card-desc {
  font-size: 18px;
  color: var(--text-secondary);
  line-height: 1.6;
  flex: 1;
}
.sg-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 24px;
  padding: 12px 20px;
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  transition: border-color .15s, background .15s, color .15s;
  width: fit-content;
}
.sg-card:hover .sg-card-cta {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
}

@media (max-width: 960px) {
  .start-guide-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
  .start-guide-grid { grid-template-columns: 1fr; }
  .start-guide-title { font-size: 26px; }
  .sg-card { padding: 22px 20px; }
}

/* ── TRUST BAR ── */
.trust-bar { padding: 40px 0; background: var(--primary); }
.trust-bar-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 0;
}
.trust-item { text-align: center; padding: 8px 24px; }
.trust-num { font-size: 32px; font-weight: 900; color: #fff; letter-spacing: -0.03em; line-height: 1.1; }
.trust-label { font-size: 13px; color: rgba(255,255,255,0.6); margin-top: 6px; font-weight: 500; }
.trust-divider { width: 1px; height: 40px; background: rgba(255,255,255,0.2); }
@media (max-width: 720px) {
  .trust-bar-grid { grid-template-columns: 1fr 1fr; gap: 1px; background: rgba(255,255,255,0.1); }
  .trust-divider { display: none; }
  .trust-item { background: var(--primary); padding: 20px 12px; }
  .trust-num { font-size: 26px; }
}

/* ── CATEGORIES (3-col · 16:9 tiles) ── */
.categories {
  padding: 28px 0 36px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-soft);
}
.cat-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
  --cat-gap: 16px;
}
.cat-grid-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--cat-gap);
}
.cat-grid-row-last {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.cat-grid-row-last .cat-tile {
  grid-column: 2;
}
.cat-tile {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  width: 100%;
  aspect-ratio: 3 / 1;
  border: 2px solid transparent;
  border-radius: 14px;
  padding: 0 20px;
  cursor: pointer;
  overflow: hidden;
  text-align: right;
  background-color: var(--dark-bg);
  background-size: cover;
  background-position: center;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  box-shadow: 0 4px 18px rgba(0, 0, 0, .08);
}
.cat-tile::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, .62) 0%, rgba(0, 0, 0, .18) 45%, rgba(0, 0, 0, .35) 100%);
  transition: opacity .2s ease;
}
.cat-tile:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, .14);
}
.cat-tile:hover::before {
  opacity: .92;
}
.cat-tile.active {
  border-color: #fff;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, .35), 0 12px 28px rgba(0, 0, 0, .16);
}
.cat-tile-label {
  position: relative;
  z-index: 1;
  display: block;
  padding: 0;
  font-size: clamp(20.4px, 1.05vw, 26.4px);
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  letter-spacing: -0.02em;
  text-align: right;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .35);
}
.cat-tile--capcut {
  background-image: url('https://images.unsplash.com/photo-1611162617474-5b21eee2a7bb?auto=format&fit=crop&w=960&q=80');
}

/* ── SHELF SECTIONS ── */
.shelf-section { padding: 48px 0; }
.shelf-section-gray { background: var(--bg-soft); }
.shelf-header { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 24px; }
.shelf-header--left { align-items: flex-end; }
.shelf-title { font-size: 34.8px; font-weight: 800; color: var(--text-primary); }
.shelf-sub { font-size: 21.6px; color: var(--text-muted); margin-top: 4px; }
.shelf-more { font-size: 21.6px; color: var(--text-muted); display: flex; align-items: center; gap: 2px; transition: color .15s; }
.shelf-more:hover { color: var(--primary); }
.shelf-wrap { position: relative; }
.shelf { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; scrollbar-width: none; }
.shelf::-webkit-scrollbar { display: none; }
.shelf-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 10; width: 36px; height: 36px; border-radius: 50%; background: #fff; border: 1.5px solid var(--border); box-shadow: 0 2px 8px rgba(0,0,0,.12); cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 25.2px; color: var(--text-secondary); transition: .15s; }
.shelf-arrow:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.shelf-arrow.left { left: -18px; }
.shelf-arrow.right { right: -18px; }

/* ── COURSE GRID 3/3/2 ── */
.course-grid-332 { display: flex; flex-direction: column; gap: 16px; }
.course-grid-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.course-grid-row-last { grid-template-columns: repeat(2, 1fr); max-width: calc((100% - 16px) * 2 / 3); margin: 0 auto; width: 100%; }
.course-grid-332 .ccard { flex: none; width: 100%; }

/* ── COURSE CARD ── */
.ccard { flex: 0 0 220px; border-radius: 12px; overflow: hidden; border: 1px solid var(--border); background: #fff; transition: .2s; scroll-snap-align: start; }
.ccard:hover { box-shadow: 0 8px 24px rgba(0,0,0,.1); transform: translateY(-2px); }
.ccard-thumb { font-size: 62.4px; display: flex; align-items: center; justify-content: center; aspect-ratio: 16/10; overflow: hidden; position: relative; }
.ccard-thumb > img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ccard-thumb.td { background: linear-gradient(135deg, var(--dark-bg), #2a2a2a); color: rgba(255,255,255,.5); }
.ccard-thumb.tl { background: linear-gradient(135deg, var(--bg-muted), var(--border)); color: var(--text-primary); }
.ccard-body { padding: 12px; }
.ccard-cat { font-size: 16.8px; color: var(--text-muted); margin-bottom: 4px; }
.ccard-title { font-size: 21.6px; font-weight: 700; color: var(--text-primary); line-height: 1.4; margin-bottom: 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ccard-rating { display: flex; align-items: center; gap: 4px; margin-bottom: 8px; }
.ccard-stars { color: var(--warning); font-size: 19.2px; }
.ccard-rnum { font-size: 19.2px; color: var(--text-muted); }
.ccard-schedule { font-size: 19.2px; color: var(--primary); margin-bottom: 8px; display: flex; align-items: center; gap: 4px; }
.ccard-price-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.price-ori { font-size: 19.2px; color: var(--text-hint); text-decoration: line-through; }
.price-sale { font-size: 24px; font-weight: 800; color: var(--text-primary); }
.price-free { font-size: 24px; font-weight: 800; color: var(--price-free); }
.disc-badge { font-size: 19.2px; font-weight: 700; color: var(--badge-disc); background: var(--badge-disc-bg); padding: 2px 6px; border-radius: 4px; }
.badge-live,
.mc-live-badge,
.ch-badge--meet {
  position: absolute;
  top: 8px;
  left: 8px;
  background: #fff;
  color: #1a1a1a;
  font-size: 24px;
  font-weight: 700;
  padding: 8px 18px 8px 12px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 4px 16px rgba(0,0,0,.12);
  border: 1px solid rgba(0,0,0,.08);
  line-height: 1;
  white-space: nowrap;
  letter-spacing: -0.01em;
}
.ch-badge--meet {
  position: static;
  margin-bottom: 12px;
  font-size: 24px;
  padding: 10px 20px 10px 14px;
}
.badge-live .meet-google-icon,
.mc-live-badge .meet-google-icon,
.ch-badge--meet .meet-google-icon {
  display: block;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}
.badge-meet-label { font-size: 22px; font-weight: 700; }
.badge-best { position: absolute; top: 8px; left: 8px; background: var(--badge-best); color: #fff; font-size: 16.8px; font-weight: 700; padding: 3px 8px; border-radius: 4px; }
.badge-new { position: absolute; top: 8px; left: 8px; background: var(--badge-new); color: #fff; font-size: 16.8px; font-weight: 700; padding: 3px 8px; border-radius: 4px; }
.badge-free { position: absolute; top: 8px; left: 8px; background: var(--badge-free); color: #fff; font-size: 16.8px; font-weight: 700; padding: 3px 8px; border-radius: 4px; }
.badge-offline { position: absolute; top: 8px; left: 8px; background: var(--badge-offline); color: #fff; font-size: 16.8px; font-weight: 700; padding: 3px 8px; border-radius: 4px; }
.live-badge { font-size: 16.8px; font-weight: 600; padding: 3px 8px; border-radius: 4px; }
.live-badge.upcoming { background: var(--badge-live-upcoming-bg); color: var(--price-free); font-weight: 700; }
.live-badge.live { background: var(--badge-live-active-bg); color: var(--price-free); font-weight: 700; }
.live-badge.ended { background: var(--bg-muted); color: var(--text-muted); }

.enroll-cat-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
  min-width: 0;
  width: 100%;
}
.enroll-cat-row .fcard-cat,
.enroll-cat-row .ccard-cat {
  margin-bottom: 0;
  flex-shrink: 0;
}
.enroll-capacity {
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  letter-spacing: -0.02em;
}
.enroll-capacity-sep {
  margin: 0 1px;
  font-weight: 600;
  opacity: 0.75;
}
.fcard .enroll-capacity { font-size: 14px; }
.enroll-gauge {
  flex: 1;
  min-width: 0;
  max-width: none;
  height: 7px;
  border-radius: 999px;
  background: #e8ecf4;
  overflow: hidden;
}
.enroll-gauge-fill {
  display: block;
  height: 100%;
  border-radius: 999px;
  transition: width 0.35s ease, background 0.35s ease;
}
.enrollment-closed-panel {
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}
.enrollment-closed-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 2;
  pointer-events: none;
}
.enrollment-closed-panel__label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 38px;
  font-weight: 800;
  letter-spacing: -0.02em;
  z-index: 3;
  pointer-events: none;
  white-space: nowrap;
}
.enrollment-closed-panel__content {
  position: relative;
  z-index: 1;
  pointer-events: none;
  user-select: none;
}
.fcard.enrollment-closed-panel--catalog,
.ccard.enrollment-closed-panel--catalog {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.fcard.enrollment-closed-panel--catalog .enrollment-closed-panel__content,
.ccard.enrollment-closed-panel--catalog .enrollment-closed-panel__content {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  width: 100%;
}
.enrollment-cta-wrap {
  position: relative;
  display: block;
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  box-sizing: border-box;
}
.enrollment-cta-wrap--block {
  margin-bottom: 10px;
}
.enrollment-cta-wrap--block .btn-enroll--underlay {
  margin-bottom: 0;
  pointer-events: none;
  user-select: none;
}
.card-enroll-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--text-primary);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  box-sizing: border-box;
}
.card-enroll-btn--muted {
  background: #ccc;
  color: #666;
}
.card-enroll-btn-label {
  display: block;
  width: 100%;
  text-align: center;
  line-height: 1.3;
}
.fcard-foot--btn {
  display: block;
  margin-top: auto;
  padding-top: 10px;
}
.ccard-price-row:has(.card-enroll-btn) {
  display: block;
  margin-top: 4px;
}

/* ── FREE COURSE SHELF (640×360 썸네일) ── */
.shelf--free { gap: 20px; align-items: stretch; }
.shelf-wrap--free .shelf-arrow.left { left: -18px; }
.shelf-wrap--free .shelf-arrow.right { right: -18px; }
.fcard {
  flex: 0 0 640px;
  width: 640px;
  max-width: 100%;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #fff;
  transition: .2s;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  text-align: left;
}
.fcard:hover { box-shadow: 0 10px 32px rgba(0,0,0,.1); transform: translateY(-2px); }
.fcard-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
  font-size: 72px;
}
.fcard-thumb.td { background: linear-gradient(135deg, var(--dark-bg), #2a2a2a); color: rgba(255,255,255,.45); }
.fcard-thumb.tl { background: linear-gradient(135deg, var(--bg-muted), var(--border)); color: var(--text-primary); }
.fcard-thumb > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.fcard-body {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}
.fcard-cat { font-size: 15px; color: var(--text-muted); font-weight: 600; }
.fcard-title { font-size: 22px; font-weight: 800; color: var(--text-primary); line-height: 1.35; }
.fcard-schedule { font-size: 15px; color: var(--primary); display: flex; align-items: center; gap: 6px; }
.fcard-rating { display: flex; align-items: center; gap: 6px; font-size: 15px; }
.fcard-stars { color: var(--warning); }
.fcard-rnum { color: var(--text-muted); }
.fcard-rnum--muted { color: var(--text-hint); font-size: 14px; }
.fcard-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 8px;
}
.fcard-cta {
  font-size: 15px;
  font-weight: 700;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.fcard:hover .fcard-cta { text-decoration: underline; }

/* ── SUCCESS SECTION ── */
.success-section { background: var(--dark-bg); padding: 56px 0; }
.success-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.success-card { border-radius: 12px; overflow: hidden; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08); }
.success-thumb { height: 160px; background: linear-gradient(135deg, #1e2b2c, #2a3c3e); display: flex; align-items: center; justify-content: center; font-size: 74.4px; color: rgba(255,255,255,.2); position: relative; }
.success-thumb.t2 { background: linear-gradient(135deg, var(--dark-bg), var(--dark-bg)); }
.success-thumb.t3 { background: linear-gradient(135deg, #2a2a2a, #1e1e1e); }
.success-info { padding: 14px 16px; font-size: 21.6px; color: rgba(255,255,255,.7); line-height: 1.5; }

/* ── REVIEW SECTION ── */
/* 후기 ticker */
.review-ticker-section { padding: 56px 0 40px; background: var(--bg-soft); }
.review-ticker-track { overflow: hidden; margin-top: 32px; }
.review-ticker-inner {
  display: flex;
  gap: 20px;
  width: max-content;
  will-change: transform;
  animation: review-ticker-marquee var(--rt-marquee-duration, 40s) linear infinite;
}
.review-ticker-inner:hover { animation-play-state: paused; }
.review-ticker-inner.is-static { animation: none; width: auto; }
@keyframes review-ticker-marquee {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(calc(-1 * var(--rt-marquee-distance, 50%)), 0, 0); }
}
.rticker-card { background: #fff; border-radius: 14px; padding: 20px 22px; border: 1px solid var(--border); width: 260px; flex-shrink: 0; display: flex; flex-direction: column; gap: 8px; }
.rticker-stars { color: var(--warning); font-size: 11px; letter-spacing: 1px; }
.rticker-text { font-size: 14px; color: var(--text-secondary); line-height: 1.6; flex: 1; }
.rticker-author { display: flex; align-items: center; gap: 8px; margin-top: 4px; }
.rticker-dot { width: 26px; height: 26px; border-radius: 50%; background: var(--primary); color: #fff; font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.rticker-author span { font-size: 13px; color: var(--text-hint); }
.rticker-author span strong { color: var(--text-primary); font-weight: 700; }
.rticker-course { font-size: 12.5px; color: var(--primary); font-weight: 600; }

/* ── TICKER ── */
.ticker-section { background: #fff; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 12px 0; display: flex; align-items: center; overflow: hidden; gap: 16px; }
.ticker-label { display: flex; align-items: center; gap: 8px; font-size: 20.4px; font-weight: 700; color: var(--text-primary); white-space: nowrap; padding: 0 24px; flex-shrink: 0; }
.ticker-label .bolt-icon { font-size: 22px; }
.ticker-label .live-text {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--badge-live-active-text);
  background: var(--badge-live-active-bg);
  padding: 4px 10px 4px 8px;
  border-radius: 999px;
  animation: live-blink 1.2s ease-in-out infinite;
}
.ticker-label .live-text::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--badge-live-active-text);
  flex-shrink: 0;
  animation: live-dot-pulse 1.2s ease-in-out infinite;
}
@keyframes live-blink { 0%,100%{opacity:1} 50%{opacity:.45} }
@keyframes live-dot-pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.35;transform:scale(.85)} }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--badge-live-active-text); animation: live-dot-pulse 1.2s ease-in-out infinite; }
.ticker-track { overflow: hidden; flex: 1; }
.ticker-inner { display: flex; gap: 40px; animation: ticker 30s linear infinite; width: max-content; }
@keyframes ticker { from{transform:translateX(0)} to{transform:translateX(-50%)} }
.ticker-item { font-size: 20.4px; color: var(--text-secondary); white-space: nowrap; }
.ticker-user { color: var(--text-muted); }
.ticker-item strong { color: var(--primary); }

/* ── FOOTER ── */
.footer { background: var(--dark-bg); color: rgba(255,255,255,.7); padding: 48px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-tagline { font-size: 20.4px; color: rgba(255,255,255,.5); margin-bottom: 16px; }
.footer-tagline--lead { font-size: 22.8px; color: rgba(255,255,255,.75); margin-bottom: 8px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a { width: 34px; height: 34px; border-radius: 8px; background: rgba(255,255,255,.1); display: flex; align-items: center; justify-content: center; font-size: 25.2px; color: rgba(255,255,255,.7); transition: .15s; }
.footer-social a:hover { background: var(--primary); color: #fff; }
.footer-col-title { font-size: 20.4px; font-weight: 700; color: #fff; margin-bottom: 12px; }
.footer ul li a { font-size: 20.4px; color: rgba(255,255,255,.5); display: block; padding: 4px 0; transition: color .15s; }
.footer ul li a:hover { color: #fff; }
.biz-info { border-top: 1px solid rgba(255,255,255,.1); padding-top: 20px; margin-bottom: 20px; }
.biz-toggle { background: none; border: none; color: rgba(255,255,255,.5); font-size: 20.4px; cursor: pointer; display: flex; align-items: center; gap: 6px; padding: 0; margin-bottom: 8px; }
.biz-detail { font-size: 19.2px; color: rgba(255,255,255,.35); line-height: 1.8; display: none; }
.biz-info.open .biz-detail { display: block; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; font-size: 19.2px; color: rgba(255,255,255,.35); flex-wrap: wrap; gap: 8px; }
.footer-policy { display: flex; gap: 16px; }
.footer-policy a { font-size: 19.2px; color: rgba(255,255,255,.4); transition: color .15s; }
.footer-policy a:hover { color: #fff; }

/* ── SPINNER ── */
.spinner { width: 32px; height: 32px; border: 3px solid var(--border); border-top-color: var(--primary); border-radius: 50%; animation: spin .7s linear infinite; margin: 32px auto; }
@keyframes spin { to { transform: rotate(360deg); } }
.empty { color: var(--text-hint); font-size: 21.6px; padding: 32px 0; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .header:not(.header--logo-only) .header-inner {
    grid-template-columns: auto 1fr auto;
  }
  .gnb { display: none; }
  /* 헤더 축소 */
  .header-inner { height: 54px; min-height: 54px; padding: 0 14px; }
  .logo { font-size: 20px; }
  .container { padding: 0 16px; }
  /* 히어로 */
  .hero { min-height: 320px; padding: 48px 20px; }
  .hero-text { padding-left: 0; }
  .hero-text h1 { font-size: 28px; }
  .hero-text p { font-size: 15.5px; margin-bottom: 18px; }
  .hero-btns { width: 100%; }
  .btn-hero-primary,
  .btn-hero-ghost,
  .btn-hero-knockout { width: 100%; }
  .success-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .shelf-arrow { display: none; }
  .fcard { flex: 0 0 min(640px, calc(100vw - 48px)); width: min(640px, calc(100vw - 48px)); }
  .course-grid-row { grid-template-columns: repeat(2, 1fr); }
  .course-grid-row-last { max-width: 100%; grid-template-columns: repeat(2, 1fr); }
  .cat-grid-row,
  .cat-grid-row-last { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cat-grid-row-last .cat-tile { grid-column: auto; }
}
@media (max-width: 600px) {
  .header-inner { height: 52px; min-height: 52px; padding: 0 12px; }
  .logo { font-size: 18px; }
  .hero { min-height: 280px; padding: 40px 16px; }
  .hero-text h1 { font-size: 24px; }
  .review-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .course-grid-row, .course-grid-row-last { grid-template-columns: 1fr; max-width: 100%; }
  .cat-grid-row,
  .cat-grid-row-last { grid-template-columns: 1fr; }
  .cat-grid-row-last .cat-tile { grid-column: auto; }
  .cat-tile { padding: 0 16px; }
  .cat-tile-label { font-size: 21.6px; text-align: right; }
  /* 무료강의 카드 본문 축소 */
  .fcard-body { padding: 14px 14px 16px; }
  .fcard-title { font-size: 18px; }
  .fcard-cat,
  .fcard-schedule,
  .fcard-rating { font-size: 13.5px; }
  .fcard-thumb { font-size: 56px; }
}

@media (min-width: 1440px) {
  .hero { min-height: 560px; padding: 96px 24px; }
  .hero-text h1 { font-size: 52px; }
  .hero-text p { font-size: 19.2px; }
}
@media (min-width: 1920px) {
  .hero { min-height: 640px; }
  .hero-text h1 { font-size: 60px; }
}

/* Admin FAB — 관리자 전용 고정 버튼 */
.site-admin-dock {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 9998;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}
.site-admin-fab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  background: #111;
  color: #fff;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.site-admin-fab:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.3);
  background: #222;
  color: #fff;
}
.site-admin-fab__icon {
  display: inline-flex;
  align-items: center;
  line-height: 1;
}
.site-admin-fab__icon svg {
  width: 18px;
  height: 18px;
  display: block;
}
.site-admin-fab__label { line-height: 1; }
.site-admin-fab--ads {
  background: #1a3a8f;
}
.site-admin-fab--ads:hover {
  background: #244cad;
}
body.has-mobile-nav .site-admin-dock {
  bottom: calc(68px + env(safe-area-inset-bottom, 0px));
}
@media (max-width: 600px) {
  .site-admin-dock {
    right: 16px;
    bottom: 16px;
    gap: 8px;
  }
  .site-admin-fab {
    padding: 11px 15px;
    font-size: 13px;
  }
  body.has-mobile-nav .site-admin-dock {
    bottom: calc(64px + env(safe-area-inset-bottom, 0px));
  }
}
