/* ============================================================
   교육센터 (/education/staff) — v3.73
   ------------------------------------------------------------
   · 접두사 ec- (기존 edu-·cj-·hw- 와 충돌 없음)
   · 배경: 흰색 ↔ #F7F8FA 교차 / 포인트: 네이비 #0B1F3A 단일
   · 제목 24~28px · 소제목 18px · 본문 15~16px · 보조 13px 이상
   · 카드 1px 테두리 + 옅은 그림자 + radius 12px 이하
   · 버튼 radius 8px (primary 네이비 단색 / secondary 흰색+네이비 테두리)
   · 그라데이션·글래스모피즘·네온·펄스·떠오르는 호버 금지
   · 상태는 색만이 아니라 텍스트 라벨 + 아이콘으로 표시
   ============================================================ */

/* ── 디자인 토큰 ──────────────────────────────────────────────
   .ec-gate / .ec-player / .ec-pw 는 <body> 끝, 즉 .ec 컨테이너
   **바깥**에 렌더됩니다. 토큰을 .ec 에만 두면 모달 안에서
   var(--ec-nv) 가 비어 버튼 배경이 투명해집니다(실제 발생한 버그).
   그래서 토큰은 .ec 와 함께 이 세 루트에도 같이 선언합니다. */
.ec,
.ec-gate,
.ec-player,
.ec-pw {
  --ec-nv: #0b1f3a;
  --ec-nv-2: #1b3557;
  --ec-mist: #f7f8fa;
  --ec-rule: #e2e7ee;
  --ec-rule-2: #cfd7e2;
  --ec-tx: #1e2a38;
  --ec-tx2: #4c5b6d;
  --ec-tx3: #6b7889;
}

.ec {
  color: var(--ec-tx);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 0;
}

.ec *,
.ec *::before,
.ec *::after { box-sizing: border-box; }

/* 모달·재생창 내부도 같은 타이포 기준을 씁니다 */
.ec-gate,
.ec-player { color: var(--ec-tx); font-size: 16px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
.ec-gate *,
.ec-gate *::before,
.ec-gate *::after,
.ec-player *,
.ec-player *::before,
.ec-player *::after { box-sizing: border-box; }

.ec__in {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ── 섹션 ─────────────────────────────────────────────────── */
.ec-sec { padding: 52px 0; }
.ec-sec--mist { background: var(--ec-mist); }
.ec-sec--tight { padding: 36px 0; }

.ec-sec__hd { margin: 0 0 22px; }
.ec-sec__k {
  display: block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--ec-tx3);
  margin-bottom: 8px;
}
.ec-sec__t {
  margin: 0;
  font-size: 24px;
  line-height: 1.34;
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--ec-nv);
}
.ec-sec__d {
  margin: 10px 0 0;
  font-size: 15px;
  color: var(--ec-tx2);
}

/* 대상 라벨 — 색만으로 구분하지 않도록 항상 텍스트를 함께 둡니다 */
.ec-lab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ec-nv);
  background: #fff;
  border: 1px solid var(--ec-rule-2);
  border-radius: 999px;
  padding: 5px 12px;
  line-height: 1.3;
}
.ec-lab--solid {
  background: var(--ec-nv);
  border-color: var(--ec-nv);
  color: #fff;
}
.ec-lab i { font-size: 12px; }

/* ── 히어로 ───────────────────────────────────────────────── */
.ec-hero {
  background: #fff;
  border-bottom: 1px solid var(--ec-rule);
  padding: 30px 0 46px;
}
.ec-crumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  color: var(--ec-tx3);
  margin-bottom: 24px;
}
.ec-crumb a { color: var(--ec-tx3); text-decoration: none; }
.ec-crumb a:hover { color: var(--ec-nv); text-decoration: underline; }
.ec-crumb i { font-size: 9px; opacity: .55; }
.ec-crumb b { color: var(--ec-nv); font-weight: 700; }

