/* CertPass — 자격증 상세 페이지 공통 스타일 */
:root {
    --bg: #ffffff;
    --bg-section: #f9fafb;
    --bg-card: #ffffff;
    --bg-hover: #f2f4f6;
    --bg-tag: #f2f4f6;
    --primary: #3182f6;
    --primary-dark: #1b64da;
    --primary-light: #e8f3ff;
    --text-strong: #191f28;
    --text-default: #333d4b;
    --text-secondary: #4e5968;
    --text-tertiary: #8b95a1;
    --text-disabled: #b0b8c1;
    --border-light: #f2f4f6;
    --border-medium: #e5e8eb;
    --success: #00c471;
    --success-bg: #e6f7ee;
    --warning-bg: #fff8e8;
    --warning: #c97a00;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.06);
    --shadow-lg: 0 12px 32px rgba(0,0,0,0.08);
    --font: 'Pretendard Variable', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text-default);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* 네비게이션 */
nav {
    position: sticky; top: 0;
    background: rgba(255,255,255,0.92);
    backdrop-filter: saturate(180%) blur(12px);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--border-light);
    z-index: 100;
}
.nav-inner {
    display: flex; align-items: center; justify-content: space-between;
    height: 64px; max-width: 1200px;
    margin: 0 auto; padding: 0 20px;
}
.logo {
    display: flex; align-items: center; gap: 8px;
    font-size: 18px; font-weight: 700;
    color: var(--text-strong); letter-spacing: -0.02em;
}
.logo-icon {
    width: 32px; height: 32px; border-radius: 8px;
    overflow: hidden;
    display: flex; align-items: center; justify-content: center;
}
.logo-icon img {
    width: 100%; height: 100%; object-fit: cover; display: block;
}
.logo-tag {
    font-size: 11px;
    background: var(--primary-light);
    color: var(--primary);
    padding: 3px 8px; border-radius: 6px;
    font-weight: 700;
}
.nav-back {
    color: var(--text-secondary);
    font-size: 14px; font-weight: 500;
    padding: 8px 14px; border-radius: 8px;
    transition: background 0.15s;
}
.nav-back:hover { background: var(--bg-hover); color: var(--text-strong); }

/* 메인 레이아웃 */
main { padding: 40px 0 60px; }
.exam-detail-container {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 32px;
}
@media (max-width: 960px) {
    .exam-detail-container { grid-template-columns: 1fr; }
}

/* 헤더 */
.exam-detail-header {
    display: flex; align-items: center; gap: 20px;
    margin-bottom: 32px;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--border-light);
}
.exam-detail-icon {
    width: 64px; height: 64px; border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    background: var(--primary-light);
    color: var(--primary);
    flex-shrink: 0;
}
.exam-detail-icon svg { width: 36px; height: 36px; }
.exam-detail-info { flex-grow: 1; min-width: 0; }
.exam-detail-category {
    font-size: 12px; font-weight: 700;
    color: var(--text-tertiary);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 6px;
}
.exam-detail-title {
    font-size: 28px; font-weight: 800;
    color: var(--text-strong);
    letter-spacing: -0.03em;
    line-height: 1.25;
    margin-bottom: 4px;
}
.exam-detail-en {
    font-size: 14px; color: var(--text-tertiary);
    font-weight: 500;
}

/* 탭 */
.exam-tabs {
    display: flex; gap: 4px;
    border-bottom: 1px solid var(--border-medium);
    margin-bottom: 32px;
}
.exam-tab {
    padding: 12px 20px;
    font-size: 15px; font-weight: 700;
    color: var(--text-tertiary);
    position: relative;
    transition: color 0.15s;
}
.exam-tab:hover { color: var(--text-secondary); }
.exam-tab.active { color: var(--primary); }
.exam-tab.active::after {
    content: ''; position: absolute;
    bottom: -1px; left: 0; right: 0; height: 2px;
    background: var(--primary);
    border-radius: 2px 2px 0 0;
}
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* 섹션 */
.detail-section { margin-bottom: 32px; }
.detail-section-title {
    display: flex; align-items: center; gap: 8px;
    font-size: 18px; font-weight: 800;
    color: var(--text-strong);
    letter-spacing: -0.02em;
    margin-bottom: 14px;
}
.detail-section-title svg {
    width: 22px; height: 22px;
    color: var(--primary);
}

