/* ============================================================
   FEEDSHARE – 메인 스타일시트
   모바일 퍼스트 | 390 / 430 / 768 / 1024 / 1440px
   디자인: 네이버금융 + 브런치 + 정부24 + 뉴스포털
   ============================================================ */

/* ── CSS 변수 ──────────────────────────────────────────── */
:root {
  --primary:       #0B2A6B;
  --primary-hover: #0a2460;
  --primary-light: #EEF2FF;
  --primary-pale:  #F0F4FF;
  --accent:        #2563EB;
  --danger:        #EF4444;
  --success:       #10B981;
  --bg:            #F7F8FA;
  --bg-card:       #FFFFFF;
  --border:        #E5E7EB;
  --border-light:  #F3F4F6;
  --text:          #111827;
  --text-mid:      #374151;
  --text-muted:    #6B7280;
  --text-faint:    #9CA3AF;
  --font:          'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', sans-serif;
  --radius:        12px;
  --radius-sm:     8px;
  --radius-xs:     4px;
  --shadow-sm:     0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow:        0 4px 16px rgba(0,0,0,.08);
  --shadow-lg:     0 8px 30px rgba(0,0,0,.12);
  --transition:    .18s ease;
  --header-h:      60px;
  --container:     1200px;
}

/* ── 리셋 & 베이스 ─────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 15px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  color: var(--text-mid);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img, video { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
button { cursor: pointer; font-family: var(--font); }
input, textarea, select { font-family: var(--font); }
.screen-reader-text {
  border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%);
  height: 1px; margin: -1px; overflow: hidden; padding: 0;
  position: absolute; width: 1px; word-wrap: normal;
}
.skip-link:focus { clip: auto; height: auto; overflow: visible; position: static; width: auto; }

/* ── 컨테이너 ──────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 16px;
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 200;
  background: #fff;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 6px rgba(0,0,0,.06);
}
.header-inner {
  display: flex; align-items: center; gap: 16px;
  height: var(--header-h);
}

/* 로고 */
.site-logo {
  display: flex; align-items: center; gap: 10px;
  flex-shrink: 0; text-decoration: none;
}
.logo-symbol {
  width: 36px; height: 36px;
  background: var(--primary);
  color: #fff;
  font-size: 12px; font-weight: 800;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  letter-spacing: 1px; flex-shrink: 0;
}
.logo-symbol.small { width: 28px; height: 28px; font-size: 10px; border-radius: 6px; }
.logo-name {
  display: block; font-size: 16px; font-weight: 800;
  color: var(--primary); letter-spacing: 1px; line-height: 1.2;
}
.logo-tagline {
  display: none; /* 모바일 숨김 */
  font-size: 9px; color: var(--text-muted); white-space: nowrap;
}

/* 내비 */
.primary-nav { flex: 1; display: none; } /* 모바일 숨김 */
.nav-list { display: flex; gap: 2px; align-items: center; }
.nav-item { position: relative; }
.nav-link {
  display: block; padding: 6px 12px;
  font-size: 14px; font-weight: 500; color: var(--text-mid);
  border-radius: 6px; white-space: nowrap;
  transition: background var(--transition), color var(--transition);
}
.nav-link:hover, .nav-item.active .nav-link {
  background: var(--primary-light); color: var(--primary);
}
.nav-item.active .nav-link::after {
  content: ''; position: absolute; bottom: -1px; left: 12px; right: 12px;
  height: 2px; background: var(--primary); border-radius: 2px;
}

/* 헤더 우측 */
.header-right { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.header-search-btn {
  background: none; border: none;
  padding: 7px; color: var(--text-muted);
  border-radius: 6px; display: flex;
  transition: background var(--transition), color var(--transition);
}
.header-search-btn:hover { background: var(--border-light); color: var(--primary); }

/* 햄버거 */
.hamburger {
  display: flex; flex-direction: column; gap: 5px;
  background: none; border: none; padding: 6px;
}
.hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--text-mid); border-radius: 2px;
  transition: transform .2s, opacity .2s;
}
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* 검색 드롭다운 */
.header-search-dropdown {
  background: #fff;
  border-top: 1px solid var(--border);
  padding: 14px 0;
  box-shadow: 0 8px 20px rgba(0,0,0,.1);
}
.header-search-dropdown[hidden] { display: none; }

/* 모바일 내비 열림 */
.primary-nav.open {
  display: block;
  position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0;
  background: #fff; overflow-y: auto; z-index: 199;
  padding: 12px 16px 40px;
}
.primary-nav.open .nav-list { flex-direction: column; gap: 0; }
.primary-nav.open .nav-link {
  font-size: 16px; padding: 14px 16px;
  border-bottom: 1px solid var(--border-light);
  border-radius: 0;
}
.mobile-overlay {
  display: none; position: fixed; inset: 0; z-index: 198;
  background: rgba(0,0,0,.4);
}
.mobile-overlay.open { display: block; }

/* ============================================================
   검색 폼
   ============================================================ */
.search-form-inner {
  display: flex; align-items: center;
  background: #fff; border-radius: 10px;
  padding: 6px 6px 6px 14px; gap: 8px;
  border: 1.5px solid var(--border);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.search-form-inner:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(11,42,107,.1);
}
.search-form-icon { flex-shrink: 0; color: var(--text-faint); }
.search-field {
  flex: 1; border: none; outline: none; background: transparent;
  font-size: 14px; color: var(--text); min-width: 0;
}
.search-field::placeholder { color: var(--text-faint); }
.search-submit {
  padding: 9px 18px; background: var(--primary); color: #fff;
  border: none; border-radius: 7px;
  font-size: 14px; font-weight: 700; white-space: nowrap;
  transition: background var(--transition);
}
.search-submit:hover { background: var(--primary-hover); }

/* ============================================================
   HERO
   ============================================================ */