.ec-hero__grid {
  display: grid;
  /* 좌 텍스트 4 : 우 이미지 6 — 이미지를 최대한 크게 */
  grid-template-columns: minmax(0, 4fr) minmax(0, 6fr);
  gap: 26px;
  align-items: center;
}
.ec-hero__txt { min-width: 0; }
.ec-hero__t {
  margin: 0 0 14px;
  font-size: 28px;
  line-height: 1.32;
  font-weight: 700;
  letter-spacing: -.025em;
  color: var(--ec-nv);
}
.ec-hero__d {
  margin: 0;
  font-size: 16px;
  color: var(--ec-tx2);
  max-width: 46ch;
}
.ec-hero__acts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}
.ec-hero__note {
  margin: 14px 0 0;
  font-size: 13px;
  color: var(--ec-tx3);
  display: flex;
  align-items: flex-start;
  gap: 7px;
  max-width: 48ch;
}
.ec-hero__note i { margin-top: 3px; font-size: 12px; }

.ec-hero__ph {
  position: relative;
  border: 1px solid var(--ec-rule);
  border-radius: 12px;
  overflow: hidden;
  background: var(--ec-mist);
  box-shadow: 0 1px 2px rgba(11, 31, 58, .05);
}
.ec-hero__ph img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.ec-hero__ph figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(11, 31, 58, .82);
  color: #fff;
  font-size: 13px;
  padding: 9px 12px;
}

/* ── 버튼 ─────────────────────────────────────────────────── */
.ec-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  padding: 13px 20px;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
  white-space: nowrap;
}
.ec-btn--p {
  background: var(--ec-nv);
  border-color: var(--ec-nv);
  color: #fff;
}
.ec-btn--p:hover { background: var(--ec-nv-2); border-color: var(--ec-nv-2); }
.ec-btn--g {
  background: #fff;
  border-color: var(--ec-nv);
  color: var(--ec-nv);
}
.ec-btn--g:hover { background: #f2f5f9; }
.ec-btn--sm { font-size: 14px; padding: 10px 16px; }
.ec-btn--block { width: 100%; }
.ec-btn:focus-visible { outline: 3px solid #2f6fd0; outline-offset: 2px; }
.ec-btn[aria-disabled='true'] { opacity: .55; pointer-events: none; }

/* ── 현장 격자 ────────────────────────────────────────────── */
.ec-field {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 20px;
}
.ec-field__c {
  margin: 0;
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--ec-rule);
  background: var(--ec-mist);
}
.ec-field__c img {
  display: block;
  width: 100%;
  /* HTML width/height 속성이 height 를 고정해 버리므로 auto 로 풀고
     비율은 aspect-ratio 로만 잡습니다. */
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.ec-field__c figcaption {
  position: absolute;
  inset: auto 0 0 0;
  background: rgba(11, 31, 58, .78);
  color: #fff;
  font-size: 12px;
  line-height: 1.3;
  padding: 6px 9px;
}
.ec-field__c figcaption b { display: block; font-weight: 700; font-size: 12px; }
.ec-field__c figcaption span { display: block; opacity: .84; font-size: 11px; }
.ec-field__note {
  margin: 12px 0 0;
  font-size: 13px;
  color: var(--ec-tx3);
}

/* ── 두 교육 비교 카드 ────────────────────────────────────── */
.ec-cmp {
  border: 1px solid var(--ec-rule);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 1px 2px rgba(11, 31, 58, .05);
}
.ec-cmp table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}
.ec-cmp th,
.ec-cmp td {
  padding: 14px 18px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--ec-rule);
}
.ec-cmp tr:last-child th,
.ec-cmp tr:last-child td { border-bottom: 0; }
.ec-cmp thead th {
  background: var(--ec-mist);
  font-size: 15px;
  font-weight: 700;
  color: var(--ec-nv);
  border-bottom: 1px solid var(--ec-rule-2);
}
.ec-cmp thead th small {
  display: block;
  font-size: 13px;
  font-weight: 400;
  color: var(--ec-tx2);
  margin-top: 3px;
}
.ec-cmp tbody th {
  width: 96px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ec-tx3);
  background: #fcfdfe;
}
.ec-cmp td { color: var(--ec-tx2); }
.ec-cmp td b { color: var(--ec-nv); }

/* ── 유튜브형 카드 ────────────────────────────────────────── */
.ec-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-top: 22px;
}
.ec-cards--wide-first > .ec-card--wide { grid-column: 1 / -1; }

