/* content.css — 서브페이지 전용 (main.css 컴포넌트 재사용 + 서브 추가분) */

/* ── 서브 히어로 (페이지 상단 배너, fixed 헤더 회피) ── */
.sub-hero {
  position: relative;
  padding: 150px 0 60px;
  color: #fff;
  background:
    linear-gradient(100deg, rgba(9, 38, 66, 0.94), rgba(0, 87, 184, 0.78)),
    url("/img/layout/ocean-water.jpg") center / cover no-repeat;
}

/* 페이지별 서브 히어로 배경 차등 (에디토리얼 다양성) */
.sub-hero--about {
  background:
    linear-gradient(100deg, rgba(9, 38, 66, 0.94), rgba(0, 87, 184, 0.78)),
    url("/img/layout/ocean-shore.jpg") center / cover no-repeat;
}

.sub-hero--lecture {
  background:
    linear-gradient(100deg, rgba(9, 38, 66, 0.95), rgba(0, 87, 184, 0.82)),
    url("/img/layout/oceanclass-class-generated.png") center / cover no-repeat;
}

.sub-hero--notice {
  background:
    linear-gradient(100deg, rgba(9, 38, 66, 0.94), rgba(0, 87, 184, 0.78)),
    url("/img/layout/ocean-calm.jpg") center / cover no-repeat;
}

.sub-hero--archive {
  background:
    linear-gradient(100deg, rgba(9, 38, 66, 0.94), rgba(0, 87, 184, 0.78)),
    url("/img/layout/ocean-wave.jpg") center / cover no-repeat;
}

.sub-hero .container {
  position: relative;
  z-index: 1;
}

.sub-hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  color: #bdefff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.sub-hero-kicker::before {
  content: "";
  width: 34px;
  height: 2px;
  background: currentColor;
}

.sub-hero-kicker + .class-badge {
  margin-left: 10px;
  margin-bottom: 0;
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
}

.sub-hero h1 {
  margin: 0;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.16;
  font-weight: 700;
}

.sub-hero p {
  max-width: 640px;
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 400;
  line-height: 1.66;
}

.sub-crumb {
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.66);
  font-size: 13px;
}

.sub-crumb a {
  transition: color 180ms ease;
}

.sub-crumb a:hover {
  color: #fff;
}

/* ── 클래스 소개: 정보 카드 ── */
.about-lead {
  max-width: 760px;
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.7;
  color: var(--text);
  font-weight: 400;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.info-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 2px solid var(--navy);
}

.info-list li {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 18px;
  padding: 18px 4px;
  border-bottom: 1px solid var(--border);
  align-items: center;
}

.info-list .info-key {
  color: var(--navy);
  font-weight: 700;
}

.info-list .info-val {
  color: var(--text-secondary);
}

/* ── 클래스(강의 입장): 클래스 카드 ── */
.class-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.class-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
  box-shadow: 0 16px 44px rgba(9, 38, 66, 0.07);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.class-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 87, 184, 0.24);
  box-shadow: 0 24px 58px rgba(9, 38, 66, 0.13);
}

.class-card-thumb {
  aspect-ratio: 16 / 9;
  background-size: cover;
  background-position: center;
}

.class-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 24px;
}

.class-badge {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  min-height: 28px;
  padding: 0 12px;
  margin-bottom: 14px;
  border-radius: 999px;
  color: var(--accent);
  background: rgba(0, 87, 184, 0.08);
  font-size: 12px;
  font-weight: 700;
}

.class-badge.vod {
  color: var(--positive);
  background: rgba(18, 134, 111, 0.1);
}

.class-card h3 {
  margin: 0;
  font-size: 22px;
  font-weight: 600;
}

.class-card .class-desc {
  margin: 10px 0 0;
  color: var(--text-secondary);
  line-height: 1.6;
}

.class-meta {
  display: grid;
  gap: 6px;
  margin: 18px 0 0;
  padding: 16px 0 0;
  border-top: 1px solid var(--border);
  font-size: 14px;
  color: var(--text-secondary);
}

.class-meta b {
  color: var(--navy);
}

.class-card .button {
  margin-top: 20px;
}

.class-card .button[aria-disabled="true"] {
  pointer-events: none;
  color: #fff;
  background: #9fb3c4;
  box-shadow: none;
}

/* 안내 박스 (모집 전 상태 등) */
.status-note {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 24px;
  border: 1px solid rgba(0, 87, 184, 0.18);
  border-radius: var(--radius);
  background: var(--surface-soft);
  color: var(--navy);
  font-weight: 600;
}