.hero-section {
  background: linear-gradient(160deg, #0B2A6B 0%, #1e4db7 55%, #2563EB 100%);
  color: #fff; padding: 48px 0 52px; position: relative; overflow: hidden;
  text-align: center;
}
.hero-bg-decor {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 60% 60% at 70% 50%, rgba(255,255,255,.06) 0%, transparent 70%),
              radial-gradient(ellipse 40% 40% at 20% 80%, rgba(255,255,255,.04) 0%, transparent 60%);
}
.hero-content { position: relative; z-index: 1; }
.hero-eyebrow {
  display: inline-block;
  font-size: 12px; font-weight: 600; color: #93C5FD;
  letter-spacing: 1px; margin-bottom: 14px;
}
.hero-title {
  font-size: 24px; font-weight: 800; color: #fff;
  line-height: 1.4; margin-bottom: 10px;
}
.hero-title em { font-style: normal; color: #60A5FA; }
.hero-sub {
  font-size: 14px; color: rgba(255,255,255,.75);
  margin-bottom: 28px; line-height: 1.6;
}
.hero-search-wrap { max-width: 680px; margin: 0 auto 18px; }
.hero-search-wrap .search-form-inner {
  padding: 8px 8px 8px 18px; border-radius: 12px;
  box-shadow: 0 4px 24px rgba(0,0,0,.2);
  border: none;
}
.hero-search-wrap .search-submit {
  padding: 11px 24px; font-size: 15px; border-radius: 9px;
}
.hero-search-wrap .search-field { font-size: 15px; }
.hero-keywords {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px;
  align-items: center;
}
.kw-label { font-size: 11px; color: rgba(255,255,255,.6); }
.kw-tag {
  display: inline-block; padding: 5px 13px;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.25);
  color: rgba(255,255,255,.9); border-radius: 20px;
  font-size: 12px; transition: background var(--transition);
}
.kw-tag:hover { background: rgba(255,255,255,.28); }

/* ============================================================
   LAYOUT – 홈 그리드
   ============================================================ */
.home-body { padding: 32px 0 60px; }
.home-grid { display: flex; flex-direction: column; gap: 0; }
.home-content { min-width: 0; }
.home-sidebar { display: none; } /* 모바일 숨김 */

/* ============================================================
   섹션 공통
   ============================================================ */
.home-section { margin-bottom: 40px; }
.section-header {
  display: flex; align-items: center;
  justify-content: space-between; margin-bottom: 16px;
}
.section-title {
  display: flex; align-items: center; gap: 10px;
  font-size: 17px; font-weight: 700; color: var(--text);
}
.title-accent {
  display: inline-block; width: 4px; height: 20px;
  background: var(--primary); border-radius: 2px; flex-shrink: 0;
}
.section-more {
  font-size: 13px; color: var(--text-muted);
  transition: color var(--transition);
}
.section-more:hover { color: var(--primary); }

/* ============================================================
   CARD GRID
   ============================================================ */
.card-grid {
  display: grid; gap: 16px;
  grid-template-columns: 1fr;
}
.card-grid-3, .card-grid-4 { grid-template-columns: 1fr; }

