/* ====================================================================
   ikcom.css — 공통 스타일 (LMS 전체 공유)
   Pretendard 로컬 폰트 + 그린 테마 + 공통 컴포넌트
   ==================================================================== */

/* ── Pretendard 로컬 폰트 ─────────────────────────────────── */
@font-face { font-family:'Pretendard'; font-weight:900; font-display:swap;
  src: local('Pretendard Black'),
       url('../fonts/Pretendard-Black.woff2') format('woff2'),
       url('../fonts/Pretendard-Black.woff') format('woff'); }
@font-face { font-family:'Pretendard'; font-weight:800; font-display:swap;
  src: local('Pretendard ExtraBold'),
       url('../fonts/Pretendard-ExtraBold.woff2') format('woff2'),
       url('../fonts/Pretendard-ExtraBold.woff') format('woff'); }
@font-face { font-family:'Pretendard'; font-weight:700; font-display:swap;
  src: local('Pretendard Bold'),
       url('../fonts/Pretendard-Bold.woff2') format('woff2'),
       url('../fonts/Pretendard-Bold.woff') format('woff'); }
@font-face { font-family:'Pretendard'; font-weight:600; font-display:swap;
  src: local('Pretendard SemiBold'),
       url('../fonts/Pretendard-SemiBold.woff2') format('woff2'),
       url('../fonts/Pretendard-SemiBold.woff') format('woff'); }
@font-face { font-family:'Pretendard'; font-weight:500; font-display:swap;
  src: local('Pretendard Medium'),
       url('../fonts/Pretendard-Medium.woff2') format('woff2'),
       url('../fonts/Pretendard-Medium.woff') format('woff'); }
@font-face { font-family:'Pretendard'; font-weight:400; font-display:swap;
  src: local('Pretendard Regular'),
       url('../fonts/Pretendard-Regular.woff2') format('woff2'),
       url('../fonts/Pretendard-Regular.woff') format('woff'); }
@font-face { font-family:'Pretendard'; font-weight:300; font-display:swap;
  src: local('Pretendard Light'),
       url('../fonts/Pretendard-Light.woff2') format('woff2'),
       url('../fonts/Pretendard-Light.woff') format('woff'); }
@font-face { font-family:'Pretendard'; font-weight:200; font-display:swap;
  src: local('Pretendard ExtraLight'),
       url('../fonts/Pretendard-ExtraLight.woff2') format('woff2'),
       url('../fonts/Pretendard-ExtraLight.woff') format('woff'); }
@font-face { font-family:'Pretendard'; font-weight:100; font-display:swap;
  src: local('Pretendard Thin'),
       url('../fonts/Pretendard-Thin.woff2') format('woff2'),
       url('../fonts/Pretendard-Thin.woff') format('woff'); }



@font-face {
  font-family: 'scdream';
  font-weight: 100;
  font-style: normal;
  src: url(../fonts/SCDream1.woff) format('woff');
}

@font-face {
  font-family: 'scdream';
  font-weight: 200;
  font-style: normal;
  src: url(../fonts/SCDream2.woff) format('woff');
}

@font-face {
  font-family: 'scdream';
  font-weight: 300;
  font-style: normal;
  src: url(../fonts/SCDream3.woff) format('woff');
}

@font-face {
  font-family: 'scdream';
  font-weight: 400;
  font-style: normal;
  src: url(../fonts/SCDream4.woff) format('woff');
}

@font-face {
  font-family: 'scdream';
  font-weight: 500;
  font-style: normal;
  src: url(../fonts/SCDream5.woff) format('woff');
}

@font-face {
  font-family: 'scdream';
  font-weight: 600;
  font-style: normal;
  src: url(../fonts/SCDream6.woff) format('woff');
}

@font-face {
  font-family: 'scdream';
  font-weight: 700;
  font-style: normal;
  src: url(../fonts/SCDream7.woff) format('woff');
}

@font-face {
  font-family: 'scdream';
  font-weight: 800;
  font-style: normal;
  src: url(../fonts/SCDream8.woff) format('woff');
}

@font-face {
  font-family: 'scdream';
  font-weight: 900;
  font-style: normal;
  src: url(../fonts/SCDream9.woff) format('woff');
}

@font-face {
    font-family: 'Paperozi';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/2408-3@1.0/Paperlogy-1Thin.woff2') format('woff2');
    font-weight: 100;
    font-display: swap;
}

