:root {
  --bg-page: #f8fafc;
  --bg-card: #ffffff;
  --bg-subtle: #f1f5f9;
  --text-main: #0f172a;
  --text-body: #334155;
  --text-muted: #64748b;
  --border-color: #e2e8f0;
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-soft: #eff6ff;
  --accent: #ef4444;
  --accent-soft: #fef2f2;
  --emerald: #059669;
  --emerald-soft: #ecfdf5;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --shadow-card: 0 4px 20px -2px rgba(15, 23, 42, 0.06);
  --shadow-hover: 0 14px 30px -8px rgba(37, 99, 235, 0.16);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Pretendard Variable', 'Pretendard', -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Noto Sans KR', sans-serif;
  background: var(--bg-page);
  color: var(--text-main);
  line-height: 1.65;
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Header */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
}

.nav-container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px;
}

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 64px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.nav-logo-box {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, #2563eb, #1e40af);
  color: #fff;
  font-weight: 900;
  font-size: 16px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.nav-brand-title {
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.nav-brand-sub {
  font-size: 0.76rem;
  color: var(--text-muted);
  display: none;
}

@media (min-width: 640px) {
  .nav-brand-sub {
    display: inline;
  }
}

.nav-links {
  display: none;
  align-items: center;
  gap: 20px;
}

@media (min-width: 820px) {
  .nav-links {
    display: flex;
  }
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-body);
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary);
}

.mobile-menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  background: #fff;
  cursor: pointer;
}

@media (min-width: 820px) {
  .mobile-menu-toggle {
    display: none;
  }
}

.mobile-menu {
  display: none;
  padding: 10px 16px 16px;
  border-top: 1px solid var(--border-color);
  background: #fff;
}

.mobile-menu.open {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mobile-nav-link {
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-body);
}

.mobile-nav-link.active {
  background: var(--primary-soft);
  color: var(--primary);
}

/* Hub Hero */
.hub-hero {
  background: linear-gradient(155deg, #0f172a 0%, #1e3a8a 100%);
  color: #fff;
  padding: 40px 16px 52px;
  text-align: center;
}

.hub-hero-inner {
  max-width: 840px;
  margin: 0 auto;
}

.hub-hero-badge {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 14px;
}

.hub-hero-title {
  font-size: clamp(1.55rem, 4vw, 2.35rem);
  font-weight: 900;
  line-height: 1.28;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}

.hub-hero-desc {
  font-size: 0.96rem;
  color: rgba(255, 255, 255, 0.85);
  max-width: 640px;
  margin: 0 auto 22px;
}

.hub-search-box {
  position: relative;
  max-width: 540px;
  margin: 0 auto;
}

.hub-search-input {
  width: 100%;
  height: 48px;
  border-radius: 999px;
  border: 0;
  padding: 0 46px 0 20px;
  font-family: inherit;
  font-size: 0.94rem;
  outline: none;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
}

.hub-search-icon {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  display: inline-flex;
}

/* Main Wrappers */
.featured-wrap,
.hub-main,
.article-wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px;
}

.featured-wrap {
  margin-top: -26px;
  margin-bottom: 24px;
}

.featured-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-card);
}

.featured-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.badge-hot {
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 800;
}

.badge-cat {
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 0.76rem;
  font-weight: 700;
}

.badge-metric {
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--emerald-soft);
  color: var(--emerald);
  font-size: 0.76rem;
  font-weight: 700;
}

.card-date {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
}

.featured-title {
  font-size: clamp(1.25rem, 2.8vw, 1.65rem);
  font-weight: 900;
  line-height: 1.32;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.featured-title a:hover {
  color: var(--primary);
}

.featured-summary {
  color: var(--text-body);
  font-size: 0.95rem;
  margin-bottom: 16px;
}

/* Filter Bar & Cards Grid */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 20px 0;
}

.cat-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cat-btn {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  color: var(--text-body);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.cat-btn:hover,
.cat-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.count-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
}

.issues-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 18px;
  margin-bottom: 30px;
}

.issue-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  box-shadow: var(--shadow-card);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.issue-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.card-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
}

.card-title {
  font-size: 1.08rem;
  font-weight: 800;
  line-height: 1.38;
  margin-bottom: 8px;
}

.card-title a:hover {
  color: var(--primary);
}

