/* ===================================
   lecture.css - 강의 탐색 / 강의 상세
   - 디자인가이드.md 및 style.css 토큰 기반
   - style.css 의 search-hero / course-* 컴포넌트를 사용하고,
     이 파일은 페이지 결합부(lct-*)와 상세(lv-*), 레거시 팝업 재스타일만 담당
   =================================== */

/* -----------------------------------
   공통: 레거시 head(setting.php) CSS 중화
   ----------------------------------- */
.lct-page,
.lct-page body { background: #ffffff; }

/* 페이지 이동 시 세로 스크롤바 유무에 따라 뷰포트 폭이 변해
   max-width 중앙정렬 콘텐츠가 좁아졌다 넓어졌다 하는 현상 방지 —
   스크롤바 공간을 항상 확보해 가로 사이즈를 고정한다 */
html {
  overflow-y: scroll;           /* 구형 브라우저 폴백 */
  scrollbar-gutter: stable;
}

/* -----------------------------------
   강의 탐색 (lecture_list)
   ----------------------------------- */

/* course-body: sub-layout(column flex)의 자식 + margin auto 조합이면
   fit-content 로 줄어들어 자식 크기에 따라 폭이 변한다 →
   1300px(패딩 포함) 고정 폭으로 지정 */
.lct-main .course-body {
  width: 1300px;
  max-width: 100%;      /* 1300px 미만 화면 보호 */
  box-sizing: border-box;
  padding: 0 48px;
  margin: 40px auto 120px;
}

@media (max-width: 1200px) {
  .lct-main .course-body {
    padding: 0 32px;
  }
}

@media (max-width: 768px) {
  .lct-main .course-body {
    padding: 0 20px;
    margin-top: 0;
    margin-bottom: 80px;
  }
}

/* LNB 1depth 활성(전체 등): style.css 는 모바일에서만 정의하므로 데스크톱 보강 */
.course-cat__link--active {
  color: var(--brand-700);
}

/* 페이저: PHP가 <a> 로 출력하므로 링크 기본 스타일 제거 */
.course-pager__btn {
  text-decoration: none;
}

.course-pager__btn--disabled {
  opacity: 0.35;
  pointer-events: none;
}

/* 결과 없음 */
.course-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 80px 0;
  border: 1px dashed var(--neutral-200);
  border-radius: var(--radius-lg);
  text-align: center;
}

.course-empty__title {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  color: var(--neutral-700);
  letter-spacing: -0.04em;
}

.course-empty__desc {
  margin: 0;
  font-size: 15px;
  color: var(--neutral-400);
  letter-spacing: -0.04em;
}

/* 카드 액션: 모바일에서 가로 배치 */
@media (max-width: 560px) {
  .course-card__main {
    height: auto;
    flex-direction: column;
    align-items: stretch;
  }
  .course-card__info {
    padding: 16px;
  }
  .course-card__actions {
    flex-direction: row;
    height: auto;
    padding: 0 16px 16px;
  }
  .course-card__btn {
    flex: 1 1 auto;
    width: auto;
  }
}

/* -----------------------------------
   추천 도서 / 추천 심리검사
   - concierge.css 의 result-section / book-* / test-* 컴포넌트 이식
     (lecture_list 하단 노출용 — 값 동일하게 유지할 것)
   ----------------------------------- */

/* 리스트 컬럼(.course-list) / 마이페이지 패널(.mypage-content) 안에서의 섹션 간격 */
.course-list .result-section,
.mypage-content .result-section {
  margin-top: 48px;
}

/* 내 강의실 추천과정: course-card 목록 위 여백 */
.mypage-content .course-list__items {
  margin-top: 4px;
}

.result-section {
  display: flex;
  flex-direction: column;
}

.result-section__head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
}

.result-section__title {
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--neutral-900);
}

.result-section__count {
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--neutral-300);
}

/* 추천 도서 (2열) */
.book-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border: 1px solid var(--neutral-100);
  border-radius: 10px;
  overflow: hidden;
}

.book-card {
  border-bottom: 1px solid var(--neutral-50);
  border-right: 1px solid var(--neutral-50);
  background: #ffffff;
  transition: background 160ms ease;
}

