/*
Theme Name: 자격증3001
Theme URI: https://license.3001.co.kr
Author: 3001
Description: PDF 문제지와 웹 정답·해설을 연결하는 자격증 시험자료 테마
Version: 0.2.0
Text Domain: jagyeok3001
*/

:root {
  --ink: #17202a;
  --muted: #637083;
  --line: #dfe5ec;
  --paper: #ffffff;
  --wash: #f4f7fa;
  --navy: #123a63;
  --blue: #1769aa;
  --orange: #e06a22;
  --green: #176b54;
  --radius: 18px;
  --shadow: 0 15px 45px rgba(18, 58, 99, 0.09);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--wash);
  font-family: "Pretendard", "Noto Sans KR", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.7;
}
a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 3px; }
img { max-width: 100%; height: auto; }
.container { width: min(1120px, calc(100% - 36px)); margin: 0 auto; }
.site-header { background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; backdrop-filter: blur(12px); }
.header-inner { min-height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { color: var(--navy); font-weight: 900; font-size: 1.25rem; text-decoration: none; letter-spacing: -.04em; }
.brand em { color: var(--orange); font-style: normal; }
.primary-nav { display: flex; flex-wrap: wrap; gap: 18px; }
.primary-nav a { color: var(--ink); font-size: .92rem; font-weight: 700; text-decoration: none; }
.blog-heading { margin-bottom: 30px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.blog-heading .eyebrow { color: var(--orange); }
.blog-heading h1 { margin: 0; color: var(--navy); font-size: clamp(2rem, 5vw, 3.35rem); letter-spacing: -.05em; }
.blog-heading p:last-child { max-width: 720px; margin: 10px 0 0; color: var(--muted); }
.blog-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 44px; align-items: start; }
.blog-feed { min-width: 0; }
.blog-post { padding: 0 0 32px; margin-bottom: 32px; border-bottom: 1px solid var(--line); }
.blog-post:last-child { margin-bottom: 0; }
.blog-post-meta { display: flex; flex-wrap: wrap; gap: 8px 14px; color: var(--green); font-size: .82rem; font-weight: 800; }
.blog-post-meta span + span::before, .blog-post-meta time::before { content: "·"; margin-right: 14px; color: #9aa6b2; }
.blog-post h2 { margin: 10px 0 8px; font-size: clamp(1.35rem, 3vw, 1.8rem); line-height: 1.35; letter-spacing: -.03em; }
.blog-post h2 a { color: var(--ink); text-decoration: none; }
.blog-post h2 a:hover { color: var(--blue); }
.blog-post p { margin: 0 0 12px; color: var(--muted); }
.read-more { font-size: .9rem; font-weight: 800; text-decoration: none; }
.blog-sidebar { display: grid; gap: 18px; position: sticky; top: 94px; }
.sidebar-widget { padding: 20px; border: 1px solid var(--line); background: var(--paper); }
.sidebar-widget h2 { margin: 0 0 14px; color: var(--navy); font-size: 1rem; }
.sidebar-widget p { margin: 0; color: var(--muted); font-size: .9rem; }
.search-form { display: flex; gap: 8px; }
.search-form label { flex: 1; }
.search-field { width: 100%; min-height: 42px; padding: 8px 10px; border: 1px solid #bcc7d2; border-radius: 6px; font: inherit; }
.search-submit { min-height: 42px; padding: 0 14px; border: 0; border-radius: 6px; background: var(--navy); color: #fff; font-weight: 800; cursor: pointer; }
.category-list { margin: 0; padding: 0; list-style: none; }
.category-list li { border-top: 1px solid var(--line); }
.category-list li:first-child { border-top: 0; }
.category-list a { display: flex; justify-content: space-between; gap: 10px; padding: 9px 0; color: var(--ink); text-decoration: none; }
.category-list span { color: var(--muted); }
.pagination { margin-top: 30px; }
.pagination .page-numbers { display: inline-flex; min-width: 38px; min-height: 38px; margin-right: 5px; align-items: center; justify-content: center; border: 1px solid var(--line); background: #fff; text-decoration: none; }
.pagination .current { background: var(--navy); color: #fff; }
.hero { padding: 82px 0 64px; background: linear-gradient(135deg, #0d3156 0%, #16558a 65%, #1976ad 100%); color: #fff; }
.eyebrow { margin: 0 0 12px; color: #9ed6ff; font-size: .86rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.hero h1 { max-width: 740px; margin: 0; font-size: clamp(2.25rem, 6vw, 4.6rem); line-height: 1.1; letter-spacing: -.06em; }
.hero p { max-width: 660px; margin: 24px 0 0; color: #d7ecff; font-size: 1.1rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 20px; border-radius: 999px; background: var(--orange); color: #fff; font-weight: 800; text-decoration: none; }
.button.secondary { background: #fff; color: var(--navy); }
.button.outline { background: transparent; color: var(--blue); border: 1px solid var(--blue); }
.section { padding: 66px 0; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 26px; }
.section-heading h2 { margin: 0; color: var(--navy); font-size: clamp(1.65rem, 4vw, 2.35rem); letter-spacing: -.04em; }
.section-heading p { margin: 0; color: var(--muted); }
.license-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.license-card { min-height: 250px; padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); box-shadow: var(--shadow); display: flex; flex-direction: column; }
.license-card .number { color: var(--orange); font-weight: 900; }
.license-card h3 { margin: 30px 0 8px; color: var(--navy); font-size: 1.4rem; }
.license-card p { margin: 0; color: var(--muted); font-size: .94rem; }
.license-links { display: flex; gap: 8px; margin-top: auto; padding-top: 24px; }
.license-links a { flex: 1; padding: 8px 10px; border-radius: 10px; background: var(--wash); text-align: center; font-weight: 800; text-decoration: none; }
.exam-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.exam-card { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.exam-card .meta { color: var(--green); font-weight: 800; font-size: .84rem; }
.exam-card h3 { margin: 10px 0; font-size: 1.18rem; line-height: 1.45; }
.exam-card p { color: var(--muted); }
.workflow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: step; }
.workflow article { padding: 24px; border-left: 4px solid var(--orange); background: #fff; border-radius: 0 var(--radius) var(--radius) 0; }
.workflow article::before { counter-increment: step; content: "0" counter(step); color: var(--orange); font-weight: 900; }
.content-shell { padding: 54px 0 80px; }
.archive-header, .exam-header { margin-bottom: 28px; padding: 34px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.archive-header h1, .exam-header h1 { margin: 8px 0 10px; color: var(--navy); font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1.2; letter-spacing: -.04em; }
.stage-filter { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0 30px; }
.stage-filter a { padding: 8px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-weight: 800; text-decoration: none; }
.exam-meta { display: flex; flex-wrap: wrap; gap: 9px; margin: 20px 0; }
.exam-meta span { padding: 6px 10px; border-radius: 999px; background: #eaf3fb; color: var(--navy); font-size: .86rem; font-weight: 800; }
.exam-download { margin-top: 24px; }
.exam-content { padding: 34px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.exam-intro { padding: 16px 18px; border-radius: 12px; background: #fff7ed; color: #7c3f16; }
.exam-intro h2 { margin-top: 0; color: var(--navy); }
.exam-subject { margin: 42px 0 4px; padding: 14px 18px; border-left: 5px solid var(--accent); background: var(--wash); color: var(--navy); font-size: 1.25rem; }
.exam-question { padding: 26px 0; border-bottom: 1px solid var(--line); }
.exam-question:last-child { border-bottom: 0; }
.exam-question h3 { margin: 0 0 16px; color: var(--ink); font-size: 1.13rem; line-height: 1.65; }
.exam-context { margin: 0 0 16px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px; background: #f8fafc; }
.exam-context p { margin: 0; }
.question-figure { margin: 18px auto; text-align: center; }
.question-figure img { display: inline-block; width: auto; max-width: min(100%, 520px); height: auto; padding: 10px; border: 1px solid var(--line); background: #fff; }
.question-figure figcaption { margin-top: 6px; color: var(--muted); font-size: .82rem; }
.exam-choices { padding-left: 28px; }
.exam-choices li { padding: 3px 0; }
details { margin-top: 15px; padding: 14px 16px; border-radius: 12px; background: var(--wash); }
summary { cursor: pointer; color: var(--blue); font-weight: 900; }
.exam-answer { color: var(--green); }
.exam-basis { color: var(--muted); font-size: .92rem; }
.exam-outro { margin-top: 30px; padding-top: 24px; border-top: 2px solid var(--line); }
.source-panel { margin-top: 24px; padding: 22px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.source-panel h2 { margin-top: 0; font-size: 1.1rem; }
.empty-state { padding: 42px; border: 1px dashed #b7c2ce; border-radius: var(--radius); background: #fff; text-align: center; color: var(--muted); }
.site-footer { padding: 42px 0; background: #0e2c4b; color: #bcd0e2; }
.site-footer strong { color: #fff; }
.site-footer p { margin: 5px 0; }

@media (max-width: 900px) {
  .license-grid { grid-template-columns: repeat(2, 1fr); }
  .exam-grid, .workflow { grid-template-columns: 1fr; }
  .blog-layout { grid-template-columns: 1fr; }
  .blog-sidebar { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .header-inner { min-height: 62px; }
  .primary-nav { display: none; }
  .hero { padding: 60px 0 50px; }
  .license-grid { grid-template-columns: 1fr; }
  .archive-header, .exam-header, .exam-content { padding: 22px; }
  .blog-sidebar { grid-template-columns: 1fr; }
}