@font-face {
    font-family: 'Paperozi';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/2408-3@1.0/Paperlogy-2ExtraLight.woff2') format('woff2');
    font-weight: 200;
    font-display: swap;
}

@font-face {
    font-family: 'Paperozi';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/2408-3@1.0/Paperlogy-3Light.woff2') format('woff2');
    font-weight: 300;
    font-display: swap;
}

@font-face {
    font-family: 'Paperozi';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/2408-3@1.0/Paperlogy-4Regular.woff2') format('woff2');
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: 'Paperozi';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/2408-3@1.0/Paperlogy-5Medium.woff2') format('woff2');
    font-weight: 500;
    font-display: swap;
}

@font-face {
    font-family: 'Paperozi';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/2408-3@1.0/Paperlogy-6SemiBold.woff2') format('woff2');
    font-weight: 600;
    font-display: swap;
}

@font-face {
    font-family: 'Paperozi';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/2408-3@1.0/Paperlogy-7Bold.woff2') format('woff2');
    font-weight: 700;
    font-display: swap;
}

@font-face {
    font-family: 'Paperozi';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/2408-3@1.0/Paperlogy-8ExtraBold.woff2') format('woff2');
    font-weight: 800;
    font-display: swap;
}

@font-face {
    font-family: 'Paperozi';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/2408-3@1.0/Paperlogy-9Black.woff2') format('woff2');
    font-weight: 900;
    font-display: swap;
}



/* ── CSS 변수 ─────────────────────────────────────────────── */
:root {
  --green:      #81be25;
  --green-dark: #6ba01e;
  --green-soft: #f2f9e5;
  --green-mid:  rgba(129,190,37,.15);
  --bg:         #f7f8fa;
  --white:      #ffffff;
  --border:     #e9e9e9;
  --text:       #1a1a1a;
  --muted:      #6b7280;
  --font-base:  14px;
  --font-title: 1.5rem;
  --font-small: 0.75rem;
}