.book-card:nth-child(2n) {
  border-right: 0;
}

.book-card:hover {
  background: var(--brand-50);
}

.book-card__link {
  display: flex;
  gap: 24px;
  padding: 24px 50px 24px 24px;
  text-decoration: none;
  color: inherit;
}

.book-card__cover {
  flex-shrink: 0;
  width: 110px;
  height: 160px;
  border-radius: 4px;
  overflow: hidden;
  background: var(--neutral-50);
}

.book-card__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.book-card__body {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 4px 0;
}

.book-card__cat {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.04em;
  color: var(--neutral-300);
}

.book-card__title {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.04em;
  color: var(--neutral-900);
}

.book-card__author {
  font-size: 13px;
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: -0.04em;
  color: var(--neutral-300);
}

.book-card__desc {
  margin-top: 6px;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: -0.04em;
  color: var(--neutral-400);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  line-clamp: 4;
  overflow: hidden;
}

/* 추천 심리검사 (1열 리스트) */
.test-list {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--neutral-100);
  border-radius: 10px;
  overflow: hidden;
  padding: 0;
  margin: 0;
  list-style: none;
}

.test-list > li {
  list-style: none;
}

.test-item {
  border-bottom: 1px solid var(--neutral-50);
  background: #ffffff;
  transition: background 160ms ease;
}

.test-list > li:last-child .test-item {
  border-bottom: 0;
}

.test-item:hover {
  background: var(--brand-50);
}

.test-item__link {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 18px 20px;
  text-decoration: none;
  color: inherit;
}

.test-item__thumb {
  flex-shrink: 0;
  width: 110px;
  aspect-ratio: 110 / 92;
  border-radius: 4px;
  overflow: hidden;
  background: var(--neutral-50);
}

.test-item__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.test-item__body {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.test-item__cat {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.04em;
  color: var(--neutral-300);
}

.test-item__title {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.04em;
  color: var(--neutral-900);
}

.test-item__author {
  font-size: 13px;
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: -0.04em;
  color: var(--neutral-300);
}

.test-item__desc {
  margin-top: 6px;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: -0.04em;
  color: var(--neutral-400);
}

/* 추천 도서/심리검사 반응형 */
@media (max-width: 1024px) {
  .book-grid {
    grid-template-columns: 1fr;
  }

  .book-card {
    border-right: 0;
  }
}

@media (max-width: 768px) {
  .course-list .result-section {
    margin-top: 36px;
  }

  .book-card__link {
    padding: 16px;
    gap: 16px;
  }

  .book-card__cover {
    width: 80px;
    height: 116px;
  }

  .book-card__title {
    font-size: 15px;
  }

  .book-card__desc {
    font-size: 13px;
    -webkit-line-clamp: 3;
    line-clamp: 3;
  }

  .test-item__link {
    padding: 16px;
    gap: 16px;
  }

  .test-item__thumb {
    width: 80px;
  }

  .test-item__title {
    font-size: 15px;
  }
}

/* -----------------------------------
   강의 상세 (lecture_view) : lv-*
   ----------------------------------- */

/* Hero (sub-layout__hero--dark 내부) */
.lv-hero__cat {
  margin: 0 0 20px;
  color: var(--brand-300);
  font-size: 16px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.04em;
}

.lv-hero__title {
  margin: 0 0 16px;
  font-size: 36px;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.04em;
  color: #ffffff;
}

.lv-hero__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.lv-hero__tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 9px 17px;
  border-radius: var(--radius-full);
  background: var(--brand-50);
  color: var(--brand-900);
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.04em;
  white-space: nowrap;
}

/* 요약 카드 */
.lv-summary {
  display: flex;
  gap: 32px;
  align-items: flex-start;
  padding: 24px;
  border: 1px solid #dedede;
  border-radius: var(--radius-xl);
  background: #ffffff;
}

.lv-summary__thumb {
  flex-shrink: 0;
  width: 400px;
  max-width: 40%;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--neutral-50);
}

.lv-summary__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lv-summary__body {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.lv-summary__title {
  margin: 0;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.04em;
  color: var(--neutral-900);
}

.lv-summary__meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
}

