:root {
  --primary: #1a56db;
  --primary-dark: #1340a6;
  --primary-light: #e8f0fe;
  --text: #1a202c;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --bg: #f8fafc;
  --white: #ffffff;
  --radius: 12px;
  --shadow: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.12);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Noto Sans KR', sans-serif; color: var(--text); background: var(--bg); line-height: 1.6; }

/* 헤더 */
header { background: var(--white); border-bottom: 1px solid var(--border); padding: 0 1.5rem; position: sticky; top: 0; z-index: 100; box-shadow: var(--shadow); }
.header-inner { max-width: 1100px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; height: 60px; }
.logo { font-size: 1.4rem; font-weight: 700; color: var(--primary); text-decoration: none; }
.logo span { color: var(--text); }
nav { display: flex; gap: 1.5rem; }
nav a { color: var(--text-muted); text-decoration: none; font-size: 0.9rem; font-weight: 500; }
nav a:hover { color: var(--primary); }

/* our-sites-bar */
.our-sites-bar { background: #f1f5f9; border-bottom: 1px solid var(--border); padding: 0.5rem 1.5rem; overflow-x: auto; white-space: nowrap; }
.our-sites-bar::-webkit-scrollbar { height: 2px; }
.our-sites-label { font-size: 0.75rem; color: var(--text-muted); margin-right: 1rem; font-weight: 600; }
.our-sites-links { display: inline-flex; gap: 0.5rem; }
.our-sites-links a { color: var(--text-muted); text-decoration: none; font-size: 0.8rem; padding: 0.2rem 0.6rem; border-radius: 20px; transition: all 0.2s; }
.our-sites-links a:hover, .our-sites-links a.active { background: var(--primary); color: var(--white); }

/* 히어로 */
.hero { background: linear-gradient(135deg, var(--primary) 0%, #2563eb 50%, #1340a6 100%); color: var(--white); padding: 4rem 1.5rem; text-align: center; }
.hero h1 { font-size: 2.2rem; font-weight: 800; margin-bottom: 1rem; line-height: 1.3; }
.hero p { font-size: 1.1rem; opacity: 0.9; max-width: 600px; margin: 0 auto 2rem; }
.hero-badges { display: flex; justify-content: center; flex-wrap: wrap; gap: 0.7rem; margin-bottom: 2rem; }
.hero-badge { background: rgba(255,255,255,0.2); border: 1px solid rgba(255,255,255,0.3); padding: 0.4rem 1rem; border-radius: 20px; font-size: 0.85rem; backdrop-filter: blur(4px); }

/* 검색바 */
.search-wrap { max-width: 500px; margin: 0 auto; display: flex; gap: 0.5rem; }
.search-wrap input { flex: 1; padding: 0.8rem 1.2rem; border-radius: 8px; border: none; font-size: 1rem; }
.search-wrap button { padding: 0.8rem 1.5rem; background: #fbbf24; color: #1a202c; border: none; border-radius: 8px; font-weight: 700; cursor: pointer; font-size: 1rem; }

/* 카테고리 그리드 */
.section { max-width: 1100px; margin: 0 auto; padding: 3rem 1.5rem; }
.section-title { font-size: 1.5rem; font-weight: 700; margin-bottom: 0.5rem; }
.section-subtitle { color: var(--text-muted); margin-bottom: 2rem; }
.category-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; }

/* 카드 */
.card { background: var(--white); border-radius: var(--radius); border: 1px solid var(--border); padding: 1.5rem; text-decoration: none; color: var(--text); transition: all 0.2s; display: block; }
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); border-color: var(--primary); }
.card-icon { font-size: 2.5rem; margin-bottom: 1rem; }
.card h2 { font-size: 1.15rem; font-weight: 700; margin-bottom: 0.5rem; color: var(--text); }
.card p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.5; }
.card-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.8rem; margin-bottom: 0.8rem; }
.tag { font-size: 0.75rem; padding: 0.2rem 0.6rem; border-radius: 20px; background: var(--primary-light); color: var(--primary); font-weight: 600; }
.tag.red { background: #fee2e2; color: #dc2626; }
.tag.green { background: #dcfce7; color: #16a34a; }
.tag.yellow { background: #fef9c3; color: #ca8a04; }

/* 지원금 상세 카드 */
.support-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1.5rem; align-items: stretch; }
.support-card { background: var(--white); border-radius: var(--radius); border: 1px solid var(--border); overflow: hidden; display: flex; flex-direction: column; }
.support-card-header { background: var(--primary-light); padding: 1.2rem 1.5rem; border-bottom: 1px solid var(--border); display: flex; align-items: flex-start; gap: 0.8rem; min-height: 90px; }
.support-card-header h3 { font-size: 1.05rem; font-weight: 700; color: var(--primary-dark); }
.support-card-body { padding: 1.2rem 1.5rem; flex: 1; display: flex; flex-direction: column; }
.support-info { display: flex; flex-direction: column; gap: 0.6rem; margin-bottom: 1rem; }
.support-row { display: flex; gap: 0.8rem; font-size: 0.9rem; }
.support-label { color: var(--text-muted); min-width: 70px; font-weight: 500; }
.support-value { color: var(--text); font-weight: 600; }
.apply-btn { display: block; padding: 0.7rem 1.2rem; background: var(--primary); color: var(--white); border-radius: 8px; text-decoration: none; font-size: 0.9rem; font-weight: 600; margin-top: auto; padding-top: 0.7rem; transition: background 0.2s; text-align: center; }
.apply-btn:hover { background: var(--primary-dark); }

/* FAQ */
.faq-section { max-width: 800px; margin: 0 auto; padding: 3rem 1.5rem; }
.faq-section h2 { font-size: 1.4rem; font-weight: 700; margin-bottom: 1.5rem; }
.faq-item { background: var(--white); border: 1px solid var(--border); border-radius: 10px; margin-bottom: 1rem; overflow: hidden; }
.faq-question { padding: 1rem 1.5rem; font-weight: 600; cursor: pointer; display: flex; justify-content: space-between; align-items: center; }
.faq-answer { padding: 0 1.5rem 1rem; color: var(--text-muted); font-size: 0.95rem; line-height: 1.7; }

/* 브레드크럼 */
.breadcrumb { max-width: 1100px; margin: 0 auto; padding: 1rem 1.5rem 0; font-size: 0.85rem; color: var(--text-muted); }
.breadcrumb a { color: var(--primary); text-decoration: none; }
.breadcrumb span { margin: 0 0.4rem; }

/* 유의사항 박스 */
.notice-box { background: #fffbeb; border: 1px solid #fcd34d; border-radius: 10px; padding: 1rem 1.5rem; margin: 1.5rem 0; font-size: 0.9rem; color: #92400e; }
.notice-box strong { display: block; margin-bottom: 0.3rem; }

/* 푸터 */
footer { background: #1e293b; color: #94a3b8; padding: 2.5rem 1.5rem; text-align: center; margin-top: 4rem; }
footer a { color: #94a3b8; text-decoration: none; }
footer a:hover { color: var(--white); }
.footer-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 1.5rem; margin-bottom: 1.5rem; font-size: 0.9rem; }
.footer-copy { font-size: 0.85rem; }

/* ── 확장 카드 구조 ── */
.support-card-header { display: flex; align-items: flex-start; gap: 0.8rem; flex-wrap: wrap; }
.support-card-header-info { flex: 1; min-width: 0; }
.support-card-header-info h3 { font-size: 1.05rem; font-weight: 700; color: var(--primary-dark); margin-bottom: 0.2rem; }
.card-summary { font-size: 0.82rem; color: var(--text-muted); line-height: 1.4; }
.amount-badge { background: var(--primary); color: white; padding: 0.3rem 0.8rem; border-radius: 20px; font-size: 0.78rem; font-weight: 700; white-space: nowrap; flex-shrink: 0; }
.amount-badge.green { background: #16a34a; }
.amount-badge.orange { background: #ea580c; }

/* 추천 대상 박스 */
.recommend-box { background: #f0fdf4; border: 1px solid #86efac; border-radius: 8px; padding: 0.8rem 1rem; margin-bottom: 1rem; min-height: 100px; }
.recommend-box strong { font-size: 0.85rem; color: #15803d; display: block; margin-bottom: 0.4rem; }
.recommend-box ul { margin: 0; padding-left: 1.2rem; }
.recommend-box li { font-size: 0.83rem; color: #166534; line-height: 1.6; }

/* 자격 조건 표 */
.eligibility-table { width: 100%; border-collapse: collapse; font-size: 0.83rem; margin-bottom: 1rem; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.eligibility-table th { background: #f1f5f9; padding: 0.5rem 0.8rem; text-align: left; color: var(--text-muted); font-weight: 600; width: 88px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.eligibility-table td { padding: 0.5rem 0.8rem; border-bottom: 1px solid var(--border); color: var(--text); line-height: 1.5; }
.eligibility-table tr:last-child th, .eligibility-table tr:last-child td { border-bottom: none; }
.eligibility-table tr:nth-child(even) td { background: #fafafa; }

/* 필요 서류 박스 */
.docs-box { background: #fef9c3; border: 1px solid #fde047; border-radius: 8px; padding: 0.7rem 1rem; margin-bottom: 1rem; font-size: 0.83rem; }
.docs-box strong { color: #854d0e; display: block; margin-bottom: 0.3rem; }
.docs-box span { color: #713f12; line-height: 1.6; }

/* 지원 구분 헤더 (섹션 타이틀) */
.sub-section-title { font-size: 1.2rem; font-weight: 700; color: var(--text); margin: 2.5rem 0 1rem; padding-bottom: 0.5rem; border-bottom: 2px solid var(--primary); }

/* 요약 테이블 (비교표) */
.compare-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; margin: 1.5rem 0; }
.compare-table th { background: var(--primary); color: white; padding: 0.7rem 1rem; text-align: left; }
.compare-table td { padding: 0.7rem 1rem; border-bottom: 1px solid var(--border); }
.compare-table tr:nth-child(even) td { background: #f8fafc; }
.compare-table tr:hover td { background: var(--primary-light); }
.compare-table .highlight { font-weight: 700; color: var(--primary); }

/* 반응형 */
@media (max-width: 768px) {
  .hero h1 { font-size: 1.6rem; }
  .category-grid { grid-template-columns: 1fr 1fr; }
  nav { display: none; }
}
@media (max-width: 480px) {
  .category-grid { grid-template-columns: 1fr; }
  .support-grid { grid-template-columns: 1fr; }
}