.status-note .icon-badge {
  flex: 0 0 auto;
  margin: 0;
}

/* ── 게시판 목록 ── */
.board-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 2px solid var(--navy);
}

.board-list li {
  display: grid;
  grid-template-columns: 92px 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 20px 4px;
  border-bottom: 1px solid var(--border);
  transition: background-color 180ms ease, padding 180ms ease;
}

.board-list li:hover {
  padding-left: 14px;
  padding-right: 14px;
  background: rgba(0, 87, 184, 0.04);
}

.board-list .b-date {
  text-align: center;
  color: var(--navy);
  font-weight: 700;
}

.board-list .b-date span {
  display: block;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 500;
}

.board-list .b-title {
  min-width: 0;
  font-weight: 600;
  transition: color 180ms ease;
}

.board-list li:hover .b-title {
  color: var(--accent);
}

.board-list .b-tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  color: var(--accent);
  background: rgba(0, 87, 184, 0.08);
  font-size: 12px;
  font-weight: 700;
}

/* 게시판 관리자 툴바 */
.board-toolbar {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-bottom: 16px;
}

/* 게시판 상세 */
.board-view {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 16px 40px rgba(9, 38, 66, 0.06);
  overflow: hidden;
}

.board-view-head {
  padding: 32px 32px 24px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-soft);
}

.board-view-head .b-tag {
  margin-bottom: 14px;
}

.board-view-head h2 {
  margin: 0;
  font-size: clamp(22px, 2.4vw, 28px);
  line-height: 1.32;
  font-weight: 700;
  color: var(--navy);
}

.board-view-meta {
  margin-top: 12px;
  color: var(--text-secondary);
  font-size: 14px;
}

.board-view-body {
  padding: 32px;
  line-height: 1.8;
  color: var(--text);
  min-height: 200px;
}

.board-view-admin {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 32px;
  border-top: 1px dashed rgba(0, 87, 184, 0.3);
  background: rgba(0, 87, 184, 0.04);
}

.board-view-admin .admin-note {
  margin-right: auto;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.board-view-foot {
  display: flex;
  justify-content: flex-end;
  padding: 22px 32px;
  border-top: 1px solid var(--border);
}

.button.danger {
  color: #fff;
  background: #d23f3f;
  box-shadow: 0 14px 30px rgba(210, 63, 63, 0.22);
}

.button.danger:hover {
  background: #b22f2f;
}

/* 페이지네이션 */
.pager {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 40px;
}

.pager a,
.pager span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-secondary);
  font-weight: 600;
  transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.pager .current {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
}

.pager a:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* ── 수강신청 폼 ── */
.apply-form,
/* QA(260807) — 정보보완류 폼이 이 grid+gap 을 물려받지 못해 마지막 입력행과 저장
   버튼이 여백 없이 붙어 보이던 문제. .apply-form 과 같은 간격 규칙을 그대로 공유한다.
   (이 클래스를 실제로 쓰는 화면은 별도 트랙에서 아직 커밋 전 — 이 규칙 자체는 미사용 상태로
   대기, 해당 화면 커밋 시 함께 활성화됨.) */
.profile-form {
  display: grid;
  gap: 28px;
  width: 100%;
}

.form-block {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 28px;
  box-shadow: 0 16px 40px rgba(9, 38, 66, 0.06);
}

.form-block > h3 {
  margin: 0 0 18px;
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
}

.form-row {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 20px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.form-row:last-child {
  border-bottom: 0;
}

.form-row > label {
  font-weight: 600;
  color: var(--navy);
}

.form-row .req {
  color: #d23f3f;
  margin-left: 2px;
}

.form-input {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  font: inherit;
  color: var(--text);
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

textarea.form-input {
  height: auto;
  padding: 12px 14px;
  resize: vertical;
}

.form-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 87, 184, 0.12);
}

/* QA(260807) — 주소 입력칸 + "우편번호 검색" 버튼을 한 줄에 두되, 좁은 화면에선 줄바꿈. */
.address-input-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.address-input-group .form-input {
  flex: 1 1 220px;
  min-width: 0;
}

.address-input-group .button {
  flex: 0 0 auto;
  min-height: 46px;
  padding: 0 18px;
}

/* A2(plan 024) — 입력칸 하단 보조 안내문구 (주소 등) */
.field-hint {
  margin: 6px 0 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-secondary);
}