.ec-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--ec-rule);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(11, 31, 58, .05);
}
.ec-card--wide { flex-direction: row; }
.ec-card__thumb { position: relative; flex: 0 0 auto; }
.ec-card--wide .ec-card__thumb { width: 46%; }
.ec-card__bd {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 18px 18px;
  min-width: 0;
  flex: 1 1 auto;
}
.ec-card--wide .ec-card__bd { padding: 20px 22px; justify-content: center; }
.ec-card__t {
  margin: 0;
  font-size: 18px;
  line-height: 1.38;
  font-weight: 700;
  color: var(--ec-nv);
  letter-spacing: -.01em;
}
.ec-card__d {
  margin: 0;
  font-size: 15px;
  color: var(--ec-tx2);
  line-height: 1.6;
}
.ec-card__ch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--ec-tx3);
  margin: 0;
}
.ec-card__ch i { font-size: 12px; }
.ec-card__row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 2px;
}
.ec-card__foot {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--ec-rule);
}
.ec-card__fee {
  font-size: 15px;
  font-weight: 700;
  color: var(--ec-nv);
}
.ec-card__fee--free {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.ec-card__time {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--ec-tx2);
}
.ec-card__cond {
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--ec-tx3);
  padding-left: 13px;
  position: relative;
}
.ec-card__cond::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--ec-tx3);
}

/* 썸네일 — 재생 버튼은 HTML 로 그립니다 (이미지에 굽지 않음) */
.ec-thumb {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: #000;
  cursor: pointer;
  overflow: hidden;
  border-radius: 0;
}
.ec-card--wide .ec-thumb,
.ec-card .ec-thumb { border-radius: 0; }
.ec-thumb img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.ec-thumb__btn {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--ec-nv);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
/* 흰 원 + 네이비 삼각형 (직무교육) */
.ec-thumb__btn::after {
  content: '';
  display: block;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 10px 0 10px 17px;
  border-color: transparent transparent transparent var(--ec-nv);
  margin-left: 4px;
}
/* 네이비 원 + 흰 삼각형 (CEO교육) */
.ec-thumb--ceo .ec-thumb__btn {
  background: var(--ec-nv);
  border-color: var(--ec-nv);
}
.ec-thumb--ceo .ec-thumb__btn::after {
  border-color: transparent transparent transparent #fff;
}
.ec-thumb__time {
  position: absolute;
  right: 8px;
  bottom: 8px;
  background: rgba(11, 31, 58, .9);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  padding: 3px 7px;
  border-radius: 4px;
  font-variant-numeric: tabular-nums;
}
.ec-thumb:focus-visible { outline: 3px solid #2f6fd0; outline-offset: -3px; }

/* ── 칩 필터 ──────────────────────────────────────────────── */
.ec-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 0;
}
.ec-chip {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  padding: 9px 15px;
  border-radius: 999px;
  border: 1px solid var(--ec-rule-2);
  background: #fff;
  color: var(--ec-tx2);
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.ec-chip:hover { border-color: var(--ec-nv); color: var(--ec-nv); }
.ec-chip[aria-pressed='true'] {
  background: var(--ec-nv);
  border-color: var(--ec-nv);
  color: #fff;
}
.ec-chip:focus-visible { outline: 3px solid #2f6fd0; outline-offset: 2px; }
.ec-chip__n {
  display: inline-block;
  margin-left: 4px;
  font-size: 12px;
  font-weight: 600;
  opacity: .7;
}
.ec-empty {
  margin: 22px 0 0;
  padding: 26px;
  text-align: center;
  font-size: 15px;
  color: var(--ec-tx3);
  border: 1px dashed var(--ec-rule-2);
  border-radius: 12px;
  background: #fff;
}

/* ── 혜택 ─────────────────────────────────────────────────── */
.ec-bene {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 20px;
}
.ec-bene__c {
  background: #fff;
  border: 1px solid var(--ec-rule);
  border-radius: 12px;
  padding: 20px 18px;
  box-shadow: 0 1px 2px rgba(11, 31, 58, .05);
}
.ec-bene__i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: var(--ec-mist);
  border: 1px solid var(--ec-rule);
  color: var(--ec-nv);
  font-size: 16px;
  margin-bottom: 12px;
}
.ec-bene__t {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 700;
  color: var(--ec-nv);
  line-height: 1.35;
}
.ec-bene__d {
  margin: 0;
  font-size: 15px;
  color: var(--ec-tx2);
  line-height: 1.6;
}

/* 무료 조건 — 영역 아래 한 번 더 정리 */
.ec-condbox {
  margin-top: 16px;
  background: #fff;
  border: 1px solid var(--ec-rule);
  border-left: 3px solid var(--ec-nv);
  border-radius: 8px;
  padding: 14px 18px;
}
.ec-condbox__h {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ec-nv);
  margin: 0 0 6px;
}
.ec-condbox__b {
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
  color: var(--ec-tx2);
}