/* ── 기본 리셋 ──'scdream'───Pretendard──────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'scdream',  -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: var(--font-base);
  font-weight: 500;
  line-height: 1.65;
  background: var(--bg);
  color: var(--text);
  margin: 0;
}
a { color: inherit; text-decoration: none; }

/* ── 공개 네비게이션 (pub-nav) ───────────────────────────── */
.pub-nav {
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 200;
  box-shadow: 0 1px 4px rgba(0,0,0,.04);
}
.pub-nav-inner {
  max-width: 1200px; margin: 0 auto;
  padding: 0 1.5rem; height: 64px;
  display: flex; align-items: center; gap: 2rem;
}
.pub-brand {
  font-size: 1.15rem; font-weight: 900;
  color: var(--text);
  display: flex; align-items: center; gap: .45rem; flex-shrink: 0;
}
.pub-brand .mark {
  width: 32px; height: 32px; border-radius: 8px;
  background: var(--green); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: .9rem; font-weight: 900;
}
.pub-nav-collapse { display: contents; }
.pub-nav-links { display: flex; gap: .1rem; align-items: center; }
.pub-nav-links a {
  color: #555; font-weight: 600;
  padding: .5rem .9rem; border-radius: .45rem; font-size: .875rem;
  transition: color .15s, background .15s;
}
.pub-nav-links a:hover { color: var(--green); background: var(--green-soft); }
.pub-nav-links a.active { color: var(--green); font-weight: 700; }
.pub-nav-auth { margin-left: auto; display: flex; gap: .6rem; align-items: center; }
.pub-mob-toggle {
  display: none; margin-left: auto;
  background: none; border: none; color: var(--text, #1a1a1a);
  font-size: 1.35rem; line-height: 1; cursor: pointer;
  padding: .35rem .5rem; border-radius: .4rem; transition: background .15s, color .15s;
}
.pub-mob-toggle:hover { background: var(--green-soft); color: var(--green); }

/* ── 공개 네비게이션 모바일 ───────────────────────────────── */
@media (max-width: 900px) {
  .pub-nav-inner { height: auto; min-height: 64px; flex-wrap: wrap; padding-top: .6rem; padding-bottom: .6rem; }
  .pub-mob-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .pub-nav-collapse {
    display: none; width: 100%;
    flex-direction: column; gap: .15rem;
    margin-top: .75rem; padding-top: .75rem;
    border-top: 1px solid var(--border);
  }
  .pub-nav-collapse.open { display: flex; }
  .pub-nav-links { flex-direction: column; align-items: stretch; gap: .1rem; }
  .pub-nav-links a { padding: .75rem .9rem; }
  .pub-nav-auth {
    margin-left: 0; margin-top: .5rem; padding-top: .75rem;
    border-top: 1px solid var(--border);
    flex-direction: column; align-items: stretch; gap: .5rem;
  }
}

/* ── 서브 페이지 헤더 (partials/page-header.blade.php) ──────
   catalog · class-detail · tenant-about · community · materials ·
   custom-page · dashboard 공통 사용 ── */
.page-sub-header-inner {
  width: 100%; max-width: 1200px; margin: 0 auto;
  padding: 0 1.5rem; position: relative; z-index: 1;
}
.page-sub-header-title {
  font-weight: 600; margin: 0 0 .3rem;
  font-size: clamp(1.3rem, 4vw + .6rem, var(--ph-title-size, 1.8rem));
  line-height: 1.3;
}
.page-sub-header-subtitle { margin: 0; font-size: .95rem; }
@media (max-width: 480px) {
  .page-sub-header-subtitle { font-size: .85rem; }
}

/* ── 버튼 ────────────────────────────────────────────────── */
.btn-g {
  background: var(--green); color: #fff; font-weight: 500;
  border: none; border-radius: .25rem; padding: .45rem 1.2rem;
  font-size: .75rem; cursor: pointer;
  display: inline-flex; align-items: center; gap: .4rem;
  transition: background .15s, transform .1s; line-height: 1.2;
  font-family: inherit;
}
.btn-g:hover { background: var(--green-dark); color: #fff; transform: translateY(-1px); }
.btn-g-lg { padding: .8rem 2rem; font-size: 1rem; border-radius: .55rem; }
.btn-g-outline {
  background: transparent; color: var(--green); font-weight: 500;
  border: 1.5px solid var(--green); border-radius: .25rem;
  padding: .45rem 1.2rem; font-size: .75rem; cursor: pointer;
  display: inline-flex; align-items: center; gap: .4rem;
  transition: all .15s; line-height: 1.2; font-family: inherit;
}
.btn-g-outline:hover { background: var(--green-soft); color: var(--green-dark); }
.btn-ghost {
  background: transparent; border: 1px solid var(--border); color: #555;
  border-radius: .45rem; padding: .5rem 1rem; font-size: .875rem; font-weight: 600;
  cursor: pointer; transition: all .15s;
  display: inline-flex; align-items: center; gap: .35rem; line-height: 1.4;
  font-family: inherit;
}
.btn-ghost:hover { border-color: var(--green); color: var(--green); }

.btn-bhost {
  background: var(--green); color: #fff;
  border: none; border-radius: .45rem; padding: .5rem 1rem;
  font-size: .875rem; cursor: pointer;font-weight: 500;
  display: inline-flex; align-items: center; gap: .4rem;
  transition: background .15s, transform .1s; line-height: 1.2;
  font-family: inherit;
}
.btn-bhost:hover { border-color: var(--green); color: var(--green); }

/* ── 뱃지 ────────────────────────────────────────────────── */
.badge-g    { background: var(--green); color: #fff; font-size: .68rem; font-weight: 800;
  padding: .18rem .5rem; border-radius: .3rem; }
.badge-free { background: var(--green-soft); color: var(--green-dark); font-size: .68rem;
  font-weight: 800; padding: .18rem .5rem; border-radius: .3rem;
  border: 1px solid var(--green-mid); }
.badge-new  { background: #fff3cd; color: #856404; font-size: .68rem; font-weight: 800;
  padding: .18rem .5rem; border-radius: .3rem; }
.badge-out  { background: transparent; color: var(--green); font-size: .68rem; font-weight: 800;
  padding: .15rem .45rem; border-radius: .25rem; border: 1px solid var(--green); }

/* ── 섹션 ────────────────────────────────────────────────── */
.section       { padding: 70px 0; }
.section-gray  { background: var(--bg); }
.section-white { background: #fff; }
.section-title { font-size: 1.75rem; font-weight: 700; color: #111; line-height: 1.25; }
.section-sub   { color: var(--muted); font-size: .925rem; margin-top: .5rem; }
.label-g {
  color: var(--green); font-size: .78rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: .06em;
  margin-bottom: .5rem; display: block;
}
@media (max-width: 768px) {
  .section { padding: 44px 0; }
  .section-title { font-size: clamp(1.3rem, 4vw + .6rem, 1.75rem); }
}

/* ── 카드 ────────────────────────────────────────────────── */
.white-card { background: #fff; border: 1px solid var(--border); border-radius: .75rem; }
.course-card {
  background: #fff; border: 1px solid var(--border); border-radius: .75rem;
  overflow: hidden; color: var(--text);
  display: flex; flex-direction: column; height: 100%;
  transition: box-shadow .2s, transform .2s, border-color .2s;
}
.course-card:hover {
  box-shadow: 0 8px 28px rgba(129,190,37,.18);
  transform: translateY(-4px); border-color: var(--green); color: var(--text);
}
.course-card .thumb {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg,#2d5a0a,#5a9e18,#81be25);
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem; position: relative;
}
.course-card .thumb .badges {
  position: absolute; top: .65rem; left: .65rem; display: flex; gap: .35rem;
}
.course-card .body { padding: 1.1rem; flex: 1; display: flex; flex-direction: column; }
.course-card .cat  { font-size: 1rem; color: var(--green); font-weight: 700;
  text-transform: uppercase; letter-spacing: .04em; margin-bottom: .3rem; }
.course-card .title { font-size: .82rem; font-weight: 700; line-height: 1.45;
  margin-bottom: .5rem; flex: 1; color: #5f5f5f; }
.course-card .meta { font-size: .75rem; color: var(--muted); margin-bottom: .75rem;
  display: flex; gap: .75rem; flex-wrap: wrap; align-items: center; }
.course-card .foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; }

/* ── 진행바 ──────────────────────────────────────────────── */
.prog-bar  { background: #e9ecef; border-radius: 99px; height: 6px; overflow: hidden; }
.prog-fill { height: 100%; background: var(--green); border-radius: 99px; transition: width .4s; }
.prog-bar-md { width: 140px; }
.prog-bar-lg { width: 160px; }

/* ── 플래시 메시지 ───────────────────────────────────────── */
.flash-ok  { background: var(--green-soft); border: 1px solid var(--green-mid);
  color: #3d6b0a; border-radius: .5rem; padding: .75rem 1rem; font-size: .875rem;
  display: flex; align-items: center; gap: .5rem; }
.flash-err { background: #fef2f2; border: 1px solid #fecaca;
  color: #b91c1c; border-radius: .5rem; padding: .75rem 1rem; font-size: .875rem;
  display: flex; align-items: center; gap: .5rem; }

/* ── 폼 입력 ─────────────────────────────────────────────── */
.light-input {
  background: #fff; border: 1.5px solid var(--border); color: var(--text);
  border-radius: .5rem; padding: .7rem 1rem; width: 100%;
  font-size: .9rem; font-family: inherit; transition: border-color .15s, box-shadow .15s;
}
.light-input:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(129,190,37,.12); }
.light-input::placeholder { color: #b0b8c1; }

/* ── 사용자 드롭다운 ──────────────────────────────────────── */
.user-drop-wrap { position: relative; }
.user-drop-btn {
  background: none; border: none; cursor: pointer; padding: 0;
  display: flex; align-items: center; gap: .45rem;
}
.user-avatar-sm {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--green); color: #fff; font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
  transition: opacity .15s;
}
.user-drop-btn:hover .user-avatar-sm { opacity: .85; }
.user-drop-menu {
  position: absolute; right: 0; top: calc(100% + .6rem); width: 200px;
  background: #fff; border: 1px solid var(--border); border-radius: .7rem;
  box-shadow: 0 8px 28px rgba(0,0,0,.12); z-index: 300;
  display: none; overflow: hidden;
}
.user-drop-menu.open { display: block; }
.user-drop-info { padding: .85rem 1rem .75rem; }
.user-drop-name  { font-weight: 800; font-size: .88rem; color: #111; }
.user-drop-email { font-size: .73rem; color: var(--muted); margin-top: .1rem;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-drop-divider { height: 1px; background: var(--border); margin: .2rem 0; }
.user-drop-item {
  display: flex; align-items: center; gap: .6rem;
  padding: .6rem 1rem; font-size: .85rem; color: #444;
  transition: background .12s, color .12s;
}
.user-drop-item i { color: var(--muted); font-size: .95rem; width: 16px; }
.user-drop-item:hover { background: var(--green-soft); color: var(--green); }
.user-drop-item:hover i { color: var(--green); }

/* ── 푸터 ────────────────────────────────────────────────── */
footer {
  background: #1a1a1a; color: #9ca3af;
  padding: 50px 0 28px; font-size: var(--font-small);
}
footer a { color: #9ca3af; transition: color .15s; }
footer a:hover { color: var(--green); }
.foot-brand { font-size: 1.1rem; font-weight: 900; color: #fff; margin-bottom: .5rem; }
.foot-brand span { color: var(--green); }

/* ── Bootstrap 오버라이드 ────────────────────────────────── */
.btn-primary  { background: var(--green)      !important; border-color: var(--green)      !important;
  color: #fff !important; font-weight: 800 !important; }
.btn-primary:hover { background: var(--green-dark) !important; border-color: var(--green-dark) !important; }
.form-control:focus, .form-select:focus {
  border-color: var(--green) !important; box-shadow: 0 0 0 3px rgba(129,190,37,.12) !important; }
.accordion-button:not(.collapsed) { color: var(--green) !important; box-shadow: none !important;
  background: var(--green-soft) !important; }
.accordion-button:not(.collapsed)::after { filter: none; }
.pagination .page-item.active .page-link { background: var(--green); border-color: var(--green); color: #fff; }
.pagination .page-link { color: var(--green); }
.alert-success { background: var(--green-soft) !important; border-color: var(--green-mid) !important;
  color: #3d6b0a !important; }
.alert-danger  { background: #fef2f2 !important; border-color: #fecaca !important;
  color: #b91c1c !important; }

/* ══ 시험(퀴즈) 모달 — class_detail.blade.php ══════════════ */
.content-item-btn { width: 100%; border: none; background: none; font-family: inherit; text-align: left; cursor: pointer; }

.exam-modal-overlay {
  display: none; position: fixed; inset: 0; z-index: 1000;
  background: rgba(17,17,17,.55);
  align-items: center; justify-content: center; padding: 1.5rem;
}
.exam-modal-overlay.open { display: flex; }
.exam-modal {
  background: #fff; width: 100%; max-width: 720px; max-height: 92vh;
  border-radius: .75rem; overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow: 0 20px 60px rgba(0,0,0,.25);
}
.exam-modal-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: .9rem 1.25rem; border-bottom: 1px solid var(--border); flex-shrink: 0;
}
.exam-modal-head-title { font-size: 14px; font-weight: 600; color: var(--text); }
.exam-modal-close {
  background: none; border: none; color: var(--muted); font-size: 1.3rem;
  cursor: pointer; line-height: 1; padding: .2rem .3rem;
}
.exam-modal-close:hover { color: #e53e3e; }
.exam-modal-body { flex: 1; overflow-y: auto; padding: 1.5rem; }
.exam-modal-loading { text-align: center; padding: 3.5rem 0; color: var(--muted); font-size: 13px; }
.exam-modal-loading i { font-size: 1.6rem; display: block; margin-bottom: .6rem; }

/* 시험 콘텐츠 기본 타이포 규칙: 기본 13px/500, 작은 텍스트는 11px (예외: 제목/뱃지 등은 개별 규칙 유지) */
.exam-modal-body, .exam-page-wrap { font-size: 13px; font-weight: 500; }
.exam-page-wrap { max-width: 640px; margin: 0 auto; padding: 2.5rem 1rem; }

.exam-pass { color: #16a34a; font-weight: 700; }
.exam-fail { color: #dc2626; font-weight: 700; }

.exam-title { font-size: 1.05rem; font-weight: 600; color: #111; margin: 0; }
.exam-desc  { font-size: 13px; color: var(--muted); margin: .4rem 0 0; }

.exam-cond-grid  { display: grid; grid-template-columns: repeat(4, 1fr); gap: .75rem; margin: 1.1rem 0 1.25rem; }
.exam-cond-item  { background: var(--bg); border: 1px solid var(--border); border-radius: .55rem; padding: .75rem .9rem; }
.exam-cond-label { font-size: 11px; color: var(--muted); margin-bottom: .25rem; }
.exam-cond-value { font-size: 13px; font-weight: 700; color: var(--text); }

.exam-prev-box   { background: #eff6ff; border: 1px solid #bfdbfe; border-radius: .55rem; padding: .85rem 1rem; margin-bottom: 1.1rem; }
.exam-prev-title { font-size: 12px; font-weight: 700; color: #1d4ed8; margin-bottom: .4rem; }
.exam-prev-row   { font-size: 12px; color: #1d4ed8; display: flex; justify-content: space-between; gap: .5rem; padding: .15rem 0; }

.exam-history-box   { border: 1px solid var(--border); border-radius: .55rem; padding: .85rem 1rem; }
.exam-history-title { font-size: 12px; font-weight: 700; color: var(--text); margin-bottom: .5rem; }
.exam-history-row   { display: flex; justify-content: space-between; gap: .5rem; font-size: 12px; padding: .4rem 0; border-bottom: 1px solid var(--border); }
.exam-history-row:last-child { border-bottom: none; }
.exam-history-row a { color: var(--green); text-decoration: underline; }

.exam-blocked-box   { text-align: center; padding: 1.5rem 1rem; }
.exam-blocked-box i { font-size: 2.2rem; color: #dc2626; display: block; margin-bottom: .75rem; }

.exam-submit-btn { flex: 1; justify-content: center; padding: .65rem; font-size: .85rem; }

.exam-head-row      { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.exam-attempt-meta  { font-size: 12px; color: var(--muted); margin: .2rem 0 0; }

.exam-timer         { text-align: center; flex-shrink: 0; }
.exam-timer-val     { font-size: 1.3rem; font-weight: 900; color: #e53e3e; line-height: 1; }
.exam-timer-val.warn{ animation: examTimerPulse 1s infinite; }
.exam-timer-label   { font-size: 11px; color: var(--muted); margin-top: .2rem; }
@keyframes examTimerPulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }

.exam-progress       { margin-bottom: 1.1rem; }
.exam-progress-label { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); margin-bottom: .35rem; }
.exam-progress-bar   { height: 6px; background: var(--bg); border: 1px solid var(--border); border-radius: 999px; overflow: hidden; }
.exam-progress-fill  { height: 100%; background: var(--green); border-radius: 999px; transition: width .25s; }

.exam-q-card { border: 1px solid var(--border); border-radius: .65rem; padding: 1rem 1.1rem; margin-bottom: .9rem; }
.exam-q-head { display: flex; gap: .6rem; margin-bottom: .75rem; }
.exam-q-num  { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; background: var(--green); color: #fff; font-size: 11px; font-weight: 700; flex-shrink: 0; }
.exam-q-text { font-size: 13px; font-weight: 700; color: var(--text); margin: 0 0 .25rem; }
.exam-q-meta { font-size: 11px; color: var(--muted); }
.exam-opt-row { display: flex; align-items: center; gap: .5rem; padding: .4rem 0; font-size: 13px; }
.exam-opt-row input { accent-color: var(--green); }
.exam-opt-row label  { cursor: pointer; }
.exam-text-answer { resize: vertical; }

.exam-actions-row { display: flex; gap: .5rem; margin-top: 1.25rem; }

.exam-score-card  { text-align: center; padding: 1.25rem 1rem; border: 1px solid var(--border); border-radius: .65rem; margin-bottom: 1.25rem; }
.exam-score-card i{ font-size: 2rem; display: block; margin-bottom: .4rem; }
.exam-score-title { font-size: 1.2rem; font-weight: 900; margin: 0 0 .25rem; }
.exam-score-sub   { font-size: 12px; color: var(--muted); }
.exam-score-grid  { display: grid; grid-template-columns: repeat(3,1fr); gap: .75rem; margin-top: 1rem; }
.exam-score-num   { font-size: 1.3rem; font-weight: 800; }
.exam-score-label { font-size: 11px; color: var(--muted); margin-top: .2rem; }

.exam-result-heading { font-size: 13px; font-weight: 700; color: var(--text); margin: 0 0 .75rem; }
.exam-result-q       { border: 1px solid var(--border); border-radius: .55rem; padding: .85rem 1rem; margin-bottom: .6rem; }
.exam-result-q-head  { display: flex; align-items: center; gap: .6rem; margin-bottom: .5rem; }
.exam-result-q-head .exam-q-text { flex: 1; margin: 0; }
.exam-result-opt     { display: flex; align-items: center; gap: .5rem; font-size: 12px; padding: .15rem 0; }
.exam-result-explain { margin-top: .5rem; padding: .5rem .65rem; background: var(--bg); border-radius: .4rem; font-size: 12px; color: var(--muted); }

/* ══ 과제 제출(텍스트형) ══════════════════════════════════ */
.assign-text-box {
  background: var(--bg); border: 1px solid var(--border); border-radius: .5rem;
  padding: .75rem 1rem; font-size: 13px; font-weight: 500; color: var(--text);
  white-space: pre-wrap; line-height: 1.6;
}

@media (max-width: 640px) {
  .exam-cond-grid  { grid-template-columns: repeat(2, 1fr); }
  .exam-score-grid { grid-template-columns: 1fr; }
}


.form-control {
    font-size: 12px !important;
    font-weight: 400;
}