/* 합격 요건 카드 */
.pass-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    overflow: hidden;
}
.pass-card-head {
    display: flex; align-items: center; gap: 12px;
    padding: 18px 20px;
    background: var(--bg-section);
    border-bottom: 1px solid var(--border-light);
}
.pass-card-badge {
    display: inline-flex; align-items: center;
    width: 36px; height: 36px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 10px;
    justify-content: center;
}
.pass-card-title {
    font-size: 16px; font-weight: 800;
    color: var(--text-strong);
}
.pass-card-banner {
    padding: 14px 20px;
    background: var(--primary-light);
    color: var(--primary-dark);
    font-size: 14px; font-weight: 700;
}
.pass-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px;
    padding: 20px;
}
.pass-card-item label {
    display: block;
    font-size: 12px; color: var(--text-tertiary);
    font-weight: 500; margin-bottom: 4px;
}
.pass-card-item strong {
    display: block;
    font-size: 18px; color: var(--text-strong);
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}
.pass-card-item strong.accent { color: var(--primary); }

/* 응시 자격, 시행 기관 */
.info-list {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 6px 20px;
}
.info-list-item {
    display: flex; align-items: flex-start; gap: 12px;
    padding: 12px 0;
    font-size: 14px; line-height: 1.6;
    color: var(--text-default);
    border-bottom: 1px solid var(--border-light);
}
.info-list-item:last-child { border-bottom: 0; }
.info-list-item svg {
    width: 18px; height: 18px;
    color: var(--primary);
    flex-shrink: 0; margin-top: 2px;
}

.info-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 16px 20px;
    display: flex; align-items: center; gap: 14px;
}
.info-card svg {
    width: 22px; height: 22px;
    color: var(--primary);
    flex-shrink: 0;
}
.info-card-label {
    font-size: 12px; color: var(--text-tertiary);
    font-weight: 500;
    margin-bottom: 2px;
}
.info-card-value {
    font-size: 15px; color: var(--text-strong);
    font-weight: 700;
}
.info-card-link {
    margin-left: auto;
    font-size: 13px; color: var(--primary);
    font-weight: 700;
}

/* 콘텐츠 안내 */
.content-stats {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 20px;
}
.content-stats-item {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 0;
    font-size: 14px;
}
.content-stats-item::before {
    content: ''; width: 6px; height: 6px;
    background: var(--primary);
    border-radius: 50%;
    flex-shrink: 0;
}

.review-empty {
    background: var(--bg-section);
    border-radius: 16px;
    padding: 40px 20px;
    text-align: center;
    color: var(--text-tertiary);
    font-size: 14px;
}
.review-empty svg {
    width: 40px; height: 40px;
    color: var(--text-disabled);
    margin-bottom: 12px;
}

/* 사이드바 */
.exam-detail-sidebar {
    display: flex; flex-direction: column; gap: 16px;
}
.sidebar-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    overflow: hidden;
}
.sidebar-card-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 18px 20px;
    background: var(--bg-section);
    border-bottom: 1px solid var(--border-light);
}
.sidebar-card-title {
    display: flex; align-items: center; gap: 8px;
    font-size: 15px; font-weight: 800;
    color: var(--text-strong);
}
.sidebar-card-title svg {
    width: 18px; height: 18px;
    color: var(--primary);
}
.sidebar-link {
    font-size: 12px; color: var(--text-secondary);
    font-weight: 500;
    display: inline-flex; align-items: center; gap: 4px;
}
.sidebar-link:hover { color: var(--primary); }
.sidebar-card-body { padding: 16px 20px; }