/* CEO교육 리스트 상단 공통 안내 — 카드마다 반복하던 문구를 한 번만 모읍니다 */
.ec-ceo-notice {
  margin: 0 0 16px;
}
.ec-ceo-notice__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}
.ec-ceo-notice__list li {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  font-size: 14px;
  line-height: 1.65;
  color: var(--ec-tx2);
}
.ec-ceo-notice__list b {
  font-weight: 700;
  color: var(--ec-nv);
}
@media (max-width: 560px) {
  .ec-ceo-notice__list li {
    grid-template-columns: 1fr;
    gap: 2px;
  }
}

/* ── 가입 흐름 ────────────────────────────────────────────── */
.ec-steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 22px 0 0;
  padding: 0;
  counter-reset: ecstep;
}
.ec-steps li {
  position: relative;
  padding: 0 20px 0 0;
}
.ec-steps li::before {
  counter-increment: ecstep;
  content: counter(ecstep);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--ec-nv);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 12px;
}
/* 단계 연결선 */
.ec-steps li::after {
  content: '';
  position: absolute;
  left: 42px;
  top: 17px;
  right: 12px;
  height: 1px;
  background: var(--ec-rule-2);
}
.ec-steps li:last-child::after { display: none; }
.ec-steps__t {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 700;
  color: var(--ec-nv);
  line-height: 1.35;
}
.ec-steps__d {
  margin: 0;
  font-size: 15px;
  color: var(--ec-tx2);
  line-height: 1.6;
}

/* ── 수료 기준 요약 ───────────────────────────────────────── */
.ec-cert {
  margin-top: 26px;
  background: #fff;
  border: 1px solid var(--ec-rule);
  border-radius: 12px;
  padding: 22px;
  box-shadow: 0 1px 2px rgba(11, 31, 58, .05);
}
.ec-cert__t {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 700;
  color: var(--ec-nv);
}
.ec-cert__b {
  margin: 0;
  font-size: 15px;
  color: var(--ec-tx2);
  line-height: 1.7;
}
.ec-cert__b + .ec-cert__b { margin-top: 8px; }
.ec-cert__b b { color: var(--ec-nv); }

/* ── 활동 신뢰 ────────────────────────────────────────────── */
.ec-trust {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 20px;
}
.ec-trust__c {
  background: #fff;
  border: 1px solid var(--ec-rule);
  border-radius: 12px;
  padding: 20px 18px;
}
.ec-trust__n {
  display: flex;
  align-items: baseline;
  gap: 5px;
  font-size: 28px;
  font-weight: 700;
  color: var(--ec-nv);
  line-height: 1.1;
  margin: 0 0 8px;
  letter-spacing: -.03em;
}
.ec-trust__n small { font-size: 14px; font-weight: 600; }
.ec-trust__t {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 700;
  color: var(--ec-nv);
}
.ec-trust__d {
  margin: 0;
  font-size: 14px;
  color: var(--ec-tx2);
  line-height: 1.6;
}
.ec-trust__lead {
  margin: 0 0 0;
  font-size: 15px;
  color: var(--ec-tx2);
  max-width: 62ch;
}

/* ── 하단 CTA / 고지 ──────────────────────────────────────── */
.ec-final { padding: 46px 0 56px; text-align: center; }
.ec-final__n {
  margin: 0 auto 22px;
  max-width: 62ch;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ec-tx2);
  background: var(--ec-mist);
  border: 1px solid var(--ec-rule);
  border-radius: 8px;
  padding: 14px 18px;
}
.ec-final__acts { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }

.ec-note {
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--ec-tx3);
}
.ec-notebox {
  border-top: 1px solid var(--ec-rule);
  padding: 24px 0 40px;
}

/* ── 검토 대기 표시 ───────────────────────────────────────── */
.ec-tbd {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 600;
  color: #7a5b16;
  background: #fdf7e6;
  border: 1px solid #ecd9a4;
  border-radius: 4px;
  padding: 2px 7px;
  line-height: 1.4;
  white-space: nowrap;
}

/* ── 모바일 하단 고정 버튼 ────────────────────────────────── */
.ec-bar {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1100;
  background: #fff;
  border-top: 1px solid var(--ec-rule);
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  box-shadow: 0 -1px 3px rgba(11, 31, 58, .07);
}

/* ── 재생 화면 (목업) ─────────────────────────────────────── */
.ec-player {
  position: fixed;
  inset: 0;
  z-index: 1265;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.ec-player[hidden] { display: none; }
.ec-player__ov { position: absolute; inset: 0; background: rgba(11, 31, 58, .62); }
.ec-player__p {
  position: relative;
  z-index: 1;
  width: min(100%, 620px);
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 14px 44px rgba(11, 31, 58, .26);
}
.ec-player__stage {
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
  background: var(--ec-nv);
  border-bottom: 1px solid var(--ec-rule);
}
.ec-player__ico {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .55);
  color: #fff;
  font-size: 18px;
}
.ec-player__bd { padding: 18px 20px 20px; }
.ec-player__ch {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 6px;
  font-size: 12px;
  color: var(--ec-tx3);
}
.ec-player__t {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  color: var(--ec-nv);
  line-height: 1.4;
}
.ec-player__acts { display: flex; gap: 9px; margin-top: 16px; }
.ec-player__acts .ec-btn { flex: 1 1 auto; }

