/* ============================================================
   인사노무 최고 책임자 AI 활용 실무 인증 과정 (CHO) — 강의실·관리 페이지 스타일
   팔레트는 landing.css와 동일한 딥그린 (신문광고 기준)
============================================================ */
:root {
  --green-950: #051208;
  --green-900: #0a1f16;
  --green-800: #133328;
  --green-700: #28543d;
  --lime: #7cbf4c;
  --lime-light: #a8dc7a;
  --green-ink: #256b2c;   /* 밝은 배경 위의 강조 텍스트 (명암비 확보용) */
  --text-main: #14261c;
  --text-sub: #5c6b60;
  --bg: #f5f9f5;
  --white: #ffffff;
  --line: #e3ebe3;
  --tint: #eff7ec;
  --ok: #1f9d63;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(5, 18, 8, 0.11);
  --shadow-sm: 0 4px 14px rgba(5, 18, 8, 0.08);
  --grad: linear-gradient(92deg, var(--lime), var(--lime-light));
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont,
    "Malgun Gothic", "Apple SD Gothic Neo", sans-serif;
  color: var(--text-main);
  background: var(--bg);
  line-height: 1.7;
  word-break: keep-all;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; }
a { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; }

.container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* 스크롤 등장 효과 */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.on { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- 헤더 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(5, 18, 8, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: var(--white);
  border-bottom: 1px solid rgba(168, 220, 122, 0.12);
  transition: background 0.3s;
}
.site-header.scrolled { background: rgba(5, 18, 8, 0.94); }
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 66px;
}
.logo { font-weight: 800; font-size: 1.05rem; letter-spacing: 0.01em; }
.logo .logo-gold {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.logo .logo-cohort {
  display: inline-block; margin-left: 8px; vertical-align: 2px;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em;
  color: var(--lime-light); border: 1px solid rgba(168, 220, 122, 0.45);
  background: rgba(168, 220, 122, 0.1);
  padding: 2px 10px; border-radius: 999px;
}
.gnb { display: flex; gap: 26px; align-items: center; font-size: 0.94rem; }
.gnb a { color: #b6c8b2; transition: color 0.2s; }
.gnb a:hover { color: var(--white); }
.btn-classroom {
  background: var(--grad); color: var(--green-950);
  padding: 9px 20px; border-radius: 999px; font-weight: 800;
  box-shadow: 0 4px 16px rgba(124, 191, 76, 0.35);
  transition: transform 0.15s, box-shadow 0.2s;
}
.btn-classroom:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(124, 191, 76, 0.5); color: var(--green-950); }

/* ---------- 히어로 ---------- */
.hero {
  position: relative;
  background:
    linear-gradient(100deg, rgba(5, 18, 8, 0.42) 0%, rgba(5, 18, 8, 0.82) 46%, rgba(5, 18, 8, 0.96) 100%),
    url("../img/hero-bg.jpg") left center / cover no-repeat,
    var(--green-950);
  color: var(--white);
  padding: 110px 0 96px;
  text-align: center;
  overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 140px;
  background: linear-gradient(180deg, transparent, rgba(5, 18, 8, 0.9));
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.hero .private-note {
  position: absolute; top: 16px; right: 22px; z-index: 2;
  font-size: 0.78rem; color: #c0d3bc;
  background: rgba(5, 18, 8, 0.55);
  border: 1px solid rgba(168, 220, 122, 0.28);
  padding: 6px 15px; border-radius: 999px;
  backdrop-filter: blur(6px);
}
.hero .badge {
  display: inline-block; margin-bottom: 26px;
  background: rgba(168, 220, 122, 0.12); color: var(--lime-light); font-weight: 700;
  border: 1px solid rgba(168, 220, 122, 0.45);
  padding: 8px 22px; border-radius: 999px; font-size: 0.9rem; letter-spacing: 0.04em;
  backdrop-filter: blur(4px);
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.4rem); line-height: 1.25; margin-bottom: 22px;
  font-weight: 800; letter-spacing: -0.01em;
}
.hero h1 .accent {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.hero p.lead { color: #ccdac7; font-size: clamp(1rem, 2vw, 1.18rem); margin-bottom: 40px; line-height: 1.85; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn-primary, .btn-ghost {
  display: inline-block; padding: 16px 36px; border-radius: 999px;
  font-weight: 800; font-size: 1.04rem; transition: transform 0.15s, box-shadow 0.2s, border-color 0.2s;
}
.btn-primary {
  background: var(--grad); color: var(--green-950);
  box-shadow: 0 8px 26px rgba(124, 191, 76, 0.4);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(124, 191, 76, 0.55); }
.btn-ghost { border: 1px solid rgba(255, 255, 255, 0.35); color: var(--white); backdrop-filter: blur(4px); }
.btn-ghost:hover { border-color: var(--lime-light); color: var(--lime-light); transform: translateY(-2px); }

/* 히어로 하단 정보 카드 (교육 일정/대상/장소) */
.hero-info {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px; margin-top: 64px; text-align: left;
}
.hero-info .info-card {
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(168, 220, 122, 0.22);
  border-radius: var(--radius); padding: 24px 26px;
  backdrop-filter: blur(8px);
  transition: border-color 0.25s, background 0.25s;
}
.hero-info .info-card:hover { border-color: rgba(168, 220, 122, 0.55); background: rgba(255, 255, 255, 0.09); }
.hero-info h3 {
  color: var(--lime-light); font-size: 0.88rem; letter-spacing: 0.08em; margin-bottom: 10px; font-weight: 700;
}
.hero-info p { color: #e0eadd; font-size: 0.93rem; line-height: 1.75; }

/* ---------- 섹션 공통 ---------- */
section { padding: 96px 0; }
.section-label {
  color: var(--lime); font-weight: 800; letter-spacing: 0.16em;
  font-size: 0.8rem; text-transform: uppercase; margin-bottom: 12px;
}
.section-title { font-size: clamp(1.55rem, 3vw, 2.2rem); margin-bottom: 16px; font-weight: 800; letter-spacing: -0.01em; }
.section-desc { color: var(--text-sub); max-width: 660px; margin-bottom: 52px; font-size: 1.02rem; }
.center { text-align: center; }
.center .section-desc { margin-left: auto; margin-right: auto; }

/* ---------- 과정 특징 ---------- */
.features { background: var(--white); }
.feature-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 22px;
}
.feature-card {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px 28px; text-align: left;
  transition: transform 0.2s, box-shadow 0.25s, border-color 0.25s;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #c8e3b8; }
.feature-card .icon {
  width: 52px; height: 52px; border-radius: 14px; display: flex;
  align-items: center; justify-content: center; font-size: 1.5rem;
  background: linear-gradient(135deg, var(--green-800), var(--green-700));
  box-shadow: inset 0 0 0 1px rgba(168, 220, 122, 0.25);
  margin-bottom: 20px;
}
.feature-card h3 { font-size: 1.06rem; margin-bottom: 8px; font-weight: 700; }
.feature-card p { color: var(--text-sub); font-size: 0.92rem; }

/* ---------- 커리큘럼 ---------- */
.curriculum-list { display: grid; gap: 14px; }
.curr-item {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 28px; display: flex; gap: 24px; align-items: flex-start;
  transition: box-shadow 0.25s, transform 0.2s, border-color 0.25s;
}
.curr-item:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: #c8e3b8; }
.curr-day {
  flex-shrink: 0; width: 68px; height: 68px; border-radius: 16px;
  background: linear-gradient(135deg, var(--green-900), var(--green-700));
  color: var(--lime-light); display: flex; flex-direction: column;
  align-items: center; justify-content: center; font-weight: 800;
  box-shadow: inset 0 0 0 1px rgba(168, 220, 122, 0.2);
}
.curr-day small { font-size: 0.62rem; font-weight: 700; color: #8aa585; letter-spacing: 0.08em; }
.curr-day b { font-size: 1.12rem; line-height: 1.25; }
.curr-body h3 { font-size: 1.08rem; margin-bottom: 6px; font-weight: 700; }
.curr-body p { color: var(--text-sub); font-size: 0.92rem; }
.curr-body .curr-instructor {
  display: inline-block; margin-top: 10px; font-size: 0.8rem; font-weight: 700;
  color: var(--green-ink); background: var(--tint);
  border: 1px solid #d8ecce; border-radius: 999px; padding: 4px 14px;
}

/* ---------- 강사진 ---------- */
.instructors { background: var(--white); }
.instructor-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 20px;
}
.instructor-card {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 18px; text-align: center;
  transition: transform 0.2s, box-shadow 0.25s, border-color 0.25s;
}
.instructor-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #c8e3b8; }
.instructor-card .avatar {
  width: 104px; height: 104px; border-radius: 50%; margin: 0 auto 16px;
  background: linear-gradient(135deg, var(--green-800), var(--green-700));
  color: var(--lime-light); font-weight: 800; font-size: 1.5rem;
  display: flex; align-items: center; justify-content: center;
  border: 3px solid transparent;
  background-clip: padding-box;
  box-shadow: 0 0 0 3px rgba(124, 191, 76, 0.55), 0 8px 20px rgba(5, 18, 8, 0.18);
  overflow: hidden;
}
.instructor-card .avatar img {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%;
  transition: transform 0.35s;
}
.instructor-card:hover .avatar img { transform: scale(1.07); }
.instructor-card h3 { font-size: 1.04rem; margin-bottom: 4px; font-weight: 700; }
.instructor-card p { color: var(--text-sub); font-size: 0.82rem; line-height: 1.55; }

/* ---------- 인증 절차 ---------- */
.cert { background: var(--white); }
.cert-steps {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px;
  counter-reset: step;
}
.cert-step {
  position: relative; background: var(--bg); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 58px 24px 28px; text-align: left;
}
.cert-step::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: 20px; left: 24px;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--grad); color: var(--green-950); font-weight: 800;
  display: flex; align-items: center; justify-content: center; font-size: 0.95rem;
}
.cert-step h3 { font-size: 1rem; margin-bottom: 6px; font-weight: 700; }
.cert-step p { color: var(--text-sub); font-size: 0.9rem; }

/* ---------- 수강료 · 기수 ---------- */
.pricing-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px;
  max-width: 760px; margin: 0 auto;
}
.price-card {
  background: var(--white); border: 2px solid var(--line); border-radius: var(--radius);
  padding: 36px 28px; text-align: center;
  transition: transform 0.2s, box-shadow 0.25s;
}
.price-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.price-card.featured { border-color: var(--lime); background: var(--tint); position: relative; }
.price-card.featured::before {
  content: "BEST"; position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--grad); color: var(--green-950); font-size: 0.7rem; font-weight: 800;
  letter-spacing: 0.12em; padding: 4px 14px; border-radius: 999px;
}
.price-card .price-label { color: var(--text-sub); font-size: 0.9rem; margin-bottom: 8px; }
.price-card .price { font-size: 2.2rem; font-weight: 800; color: var(--green-900); }
.price-card .price small { font-size: 0.95rem; font-weight: 700; color: var(--text-sub); }
.price-note { text-align: center; color: var(--text-sub); font-size: 0.85rem; margin-top: 20px; }