/* 일정 회차 */
.round { margin-bottom: 8px; }
.round.active {
    border: 1px solid var(--primary-light);
    background: var(--primary-light);
    border-radius: 12px;
    padding: 16px;
}
.round.collapsed {
    border-top: 1px solid var(--border-light);
    padding-top: 12px;
    margin-top: 8px;
}
.round-header {
    display: flex; align-items: center; gap: 8px;
    margin-bottom: 12px;
}
.round-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--primary);
    flex-shrink: 0;
}
.round-title {
    font-size: 14px; font-weight: 800;
    color: var(--text-strong);
}
.round.collapsed .round-header { cursor: pointer; }
.round.collapsed .round-dot { background: var(--text-disabled); }
.round.collapsed .round-title { font-weight: 700; }
.round.collapsed .round-chev { margin-left: auto; color: var(--text-tertiary); transition: transform 0.2s; }
.round.collapsed[open] .round-chev { transform: rotate(180deg); }
.round-info { font-size: 13px; line-height: 1.5; }
.round-info-item {
    display: flex; justify-content: space-between; align-items: center;
    padding: 4px 0;
}
.round-info-item label { color: var(--text-tertiary); font-weight: 500; }
.round-info-item strong { color: var(--text-default); font-weight: 700; }
.round-info-item.highlight strong { color: var(--primary); }
.round-cta {
    display: block; width: 100%;
    margin-top: 14px; padding: 12px;
    background: var(--text-strong);
    color: white;
    text-align: center;
    border-radius: 10px;
    font-size: 14px; font-weight: 700;
    transition: background 0.15s;
}
.round-cta:hover { background: #000; }

/* CBT 상시 */
.cbt-info {
    text-align: center;
    padding: 12px 0;
}
.cbt-badge-lg {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--success-bg);
    color: var(--success);
    padding: 8px 16px; border-radius: 999px;
    font-size: 13px; font-weight: 700;
    margin-bottom: 14px;
}
.cbt-badge-lg::before {
    content: ''; width: 6px; height: 6px;
    background: var(--success); border-radius: 50%;
    animation: pulse 1.8s ease-in-out infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}
.cbt-info-desc {
    font-size: 13px; color: var(--text-secondary);
    line-height: 1.6;
}

/* CTA 버튼 */
.cta-section { display: flex; flex-direction: column; gap: 10px; }
.btn {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    padding: 14px 20px;
    border-radius: 12px;
    font-size: 15px; font-weight: 800;
    transition: all 0.15s;
}
.btn-primary {
    background: var(--primary);
    color: white;
}
.btn-primary:hover { background: var(--primary-dark); }
.btn-secondary {
    background: var(--bg-card);
    color: var(--text-default);
    border: 1px solid var(--border-medium);
}
.btn-secondary:hover { background: var(--bg-hover); }
.btn-icon { width: 18px; height: 18px; }

/* 푸터 */
footer {
    background: var(--bg-section);
    padding: 32px 0;
    text-align: center;
    border-top: 1px solid var(--border-light);
}
footer p {
    font-size: 12px;
    color: var(--text-tertiary);
    line-height: 1.6;
}

/* 모바일 */
@media (max-width: 640px) {
    .exam-detail-title { font-size: 22px; }
    .exam-detail-icon { width: 48px; height: 48px; font-size: 24px; }
    .pass-card-grid { grid-template-columns: repeat(2, 1fr); }
    main { padding: 24px 0 40px; }
}