.lv-summary__meta-row {
  display: flex;
  gap: 8px;
  align-items: baseline;
}

.lv-summary__meta-label {
  flex-shrink: 0;
  width: 96px;
  font-size: 14px;
  font-weight: 700;
  color: var(--neutral-500);
  letter-spacing: -0.04em;
}

.lv-summary__meta-value {
  margin: 0;
  font-size: 15px;
  color: var(--neutral-800);
  line-height: 1.6;
  letter-spacing: -0.04em;
}

.lv-summary__meta-value strong {
  color: var(--brand-700);
  font-weight: 700;
}

.lv-summary__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

/* 버튼 */
.lv-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 28px;
  border: 0;
  border-radius: 8px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease;
}

.lv-btn--primary {
  background: var(--brand-700);
  color: #ffffff;
}

.lv-btn--primary:hover {
  background: var(--brand-800);
}

.lv-btn--outline {
  background: #ffffff;
  border: 1px solid var(--neutral-200);
  color: var(--neutral-900);
}

.lv-btn--outline:hover {
  background: var(--neutral-50);
}

.lv-btn--disabled {
  background: var(--neutral-200);
  color: #ffffff;
  cursor: default;
  pointer-events: none;
}

/* 섹션 */
.lv-section {
  margin-top: 72px;
}

.lv-section__title {
  margin: 0 0 24px;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--neutral-900);
}

/* 수료기준 카드 그리드 */
.lv-criteria {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}

.lv-criteria__cell {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px;
  border: 1px solid #dedede;
  border-radius: var(--radius-lg);
  background: #ffffff;
  text-align: center;
}

.lv-criteria__label {
  font-size: 14px;
  font-weight: 500;
  color: var(--neutral-400);
  letter-spacing: -0.04em;
}

.lv-criteria__value {
  font-size: 19px;
  font-weight: 700;
  color: var(--brand-700);
  letter-spacing: -0.04em;
  line-height: 1.4;
}

.lv-criteria__note {
  grid-column: 1 / -1;
  margin: 0;
  padding: 14px 20px;
  border-radius: var(--radius-md);
  background: var(--neutral-50);
  font-size: 14px;
  color: var(--neutral-500);
  letter-spacing: -0.04em;
  line-height: 1.6;
}

/* 탭 (기존 .tabs2 / .tab_content2 동작 유지, 스타일만 재정의)
   sub.css 의 #m_board2 .tabs2 (박스 보더 + .active a 의 3px 빨간 보더)를
   ID 포함 셀렉터로 확실히 덮어쓴다 */
.lv-tabs,
#m_board2 .tabs2 {
  height: auto !important;
  width: 100% !important;
  border: 0 !important;
  background: transparent !important;
}

.lv-tabs ul,
#m_board2 .tabs2 ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
  border: 0;
}

.lv-tabs ul li,
#m_board2 .tabs2 li,
#m_board2 .tabs2 li:first-child,
#m_board2 .tabs2 li:last-child {
  float: none !important;
  width: auto !important;
  border: 0 !important;
  margin: 0 !important;
  line-height: normal !important;
  text-align: left;
}

.lv-tabs ul li a,
#m_board2 .tabs2 li a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: auto !important;
  min-height: 42px;
  padding: 0 22px;
  border: 1px solid var(--neutral-200) !important;
  border-radius: var(--radius-full);
  background: #ffffff;
  font-size: 15px !important;
  font-weight: 600;
  letter-spacing: -0.04em;
  color: var(--neutral-500) !important;
  text-decoration: none;
  transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease;
}

.lv-tabs ul li a:hover,
#m_board2 .tabs2 li a:hover {
  border-color: var(--brand-700) !important;
}

.lv-tabs ul li.active a,
#m_board2 .tabs2 .active a {
  background: var(--brand-700) !important;
  border: 1px solid var(--brand-700) !important;
  color: #ffffff !important;
  height: auto !important;
}

#m_board2 .tab_container2 {
  margin-top: 0 !important;
  padding: 0 !important;
  border: 0 !important;
}

