/*
Theme Name: Policy Guide
Theme URI: https://blog3.testpang.com/
Author: testpang
Description: 정부지원금과 정책대출을 공식 출처 중심으로 읽기 쉽게 보여주는 반응형 테마
Version: 1.0.0
Text Domain: policy-guide
*/

:root {
  --ink: #102a43;
  --muted: #61778a;
  --paper: #fff;
  --surface: #f4f8fb;
  --blue: #0969c3;
  --blue-dark: #07539a;
  --teal: #16806c;
  --mint: #e8f7f2;
  --sky: #edf6ff;
  --line: #dce7ef;
  --warning: #a04d00;
  --shadow: 0 18px 50px rgba(30, 67, 94, .10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--surface);
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  font-size: 18px;
  line-height: 1.86;
  letter-spacing: -.012em;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
.site-shell { width: min(1160px, calc(100% - 40px)); margin: 0 auto; }
.site-header { position: sticky; top: 0; z-index: 30; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.96); backdrop-filter: blur(16px); }
.header-main { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 14px; color: #fff; background: linear-gradient(135deg,var(--blue),var(--teal)); box-shadow: 0 10px 24px rgba(9,105,195,.22); font-size: 21px; font-weight: 900; }
.brand strong { display: block; font-size: 20px; line-height: 1.2; letter-spacing: -.04em; }
.brand small { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; line-height: 1.25; }
.official-button { padding: 10px 16px; border-radius: 11px; color: #fff; background: var(--blue); font-size: 14px; font-weight: 800; }
.official-button:hover { background: var(--blue-dark); }
.category-nav { border-top: 1px solid #edf2f6; }
.category-scroll { display: flex; align-items: center; gap: 28px; min-height: 49px; overflow-x: auto; scrollbar-width: none; }
.category-scroll::-webkit-scrollbar { display: none; }
.category-scroll a { flex: 0 0 auto; color: #4d6476; font-size: 14px; font-weight: 750; }
.category-scroll a:hover { color: var(--blue); }
.hero { overflow: hidden; padding: 82px 0 66px; background: linear-gradient(135deg,#eef7ff 0%,#f6fbff 54%,#eaf8f3 100%); }
.hero-grid { display: grid; grid-template-columns: minmax(0,1.55fr) minmax(300px,.7fr); align-items: center; gap: 70px; }
.eyebrow { margin: 0 0 13px; color: var(--teal); font-size: 15px; font-weight: 900; letter-spacing: .08em; }
.hero h1 { margin: 0; font-size: clamp(42px,5.5vw,68px); line-height: 1.13; letter-spacing: -.065em; }
.hero h1 em { color: var(--blue); font-style: normal; }
.hero-copy { max-width: 700px; margin: 23px 0 0; color: #526d82; font-size: 18px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 27px; }
.hero-badges span { padding: 7px 12px; border: 1px solid #d7e5ef; border-radius: 999px; background: rgba(255,255,255,.82); color: #3e5d73; font-size: 13px; font-weight: 750; }
.hero-badges span::before { content: "✓"; margin-right: 6px; color: var(--teal); font-weight: 900; }
.hero-card { padding: 31px 30px; border: 1px solid rgba(189,213,229,.85); border-radius: 26px; background: rgba(255,255,255,.88); box-shadow: var(--shadow); }
.card-icon { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 16px; color: #fff; background: var(--teal); font-size: 23px; font-weight: 800; }
.hero-card h2 { margin: 18px 0 10px; font-size: 21px; }
.hero-card ul { margin: 0; padding-left: 1.25em; color: #526d82; font-size: 15px; }
.hero-card li { margin: 5px 0; }
.latest-head { display: flex; align-items: end; justify-content: space-between; padding-top: 60px; padding-bottom: 22px; }
.latest-head p { margin: 0 0 4px; color: var(--blue); font-size: 12px; font-weight: 900; letter-spacing: .16em; }
.latest-head h2 { margin: 0; font-size: 34px; letter-spacing: -.045em; }
.latest-head > span { color: var(--muted); font-size: 13px; }
.post-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px; padding-bottom: 86px; }
.post-card { overflow: hidden; border: 1px solid var(--line); border-radius: 24px; background: var(--paper); box-shadow: 0 8px 30px rgba(30,67,94,.055); transition: transform .2s ease, box-shadow .2s ease; }
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card-image img { width: 100%; aspect-ratio: 1200/630; object-fit: cover; }
.post-card-body { padding: 26px 28px 30px; }
.post-meta { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 13px; font-weight: 650; }
.post-meta span { padding: 3px 9px; border-radius: 999px; color: var(--blue); background: var(--sky); font-weight: 800; }
.post-card h2 { margin: 12px 0 13px; font-size: 26px; line-height: 1.36; letter-spacing: -.04em; }
.post-card p { margin: 0; color: #526d82; font-size: 16px; line-height: 1.73; }
.read-more { display: inline-flex; gap: 9px; align-items: center; margin-top: 21px; color: var(--blue); font-size: 15px; font-weight: 850; }
.empty-card { grid-column: 1/-1; padding: 55px; border: 1px solid var(--line); border-radius: 24px; background: #fff; text-align: center; }
.single-wrap { width: min(900px,calc(100% - 40px)); margin: 0 auto; padding: 70px 0 105px; }
.single-top { padding: 0 20px 38px; text-align: center; }
.single-kicker { display: inline-block; margin-bottom: 17px; padding: 6px 12px; border-radius: 999px; color: var(--blue); background: var(--sky); font-size: 13px; font-weight: 850; }
.single-title { margin: 0; font-size: clamp(38px,5.5vw,61px); line-height: 1.18; letter-spacing: -.058em; }
.single-meta { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 18px; margin-top: 22px; color: var(--muted); font-size: 13px; font-weight: 650; }
.single-meta span:not(:last-child)::after { content: "·"; margin-left: 18px; }
.featured-image { overflow: hidden; margin: 0 0 28px; border-radius: 24px; box-shadow: var(--shadow); }
.entry-content { padding: clamp(34px,7vw,72px); border: 1px solid var(--line); border-radius: 28px; background: var(--paper); box-shadow: var(--shadow); }
.entry-content p { margin: 0 0 1.55em; }
.entry-content .article-lead { margin-bottom: 2em; color: #34536a; font-size: 21px; line-height: 1.9; }
.entry-content h2 { margin: 2.35em 0 .75em; font-size: 30px; line-height: 1.38; letter-spacing: -.04em; }
.entry-content h3 { margin: 1.8em 0 .55em; font-size: 23px; }
.entry-content strong { color: var(--blue-dark); font-weight: 850; background: linear-gradient(transparent 70%,rgba(9,105,195,.13) 0); }
.entry-content ul, .entry-content ol { margin: 0; padding-left: 1.3em; }
.entry-content li { margin: .62em 0; }
.key-summary, .news-note, .eligibility-check, .apply-guide, .document-box, .warning-box, .faq-box, .source-panel { margin: 34px 0; padding: 27px 29px; border-radius: 20px; }
.key-summary { border: 1px solid #cfe2f3; background: var(--sky); }
.key-summary h2, .eligibility-check h2, .apply-guide h2, .document-box h2, .warning-box h2, .faq-box h2, .source-panel h2 { margin-top: 0; font-size: 24px; }
.key-summary li::marker { color: var(--blue); }
.news-note { display: grid; grid-template-columns: 140px 1fr; gap: 18px; align-items: start; border-left: 5px solid var(--teal); background: #f1faf7; }
.news-note strong { background: none; color: var(--teal); }
.news-note p { margin: 0; font-size: 16px; }
.eligibility-check { border: 1px solid #c7e8df; background: #f2fbf8; }
.section-label { display: inline-block; margin-bottom: 8px; color: var(--teal); font-size: 12px; font-weight: 900; letter-spacing: .08em; }
.check-list { list-style: none; padding: 0 !important; }
.check-list li { position: relative; padding: 12px 14px 12px 47px; border: 1px solid #d7ebe5; border-radius: 12px; background: #fff; }
.check-list li::before { content: "□"; position: absolute; left: 16px; top: 9px; color: var(--teal); font-size: 22px; font-weight: 900; }
.check-note, .source-note { margin: 17px 0 0 !important; color: var(--muted); font-size: 13px; }
.table-wrap { overflow-x: auto; margin: 0 0 42px; border: 1px solid var(--line); border-radius: 16px; }
.condition-table { width: 100%; min-width: 610px; border-collapse: collapse; background: #fff; font-size: 16px; }
.condition-table th, .condition-table td { padding: 17px 19px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.condition-table tr:last-child th, .condition-table tr:last-child td { border-bottom: 0; }
.condition-table th { width: 170px; background: #f6f9fb; color: #34536a; }
.table-source { display: inline-block; margin-left: 9px; padding: 2px 7px; border-radius: 6px; color: var(--blue); background: var(--sky); font-size: 11px; font-weight: 800; white-space: nowrap; }
.apply-guide { border: 1px solid #d5e4f0; background: #fbfdff; }
.apply-guide ol { counter-reset: apply; list-style: none; padding: 0; }
.apply-guide li { position: relative; min-height: 48px; padding: 10px 0 12px 56px; }
.apply-guide li::before { counter-increment: apply; content: counter(apply); position: absolute; left: 0; top: 4px; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; color: #fff; background: var(--blue); font-size: 14px; font-weight: 850; }
.document-box { border: 1px solid #d7e5ef; background: #f8fbfd; }
.warning-box { border: 1px solid #f0d6bd; background: #fff8f1; }
.warning-box h2 { color: var(--warning); }
.warning-box li::marker { color: var(--warning); }
.faq-box { padding-left: 0; padding-right: 0; }
.faq-box details { border-top: 1px solid var(--line); }
.faq-box details:last-child { border-bottom: 1px solid var(--line); }
.faq-box summary { padding: 17px 4px; cursor: pointer; font-weight: 800; }
.faq-box details p { padding: 0 4px 18px; color: #526d82; font-size: 16px; }
.source-panel { border: 1px solid #c6e3db; background: #f2fbf8; }
.source-heading span { color: var(--teal); font-size: 11px; font-weight: 900; letter-spacing: .15em; }
.source-panel ul { list-style: none; padding: 0; }
.source-panel li { padding: 13px 0; border-bottom: 1px solid #d7ebe5; }
.source-panel li:last-child { border-bottom: 0; }
.source-panel a { display: block; color: #087060; font-weight: 820; text-decoration: underline; text-underline-offset: 3px; }
.source-panel li span { display: block; margin-top: 3px; color: var(--muted); font-size: 13px; }
.site-footer { padding: 38px 0 46px; border-top: 1px solid var(--line); color: var(--muted); background: #fff; text-align: center; }
.site-footer strong { color: var(--ink); }
.site-footer p { margin: 6px auto 0; max-width: 750px; font-size: 12px; line-height: 1.65; }
.pagination { grid-column: 1/-1; margin-top: 25px; text-align: center; }
.pagination .page-numbers { display: inline-grid; place-items: center; min-width: 40px; height: 40px; margin: 3px; border-radius: 10px; background: #fff; }
.pagination .current { color: #fff; background: var(--blue); }

@media (max-width: 820px) {
  body { font-size: 17px; line-height: 1.86; }
  .site-shell { width: min(100% - 28px,1160px); }
  .header-main { min-height: 68px; }
  .brand small { display: none; }
  .brand strong { font-size: 17px; }
  .brand-mark { width: 37px; height: 37px; border-radius: 12px; }
  .official-button { padding: 8px 11px; font-size: 12px; }
  .category-scroll { gap: 20px; min-height: 45px; }
  .hero { padding: 54px 0 42px; }
  .hero-grid { grid-template-columns: 1fr; gap: 27px; }
  .hero h1 { font-size: 41px; }
  .hero-copy { font-size: 16px; }
  .hero-card { padding: 24px; }
  .latest-head { padding-top: 42px; }
  .latest-head h2 { font-size: 29px; }
  .post-grid { grid-template-columns: 1fr; gap: 18px; padding-bottom: 60px; }
  .post-card-body { padding: 22px; }
  .post-card h2 { font-size: 23px; }
  .single-wrap { width: min(100% - 28px,900px); padding: 47px 0 72px; }
  .single-top { padding: 0 5px 28px; }
  .single-title { font-size: 36px; }
  .single-meta span:not(:last-child)::after { display: none; }
  .featured-image { border-radius: 19px; }
  .entry-content { padding: 30px 21px; border-radius: 22px; }
  .entry-content .article-lead { font-size: 18px; }
  .entry-content h2 { font-size: 25px; }
  .key-summary, .news-note, .eligibility-check, .apply-guide, .document-box, .warning-box, .source-panel { padding: 22px 19px; margin: 27px 0; }
  .news-note { grid-template-columns: 1fr; gap: 5px; }
  .condition-table th, .condition-table td { padding: 15px; }
}