.agree-item {
  display: flex;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  line-height: 1.6;
}

.agree-item:last-child {
  border-bottom: 0;
}

.agree-item input {
  margin-top: 4px;
}

.form-submit {
  display: flex;
  justify-content: center;
}

.form-submit .button {
  min-width: 240px;
}

/* ── 신청 완료 ── */
.apply-done {
  max-width: 620px;
  margin: 0 auto;
  padding: 48px 32px;
  text-align: center;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 16px 40px rgba(9, 38, 66, 0.06);
}

.apply-done .icon-badge {
  margin: 0 auto 20px;
  color: var(--positive);
  background: rgba(18, 134, 111, 0.1);
}

.apply-done h2 {
  margin: 0 0 14px;
  font-size: 22px;
  font-weight: 700;
  color: var(--navy);
}

.apply-done p {
  margin: 0 0 28px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.apply-done-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── 강의 입장 (02_lecture) ── */
.lecture-class-head {
  padding: 30px 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 16px 40px rgba(9, 38, 66, 0.06);
}

.lecture-class-head-grid {
  display: grid;
  grid-template-columns: minmax(160px, 240px) 1fr;
  gap: 28px;
  align-items: start;
}

.lecture-class-poster {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: var(--radius);
}

.lecture-class-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.lecture-class-info {
  min-width: 0;
}

.lecture-class-head h2 {
  margin: 12px 0 0;
  font-size: 26px;
  font-weight: 700;
  color: var(--navy);
}

.lecture-topic {
  margin: 8px 0 0;
  color: var(--text-secondary);
}

.lecture-class-head .class-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin-top: 16px;
  font-size: 14px;
  color: var(--text-secondary);
}

.lecture-class-head .class-meta b {
  color: var(--navy);
}

.lecture-intro {
  margin: 18px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  line-height: 1.7;
  color: var(--text-secondary);
}

.lecture-schedule-panel {
  margin-top: 28px;
}

@media (max-width: 768px) {
  .lecture-class-head {
    padding: 22px;
  }

  .lecture-class-head-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .lecture-class-poster {
    max-width: 320px;
    width: 100%;
    margin: 0 auto;
  }
}

.identify-box {
  margin-top: 22px;
  padding: 26px 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-soft);
}

.identify-box h3 {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
}

.identify-box p {
  margin: 0 0 16px;
  color: var(--text-secondary);
  font-size: 14px;
}

.identify-error {
  color: #b3261e !important;
  font-weight: 600;
}

/* 본인확인 게이트 + 모달 (공개 페이지, plan 011 3군) */
.identify-gate {
  margin-top: 22px;
  padding: 26px 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-soft);
}

.identify-gate p {
  margin: 0 0 14px;
  color: var(--text-secondary);
  font-size: 14px;
}

.identify-gate-help {
  margin: 14px 0 0 !important;
  font-size: 13px;
}

.identify-gate-help a {
  color: var(--navy);
  font-weight: 600;
}

/* 본인확인 팝업(.oc-modal)은 main.css 로 통일 — 수강신청·강의입장 시각 동일. */

.identify-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 14px;
}

.identify-row .field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.identify-row .field-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
}

.identify-welcome {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 22px;
  padding: 16px 22px;
  border-radius: var(--radius);
  background: rgba(18, 134, 111, 0.08);
  color: var(--navy);
}

.identify-logout {
  margin-left: auto;
  font-size: 13px;
  color: var(--text-secondary);
  text-decoration: underline;
}

.lecture-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

/* QA(260807) — align-items:center 는 각 회차 카드를 "그 카드에서 제일 큰 칸" 기준으로
   가운데 정렬한다. 입장 가능 회차(버튼 한 줄)와 입장 불가 회차(버튼+안내문구 두 줄)는
   오른쪽 칸 높이가 서로 달라 카드 전체 높이가 달라지고, 그 결과 버튼 자체의 세로 위치가
   회차마다 들쭉날쭉해 보였다(신고: "버튼 정렬 동일하게"). 위 기준으로 고정하면 안내문구
   유무와 무관하게 버튼이 항상 카드 상단의 같은 위치에서 시작한다. */
.lecture-item {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  align-items: start;
  gap: 18px;
  padding: 20px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 10px 30px rgba(9, 38, 66, 0.05);
}

.lecture-seq {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: rgba(0, 87, 184, 0.08);
  color: var(--accent);
  font-weight: 700;
}