/* ── 회원 혜택 2장 배치 (3번째 카드 미확정 시) ──────────────── */
.ec-bene--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* ── 회원 전용 알림 모달 ──────────────────────────────────── */
.ec-gate {
  position: fixed;
  inset: 0;
  z-index: 1260;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.ec-gate[hidden] { display: none; }
.ec-gate__ov {
  position: absolute;
  inset: 0;
  background: rgba(11, 31, 58, .55);
}
.ec-gate__p {
  position: relative;
  z-index: 1;
  width: min(100%, 460px);
  background: #fff;
  border-radius: 12px;
  padding: 26px 24px 22px;
  box-shadow: 0 12px 40px rgba(11, 31, 58, .22);
}
.ec-gate__i {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #eef2f7;
  color: var(--ec-nv);
  font-size: 18px;
  margin-bottom: 14px;
}
.ec-gate__t {
  font-size: 18px;
  font-weight: 700;
  color: var(--ec-nv);
  margin: 0 0 9px;
  line-height: 1.45;
}
.ec-gate__b {
  font-size: 15px;
  line-height: 1.7;
  color: var(--ec-tx);
  margin: 0 0 9px;
}
.ec-gate__s {
  font-size: 13px;
  line-height: 1.7;
  color: var(--ec-tx3);
  margin: 0;
}
.ec-gate__s[hidden] { display: none; }
.ec-gate__acts { display: flex; gap: 9px; margin-top: 20px; }
.ec-gate__acts .ec-btn { flex: 1 1 0; min-width: 0; width: auto; }

/* ── 프리뷰 스위처 (개발·미리보기 전용) ──────────────────── */
.ec-pw {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 1250;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 5px;
  background: #fff;
  border: 1px solid var(--ec-nv);
  border-radius: 999px;
  box-shadow: 0 4px 16px rgba(11, 31, 58, .16);
}
.ec-pw__lb {
  font-size: 11px;
  font-weight: 700;
  color: var(--ec-tx3);
  padding: 0 6px 0 8px;
  letter-spacing: .02em;
}
.ec-pw__b {
  padding: 6px 11px;
  border: 0;
  border-radius: 999px;
  background: none;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  color: var(--ec-tx3);
  cursor: pointer;
  white-space: nowrap;
}
.ec-pw__b[aria-pressed='true'] { background: var(--ec-nv); color: #fff; }
.ec-pw__b:focus-visible { outline: 3px solid #2f6fd0; outline-offset: 2px; }
.ec-pw[hidden] { display: none; }

/* ── 반응형 ───────────────────────────────────────────────── */
@media (max-width: 920px) {
  .ec-hero__grid { grid-template-columns: 1fr; gap: 26px; }
  .ec-hero__ph { order: -1; }
  .ec-hero__ph img { aspect-ratio: 16 / 9; }
  .ec-hero__t { font-size: 25px; }
  .ec-field { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .ec-bene, .ec-trust { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ec-card--wide { flex-direction: column; }
  .ec-card--wide .ec-card__thumb { width: 100%; }
  .ec-card--wide .ec-card__bd { padding: 16px 18px 18px; }
}

@media (max-width: 760px) {
  .ec-sec { padding: 38px 0; }
  .ec-sec__t { font-size: 21px; }
  .ec-hero { padding: 20px 0 34px; }
  .ec-hero__t { font-size: 23px; }
  .ec-field { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .ec-cards { grid-template-columns: 1fr; gap: 18px; }
  .ec-bene, .ec-trust { grid-template-columns: 1fr; }
  .ec-steps { grid-template-columns: 1fr; gap: 22px; }
  .ec-steps li { padding: 0 0 0 46px; }
  .ec-steps li::before { position: absolute; left: 0; top: 0; margin: 0; }
  .ec-steps li::after {
    left: 17px;
    top: 42px;
    right: auto;
    bottom: -22px;
    width: 1px;
    height: auto;
  }
  .ec-cmp table { font-size: 14px; }
  .ec-cmp th, .ec-cmp td { padding: 11px 12px; }
  .ec-cmp tbody th { width: 68px; font-size: 12px; }
  .ec-btn { width: 100%; }
  .ec-hero__acts { flex-direction: column; }
  .ec-final__acts { flex-direction: column; }
  /* 모바일 고정 바가 내용을 가리지 않도록 */
  .ec { padding-bottom: 84px; }
  .ec-bar { display: block; }
}

@media (max-width: 760px) {
  .ec-bene--two { grid-template-columns: 1fr; }
  .ec-gate__acts { flex-direction: column; }
  .ec-player__acts { flex-direction: column; }
  .ec-pw { left: 10px; bottom: 76px; }
  .ec-pw__lb { display: none; }
}

@media (max-width: 420px) {
  .ec__in { padding: 0 16px; }
  .ec-hero__t { font-size: 21px; }
  .ec-thumb__btn { width: 50px; height: 50px; }
  .ec-thumb__btn::after { border-width: 9px 0 9px 15px; }
}

/* ── 접근성 ───────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .ec *,
  .ec *::before,
  .ec *::after {
    transition: none !important;
    animation: none !important;
  }
}

.ec a:focus-visible,
.ec button:focus-visible {
  outline: 3px solid #2f6fd0;
  outline-offset: 2px;
}

.ec .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media print {
  .ec-bar,
  .ec-pw,
  .ec-gate,
  .ec-player { display: none !important; }
  .ec-sec--mist { background: #fff; }
}

/* ══════════════════════════════════════════════════════════
   v3.74 히어로 롤링 (3장 · 페이드 · 5초)
   그라데이션 오버레이·글래스모피즘·펄스 없음 — 단색 캡션만
   ══════════════════════════════════════════════════════════ */
.ec-roll {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--ec-rule);
  border-radius: 12px;
  overflow: hidden;
  background: var(--ec-mist);
  box-shadow: 0 1px 3px rgba(11, 31, 58, .07);
}
.ec-roll__track { position: absolute; inset: 0; }
.ec-roll__s {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transition: opacity .5s ease;
}
.ec-roll__s.is-on { opacity: 1; }
.ec-roll__s img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ec-roll__cap {
  position: absolute;
  left: 12px;
  bottom: 12px;
  background: rgba(11, 31, 58, .84);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  padding: 5px 10px;
  border-radius: 4px;
}
.ec-roll__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, .94);
  border: 1px solid var(--ec-rule-2);
  color: var(--ec-nv);
  font-size: 12px;
  cursor: pointer;
  z-index: 2;
}
.ec-roll__nav:hover { background: #fff; border-color: var(--ec-nv); }
.ec-roll__nav--prev { left: 10px; }
.ec-roll__nav--next { right: 10px; }
.ec-roll__dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 10px;
  display: flex;
  justify-content: center;
  gap: 7px;
  z-index: 2;
}
.ec-roll__dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .95);
  background: rgba(255, 255, 255, .4);
  cursor: pointer;
}
.ec-roll__dot[aria-current='true'] { background: #fff; }
.ec-roll__nav:focus-visible,
.ec-roll__dot:focus-visible { outline: 3px solid #2f6fd0; outline-offset: 2px; }
/* 캡션·점이 겹치지 않도록 캡션을 점 위로 */
.ec-roll__cap { bottom: 26px; }

/* ══════════════════════════════════════════════════════════
   v3.74 직무교육 1줄 리스트 (한 과정 = 한 줄, 총 3줄)
   ══════════════════════════════════════════════════════════ */
.ec-rows {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  border-top: 1px solid var(--ec-rule);
}
.ec-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 4px;
  border-bottom: 1px solid var(--ec-rule);
}
.ec-row__th {
  flex: 0 0 auto;
  width: 176px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--ec-rule);
  position: relative;
}
.ec-row__th .ec-thumb { border-radius: 0; }
.ec-row__th .ec-thumb__btn { width: 40px; height: 40px; }
.ec-row__th .ec-thumb__btn::after { border-width: 7px 0 7px 12px; margin-left: 3px; }
.ec-row__bd { min-width: 0; flex: 1 1 auto; }
.ec-row__t {
  margin: 0 0 4px;
  font-size: 18px;
  line-height: 1.38;
  font-weight: 700;
  color: var(--ec-nv);
  letter-spacing: -.01em;
}
.ec-row__d {
  margin: 0 0 7px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--ec-tx2);
}
.ec-row__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  font-size: 13px;
  color: var(--ec-tx2);
}
.ec-row__meta b { font-size: 15px; color: var(--ec-nv); }
.ec-row__dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--ec-rule-2);
}
.ec-row__host {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-left: auto;
  font-size: 13px;
  color: var(--ec-tx3);
}
.ec-row__go {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--ec-rule-2);
  color: var(--ec-nv);
  font-size: 10px;
}