.cohort-table {
  max-width: 620px; margin: 44px auto 0; border-collapse: collapse; width: 100%;
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.cohort-table th, .cohort-table td { padding: 16px 20px; text-align: center; font-size: 0.95rem; }
.cohort-table th { background: var(--green-900); color: var(--lime-light); width: 26%; font-weight: 800; }
.cohort-table tr + tr th, .cohort-table tr + tr td { border-top: 1px solid var(--line); }

/* ---------- FAQ ---------- */
.faq-list { max-width: 760px; margin: 0 auto; display: grid; gap: 12px; }
.faq-list details {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px 26px; text-align: left;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.faq-list details:hover { border-color: #c8e3b8; }
.faq-list details[open] { box-shadow: var(--shadow-sm); border-color: #c8e3b8; }
.faq-list summary {
  cursor: pointer; font-weight: 700; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; color: var(--lime); font-size: 1.4rem; font-weight: 400; flex-shrink: 0; }
.faq-list details[open] summary::after { content: "–"; }
.faq-list details p { margin-top: 12px; color: var(--text-sub); font-size: 0.94rem; }

/* ---------- CTA ---------- */
.cta {
  position: relative;
  background:
    radial-gradient(700px 300px at 50% 0%, rgba(124, 191, 76, 0.22), transparent 70%),
    linear-gradient(160deg, var(--green-950), var(--green-800));
  color: var(--white); text-align: center;
}
.cta h2 { font-size: clamp(1.55rem, 3vw, 2.2rem); margin-bottom: 14px; font-weight: 800; }
.cta p { color: #ccdac7; margin-bottom: 34px; }

/* ---------- 푸터 ---------- */
.site-footer {
  background: var(--green-950); color: #8a9c86;
  padding: 38px 0; font-size: 0.85rem;
  border-top: 1px solid rgba(168, 220, 122, 0.1);
}
.site-footer .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }

/* ============================================================
   강의실 (classroom.html)
============================================================ */
body.classroom-body { background: #f0f4ef; }

.classroom-layout {
  display: grid; grid-template-columns: 320px 1fr; gap: 28px;
  max-width: 1280px; margin: 0 auto; padding: 32px 24px 80px;
  align-items: start;
}

/* 사이드바 */
.lesson-sidebar {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; position: sticky; top: 90px;
  box-shadow: var(--shadow-sm);
}
.lesson-sidebar .sidebar-head {
  background: linear-gradient(135deg, var(--green-950), var(--green-800));
  color: var(--white); padding: 20px;
}
.sidebar-head h2 { font-size: 1rem; font-weight: 700; }
.progress-wrap { margin-top: 14px; }
.progress-bar {
  height: 8px; background: rgba(255, 255, 255, 0.14); border-radius: 999px; overflow: hidden;
}
.progress-fill {
  height: 100%; width: 0%;
  background: var(--grad);
  border-radius: 999px; transition: width 0.4s ease;
}
.progress-text { font-size: 0.78rem; color: #a7c0a2; margin-top: 7px; }

.lesson-list { list-style: none; max-height: 60vh; overflow-y: auto; }
.lesson-list li { border-bottom: 1px solid var(--line); }
.lesson-list li:last-child { border-bottom: none; }
.lesson-list button {
  width: 100%; text-align: left; background: none; border: none;
  padding: 14px 18px; display: flex; align-items: center; gap: 12px;
  font-size: 0.9rem; color: var(--text-main); transition: background 0.15s;
}
.lesson-list button:hover { background: var(--bg); }
.lesson-list li.active button { background: var(--tint); font-weight: 700; box-shadow: inset 3px 0 0 var(--lime); }
.lesson-check {
  flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%;
  border: 2px solid #ccd9c8; display: flex; align-items: center; justify-content: center;
  font-size: 0.7rem; color: transparent; transition: background 0.2s, border-color 0.2s;
}
li.done .lesson-check { background: var(--ok); border-color: var(--ok); color: var(--white); }
.lesson-daytag { font-size: 0.72rem; color: var(--text-sub); display: block; }

/* 플레이어 영역 */
.player-area { min-width: 0; }
.video-frame {
  position: relative; width: 100%; aspect-ratio: 16 / 9;
  background: var(--green-950); border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 16px 44px rgba(5, 18, 8, 0.25);
}
.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; color: #7b8f77; gap: 12px;
  text-align: center; padding: 24px;
}
.video-placeholder .play-icon { font-size: 3rem; opacity: 0.5; }

.player-info { margin-top: 24px; }
.player-info .daytag { color: var(--lime); font-weight: 800; font-size: 0.85rem; letter-spacing: 0.06em; }
.player-info h1 { font-size: 1.4rem; margin: 8px 0 10px; font-weight: 800; }
.player-info p { color: var(--text-sub); }

.player-actions { margin-top: 22px; display: flex; gap: 12px; flex-wrap: wrap; }
.btn-done {
  background: var(--ok); color: var(--white); border: none;
  padding: 13px 28px; border-radius: 999px; font-weight: 700; font-size: 0.95rem;
  box-shadow: 0 6px 18px rgba(33, 181, 122, 0.3);
  transition: transform 0.15s;
}
.btn-done:hover { transform: translateY(-1px); }
.btn-done.undone { background: #d3ded0; color: var(--text-main); box-shadow: none; }
.btn-nav {
  background: var(--white); border: 1px solid var(--line);
  padding: 13px 24px; border-radius: 999px; font-weight: 600; font-size: 0.95rem;
  transition: border-color 0.2s, transform 0.15s;
}
.btn-nav:hover:not(:disabled) { border-color: var(--lime); transform: translateY(-1px); }
.btn-nav:disabled { opacity: 0.4; cursor: default; }

/* 입장 코드 게이트 */
.gate-overlay {
  position: fixed; inset: 0; z-index: 200;
  background:
    radial-gradient(800px 400px at 50% 10%, rgba(124, 191, 76, 0.2), transparent 70%),
    linear-gradient(160deg, var(--green-950), var(--green-800));
  display: flex; align-items: center; justify-content: center; padding: 24px;
}
.gate-box {
  background: var(--white); border-radius: 20px; padding: 46px 40px;
  max-width: 400px; width: 100%; text-align: center;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}
.gate-box h2 { margin-bottom: 8px; font-weight: 800; }
.gate-box p { color: var(--text-sub); font-size: 0.92rem; margin-bottom: 26px; }
.gate-box input {
  width: 100%; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px;
  font-size: 1rem; text-align: center; letter-spacing: 0.1em; margin-bottom: 12px;
}
.gate-box input:focus { outline: 2px solid var(--lime); border-color: transparent; }
.gate-box .btn-primary { width: 100%; border: none; }
.gate-error { color: #e04a4a; font-size: 0.85rem; margin-top: 10px; min-height: 1.2em; }

/* 수료 배너 */
.complete-banner {
  display: none; margin-top: 28px; padding: 24px 28px;
  background: linear-gradient(135deg, #edf7e9, #e3f2da);
  border: 1px solid #a9dc84; border-radius: var(--radius);
}
.complete-banner.show { display: block; }
.complete-banner h3 { color: var(--green-ink); margin-bottom: 4px; }
.complete-banner p { color: #3f7a45; font-size: 0.92rem; }

/* ---------- 반응형 ---------- */
@media (max-width: 900px) {
  .classroom-layout { grid-template-columns: 1fr; }
  /* 모바일에서는 영상 플레이어를 먼저, 강의 목차를 아래로 */
  .player-area { order: 1; }
  .lesson-sidebar { position: static; order: 2; }
  .lesson-list { max-height: none; }
  .gnb a.gnb-link { display: none; }
  .hero { padding: 84px 0 72px; }
  section { padding: 64px 0; }
  /* 모바일에서는 비공개 안내를 히어로 상단 중앙에 배치 */
  .hero .private-note {
    position: static; display: block; margin: -34px auto 30px;
    width: fit-content; max-width: 92%; text-align: center;
  }
}

/* ---------- 재생 화면 워터마크 ----------
   계정 공유·화면 녹화를 억누르기 위해 로그인한 사람의 이메일을 옅게 겹친다.
   개발자도구로 지울 수는 있지만, 캡처본에 남으면 출처가 드러난다는 점이 억제력이다.
   pointer-events:none 이라 영상 조작(재생·전체화면)을 방해하지 않는다. */
.video-wrap { position: relative; }
.wmark {
  position: absolute; right: 14px; bottom: 56px;   /* 비메오 재생바(약 42px) 위 */
  pointer-events: none; user-select: none;
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.26);
  /* 상자·배경 없이 글자만 얹는다 (2026-09-10 아담 요청).
     밝은 슬라이드 위에서 흰 글자가 사라지지 않도록 옅은 그림자만 남긴다 —
     이게 없으면 화이트 배경 장표에서 워터마크가 통째로 안 보인다. */
  text-shadow: 0 0 2px rgba(0, 0, 0, 0.55), 0 1px 3px rgba(0, 0, 0, 0.4);
  /* 예전에는 잘라내기 어렵게 천천히 움직였는데 시청에 방해가 된다고 해서
     오른쪽 아래 고정으로 바꿨다 (2026-09-10 아담 요청) */
}
/* 좁은 화면은 재생바도 얇아진다 */
@media (max-width: 640px) { .wmark { font-size: 0.66rem; bottom: 44px; } }
