/* ============================================================
   CFO AI 활용 실무 인증 과정 — 스타일 (1기 포스터 네이비+블루 톤)
============================================================ */
:root {
  --navy-950: #060d1f;
  --navy-900: #0a1630;
  --navy-800: #0f2145;
  --navy-700: #16305f;
  --blue: #2f9bff;
  --cyan: #55d0ff;
  --blue-deep: #1b6ea8;
  --text-main: #16233c;
  --text-sub: #5b6b85;
  --bg: #f5f8fc;
  --white: #ffffff;
  --line: #e2e9f4;
  --tint: #eef6ff;
  --green: #21b57a;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(10, 22, 48, 0.1);
  --shadow-sm: 0 4px 14px rgba(10, 22, 48, 0.07);
  --grad: linear-gradient(92deg, var(--blue), var(--cyan));
}

* { 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(6, 13, 31, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: var(--white);
  border-bottom: 1px solid rgba(85, 208, 255, 0.12);
  transition: background 0.3s;
}
.site-header.scrolled { background: rgba(6, 13, 31, 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(--cyan); border: 1px solid rgba(85, 208, 255, 0.45);
  background: rgba(85, 208, 255, 0.1);
  padding: 2px 10px; border-radius: 999px;
}
.gnb { display: flex; gap: 26px; align-items: center; font-size: 0.94rem; }
.gnb a { color: #aebedb; transition: color 0.2s; }
.gnb a:hover { color: var(--white); }
.btn-classroom {
  background: var(--grad); color: var(--navy-950);
  padding: 9px 20px; border-radius: 999px; font-weight: 800;
  box-shadow: 0 4px 16px rgba(47, 155, 255, 0.35);
  transition: transform 0.15s, box-shadow 0.2s;
}
.btn-classroom:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(47, 155, 255, 0.5); color: var(--navy-950); }

/* ---------- 히어로 ---------- */
.hero {
  position: relative;
  background:
    linear-gradient(100deg, rgba(6, 13, 31, 0.42) 0%, rgba(6, 13, 31, 0.82) 46%, rgba(6, 13, 31, 0.96) 100%),
    url("../img/hero-bg.jpg") left center / cover no-repeat,
    var(--navy-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(6, 13, 31, 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: #b6cbe8;
  background: rgba(6, 13, 31, 0.55);
  border: 1px solid rgba(85, 208, 255, 0.28);
  padding: 6px 15px; border-radius: 999px;
  backdrop-filter: blur(6px);
}
.hero .badge {
  display: inline-block; margin-bottom: 26px;
  background: rgba(85, 208, 255, 0.12); color: var(--cyan); font-weight: 700;
  border: 1px solid rgba(85, 208, 255, 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: #c3d2ea; 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(--navy-950);
  box-shadow: 0 8px 26px rgba(47, 155, 255, 0.4);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(47, 155, 255, 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(--cyan); color: var(--cyan); 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(85, 208, 255, 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(85, 208, 255, 0.55); background: rgba(255, 255, 255, 0.09); }
.hero-info h3 {
  color: var(--cyan); font-size: 0.88rem; letter-spacing: 0.08em; margin-bottom: 10px; font-weight: 700;
}
.hero-info p { color: #dbe6f7; font-size: 0.93rem; line-height: 1.75; }

/* ---------- 섹션 공통 ---------- */
section { padding: 96px 0; }
.section-label {
  color: var(--blue); 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: #bcd9ff; }
.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(--navy-800), var(--navy-700));
  box-shadow: inset 0 0 0 1px rgba(85, 208, 255, 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: #bcd9ff; }
.curr-day {
  flex-shrink: 0; width: 68px; height: 68px; border-radius: 16px;
  background: linear-gradient(135deg, var(--navy-900), var(--navy-700));
  color: var(--cyan); display: flex; flex-direction: column;
  align-items: center; justify-content: center; font-weight: 800;
  box-shadow: inset 0 0 0 1px rgba(85, 208, 255, 0.2);
}
.curr-day small { font-size: 0.62rem; font-weight: 700; color: #7f9cc9; 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(--blue-deep); background: var(--tint);
  border: 1px solid #cfe6ff; 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: #bcd9ff; }
.instructor-card .avatar {
  width: 104px; height: 104px; border-radius: 50%; margin: 0 auto 16px;
  background: linear-gradient(135deg, var(--navy-800), var(--navy-700));
  color: var(--cyan); 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(47, 155, 255, 0.55), 0 8px 20px rgba(10, 22, 48, 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(--navy-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(--blue); 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(--navy-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(--navy-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(--navy-900); color: var(--cyan); 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: #bcd9ff; }
.faq-list details[open] { box-shadow: var(--shadow-sm); border-color: #bcd9ff; }
.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(--blue); 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(47, 155, 255, 0.22), transparent 70%),
    linear-gradient(160deg, var(--navy-950), var(--navy-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: #c3d2ea; margin-bottom: 34px; }

/* ---------- 푸터 ---------- */
.site-footer {
  background: var(--navy-950); color: #7f93b5;
  padding: 38px 0; font-size: 0.85rem;
  border-top: 1px solid rgba(85, 208, 255, 0.1);
}
.site-footer .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }

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

.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(--navy-950), var(--navy-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: #9db4d8; 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(--blue); }
.lesson-check {
  flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%;
  border: 2px solid #c4d2e6; 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(--green); border-color: var(--green); 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(--navy-950); border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 16px 44px rgba(10, 22, 48, 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: #6f87ad; 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(--blue); 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(--green); 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: #ccd8e8; 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(--blue); 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(47, 155, 255, 0.2), transparent 70%),
    linear-gradient(160deg, var(--navy-950), var(--navy-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(--blue); 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, #e9f6ff, #dbeeff);
  border: 1px solid #9ad6ff; border-radius: var(--radius);
}
.complete-banner.show { display: block; }
.complete-banner h3 { color: var(--blue-deep); margin-bottom: 4px; }
.complete-banner p { color: #4a7ba6; 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;
  }
}
