@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.min.css');

:root {
  --bg: #ffffff;
  --surface: #f8fafc;
  --surface-alt: #f1f5f9;
  --text: #0f172a;
  --text-body: #334155;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --primary: #0284c7;
  --primary-dark: #0369a1;
  --primary-soft: #e0f2fe;
  --accent: #f59e0b;
  --accent-soft: #fef3c7;
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 10px 30px -10px rgba(15, 23, 42, 0.1);
  --max-w: 1160px;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Noto Sans KR', 'Malgun Gothic', sans-serif;
  color: var(--text-body);
  background: var(--bg);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; transition: color 0.18s ease; }
img { max-width: 100%; height: auto; display: block; }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

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

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--text);
  letter-spacing: -0.02em;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, #0284c7, #0f172a);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 900;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.main-nav a {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--text-body);
}

.main-nav a:hover, .main-nav a.active {
  background: var(--surface-alt);
  color: var(--primary);
}

/* Home Hero */
.hero-section {
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  border-bottom: 1px solid var(--border);
  padding: 52px 0 44px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 36px;
  align-items: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary-dark);
  font-size: 0.84rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.hero-title {
  font-size: 2.35rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1.26;
  letter-spacing: -0.03em;
  margin-bottom: 14px;
}

.hero-desc {
  font-size: 1.06rem;
  color: var(--text-muted);
  margin-bottom: 24px;
  max-width: 540px;
}

.search-bar {
  display: flex;
  align-items: center;
  max-width: 460px;
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 6px 8px 6px 16px;
  box-shadow: var(--shadow-sm);
}

.search-bar input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--text);
}

.search-bar button {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 9px 18px;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
}

.hero-feature-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  background: #0f172a;
}

.hero-feature-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  opacity: 0.88;
  transition: transform 0.35s ease;
}

.hero-feature-card:hover img { transform: scale(1.03); }

.hero-feature-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15,23,42,0.05) 25%, rgba(15,23,42,0.88) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  color: #fff;
}

.hero-feature-overlay .badge {
  align-self: flex-start;
  background: var(--accent);
  color: #111827;
  font-size: 0.76rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 6px;
  margin-bottom: 8px;
}

.hero-feature-overlay h2 {
  font-size: 1.28rem;
  line-height: 1.38;
  font-weight: 800;
  letter-spacing: -0.02em;
}

/* Category Pills Section */
.cat-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 36px 0 44px;
}

.cat-box {
  padding: 20px;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: all 0.2s ease;
}

.cat-box:hover {
  border-color: var(--primary);
  background: #fff;
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.cat-box h3 {
  font-size: 1.04rem;
  color: var(--text);
  font-weight: 800;
  margin-bottom: 6px;
}

.cat-box p {
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Post Cards Grid */
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 22px;
}

.section-head h2 {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  margin-bottom: 60px;
}

.post-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.post-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.post-card-thumb {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--surface-alt);
}

.post-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.post-card:hover .post-card-thumb img { transform: scale(1.04); }

.post-card-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.post-meta-top {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  margin-bottom: 10px;
}