/* 탭 패널 공통 */
.lv-panel {
  border: 1px solid #dedede;
  border-radius: var(--radius-lg);
  padding: 24px;
  background: #ffffff;
}

/* key-value 표 (교육목표/대상, 강사) */
.lv-kv {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.lv-kv__row {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--neutral-100);
}

.lv-kv__row:first-child {
  padding-top: 0;
}

.lv-kv__row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.lv-kv__label {
  flex-shrink: 0;
  width: 120px;
  font-size: 15px;
  font-weight: 700;
  color: var(--brand-700);
  letter-spacing: -0.04em;
}

.lv-kv__value {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  font-size: 15px;
  color: var(--neutral-800);
  line-height: 1.7;
  letter-spacing: -0.04em;
}

/* 에디터 본문(과정소개 HTML) */
.lv-editor {
  margin-top: 24px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--neutral-800);
  overflow-x: auto;
}

.lv-editor img {
  max-width: 100%;
  height: auto;
}

/* 강의목차 */
.lv-toc {
  display: flex;
  flex-direction: column;
}

.lv-toc__row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 4px;
  border-bottom: 1px solid var(--neutral-100);
}

.lv-toc__row:last-child {
  border-bottom: 0;
}

.lv-toc__num {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 56px;
  height: 28px;
  padding: 0 10px;
  border-radius: var(--radius-full);
  background: var(--brand-50);
  color: var(--brand-700);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.lv-toc__title {
  margin: 0;
  font-size: 15px;
  color: var(--neutral-800);
  letter-spacing: -0.04em;
}

/* 학습후기 */
.lv-reviews {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.lv-review {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 18px 20px;
  border: 1px solid #dedede;
  border-radius: var(--radius-lg);
  background: #ffffff;
}

.lv-review__name {
  flex-shrink: 0;
  min-width: 72px;
  font-size: 15px;
  font-weight: 700;
  color: var(--neutral-900);
  letter-spacing: -0.02em;
}

.lv-review__body {
  flex: 1 1 auto;
  min-width: 0;
}

.lv-review__content {
  margin: 0;
  font-size: 15px;
  color: var(--neutral-800);
  line-height: 1.6;
  letter-spacing: -0.04em;
  word-break: break-all;
}

.lv-review__date {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  color: var(--neutral-300);
  letter-spacing: -0.02em;
}

.lv-review__del {
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--color-error);
  text-decoration: none;
}

.lv-review__del:hover {
  text-decoration: underline;
}

.lv-reviews--empty {
  padding: 40px 0;
  text-align: center;
  font-size: 15px;
  color: var(--neutral-400);
}

/* 후기 작성 폼 */
.lv-review-form {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}

.lv-review-form__input {
  flex: 1 1 auto;
  min-width: 0;
  height: 48px;
  padding: 0 16px;
  border: 1px solid var(--neutral-200);
  border-radius: 8px;
  font-family: inherit;
  font-size: 15px;
  letter-spacing: -0.04em;
  color: var(--neutral-900);
  outline: none;
  transition: border-color 150ms ease;
}

.lv-review-form__input:focus {
  border-color: var(--brand-700);
}

.lv-review-form__input::placeholder {
  color: var(--neutral-300);
}

.lv-review-form__submit {
  flex-shrink: 0;
}

/* -----------------------------------
   상세 반응형
   ----------------------------------- */
@media (max-width: 1024px) {
  .lv-hero__title { font-size: 30px; }
  .lv-summary { flex-direction: column; }
  .lv-summary__thumb { width: 100%; max-width: none; }
}

@media (max-width: 768px) {
  .lv-hero__title { font-size: 24px; }
  .lv-summary { padding: 16px; }
  .lv-summary__title { font-size: 20px; }
  .lv-section { margin-top: 48px; }
  .lv-section__title { font-size: 20px; }
  .lv-summary__actions .lv-btn { flex: 1 1 auto; }
  .lv-kv__row { flex-direction: column; gap: 4px; }
  .lv-kv__label { width: auto; }
  .lv-tabs ul { flex-wrap: wrap; }
  .lv-review { flex-direction: column; gap: 8px; }
}

/* -----------------------------------
   레거시 팝업 재스타일 (수강신청 / 과정맛보기)
   - 마크업은 lecture/inc/lecture_reg_study.php,
     lecture_preview.php 그대로, 스타일만 새 디자인
   ----------------------------------- */
#mask {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 990;
  background: rgba(3, 25, 25, 0.55);
}