.lecture-info h4 {
  margin: 0 0 6px;
  font-size: 17px;
  font-weight: 600;
  color: var(--navy);
}

.lecture-type {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
  background: #eef2f5;
}

.lecture-type.live {
  color: #fff;
  background: var(--accent);
}

.live-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
  box-shadow: 0 18px 50px rgba(9, 38, 66, 0.18);
}

.live-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.watch-stage { position: relative; }

.watch-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.watch-progress {
  font-weight: 700;
  color: var(--accent);
}

.watch-note {
  margin-top: 14px;
  font-size: 13px;
  color: var(--text-secondary);
}

/* ── 마이페이지 진도 ── */
.mypage-summary {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.mypage-stat {
  flex: 1;
  min-width: 150px;
  padding: 20px 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 12px 36px rgba(9, 38, 66, 0.06);
}

.mypage-stat .n { font-size: 28px; font-weight: 700; color: var(--accent); }
.mypage-stat .l { font-size: 13px; color: var(--text-secondary); margin-top: 4px; }
.mypage-stat.done .n { color: var(--positive); }

.progress-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }

.progress-item {
  display: grid;
  grid-template-columns: 56px 1fr 120px 80px;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.progress-bar {
  height: 8px;
  border-radius: 999px;
  background: #e6eef4;
  overflow: hidden;
}

.progress-bar > i {
  display: block;
  height: 100%;
  background: var(--accent);
}

.progress-kind {
  display: flex;
  align-items: center;
  justify-content: center;
  justify-self: center;
  width: 100%;
  min-width: 0;
  text-align: center;
}

.progress-percent {
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
}

.progress-percent.muted {
  color: var(--text-secondary);
}

.progress-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 66px;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

.progress-item > div:last-child {
  display: flex;
  justify-content: center;
}

.progress-badge.done { color: var(--positive); background: rgba(18, 134, 111, 0.1); }
.progress-badge.ing { color: var(--text-secondary); background: #eef2f5; }

/* ── 강의평가 ── */
.eval-form { display: grid; gap: 24px; }

.star-rating {
  display: inline-flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  gap: 4px;
  font-size: 34px;
  line-height: 1;
}

.star-rating input { display: none; }

.star-rating label {
  color: #d6dee6;
  cursor: pointer;
  transition: color 120ms ease;
}

.star-rating input:checked ~ label,
.star-rating label:hover,
.star-rating label:hover ~ label {
  color: #f5b301;
}

.tag-choices { display: flex; flex-wrap: wrap; gap: 10px; }

.tag-choice { cursor: pointer; }
.tag-choice input { display: none; }

.tag-choice span {
  display: inline-block;
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  transition: all 140ms ease;
}

.tag-choice input:checked + span {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
}

/* ── 수료증 (인쇄용) ── */
.cert-frame {
  position: relative;
  width: min(794px, 100%);
  aspect-ratio: 210 / 297;
  margin: 0 auto;
  padding: 0;
  box-sizing: border-box;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(9, 38, 66, 0.08);
  font-family: Pretendard, sans-serif;
  text-align: center;
  overflow: hidden;
  color: #111;
}

.cert-frame::before {
  content: "";
  display: none;
}

.cert-frame.gold::before { border-color: #b5965a; }
.cert-frame > * { position: absolute; z-index: 1; box-sizing: border-box; margin: 0; }
.cert-frame .cert-mark {
  z-index: 0;
  top: 38.49%;
  left: 28.67%;
  width: 43.95%;
  max-width: 360px;
  height: auto;
  opacity: 0.1;
  pointer-events: none;
}

.cert-logo { top: 11.78%; left: 17.29%; width: 12.19%; display: block; }
.cert-logo img { width: 100%; height: auto; display: block; }
.cert-kicker { display: none; }
.cert-title { top: 22.90%; left: 0; width: 100%; font-size: clamp(28px, 5.88vw, 46.7px); line-height: 1; font-weight: 700; color: #111; letter-spacing: .24em; text-indent: 0; }
.cert-meta { top: 31.45%; left: 0; width: 100%; font-size: clamp(12px, 2.35vw, 18.7px); line-height: 1.2; font-weight: 500; color: #111; }
.cert-info-block { top: 35.05%; left: 48%; width: 42%; font-size: clamp(14px, 3.02vw, 24px); line-height: 1.45; font-weight: 500; color: #111; text-align: left; white-space: nowrap; }
.cert-info-row { display: flex; align-items: baseline; }
.cert-info-label { flex: 0 0 5.2em; text-align: justify; text-align-last: justify; padding-right: .45em; }
.cert-info-value { flex: 1 1 auto; min-width: 0; text-align: left; }
.cert-name { display: none; }
.cert-body { top: 46.06%; left: 0; width: 100%; padding: 0 14%; line-height: 1.6; color: #111; font-size: clamp(14px, 3.02vw, 24px); font-weight: 500; }
.cert-body p { margin: 0; }
.cert-body strong { font-weight: 700; }
.cert-issue { top: 67.81%; left: 0; width: 100%; font-size: clamp(15px, 3.18vw, 25.2px); line-height: 1.2; font-weight: 500; color: #111; }
/* 발급기관+대표직함 한 줄 + 직인은 텍스트 마지막 글자에 겹치도록 인라인 오버레이로 배치
   (직인 폭이 텍스트 상자 기준 % 고정이면 폰트/문구 길이가 바뀔 때 안 맞으므로,
   텍스트 상자 자체를 내용 크기로 감싸고 그 오른쪽 끝에 em 단위로 겹친다) */
.cert-sign-row { top: 79.85%; left: 0; width: 100%; display: flex; align-items: center; justify-content: center; }
.cert-sign-inner { position: relative; display: inline-flex; align-items: center; font-size: clamp(16px, 3.36vw, 26.7px); line-height: 1.2; font-weight: 700; color: #111; white-space: nowrap; }
/* 직인은 글자 뒤(z-index 1)에 겹치고, 문구 자체는 그 위(z-index 3)에서 항상 온전히 읽히게 한다. */
.cert-sign-label { position: relative; z-index: 3; }
.cert-seal { position: absolute; top: 50%; left: 100%; transform: translate(-27%, -50%); width: 2.2em; height: auto; object-fit: contain; display: block; z-index: 1; margin: 0; box-sizing: border-box; }
.cert-seal-text { position: absolute; top: 50%; left: 100%; transform: translate(-27%, -50%); width: 2.2em; font-size: .55em; line-height: 1.2; font-style: normal; font-weight: 500; color: #111; text-align: center; z-index: 1; margin: 0; box-sizing: border-box; }

@media print {
  .site-header, .site-footer, .floating-top, .sub-hero, .cert-actions, .cta-bar { display: none !important; }
  @page { size: A4; margin: 0; }
  body { background: #fff; }
  .section, .container { padding: 0 !important; margin: 0 !important; max-width: none !important; }
  .cert-frame { width: 210mm; height: 297mm; box-shadow: none; padding: 0; }
  .cert-frame .cert-mark { left: 60.2mm; top: 114.3mm; width: 92.3mm; max-width: none; }
  .cert-logo { left: 36.3mm; top: 35mm; width: 25.6mm; }
  .cert-title { top: 68mm; font-size: 35pt; }
  .cert-meta { top: 93.4mm; font-size: 14pt; }
  .cert-info-block { left: 100mm; top: 104.1mm; width: 88mm; font-size: 18pt; line-height: 9.7mm; }
  .cert-info-label { flex-basis: 28mm; padding-right: 2mm; }
  .cert-body { top: 136.8mm; padding: 0 24mm; font-size: 18pt; line-height: 10.15mm; }
  .cert-issue { top: 201.4mm; font-size: 18.9pt; }
  .cert-sign-row { top: 234mm; }
  .cert-sign-inner { font-size: 20pt; }
}

@media (max-width: 640px) {
  .cert-info-block { left: 46%; width: 50%; font-size: clamp(9px, 3.1vw, 14px); }
  .cert-body { padding: 0 9%; font-size: clamp(10px, 3.2vw, 14px); }
  .identify-row { grid-template-columns: 1fr; }
  .lecture-item { grid-template-columns: 48px 1fr; }
  .lecture-action { grid-column: 1 / -1; }
  .progress-item { grid-template-columns: 44px 1fr 70px; }
  .progress-item .progress-bar { grid-column: 1 / -1; }
}

/* ── 단순 본문 (sub-hero 없는 페이지 대비) ── */
.page-section {
  max-width: var(--container);
  margin: 0 auto;
  padding: 128px 20px 80px;
}

.page-title {
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 700;
  margin-bottom: 24px;
}

.location {
  max-width: var(--container);
  margin: 0 auto;
  padding: 100px 20px 0;
  font-size: 14px;
  color: var(--text-secondary);
}

.location ol {
  display: flex;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
}

@media (max-width: 760px) {
  .about-grid,
  .class-grid {
    grid-template-columns: 1fr;
  }

  .info-list li,
  .form-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .board-list li {
    grid-template-columns: 58px 1fr;
  }

  .board-list .b-tag {
    grid-column: 2;
    justify-self: start;
  }
}

/* 공통 공지/클래스/회차 폼 (.nf-*) — *_form.php 공용 (프론트). 카드 톤 */
.nf-form { margin: 0 auto; padding: 38px 42px; background: #fff;
    border: 1px solid var(--border); border-radius: 16px; box-shadow: 0 6px 24px rgba(9,38,66,.09); }
/* QA(260807) — align-items:end 는 옆 칸에 안내문구(.nf-hint)나 이미지 미리보기처럼 키가
   더 큰 내용이 붙으면 짧은 칸 전체를 아래로 밀어 라벨·입력칸이 서로 어긋나 보이게 만든다
   (강사/소속 ↔ 강사 사진 미리보기, 모집 종료 ⚠힌트 등 실제로 재현됨). 라벨이 있는 입력칸
   끼리는 위 기준이 항상 안전하다. */
.nf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
/* 체크박스 전용 칸(.nf-field--check)은 위 라벨이 없어 그대로 위 정렬하면 옆 입력칸보다
   높이 떠 보인다 — 라벨 한 줄 몫(약 28px)만큼 아래로 내려 입력칸과 눈높이를 맞춘다. */
.nf-field--check { display: flex; align-items: flex-end; padding-top: 28px; }
.nf-field { margin-bottom: 18px; }
.nf-field > label { display: block; margin-bottom: 8px; font-weight: 600; font-size: 14px; color: var(--text); }
.nf-input, .nf-select, .nf-textarea { width: 100%; box-sizing: border-box; height: 46px; padding: 0 14px;
    border: 1px solid var(--border); border-radius: 8px; background: #fff; font: inherit; color: var(--text);
    outline: none; transition: border-color .18s ease, box-shadow .18s ease; }
.nf-textarea { height: auto; min-height: 150px; padding: 12px 14px; resize: vertical; line-height: 1.6; }
input.nf-input[type=file] { height: auto; padding: 11px 14px; cursor: pointer; }
.nf-input:focus, .nf-select:focus, .nf-textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(0,87,184,.12); }
.nf-check { display: flex; align-items: center; gap: 9px; font-size: 14px; font-weight: 400; color: var(--text); min-height: 46px; }
.nf-check input { width: 18px; height: 18px; accent-color: var(--accent); }
.nf-foot { display: flex; justify-content: center; gap: 12px; margin-top: 26px; }
.nf-btn { display: inline-flex; align-items: center; justify-content: center; min-width: 160px; min-height: 48px;
    padding: 0 24px; border-radius: 999px; font-weight: 700; cursor: pointer; border: 1px solid transparent; text-decoration: none; }
.nf-btn.primary { background: var(--accent); color: #fff; }
.nf-btn.ghost { background: #fff; border-color: var(--border); color: var(--text); }
@media (max-width: 600px) { .nf-row { grid-template-columns: 1fr; } .nf-form { padding: 22px 18px; } }

/* 클래스/회차 폼 보조 + 프론트 회차목록 (.nf-hint/.cw-lec*) — class_write.php */
.nf-hint { font-size: 12px; color: #8a8f98; margin: 4px 0 0; }
.cw-lechead { display: flex; align-items: center; justify-content: space-between; margin: 32px 0 12px; }
.cw-lechead h3 { font-size: 18px; margin: 0; }
.cw-leclist { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.cw-lecrow { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; }
.cw-lecseq { font-weight: 700; color: var(--accent); min-width: 40px; }
.cw-lectitle { flex: 1; font-weight: 600; }
.cw-lecacts { display: flex; gap: 8px; }
.cw-lecacts form { display: inline; margin: 0; }
/* 회차목록 버튼은 폼 푸터용 큰 .nf-btn 보다 작게 */
.cw-lechead .nf-btn, .cw-lecrow .nf-btn { min-width: auto; min-height: 40px; padding: 0 16px; font-size: 14px; }

/* 정책/가이드 본문 (.policy-content) — html/policy/*.php */
.policy-content { max-width: 860px; margin: 0 auto; color: var(--text); line-height: 1.75; }
.policy-content h2 { font-size: 26px; margin: 0 0 24px; padding-bottom: 16px; border-bottom: 2px solid var(--accent); }
.policy-content h3 { font-size: 17px; margin: 28px 0 8px; color: var(--text); }
.policy-content p { margin: 0 0 14px; color: var(--text-secondary); }
.policy-content p b { color: var(--text); }
.policy-content small { color: var(--text-secondary); font-size: 13px; }

/* 클래스 카드 (.cls-card) — 04_archive 목록 + 01_about 당해 클래스 (plan 010, share/inc/class_card.php) */
.cls-card { margin: 0 0 40px; }
.cls-card:last-of-type { margin-bottom: 0; }
.cls-card-year {
  margin: 0 0 16px;
  font-size: 30px;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: .02em;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--navy);
}
/* QA(260807 6차 §2, 01_about·04_archive 클래스 카드) — 클라 피드백: "글자가 오른쪽에 여백이
   충분해 보이니 포스터 사이즈를 키우고 글자를 좀 더 오른쪽으로 넣어도 되겠다." 포스터 고정폭
   300px → 400px 확대. 정보 컬럼은 계속 1fr(카드 나머지 폭)을 차지하되, 실제 텍스트 블록
   (`.cls-card-info`, 아래)은 max-width로 좁혀 `justify-self:end`로 컬럼 안에서 오른쪽으로
   붙인다 — 값이 짧아 오른쪽에 남던 큰 여백을 좁히면서 "글자를 오른쪽으로"를 만족시킨다. */
.cls-card-body {
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: 44px;
  padding: 30px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 16px 44px rgba(9, 38, 66, 0.07);
}
/* QA(260807) — 01_about 확대버튼이 카드 우측 하단 엉뚱한 곳에 박혀 보이던 원인:
   .cls-card-poster-frame 이 .cls-card-body 그리드의 아이템이라 기본 align-self:stretch 로
   info 컬럼(01_about 은 강의방법·수강료 등 추가 항목이 많아 더 김) 높이만큼 늘어나고,
   포스터(고정 3:4 비율)는 그 늘어난 박스 위쪽에만 차지해 아래 빈 공간이 생겼다.
   확대버튼은 그 빈 공간을 기준(bottom:10px)으로 붙어 이미지에서 멀리 떨어져 보였다.
   프레임을 그리드 셀 안에서 늘어나지 않게 고정한다. */
.cls-card-poster-frame { position: relative; align-self: start; }
.cls-card-poster {
  display: block;
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius);
  overflow: hidden;
}
.cls-card-poster img { width: 100%; height: 100%; object-fit: cover; display: block; }
a.cls-card-poster img { transition: transform 220ms ease; }
a.cls-card-poster:hover img { transform: scale(1.03); }
/* B4(plan 024) — 포스터 확대(원본 비율) 트리거. cls-card-poster 는 3:4 crop 이라 확대는 별도 라이트박스로 보여준다.
   QA(260807, 히어로 포스터 B1 확대기능 추가와 함께) — main.css 로 이동: main.css 는 전 페이지
   로드(header.php `$main` 분기 무관)라 content.css 를 안 불러오는 00_main 히어로 포스터에서도
   같은 버튼·라이트박스를 재사용할 수 있다. 여기(content.css)엔 더 이상 정의하지 않는다. */
.cls-card-poster-empty {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: rgba(255, 255, 255, .65);
  font-size: 13px;
  font-weight: 600;
}
.cls-card-poster-empty--logo {
  background: #f5f8fb;
  padding: 24px;
}
.cls-card-poster .oc-noimage-logo,
.lecture-class-poster .oc-noimage-logo {
  width: min(68%, 180px);
  height: auto;
  max-height: 120px;
  object-fit: contain;
  display: block;
  opacity: .92;
}
.cls-card-info {
  min-width: 0;
  width: 100%;
  max-width: 620px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  justify-self: end;
}
.cls-card-title { margin: 0; font-size: 24px; font-weight: 700; color: var(--navy); }
.cls-card-title a { color: inherit; text-decoration: none; }
.cls-card-title a:hover { color: var(--accent); }
.cls-card-topic { margin: 8px 0 0; color: var(--text-secondary); line-height: 1.6; }
.cls-card-list { width: 100%; margin-top: 18px; }
.cls-card .cls-card-more { margin-top: 20px; }
.cls-card .ia-source-note { width: 100%; }
@media (max-width: 768px) {
  .cls-card-body { grid-template-columns: 1fr; gap: 20px; padding: 20px; }
  .cls-card-poster-frame { max-width: 320px; margin: 0 auto; width: 100%; }
  .cls-card-year { font-size: 24px; }
  /* QA(260807 6차 §2) — 데스크톱 전용 오른쪽 정렬(justify-self:end + max-width)을 1열
     스택에서는 되돌린다. 세로 스택에서는 텍스트 블록이 카드 폭 전체를 그대로 채워야 자연스럽다. */
  .cls-card-info { max-width: none; justify-self: stretch; }
}

/* B4(plan 024) — 포스터 확대 라이트박스는 QA(260807) 이후 main.css 로 이동(위 .cls-card-zoom
   주석과 같은 이유 — 히어로 포스터 재사용). 여기(content.css)엔 더 이상 정의하지 않는다. */

/* 연도별 강의일정표 (04_archive, plan 011 6군) */
.schedule-block {
  margin-top: 24px;
}

.schedule-year {
  margin: 0 0 12px;
  font-size: 20px;
  font-weight: 700;
  color: var(--navy);
}

.schedule-table-wrap {
  width: 100%;
  overflow-x: auto;
}

.schedule-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  min-width: 560px;
}

.schedule-table th,
.schedule-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: middle;
}

.schedule-table th {
  background: var(--surface-soft);
  font-weight: 700;
  color: var(--text-secondary);
  white-space: nowrap;
}

.schedule-table td.c,
.schedule-table th.c {
  text-align: center;
  white-space: nowrap;
}

.schedule-table tr.sched-hidden {
  opacity: 0.45;
}

.sched-row-act {
  display: inline-flex;
  gap: 6px;
}

@media (max-width: 768px) {
  .schedule-table { font-size: 13px; }
  .schedule-table th,
  .schedule-table td { padding: 10px; }
}

/* ── plan 017: 회차 강사 정보·게이트 안내·PC 전용 줄바꿈 ── */
.lecture-instructor {
  margin-left: 8px;
  font-size: 14px;
  color: var(--text-secondary);
}

.lecture-gate-note {
  margin: 6px 0 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-secondary);
  max-width: 260px;
}

.lecture-item.is-hidden-row {
  opacity: .6;
}

/* QA(260807 8차) — "글자만 나열해둔 느낌" 신고. 원인은 디자인 의도가 아니라 버그였다:
   border 는 정의된 적 없는 `var(--line)`(오타·잔재 변수)를 참조해 애초에 렌더링되지
   않았고, 배경도 정의되지 않은 `var(--bg-soft)`라 항상 fallback(#f7f9fc, 사이트 토큰과
   무관한 회색)만 보였다. 사이트의 실제 "카드" 레시피(.cls-card-body, content.css:1187)를
   그대로 재사용해 톤을 통일한다. */
.lecture-detail-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 26px;
  padding: 24px 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 16px 44px rgba(9, 38, 66, 0.07);
}

.lecture-instructor-box {
  display: flex;
  align-items: center;
  gap: 18px;
}

.lecture-instructor-photo {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 50%;
  display: block;
  flex: 0 0 auto;
  border: 3px solid var(--surface);
  box-shadow: 0 0 0 1px var(--border), 0 8px 18px rgba(9, 38, 66, 0.12);
}

/* QA(260807 6차) — .info-key/.info-val 는 원래 .info-list 안에서만 스타일이 걸린다
   (content.css:130 부근). 이 박스는 .info-list 를 안 쓰는데 같은 클래스만 붙여놔서
   그냥 아무 여백도 없는 인라인 span 둘이 "강사이동현 ..."처럼 붙어 보이던 버그.
   라벨(강사)을 위, 이름+소속을 아래로 분리해 긴 소속명도 안전하게 감싼다. */
.lecture-instructor-box > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.lecture-instructor-box .info-key {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--accent, #0057b8);
  text-transform: uppercase;
}

.lecture-instructor-box .info-val {
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.4;
}

/* 업체 요청: PC 에서만 쉼표 뒤 줄바꿈. 모바일은 자연스럽게 흐르게 둔다. */
@media (max-width: 768px) {
  .br-pc { display: none; }
  .lecture-detail-meta { gap: 14px; }
  .lecture-instructor-photo { width: 60px; height: 60px; }
}