.cat-pill {
  background: var(--primary-soft);
  color: var(--primary-dark);
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

.post-date { color: var(--text-muted); }

.post-card-title {
  font-size: 1.16rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1.42;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.post-card-excerpt {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.62;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Single Article Layout (Google SEO + Sticky TOC) */
.article-wrap {
  display: grid;
  grid-template-columns: minmax(0, 760px) 280px;
  gap: 48px;
  justify-content: space-between;
  padding: 44px 0 72px;
}

.breadcrumb {
  font-size: 0.86rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

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

.article-header h1 {
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1.32;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.article-byline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  font-size: 0.9rem;
  color: var(--text-muted);
  padding-bottom: 22px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 28px;
}

.article-hero {
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 28px;
  border: 1px solid var(--border);
}

.article-hero figcaption {
  background: var(--surface);
  padding: 10px 16px;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
}

/* Key Summary Box (Answer-First for Google AI Overviews) */
.key-takeaways {
  background: var(--surface);
  border-left: 4px solid var(--primary);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 22px 24px;
  margin-bottom: 32px;
}

.key-takeaways h2 {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--primary-dark);
  margin-bottom: 10px;
}

.key-takeaways ul { padding-left: 20px; }
.key-takeaways li { margin-bottom: 6px; font-size: 0.96rem; color: var(--text); }

/* Article Prose */
.prose { font-size: 1.05rem; line-height: 1.85; color: var(--text-body); }

.prose h2 {
  font-size: 1.52rem;
  font-weight: 800;
  color: var(--text);
  margin: 46px 0 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--surface-alt);
  letter-spacing: -0.02em;
  scroll-margin-top: 90px;
}

.prose h3 {
  font-size: 1.22rem;
  font-weight: 700;
  color: var(--text);
  margin: 30px 0 12px;
  scroll-margin-top: 90px;
}

.prose p { margin-bottom: 20px; }

.prose ul, .prose ol {
  margin: 0 0 22px 22px;
}

.prose li { margin-bottom: 8px; }

.prose strong { color: var(--text); font-weight: 700; }

.prose mark {
  background: var(--accent-soft);
  color: var(--text);
  padding: 1px 5px;
  border-radius: 4px;
  font-weight: 700;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0 28px;
  font-size: 0.95rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.prose th {
  background: var(--surface-alt);
  color: var(--text);
  font-weight: 800;
  text-align: left;
  padding: 13px 16px;
  border-bottom: 1px solid var(--border);
}

.prose td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.prose tr:last-child td { border-bottom: none; }

.callout-tip {
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  border-radius: var(--radius-md);
  padding: 18px 20px;
  margin: 24px 0;
  font-size: 0.96rem;
}

.callout-warn {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: var(--radius-md);
  padding: 18px 20px;
  margin: 24px 0;
  font-size: 0.96rem;
}

/* FAQ Accordion / Section */
.faq-section {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  margin-bottom: 14px;
}

.faq-item h3 {
  font-size: 1.04rem;
  font-weight: 800;
  color: var(--text);
  margin: 0 0 8px 0;
}

.faq-item p { margin: 0; font-size: 0.95rem; color: var(--text-body); }

/* Author Box (E-E-A-T Signal for Google Review) */
.author-card {
  display: flex;
  gap: 18px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-top: 44px;
}

.author-avatar {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0284c7, #0f172a);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.author-info h4 { font-size: 1.05rem; color: var(--text); margin-bottom: 4px; }
.author-info p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.55; }

/* Sticky Sidebar TOC */
.article-sidebar { position: relative; }

.toc-box {
  position: sticky;
  top: 94px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
}

.toc-title {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.toc-list { list-style: none; }
.toc-list li { margin-bottom: 8px; }
.toc-list a {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.45;
  display: block;
}
.toc-list a:hover { color: var(--primary); font-weight: 600; }

/* Static Pages (About, Privacy, Contact, Terms) */
.static-page {
  max-width: 800px;
  margin: 0 auto;
  padding: 52px 0 80px;
}

.static-page h1 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 12px;
}

.static-page .lead {
  color: var(--text-muted);
  margin-bottom: 32px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

/* Footer (Mandatory Policy Links for Google AdSense Approval) */
.site-footer {
  background: #0f172a;
  color: #cbd5e1;
  padding: 52px 0 40px;
  margin-top: 40px;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand h3 { color: #fff; font-size: 1.2rem; margin-bottom: 8px; }
.footer-brand p { font-size: 0.9rem; color: #94a3b8; max-width: 420px; }

.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  align-items: center;
}

.footer-links a {
  font-size: 0.92rem;
  color: #e2e8f0;
  font-weight: 600;
}

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

.footer-bottom {
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.84rem;
  color: #94a3b8;
}

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .cat-strip { grid-template-columns: repeat(2, 1fr); }
  .post-grid { grid-template-columns: repeat(2, 1fr); }
  .article-wrap { grid-template-columns: 1fr; }
  .article-sidebar { display: none; }
}

@media (max-width: 640px) {
  .hero-title { font-size: 1.75rem; }
  .cat-strip { grid-template-columns: 1fr; }
  .post-grid { grid-template-columns: 1fr; }
  .article-header h1 { font-size: 1.6rem; }
  .header-inner { height: auto; padding: 14px 0; flex-direction: column; align-items: flex-start; }
}


/* Country Grid & Region Filter Pills */
.country-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  margin: 34px 0 42px;
}

.country-box {
  padding: 18px 16px;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.country-box:hover {
  border-color: var(--primary);
  background: #fff;
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.country-box-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.country-box h3 {
  font-size: 1.04rem;
  color: var(--text);
  font-weight: 800;
}

.country-count {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--primary-dark);
  background: var(--primary-soft);
  padding: 2px 8px;
  border-radius: 999px;
  white-space: nowrap;
  flex-shrink: 0;
}

.country-regions {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 26px;
}

.filter-tab {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-body);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.16s ease;
}

.filter-tab:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.filter-tab.active {
  background: var(--text);
  border-color: var(--text);
  color: #fff;
}

.region-pill {
  background: var(--surface-alt);
  color: var(--text-body);
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  white-space: nowrap;
}

@media (max-width: 1024px) {
  .country-strip { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  .country-strip { grid-template-columns: repeat(2, 1fr); }
}


/* Bilingual Switcher & 6-Country Responsive Strip */
.country-strip {
  grid-template-columns: repeat(6, 1fr);
}
@media (max-width: 1120px) {
  .country-strip { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  .country-strip { grid-template-columns: repeat(2, 1fr); }
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px;
  font-size: 0.8rem;
  font-weight: 800;
}

.lang-switch a {
  padding: 4px 10px;
  border-radius: 999px;
  color: var(--text-muted);
}

.lang-switch a.active {
  background: var(--text);
  color: #fff;
}


/* 11-Country Header & Responsive Country Strip Polish */
.header-inner {
  height: auto;
  min-height: 68px;
  padding: 10px 0;
}
.main-nav {
  gap: 2px;
}
.main-nav a {
  padding: 6px 9px;
  font-size: 0.86rem;
  white-space: nowrap;
}
.country-strip {
  grid-template-columns: repeat(auto-fill, minmax(176px, 1fr));
}
@media (max-width: 1120px) {
  .country-strip { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  .country-strip { grid-template-columns: repeat(2, 1fr); }
}