.card-summary {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid var(--border-color);
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--primary);
}

/* Article Page */
.article-wrap {
  max-width: 820px;
  margin: 24px auto 40px;
}

.article-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  box-shadow: var(--shadow-card);
}

@media (min-width: 640px) {
  .article-card {
    padding: 36px;
  }
}

.breadcrumb {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.breadcrumb a:hover {
  color: var(--primary);
}

.article-title {
  font-size: clamp(1.45rem, 3.6vw, 2rem);
  font-weight: 900;
  line-height: 1.3;
  letter-spacing: -0.025em;
  margin: 10px 0 12px;
}

.article-meta-line {
  font-size: 0.84rem;
  color: var(--text-muted);
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 22px;
}

.article-body p {
  font-size: 1rem;
  color: var(--text-body);
  line-height: 1.78;
  margin-bottom: 14px;
}

.article-body h2 {
  font-size: 1.24rem;
  font-weight: 800;
  color: var(--text-main);
  margin: 28px 0 12px;
  padding-left: 12px;
  border-left: 4px solid var(--primary);
}

.article-body h3 {
  font-size: 1.06rem;
  font-weight: 800;
  margin: 18px 0 8px;
}

.article-body ul,
.article-body ol {
  padding-left: 20px;
  margin-bottom: 16px;
  color: var(--text-body);
}

.article-body li {
  margin-bottom: 7px;
  line-height: 1.68;
}

/* Tables */
.geo-table-wrapper {
  overflow-x: auto;
  margin: 16px 0 22px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  min-width: 480px;
}

th, td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

th {
  background: var(--bg-subtle);
  font-weight: 800;
  color: var(--text-main);
  white-space: nowrap;
}

tr:last-child td {
  border-bottom: 0;
}

/* Callout & Checklist Boxes */
.geo-summary-box {
  background: linear-gradient(135deg, var(--primary-soft) 0%, #fff 100%);
  border: 1px solid #bfdbfe;
  border-left: 4px solid var(--primary);
  border-radius: var(--radius-md);
  padding: 18px;
  margin: 18px 0 24px;
}

.geo-summary-box h3 {
  margin-top: 0;
  color: var(--primary-dark);
}

.checklist-box {
  background: var(--emerald-soft);
  border: 1px solid #a7f3d0;
  border-radius: var(--radius-md);
  padding: 18px 20px;
  margin: 20px 0;
}

.source-callout {
  background: var(--bg-subtle);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-size: 0.84rem;
  color: var(--text-muted);
  margin: 22px 0;
}

/* Title Candidates Meta Box (SEO) */
.title-variants-box {
  margin-top: 20px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: var(--bg-subtle);
  font-size: 0.83rem;
  color: var(--text-muted);
}

/* FAQ */
.geo-faq-section {
  margin-top: 26px;
}

.geo-faq-title {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.faq-item {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 10px;
  background: #fff;
}

.faq-question {
  font-weight: 800;
  font-size: 0.96rem;
  color: var(--text-main);
  margin-bottom: 6px;
}

.faq-answer {
  font-size: 0.9rem;
  color: var(--text-body);
  line-height: 1.65;
}

/* Buttons */
.btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 10px;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  transition: background 0.15s ease;
}

.btn-cta:hover {
  background: var(--primary-dark);
}

/* AdSense & Promo Banners */
.ad-slot-wrap {
  margin: 24px auto;
  padding: 10px 0;
}

.ad-slot-wrap:has(ins[data-ad-status="unfilled"]) {
  display: none;
}

ins.adsbygoogle[data-ad-status="unfilled"] {
  display: none !important;
}

.ad-slot {
  min-height: 98px;
  width: 100%;
  border-radius: var(--radius-md);
  background: var(--bg-subtle);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.72rem;
  padding: 10px;
  overflow: hidden;
}

.promo-banner-wrap {
  margin: 22px 0;
  width: 100%;
}

.promo-banner-link {
  display: block;
  width: 100%;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-card);
}

.promo-banner-img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
}

/* Footer */
.site-footer {
  background: #0f172a;
  color: #cbd5e1;
  padding: 32px 16px;
  font-size: 0.82rem;
  margin-top: 36px;
}

.footer-container {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.footer-links a:hover {
  color: #fff;
}