/* ── 카드 ── */
.fs-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
  display: flex; flex-direction: column;
}
.fs-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}
.card-thumb-link { display: block; overflow: hidden; position: relative; }
.card-thumb {
  position: relative; overflow: hidden;
  background: var(--bg);
  aspect-ratio: 16/9;
}
.card-thumb img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .4s ease;
}
.fs-card:hover .card-thumb img { transform: scale(1.04); }
.card-thumb-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #E8EDF5 0%, #F0F4FF 100%);
}
.card-badge {
  position: absolute; top: 10px; left: 10px; z-index: 1;
  font-size: 10px; font-weight: 700; padding: 3px 8px;
  border-radius: 4px; letter-spacing: .5px;
}
.badge-new { background: var(--danger); color: #fff; }
.badge-cat { top: auto; bottom: 10px; left: 10px; }

.card-body { padding: 14px 16px 16px; flex: 1; display: flex; flex-direction: column; }
.card-cat {
  display: inline-block; font-size: 11px; font-weight: 600;
  padding: 2px 8px; border-radius: 4px; margin-bottom: 8px;
  text-decoration: none;
}
.card-title {
  font-size: 14px; font-weight: 700; color: var(--text);
  line-height: 1.5; margin-bottom: 0; flex: 1;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card-title a:hover { color: var(--primary); }
.card-excerpt {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 6px 0 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}
.card-meta {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 10px; padding-top: 10px;
  border-top: 1px solid var(--border-light);
}
.card-date, .card-views { font-size: 11px; color: var(--text-faint); }

/* ── 카테고리 배지 색상 ── */
.cat-badge { display: inline-block; font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 4px; }
.cat-gov     { background: #DBEAFE; color: #1D4ED8; }
.cat-loan    { background: #D1FAE5; color: #065F46; }
.cat-policy  { background: #EDE9FE; color: #5B21B6; }
.cat-biz     { background: #FEF3C7; color: #92400E; }
.cat-life    { background: #ECFDF5; color: #047857; }
.cat-guide   { background: #F0F9FF; color: #0369A1; }
.cat-finance { background: #FCE7F3; color: #9D174D; }
.cat-tax     { background: #FEF9C3; color: #713F12; }
.cat-default { background: var(--border-light); color: var(--text-mid); }

/* ============================================================
   인기 글
   ============================================================ */
.popular-list {
  background: var(--bg-card); border-radius: var(--radius);
  border: 1px solid var(--border); overflow: hidden;
}
.popular-item {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 16px; border-bottom: 1px solid var(--border-light);
  transition: background var(--transition);
}
.popular-item:last-child { border-bottom: none; }
.popular-item:hover { background: #F9FAFB; }
.popular-rank {
  width: 26px; height: 26px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 800; flex-shrink: 0;
  background: var(--border-light); color: var(--text-muted);
}
.rank-top { background: var(--primary); color: #fff; }
.popular-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.popular-cat { flex-shrink: 0; align-self: flex-start; }
.popular-title {
  font-size: 13px; color: var(--text-mid); font-weight: 500;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  transition: color var(--transition);
}
.popular-title:hover { color: var(--primary); }
.popular-views { font-size: 11px; color: var(--text-faint); white-space: nowrap; flex-shrink: 0; }

/* ============================================================
   최근 글 리스트 (Compact)
   ============================================================ */
.post-list-compact {
  background: var(--bg-card); border-radius: var(--radius);
  border: 1px solid var(--border); overflow: hidden;
}
.plc-item {
  display: flex; align-items: center; gap: 8px;
  padding: 11px 16px; border-bottom: 1px solid var(--border-light);
  transition: background var(--transition);
}
.plc-item:last-child { border-bottom: none; }
.plc-item:hover { background: #F9FAFB; }
.plc-cat { flex-shrink: 0; }
.plc-title {
  flex: 1; font-size: 13px; color: var(--text-mid);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  transition: color var(--transition);
}
.plc-title:hover { color: var(--primary); }
.plc-date { font-size: 11px; color: var(--text-faint); flex-shrink: 0; }

/* ============================================================
   자주 찾는 서비스
   ============================================================ */
.service-links {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
}
.service-card {
  display: flex; flex-direction: column; align-items: center;
  gap: 6px; padding: 16px 8px;
  background: var(--bg-card); border: 1.5px solid var(--border);
  border-radius: var(--radius-sm); text-align: center;
  transition: border-color var(--transition), box-shadow var(--transition);
  text-decoration: none;
}
.service-card:hover { border-color: var(--primary); box-shadow: 0 2px 10px rgba(11,42,107,.1); }
.service-icon { font-size: 22px; }
.service-name { font-size: 12px; font-weight: 700; color: var(--text); }
.service-desc { font-size: 10px; color: var(--text-faint); display: none; }

/* ============================================================
   SIDEBAR 위젯
   ============================================================ */
.sidebar-widget {
  background: var(--bg-card); border-radius: var(--radius);
  border: 1px solid var(--border); padding: 18px; margin-bottom: 16px;
}
.widget-title {
  display: flex; align-items: center; gap: 8px;
  font-size: 15px; font-weight: 700; color: var(--text); margin-bottom: 14px;
}
.widget-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.widget-header .widget-title { margin-bottom: 0; }
.widget-more { font-size: 12px; color: var(--text-muted); }
.widget-more:hover { color: var(--primary); }

/* 카테고리 위젯 그리드 */
.cat-widget-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cat-widget-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 9px 12px; background: #F9FAFB;
  border: 1px solid var(--border-light); border-radius: var(--radius-sm);
  font-size: 12px; font-weight: 500; text-decoration: none; color: var(--text-mid);
  transition: background var(--transition), color var(--transition);
}
.cat-widget-item:hover { background: var(--primary-light); color: var(--primary); border-color: var(--primary-light); }
.cat-count { font-size: 10px; color: var(--text-faint); }

/* 공지사항 */
.notice-list li { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--border-light); }
.notice-list li:last-child { border-bottom: none; }
.notice-title { font-size: 13px; color: var(--text-mid); flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color var(--transition); }
.notice-title:hover { color: var(--primary); }
.notice-date { font-size: 11px; color: var(--text-faint); flex-shrink: 0; }

/* CTA 위젯 */
.widget-cta {
  background: linear-gradient(135deg, #EEF2FF 0%, #E0E7FF 100%);
  border-color: #C7D2FE !important;
}
.widget-cta h3 { font-size: 15px; font-weight: 700; color: #1E3A8A; margin-bottom: 6px; line-height: 1.4; }
.widget-cta p { font-size: 12px; color: var(--text-mid); margin-bottom: 14px; line-height: 1.55; }
.cta-btn {
  display: inline-block; padding: 9px 18px;
  background: var(--primary); color: #fff;
  font-size: 13px; font-weight: 700; border-radius: var(--radius-sm);
  transition: background var(--transition);
}
.cta-btn:hover { background: var(--primary-hover); }

/* 인기글 위젯 */
.popular-widget-list { margin: 0; }
.popular-widget-item { display: flex; align-items: flex-start; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--border-light); }
.popular-widget-item:last-child { border-bottom: none; }
.pw-rank { width: 22px; height: 22px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 800; flex-shrink: 0; background: var(--border-light); color: var(--text-muted); }
.pw-content { flex: 1; min-width: 0; }
.pw-title { display: block; font-size: 13px; color: var(--text-mid); line-height: 1.4; margin-bottom: 3px; transition: color var(--transition); }
.pw-title:hover { color: var(--primary); }
.pw-date { font-size: 11px; color: var(--text-faint); }

/* 사이드바 카테고리 리스트 */
.sidebar-cat-list li { border-bottom: 1px solid var(--border-light); }
.sidebar-cat-list a { display: flex; justify-content: space-between; align-items: center; padding: 9px 0; font-size: 13px; color: var(--text-mid); transition: color var(--transition); }
.sidebar-cat-list a:hover { color: var(--primary); }
.sidebar-cat-list span { font-size: 11px; color: var(--text-faint); }

/* ============================================================
   SINGLE 게시글
   ============================================================ */
.single-layout { display: flex; flex-direction: column; gap: 32px; }
.single-main { min-width: 0; }
.single-sidebar { display: none; }

.article-header { margin-bottom: 20px; }
.article-cat { margin-bottom: 10px; display: inline-block; }
.article-title {
  font-size: 22px; font-weight: 800; color: var(--text);
  line-height: 1.4; margin-bottom: 14px;
}
.article-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px;
  font-size: 13px; color: var(--text-muted);
}
.article-meta span { display: flex; align-items: center; gap: 4px; }
.article-hero-img {
  border-radius: var(--radius); overflow: hidden;
  margin-bottom: 24px;
}
.article-hero-img img { width: 100%; height: auto; }

/* 본문 */
.article-body {
  font-size: 15px; line-height: 1.85; color: var(--text-mid);
}
.article-body h2 { font-size: 18px; font-weight: 700; color: var(--text); margin: 32px 0 12px; padding-left: 12px; border-left: 4px solid var(--primary); }
.article-body h3 { font-size: 16px; font-weight: 700; color: var(--text); margin: 24px 0 10px; }
.article-body p { margin-bottom: 16px; line-height: 1.9; word-break: keep-all; }
.article-body ul, .article-body ol { margin: 16px 0 16px 20px; }
.article-body li { margin-bottom: 8px; }
.article-body ul li { list-style: disc; }
.article-body ol li { list-style: decimal; }
.article-body a { color: var(--accent); text-decoration: underline; }
.article-body blockquote {
  margin: 24px 0; padding: 16px 20px;
  border-left: 4px solid var(--primary); background: var(--primary-pale);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic; color: var(--text);
}
.article-body table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 15px; }
.article-body th, .article-body td { padding: 10px 12px; border: 1px solid var(--border); text-align: left; font-size: 15px; }
.article-body th { background: var(--bg); font-weight: 700; }
.article-body img { border-radius: var(--radius-sm); margin: 16px auto; max-width: 100% !important; height: auto !important; }
.article-body .wp-block-table,
.article-body .table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.article-body .wp-block-image { margin-bottom: 48px; }
.wp-block-image img { max-width: 100% !important; height: auto !important; }

/* 태그 */
.article-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 24px 0; padding: 16px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.tags-label { font-size: 12px; color: var(--text-muted); font-weight: 600; }
.article-tag { display: inline-block; padding: 4px 12px; background: var(--bg); border: 1px solid var(--border); border-radius: 20px; font-size: 12px; color: var(--text-mid); transition: border-color var(--transition), color var(--transition); }
.article-tag:hover { border-color: var(--primary); color: var(--primary); }

/* 공유 버튼 */
.share-buttons { display: flex; align-items: center; gap: 10px; margin: 20px 0; }
.share-label { font-size: 13px; color: var(--text-muted); font-weight: 600; }
.share-btn { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 8px; border: 1.5px solid var(--border); color: var(--text-mid); background: var(--bg-card); transition: all var(--transition); }
.share-btn:hover { border-color: var(--primary); color: var(--primary); }
.share-fb:hover { background: #1877F2; border-color: #1877F2; color: #fff; }
.share-tw:hover { background: #1DA1F2; border-color: #1DA1F2; color: #fff; }

/* 이전/다음글 */
.post-adjacent-nav { display: grid; gap: 10px; margin: 28px 0; }
.adj-prev, .adj-next {
  display: flex; flex-direction: column; gap: 4px;
  padding: 14px 16px; background: var(--bg-card);
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  transition: border-color var(--transition), background var(--transition);
}
.adj-prev:hover, .adj-next:hover { border-color: var(--primary); background: var(--primary-pale); }
.adj-label { font-size: 11px; color: var(--text-faint); font-weight: 600; text-transform: uppercase; }
.adj-title { font-size: 13px; color: var(--text-mid); font-weight: 500; }

/* 관련 글 */
.related-posts { margin-top: 40px; padding-top: 32px; border-top: 2px solid var(--border); }

/* ============================================================
   ARCHIVE 페이지
   ============================================================ */
.page-wrap { padding: 24px 0 60px; }
.archive-header { margin-bottom: 24px; padding-bottom: 20px; border-bottom: 1px solid var(--border); }
.archive-header-inner { margin-bottom: 16px; }
.archive-type-label { display: inline-block; font-size: 11px; font-weight: 700; color: var(--primary); letter-spacing: 1px; text-transform: uppercase; margin-bottom: 6px; }
.archive-title { font-size: 22px; font-weight: 800; color: var(--text); margin-bottom: 8px; }
.archive-desc { font-size: 14px; color: var(--text-muted); }
.archive-meta { font-size: 12px; color: var(--text-faint); margin-top: 6px; }

/* 필터 탭 */
.archive-filter-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.filter-tab {
  padding: 6px 14px; border-radius: 20px; font-size: 12px; font-weight: 600;
  border: 1.5px solid var(--border); color: var(--text-mid); background: var(--bg-card);
  transition: all var(--transition);
}
.filter-tab:hover, .filter-tab.active { background: var(--primary); border-color: var(--primary); color: #fff; }

/* 툴바 */
.archive-toolbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.results-count { font-size: 13px; color: var(--text-muted); }
.sort-options { display: flex; gap: 4px; }
.sort-btn { padding: 5px 12px; font-size: 12px; border-radius: 6px; border: 1px solid var(--border); color: var(--text-mid); background: var(--bg-card); transition: all var(--transition); }
.sort-btn.active, .sort-btn:hover { background: var(--primary); border-color: var(--primary); color: #fff; }

/* 아카이브 레이아웃 */
.archive-layout { display: flex; flex-direction: column; gap: 24px; }
.archive-main { min-width: 0; }

/* 더보기 버튼 */
.load-more-wrap { text-align: center; margin-top: 24px; }
.load-more-btn {
  padding: 12px 32px; font-size: 14px; font-weight: 700;
  border: 2px solid var(--primary); color: var(--primary); background: #fff;
  border-radius: 8px; transition: all var(--transition);
}
.load-more-btn:hover { background: var(--primary); color: #fff; }
.load-more-btn:disabled { opacity: .5; cursor: not-allowed; }

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination-wrap { margin-top: 28px; }
.pagination-wrap .page-numbers {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 6px;
  list-style: none; padding: 0;
}
.pagination-wrap .page-numbers li a,
.pagination-wrap .page-numbers li span {
  display: flex; align-items: center; justify-content: center;
  min-width: 36px; height: 36px; padding: 0 10px;
  border-radius: var(--radius-sm); font-size: 14px; font-weight: 600;
  border: 1.5px solid var(--border); color: var(--text-mid); background: var(--bg-card);
  transition: all var(--transition);
}
.pagination-wrap .page-numbers li a:hover { border-color: var(--primary); color: var(--primary); }
.pagination-wrap .page-numbers li .current {
  background: var(--primary); border-color: var(--primary); color: #fff;
}

/* ============================================================
   BREADCRUMB
   ============================================================ */
.breadcrumb {
  margin-bottom: 16px; font-size: 12px; color: var(--text-faint);
}
.breadcrumb ol { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; list-style: none; }
.breadcrumb a { color: var(--text-muted); transition: color var(--transition); }
.breadcrumb a:hover { color: var(--primary); }
.bc-sep { color: var(--border); }
/* Rank Math breadcrumb 호환 */
.rank-math-breadcrumb { font-size: 12px; color: var(--text-faint); margin-bottom: 16px; }
.rank-math-breadcrumb a { color: var(--text-muted); }
.rank-math-breadcrumb a:hover { color: var(--primary); }

/* ============================================================
   검색 결과
   ============================================================ */
.search-results-header { margin-bottom: 24px; }
.search-title { font-size: 20px; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.search-count { font-size: 14px; color: var(--text-muted); margin-bottom: 14px; }
.search-form-wrap { max-width: 600px; margin: 14px 0; }
.search-related-cats { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 20px; font-size: 13px; color: var(--text-muted); }
.no-results { text-align: center; padding: 60px 20px; }
.no-results-icon { font-size: 48px; margin-bottom: 16px; }
.no-results h2 { font-size: 20px; font-weight: 700; margin-bottom: 8px; color: var(--text); }
.no-results p { color: var(--text-muted); margin-bottom: 20px; }
.no-results .search-form-inner { max-width: 500px; margin: 0 auto 20px; }
.no-results-suggestions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }

/* ============================================================
   광고 영역
   ============================================================ */
.ad-unit { margin: 24px 0; text-align: center; }
.ad-unit ins { display: block; }

/* ============================================================
   폼 (문의하기)
   ============================================================ */
.contact-page h1 { font-size: 24px; font-weight: 800; color: var(--text); margin-bottom: 8px; }
.contact-intro { color: var(--text-muted); margin-bottom: 28px; }
.contact-form { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; margin-bottom: 32px; }
.form-row { display: flex; flex-direction: column; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.form-group label { font-size: 13px; font-weight: 600; color: var(--text); }
.required { color: var(--danger); }
.form-group input, .form-group textarea, .form-group select {
  padding: 10px 14px; border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  font-size: 14px; color: var(--text); background: var(--bg-card);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(11,42,107,.1);
}
.form-group textarea { resize: vertical; }
.form-privacy label { display: flex; align-items: center; gap: 8px; font-size: 13px; cursor: pointer; }
.submit-btn {
  width: 100%; padding: 13px; background: var(--primary); color: #fff;
  border: none; border-radius: var(--radius-sm); font-size: 15px; font-weight: 700;
  transition: background var(--transition);
}
.submit-btn:hover { background: var(--primary-hover); }
.alert { padding: 12px 16px; border-radius: var(--radius-sm); margin-bottom: 16px; font-size: 14px; }
.alert-success { background: #D1FAE5; color: #065F46; border: 1px solid #A7F3D0; }
.alert-error { background: #FEE2E2; color: #991B1B; border: 1px solid #FECACA; }
.contact-info-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.contact-info-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 20px; text-align: center; }
.contact-info-card span { font-size: 28px; display: block; margin-bottom: 8px; }
.contact-info-card h3 { font-size: 14px; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.contact-info-card p { font-size: 13px; color: var(--text-muted); line-height: 1.5; }

/* 법적 페이지 */
.legal-header { margin-bottom: 28px; padding-bottom: 20px; border-bottom: 2px solid var(--border); }
.legal-header h1 { font-size: 24px; font-weight: 800; color: var(--text); margin-bottom: 6px; }
.legal-header p { font-size: 13px; color: var(--text-muted); }
.legal-body h2 { font-size: 17px; font-weight: 700; color: var(--text); margin: 28px 0 10px; }
.legal-body p { margin-bottom: 12px; color: var(--text-mid); line-height: 1.75; }
.legal-body ul { margin: 10px 0 10px 20px; }
.legal-body ul li { list-style: disc; margin-bottom: 6px; color: var(--text-mid); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: #1F2937; color: #9CA3AF;
  padding: 40px 0 24px; margin-top: 60px;
}
.footer-top { margin-bottom: 32px; }
.footer-brand { margin-bottom: 24px; }
.footer-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.footer-brand-name { font-size: 16px; font-weight: 800; color: #fff; letter-spacing: 1px; }
.footer-desc { font-size: 13px; color: #9CA3AF; line-height: 1.6; max-width: 340px; margin-bottom: 8px; }
.footer-disclaimer { font-size: 11px; color: #6B7280; line-height: 1.6; max-width: 340px; }
.footer-links-wrap { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.footer-link-group h4 { font-size: 12px; font-weight: 700; color: #E5E7EB; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 10px; }
.footer-link-group ul li { margin-bottom: 8px; }
.footer-link-group a { font-size: 13px; color: #9CA3AF; transition: color var(--transition); }
.footer-link-group a:hover { color: #fff; }
/* 사업자 정보 */
.footer-biz {
  padding: 16px 0;
  border-top: 1px solid #374151;
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.footer-biz-info {
  font-size: 12px;
  color: #9CA3AF;
  line-height: 1.8;
  margin-bottom: 6px;
}
.footer-biz-info a { color: #9CA3AF; text-decoration: underline; }
.footer-biz-info a:hover { color: #fff; }
.footer-biz-block { display: flex; flex-direction: column; gap: 4px; margin-bottom: 10px; }
.footer-biz-row { display: flex; align-items: baseline; gap: 6px; font-size: 12px; color: #9CA3AF; line-height: 1.8; }
.footer-biz-label { font-size: 11px; color: #6B7280; font-weight: 600; flex-shrink: 0; min-width: 80px; }
.footer-biz-val { color: #9CA3AF; }
.footer-biz-email { color: #9CA3AF; text-decoration: underline; }
.footer-biz-email:hover { color: #fff; }
.footer-biz-desc { font-size: 11px; color: #6B7280; line-height: 1.6; margin-top: 2px; }
.footer-disclaimer-main {
  font-size: 11px;
  color: #6B7280;
  line-height: 1.65;
  background: rgba(255,255,255,.04);
  border: 1px solid #374151;
  border-radius: 6px;
  padding: 10px 14px;
}

.footer-bottom { display: flex; flex-direction: column; gap: 10px; padding-top: 20px; border-top: 1px solid #374151; }
.footer-copy { font-size: 12px; color: #6B7280; }
.footer-legal-nav { display: flex; flex-wrap: wrap; gap: 14px; }
.footer-legal-nav a { font-size: 12px; color: #6B7280; transition: color var(--transition); }
.footer-legal-nav a:hover { color: #fff; }

/* ============================================================
   404
   ============================================================ */
.error-404-wrap { text-align: center; padding: 80px 20px; }
.error-icon { font-size: 80px; font-weight: 900; color: var(--border); margin-bottom: 16px; }
.error-404-wrap h1 { font-size: 22px; font-weight: 700; color: var(--text); margin-bottom: 10px; }
.error-404-wrap p { color: var(--text-muted); margin-bottom: 24px; }
.error-404-wrap .search-form-inner { max-width: 500px; margin: 0 auto 24px; }
.btn-primary-lg {
  display: inline-block; padding: 12px 28px;
  background: var(--primary); color: #fff;
  border-radius: var(--radius-sm); font-size: 14px; font-weight: 700;
  transition: background var(--transition);
}
.btn-primary-lg:hover { background: var(--primary-hover); }

/* ============================================================
   기타 공통
   ============================================================ */
.site-main { min-height: 60vh; }

/* ============================================================
   RESPONSIVE – 430px
   ============================================================ */
@media (min-width: 430px) {
  .service-links { grid-template-columns: repeat(3, 1fr); }
}

/* ============================================================
   RESPONSIVE – 768px (태블릿)
   ============================================================ */
@media (min-width: 768px) {
  :root { --header-h: 64px; }
  .container { padding: 0 24px; }

  /* 헤더 */
  .logo-tagline { display: block; }
  .hamburger { display: none; }
  .primary-nav { display: flex; align-items: center; }
  .header-right .hamburger { display: none; }

  /* 히어로 */
  .hero-section { padding: 64px 0 68px; }
  .hero-title { font-size: 32px; }
  .hero-sub { font-size: 15px; }
  .service-desc { display: block; }

  /* 홈 그리드 */
  .home-grid { display: grid; grid-template-columns: 1fr 300px; gap: 32px; align-items: start; }
  .home-sidebar { display: flex; flex-direction: column; }
  .card-grid-3 { grid-template-columns: repeat(2, 1fr); }
  .card-grid-4 { grid-template-columns: repeat(2, 1fr); }

  /* 아카이브 */
  .archive-layout { flex-direction: row; }
  .archive-main { flex: 1; min-width: 0; }
  .site-sidebar { width: 280px; flex-shrink: 0; }

  /* single */
  .single-layout { flex-direction: row; gap: 32px; }
  .single-main { flex: 1; }
  .single-sidebar { display: block; width: 280px; flex-shrink: 0; }
  .article-title { font-size: 26px; }

  /* 폼 */
  .form-row-2 { flex-direction: row; }
  .form-row-2 .form-group { flex: 1; margin-bottom: 0; }

  /* 푸터 */
  .footer-top { display: grid; grid-template-columns: 280px 1fr; gap: 40px; }
  .footer-brand { margin-bottom: 0; }
  .footer-links-wrap { grid-template-columns: repeat(3, 1fr); }
  .footer-bottom { flex-direction: row; justify-content: space-between; align-items: center; }

  /* 서비스 */
  .service-links { grid-template-columns: repeat(5, 1fr); }

  /* 포스트 인접 */
  .post-adjacent-nav { grid-template-columns: 1fr 1fr; }
}

/* ============================================================
   RESPONSIVE – 1024px (데스크톱)
   ============================================================ */
@media (min-width: 1024px) {
  .container { padding: 0 32px; }
  .hero-title { font-size: 36px; }
  .hero-sub { font-size: 16px; }

  .home-grid { grid-template-columns: 1fr 320px; gap: 40px; }
  .card-grid-3 { grid-template-columns: repeat(3, 1fr); }
  .card-grid-4 { grid-template-columns: repeat(4, 1fr); }

  .home-sidebar { display: flex; }
  .single-sidebar { width: 300px; }
  .site-sidebar { width: 300px; }

  .section-title { font-size: 19px; }
  .archive-title { font-size: 26px; }
}

/* ============================================================
   RESPONSIVE – 1440px (와이드)
   ============================================================ */
@media (min-width: 1440px) {
  :root { --container: 1280px; }
  .hero-title { font-size: 40px; }
  .home-grid { grid-template-columns: 1fr 340px; }
}

/* ============================================================
   작성자 정보 박스
   ============================================================ */
.author-box {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 22px 24px;
  margin: 28px 0;
}
.author-avatar { flex-shrink: 0; }
.author-avatar-img {
  width: 72px; height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border);
}
.author-info { flex: 1; min-width: 0; }
.author-name {
  font-size: 15px; font-weight: 700; color: var(--text);
  margin-bottom: 2px;
}
.author-role {
  font-size: 11px; font-weight: 600; color: var(--accent);
  letter-spacing: .5px; text-transform: uppercase;
  margin-bottom: 8px;
}
.author-bio {
  font-size: 13px; color: var(--text-muted);
  line-height: 1.7; margin: 0;
}
@media (max-width: 480px) {
  .author-box { flex-direction: column; }
  .author-avatar-img { width: 56px; height: 56px; }
}

/* ============================================================
   카테고리 소개 영역
   ============================================================ */
.cat-intro {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  margin: 20px 0 24px;
}
.cat-intro-desc {
  font-size: 14px; color: var(--text-mid);
  line-height: 1.8; margin-bottom: 16px;
}
.cat-intro-keywords {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 8px; margin-bottom: 20px;
}
.cat-kw-label {
  font-size: 11px; font-weight: 700; color: var(--text-faint);
  letter-spacing: .4px; text-transform: uppercase; margin-right: 4px;
}
.cat-kw-tag {
  font-size: 12px; color: var(--accent);
  background: var(--primary-light); border-radius: 20px;
  padding: 3px 10px; text-decoration: none;
  transition: all var(--transition);
}
.cat-kw-tag:hover { background: var(--accent); color: #fff; }
.cat-rec-label {
  font-size: 13px; font-weight: 700; color: var(--text); margin-bottom: 12px;
}
.cat-rec-list { display: flex; flex-direction: column; gap: 10px; }
.cat-rec-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; background: var(--bg);
  border-radius: 8px; text-decoration: none;
  border: 1px solid var(--border-light); transition: all var(--transition);
}
.cat-rec-item:hover { background: var(--primary-light); border-color: #c7d2fe; }
.cat-rec-thumb {
  width: 60px; height: 44px; border-radius: 6px;
  object-fit: cover; flex-shrink: 0;
}
.cat-rec-thumb-ph { background: linear-gradient(135deg,#e8edf5,#f0f4ff); }
.cat-rec-text { flex: 1; min-width: 0; }
.cat-rec-title {
  font-size: 13px; font-weight: 600; color: var(--text); line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.cat-rec-date { font-size: 11px; color: var(--text-faint); margin-top: 3px; }

/* ============================================================
   프린트
   ============================================================ */
@media (max-width: 767px) {
  .header-inner { min-height: 56px; align-items: center; }
  .site-logo-icon { width: 28px !important; height: 28px !important; }
  .logo-name { font-size: 16px !important; }
  .article-body { padding-left: 20px; padding-right: 20px; max-width: 100%; }
  .toc-box { max-height: 280px; overflow-y: auto; -webkit-overflow-scrolling: touch; }
  .article-body table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; white-space: nowrap; }
  .wp-block-image { margin-bottom: 48px !important; }
}

/* ===========================
   표 가로 스크롤
=========================== */
.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 24px 0;
}
.table-scroll table {
  min-width: 700px;
}
.table-scroll-hint {
  font-size: 12px;
  color: #6B7280;
  text-align: center;
  margin-bottom: 6px;
  letter-spacing: 0.02em;
}

/* ===========================
   푸터 사업자정보 재설계
=========================== */
.fbiz-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.fbiz-label {
  font-size: 11px;
  color: #6B7280;
  font-weight: 600;
  min-width: 90px;
  flex-shrink: 0;
}
.fbiz-val {
  font-size: 12px;
  color: #9CA3AF;
}
.fbiz-val a { color: #9CA3AF; text-decoration: underline; }
.fbiz-val a:hover { color: #fff; }
.fbiz-desc .fbiz-val { font-size: 11px; color: #6B7280; line-height: 1.6; }
.footer-disclaimer {
  font-size: 11px;
  color: #6B7280;
  background: rgba(255,255,255,0.04);
  padding: 10px 12px;
  border-radius: 6px;
  margin-top: 12px;
  line-height: 1.7;
}

@media print {
  .site-header, .site-footer, .sidebar-widget, .share-buttons,
  .post-adjacent-nav, .related-posts, .ad-unit, .hero-section { display: none !important; }
  .single-layout { display: block; }
  .article-body { font-size: 12pt; line-height: 1.6; }
}


/* ============================================================
   FEEDSHARE HOMEPAGE STYLES
   ============================================================ */

/* === HERO SECTION === */
.fs-hero {
  background: linear-gradient(135deg, #0d1f3c 0%, #1a3a6b 60%, #0d2a5c 100%);
  padding: 60px 0 50px;
  position: relative;
  overflow: hidden;
}
.fs-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255,255,255,0.04) 0%, transparent 70%);
  border-radius: 50%;
}
.fs-hero-inner {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 20px;
  text-align: center;
}
.fs-hero-title {
  font-size: 2.4rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 14px;
  line-height: 1.3;
  letter-spacing: -0.02em;
}
.fs-hero-desc {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.78);
  margin: 0 0 28px;
}
.fs-search-box {
  display: flex;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  margin-bottom: 20px;
}
.fs-search-box input[type="search"] {
  flex: 1;
  border: none;
  padding: 16px 20px;
  font-size: 0.95rem;
  outline: none;
  color: #333;
  background: transparent;
}
.fs-search-box input[type="search"]::placeholder { color: #aaa; }
.fs-search-box button {
  background: #1a3a6b;
  color: #fff;
  border: none;
  padding: 16px 32px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}
.fs-search-box button:hover { background: #0d2a5c; }
.fs-quick-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}
.fs-quick-tags a {
  background: rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.9);
  border: 1px solid rgba(255,255,255,0.2);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  text-decoration: none;
  transition: background 0.2s;
}
.fs-quick-tags a:hover { background: rgba(255,255,255,0.22); }

/* === MAIN LAYOUT === */
.fs-main-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 36px 20px;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 36px;
  align-items: start;
}
.fs-content { min-width: 0; }

/* === SECTION HEADERS === */
.fs-section { margin-bottom: 40px; }
.fs-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e8ecf0;
}
.fs-section-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #1a2840;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}
.fs-section-bar {
  display: inline-block;
  width: 4px;
  height: 18px;
  background: #1a3a6b;
  border-radius: 2px;
}
.fs-more-link {
  font-size: 0.85rem;
  color: #1a3a6b;
  text-decoration: none;
  font-weight: 500;
}
.fs-more-link:hover { text-decoration: underline; }

/* === CARD GRID === */
.fs-card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.fs-card {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: transform 0.2s, box-shadow 0.2s;
  background: #fff;
}
.fs-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}
.fs-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}
.fs-card-thumb {
  position: relative;
  height: 150px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 12px;
}
.fs-card-thumb img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.fs-card-cat-label {
  position: relative;
  z-index: 2;
  background: rgba(255,255,255,0.18);
  color: rgba(255,255,255,0.9);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 3px;
  border: 1px solid rgba(255,255,255,0.25);
  align-self: flex-start;
}
.fs-card-title-bg {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 32px 12px 12px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #fff;
  line-height: 1.4;
  background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, transparent 100%);
  z-index: 1;
}
.fs-new-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #e74c3c;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 3px;
  z-index: 3;
  letter-spacing: 0.03em;
}
.fs-card-body {
  padding: 12px 14px 14px;
}
.fs-card-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: #1a2840;
  line-height: 1.45;
  margin: 0 0 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.fs-card-excerpt {
  font-size: 0.75rem;
  color: #666;
  line-height: 1.5;
  margin: 0 0 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.fs-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.72rem;
  color: #999;
}
.fs-card-views { color: #666; }

/* === POPULAR SEARCHES === */
.fs-popular-section { margin-top: 10px; }
.fs-popular-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid #e8ecf0;
  border-radius: 8px;
  overflow: hidden;
}
.fs-popular-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  border-bottom: 1px solid #f0f3f6;
  transition: background 0.15s;
}
.fs-popular-item:last-child { border-bottom: none; }
.fs-popular-item:hover { background: #f8f9fb; }
.fs-popular-rank {
  width: 22px;
  height: 22px;
  background: #1a3a6b;
  color: #fff;
  border-radius: 50%;
  font-size: 0.72rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.fs-popular-title {
  flex: 1;
  font-size: 0.88rem;
  color: #2a3a4a;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fs-popular-title:hover { color: #1a3a6b; }
.fs-popular-views { font-size: 0.75rem; color: #999; flex-shrink: 0; }

/* === SIDEBAR === */
.fs-sidebar { position: sticky; top: 80px; }
.fs-widget {
  background: #fff;
  border: 1px solid #e8ecf0;
  border-radius: 8px;
  padding: 18px;
  margin-bottom: 20px;
}
.fs-widget-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.fs-widget-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #1a2840;
  margin: 0 0 14px;
}
.fs-widget-header .fs-widget-title { margin-bottom: 0; }
.fs-widget-more {
  font-size: 0.8rem;
  color: #1a3a6b;
  text-decoration: none;
}
.fs-widget-more:hover { text-decoration: underline; }

/* Category Grid */
.fs-cat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.fs-cat-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 10px;
  border: 1px solid #e8ecf0;
  border-radius: 6px;
  text-decoration: none;
  color: #2a3a4a;
  font-size: 0.82rem;
  font-weight: 500;
  transition: all 0.15s;
}
.fs-cat-item:hover {
  background: #f0f4ff;
  border-color: #1a3a6b;
  color: #1a3a6b;
}
.fs-cat-icon { font-size: 1rem; }
.fs-cat-name { font-size: 0.8rem; }

/* Notice List */
.fs-notice-list { list-style: none; margin: 0; padding: 0; }
.fs-notice-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 0;
  border-bottom: 1px solid #f0f3f6;
  gap: 8px;
}
.fs-notice-item:last-child { border-bottom: none; }
.fs-notice-item a {
  font-size: 0.82rem;
  color: #2a3a4a;
  text-decoration: none;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fs-notice-item a:hover { color: #1a3a6b; }
.fs-notice-date { font-size: 0.72rem; color: #999; flex-shrink: 0; }

/* CTA Widget */
.fs-widget-cta {
  background: linear-gradient(135deg, #f0f4ff, #e8f0ff);
  border-color: #c5d5f0;
}
.fs-widget-cta .fs-widget-title { color: #1a3a6b; }
.fs-widget-desc { font-size: 0.82rem; color: #4a5a6a; margin: 0 0 14px; line-height: 1.5; }
.fs-cta-btn {
  display: inline-block;
  background: #1a3a6b;
  color: #fff;
  padding: 10px 18px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s;
}
.fs-cta-btn:hover { background: #0d2a5c; }

/* === RESPONSIVE === */
@media (max-width: 1024px) {
  .fs-main-wrap { grid-template-columns: 1fr; }
  .fs-sidebar { position: static; }
  .fs-card-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .fs-hero { padding: 36px 0 30px; }
  .fs-hero-title { font-size: 1.5rem; }
  .fs-hero-desc { font-size: 0.9rem; }
  .fs-search-box input[type="search"] { padding: 12px 14px; font-size: 0.85rem; }
  .fs-search-box button { padding: 12px 18px; }
  .fs-card-grid { grid-template-columns: 1fr; }
  .fs-main-wrap { padding: 20px 16px; }
}

/* ============================================================
   ARCHIVE 추가 섹션
   ============================================================ */
.archive-section-title{font-size:18px;font-weight:700;color:#0d1f3c;margin:0 0 16px;padding-left:14px;border-left:4px solid #2563eb;line-height:1.3}
.archive-popular{margin:36px 0;padding:24px;background:#f8fafc;border-radius:10px;border:1px solid #e2e8f0}
.archive-popular-list{list-style:none;padding:0;margin:0}
.archive-popular-item{display:flex;align-items:center;gap:12px;padding:10px 0;border-bottom:1px solid #e5e7eb}
.archive-popular-item:last-child{border-bottom:none}
.apw-rank{min-width:24px;height:24px;border-radius:50%;background:#e5e7eb;color:#374151;font-size:13px;font-weight:700;display:flex;align-items:center;justify-content:center;flex-shrink:0}
.apw-rank.rank-top{background:#2563eb;color:#fff}
.apw-content{flex:1;min-width:0}
.apw-title{font-size:14px;font-weight:600;color:#1e293b;text-decoration:none;display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden}
.apw-title:hover{color:#2563eb}
.apw-date{font-size:11px;color:#9ca3af;margin-top:2px;display:block}
.apw-thumb{width:60px;height:45px;border-radius:6px;object-fit:cover;flex-shrink:0}
.archive-related-cats{margin:32px 0}
.related-cats-grid{display:flex;flex-wrap:wrap;gap:10px}
.related-cat-item{display:inline-flex;align-items:center;gap:6px;padding:10px 16px;border-radius:8px;text-decoration:none;font-size:14px;font-weight:600;transition:all .2s}
.related-cat-item:hover{transform:translateY(-2px);box-shadow:0 4px 12px rgba(0,0,0,.12)}
.rci-count{font-size:11px;opacity:.7;font-weight:400}