/* === v2.4.5: 상세 안내 카드 (exam-guides) === */
.exam-guides {
  display: flex; flex-direction: column; gap: 8px;
}
.exam-guide-item {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px;
  background: var(--bg-card, #fff);
  border: 1px solid var(--border-soft, #e5e8eb);
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.exam-guide-item:hover {
  transform: translateY(-1px);
  border-color: var(--primary, #3182f6);
  box-shadow: 0 4px 12px rgba(49,130,246,0.08);
}
.exam-guide-item-highlight {
  background: linear-gradient(135deg, rgba(232,243,255,0.6) 0%, rgba(255,255,255,1) 100%);
  border-color: rgba(49,130,246,0.22);
}
.exam-guide-icon {
  flex-shrink: 0;
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--primary-light, #e8f3ff);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
}
.exam-guide-body {
  flex: 1; min-width: 0;
}
.exam-guide-title {
  font-size: 14px; font-weight: 700;
  color: var(--text-strong, #191f28);
  line-height: 1.4;
  margin-bottom: 3px;
}
.exam-guide-desc {
  font-size: 12px;
  color: var(--text-secondary, #4e5968);
  line-height: 1.5;
}
.exam-guide-badge {
  display: inline-block;
  font-size: 10px; font-weight: 700;
  color: var(--primary, #3182f6);
  background: var(--primary-light, #e8f3ff);
  padding: 2px 6px; border-radius: 4px;
  margin-left: 6px;
  vertical-align: 1px;
}
.exam-guide-arrow {
  flex-shrink: 0;
  font-size: 16px;
  color: var(--primary, #3182f6);
  font-weight: 700;
  transition: transform 0.15s ease;
}
.exam-guide-item:hover .exam-guide-arrow {
  transform: translateX(3px);
}
@media (max-width: 480px) {
  .exam-guide-item { padding: 12px 14px; gap: 10px; }
  .exam-guide-icon { width: 36px; height: 36px; font-size: 18px; }
  .exam-guide-title { font-size: 13px; }
  .exam-guide-desc { font-size: 11px; }
}

/* === v2.4.6: 상세 안내 카드 — SVG 아이콘 + 자세히 보기 버튼 === */
.exam-guides {
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
}
.exam-guide-item {
  display: flex !important;
  align-items: center !important;
  gap: 16px !important;
  padding: 16px 18px !important;
  background: var(--bg-card, #fff) !important;
  border: 1px solid var(--border-soft, #e5e8eb) !important;
  border-radius: 14px !important;
  text-decoration: none !important;
  color: inherit !important;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease !important;
}
.exam-guide-icon > svg {
  width: 26px;
  height: 26px;
  color: var(--primary, #3182f6);
  display: block;
}
.exam-guide-item:hover {
  transform: translateY(-2px);
  border-color: var(--primary, #3182f6);
  box-shadow: 0 6px 16px rgba(49,130,246,0.10);
}
.exam-guide-item-highlight {
  background: linear-gradient(135deg, rgba(232,243,255,0.5) 0%, rgba(255,255,255,1) 100%);
  border-color: rgba(49,130,246,0.28);
}
.exam-guide-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--primary-light, #e8f3ff);
  display: flex;
  align-items: center;
  justify-content: center;
}
.exam-guide-body {
  flex: 1;
  min-width: 0;
}
.exam-guide-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-strong, #191f28);
  line-height: 1.4;
  margin-bottom: 4px;
}
.exam-guide-desc {
  font-size: 12.5px;
  color: var(--text-secondary, #4e5968);
  line-height: 1.5;
}
.exam-guide-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  color: var(--primary, #3182f6);
  background: var(--primary-light, #e8f3ff);
  padding: 2px 7px;
  border-radius: 4px;
  margin-left: 6px;
  vertical-align: 1px;
}

/* "자세히 보기" 버튼 */
.exam-guide-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 700;
  color: var(--primary, #3182f6);
  background: var(--bg-section, #f9fafb);
  padding: 8px 12px;
  border-radius: 8px;
  white-space: nowrap;
  transition: background 0.15s ease, transform 0.15s ease;
}
.exam-guide-item:hover .exam-guide-btn {
  background: var(--primary, #3182f6);
  color: #fff;
}
.exam-guide-btn-primary {
  background: var(--primary, #3182f6);
  color: #fff;
}
.exam-guide-item:hover .exam-guide-btn-primary {
  background: #1b64da;
  transform: translateX(2px);
}
.exam-guide-btn-arrow {
  width: 14px;
  height: 14px;
  display: block;
  transition: transform 0.15s ease;
}
.exam-guide-item:hover .exam-guide-btn-arrow {
  transform: translateX(2px);
}

@media (max-width: 560px) {
  .exam-guide-item {
    flex-wrap: wrap;
    padding: 14px 16px !important;
    gap: 12px !important;
  }
  .exam-guide-icon { width: 38px; height: 38px; }
  .exam-guide-icon > svg { width: 22px; height: 22px; }
  .exam-guide-body { flex: 1 1 calc(100% - 54px); min-width: 0; }
  .exam-guide-btn {
    margin-left: 54px;
    margin-top: 4px;
    width: 100%;
    justify-content: center;
    padding: 10px 12px;
  }
}