/* ══════════════════════════════════════════════════════════
   v3.74 과정 목표·소개·실습 블록
   ══════════════════════════════════════════════════════════ */
.ec-memo {
  border-left: 3px solid var(--ec-rule-2);
  padding: 4px 0 4px 12px;
  margin: 6px 0 2px;
}
.ec-memo__r {
  display: flex;
  gap: 8px;
  margin: 0 0 6px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ec-tx2);
}
.ec-memo__k {
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 700;
  color: var(--ec-nv);
  background: var(--ec-mist);
  border: 1px solid var(--ec-rule);
  border-radius: 4px;
  padding: 1px 6px;
  height: fit-content;
  margin-top: 2px;
}
.ec-memo__q {
  margin: 0 0 6px;
  font-size: 14px;
  line-height: 1.68;
  color: var(--ec-tx3);
}

/* 모바일 — 이미지를 텍스트 위 전체 폭으로 */
@media (max-width: 920px) {
  .ec-hero__grid { grid-template-columns: 1fr; gap: 22px; }
  .ec-roll { order: -1; }
  .ec-field { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
}

@media (max-width: 760px) {
  .ec-row { gap: 12px; padding: 13px 0; align-items: flex-start; }
  .ec-row__th { width: 120px; }
  .ec-row__t { font-size: 16px; }
  .ec-row__d { font-size: 14px; }
  .ec-row__host { margin-left: 0; width: 100%; }
  .ec-row__go { display: none; }
  .ec-field__c figcaption b { font-size: 11px; }
  .ec-field__c figcaption span { display: none; }
}

@media (max-width: 420px) {
  .ec-row__th { width: 104px; }
  .ec-row__t { font-size: 15px; }
  .ec-row__meta { font-size: 12px; }
  .ec-roll__cap { display: none; }
  .ec-roll__nav { width: 30px; height: 30px; }
}

@media (prefers-reduced-motion: reduce) {
  .ec-roll__s { transition: none !important; }
}