#popup_wrap,
#popup_preview {
  display: none;
  position: fixed;
  top: 50% !important;
  left: 50% !important;
  /* edu_view.css 의 네거티브 마진 센터링(-250px 0 0 -400px) 무력화 —
     남아 있으면 팝업이 좌상단으로 밀린다 */
  margin: 0 !important;
  transform: translate(-50%, -50%);
  z-index: 9999999;
  background: #ffffff;
  border: 0 !important;
  border-radius: var(--radius-xl);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.24);
  max-height: 88vh;
  overflow-y: auto;
}

#popup_wrap {
  width: min(560px, calc(100vw - 32px));
  padding: 32px;
}

/* edu_view.css 의 .popup-cont01(90%/40px 마진), .appli(float, li 50%) 무력화 */
#popup_wrap .popup-cont01 {
  width: 100% !important;
  margin: 0 !important;
  background: transparent !important;
  text-align: center;
}

#popup_wrap .appli {
  float: none !important;
  width: 100% !important;
  margin: 0 0 8px !important;
  background: transparent !important;
}

#popup_wrap .appli ul {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 0 0 8px;
  padding: 0;
  list-style: none;
  text-align: left;
  float: none !important;
}

#popup_wrap .appli ul li,
#popup_wrap .appli ul li:last-child {
  float: none !important;
  width: 100% !important;
  padding: 0 !important;
  background: transparent !important;
}

#popup_wrap .appli ul li img {
  display: block;
  width: 100% !important;
  max-height: 260px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  background: var(--neutral-50);
}

#popup_wrap .edutt1 {
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--brand-700);
  letter-spacing: -0.04em;
}

#popup_wrap .edutt3 {
  margin: 0 0 10px;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--neutral-900);
  letter-spacing: -0.04em;
}

#popup_wrap .edutt4,
#popup_wrap .edutt2 {
  margin: 0 0 4px;
  font-size: 14px;
  color: var(--neutral-500);
  letter-spacing: -0.04em;
  line-height: 1.6;
}

#popup_wrap .applitt {
  width: auto !important;
  margin: 20px 0 4px;
  padding: 0 !important;
  background: transparent !important;   /* edu_view.css 의 #efefef 박스 제거 */
  font-size: 17px !important;
  font-weight: 700;
  color: var(--neutral-900) !important; /* 주황(#ff6600) → 가이드 텍스트 컬러 */
  letter-spacing: -0.04em;
}

#popup_wrap .button_edu2,
#popup_wrap .button_edu3 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  min-width: 120px;
  margin: 4px;
  padding: 0 24px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 150ms ease;
}

#popup_wrap .button_edu2 {
  background: var(--brand-700);
  color: #ffffff;
}

#popup_wrap .button_edu2:hover {
  background: var(--brand-800);
}

#popup_wrap .button_edu3 {
  background: #ffffff;
  border: 1px solid var(--neutral-200);
  color: var(--neutral-900);
}

#popup_wrap .button_edu3:hover {
  background: var(--neutral-50);
}

/* 과정맛보기 팝업 */
#popup_preview {
  width: min(900px, calc(100vw - 32px));
  padding: 24px;
}

#popup_preview .lecsubj1 {
  margin: 0 32px 16px 0;
  font-size: 18px;
  font-weight: 700;
  color: var(--neutral-900);
  letter-spacing: -0.04em;
}

#popup_preview .exam_endbtn {
  position: absolute;
  top: 16px;
  right: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--neutral-50);
  color: var(--neutral-700);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}

#popup_preview .exam_endbtn:hover {
  background: var(--neutral-100);
}

#popup_preview .popup-cont03 iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: var(--radius-md);
  background: #000000;
}

@media (max-width: 560px) {
  #popup_wrap { padding: 24px 20px; }
  #popup_wrap .button_edu2,
  #popup_wrap .button_edu3 { min-width: 0; width: calc(50% - 12px); }
}
