/* ==========================================================================
   🎨 Cogrow Golden Templates Editorial CSS
   @see Cogrow Design Center Editorial Magazine Standard
   @see Cogrow/builder/templates/abc/html/p-magazine-detail.html
   @see Cogrow/builder/docs/DESIGN-CENTER-GOLDEN-TEMPLATES-2026-09-05.md
   ========================================================================== */

@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/pretendardvariable-dynamic-subset.min.css");
@import url("https://fonts.googleapis.com/css2?family=Nanum+Myeongjo:wght@700;800&family=Plus+Jakarta+Sans:wght@600;700;800;900&display=swap");

:root {
  --bg: #FFFFFF;
  --bg-canvas: #fbfbfa;
  --surface: #F8F9FA;
  --border: #E9ECEF;
  --border-subtle: #E4E4E7;
  --border-bold: #000000;
  
  --primary: #000000;
  --accent: #2563EB;
  --accent-blue: #2563EB;
  --accent-blue-light: #EFF6FF;
  --accent-emerald: #059669;
  --accent-emerald-light: #ECFDF5;
  
  --text: #111827;
  --text-primary: #111827;
  --text-secondary: #4B5563;
  --text-muted: #6B7280;
  --text-dim: #9CA3AF;
  
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.06), 0 2px 4px -2px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 12px 24px -4px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 16px 28px -6px rgba(0, 0, 0, 0.12);
  
  --font-sans: 'Pretendard Variable', -apple-system, BlinkMacSystemFont, system-ui, Roboto, sans-serif;
  --font-display: 'Plus Jakarta Sans', 'Pretendard Variable', sans-serif;
  --font-serif: 'Nanum Myeongjo', serif;
}

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

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1.1875rem;
  line-height: 1.9;
  letter-spacing: -0.025em;
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  word-break: keep-all;
  overflow-wrap: break-word;
  text-wrap: balance;
}

p {
  line-height: 1.92;
  letter-spacing: -0.025em;
  word-break: keep-all;
  overflow-wrap: break-word;
  text-wrap: pretty;
}

section[id],
div[id],
h2[id],
h3[id],
[id] {
  scroll-margin-top: 110px;
}

a { color: inherit; text-decoration: none; transition: color 0.15s ease; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 1.5rem; }
.wrap-narrow { max-width: 900px; margin: 0 auto; padding: 0 1.5rem; }

/* ==========================================================================
   🏛️ 1. Sticky Header & Navigation
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 2px solid #000000;
  padding: 1rem 0;
}

.site-header .bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-symbol {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 0.95rem;
  letter-spacing: -0.04em;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18), inset 0 1px 1px rgba(255, 255, 255, 0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  flex-shrink: 0;
}

.brand:hover .brand-symbol {
  transform: translateY(-1px) scale(1.02);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25), inset 0 1px 1px rgba(255, 255, 255, 0.3);
}

/* KTI Symbol: Deep Obsidian with Royal Blue Live Signal Accent */
.kti-symbol {
  background: linear-gradient(135deg, #18181b 0%, #09090b 100%);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.kti-symbol .symbol-dot {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 6px;
  height: 6px;
  background: #2563eb;
  border-radius: 50%;
  box-shadow: 0 0 8px #3b82f6;
}

/* LK Symbol: Midnight Slate Navy with Emerald Life Accent */
.lk-symbol {
  background: linear-gradient(135deg, #0f172a 0%, #020617 100%);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.lk-symbol .symbol-dot {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 6px;
  height: 6px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 8px #34d399;
}

/* Cogrow Symbol: Deep Titanium Slate with Electric Indigo Accent */
.cogrow-symbol {
  background: linear-gradient(135deg, #111827 0%, #030712 100%);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.cogrow-symbol .symbol-dot {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 6px;
  height: 6px;
  background: #6366f1;
  border-radius: 50%;
  box-shadow: 0 0 8px #818cf8;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-title {
  font-size: 1.25rem;
  font-weight: 900;
  letter-spacing: -0.035em;
  font-family: var(--font-display);
  color: #000000;
}

.brand-sub {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #6b7280;
  margin-top: 2px;
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-pill {
  font-size: 0.92rem;
  font-weight: 700;
  color: #4b5563;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  transition: all 0.15s ease;
}

.nav-pill:hover {
  color: #000000;
  background: #f3f4f6;
}

.nav-pill.active {
  color: #ffffff;
  background: #000000;
}

/* ==========================================================================
   🖼️ 2. Hero Spotlight Magazine Section
   ========================================================================== */
.dive-hero {
  background: linear-gradient(135deg, #111827 0%, #1f2937 100%);
  color: #ffffff;
  border-radius: var(--radius-md);
  padding: 3.5rem 2.5rem;
  margin: 2rem 0 3rem;
  box-shadow: var(--shadow-md);
  position: relative;
  isolation: isolate;
}

.dive-hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 800;
  color: #93c5fd;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1rem;
}

.dive-hero h1 {
  font-size: clamp(1.8rem, 3.2vw, 2.5rem);
  font-weight: 900;
  line-height: 1.25;
  margin-bottom: 1rem;
  letter-spacing: -0.03em;
}

.dive-hero p {
  color: #9ca3af;
  font-size: 1.05rem;
  line-height: 1.65;
  margin-bottom: 1.75rem;
  max-width: 720px;
}

.btn-hero-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  color: #000000;
  font-weight: 800;
  font-size: 0.95rem;
  padding: 10px 20px;
  border-radius: 9999px;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.btn-hero-action:hover {
  background: #f3f4f6;
  transform: translateY(-1px);
}

.dive-hero-stats {
  display: flex;
  gap: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.hero-stat-item {
  display: flex;
  flex-direction: column;
}

.hero-stat-val {
  font-size: 1.3rem;
  font-weight: 900;
  color: #ffffff;
}

.hero-stat-lbl {
  font-size: 0.75rem;
  color: #9ca3af;
  font-weight: 700;
}

/* ==========================================================================
   🎴 3. 3-Column Card Deck Grid System
   ========================================================================== */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin: 3rem 0 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid #000000;
}

.section-title {
  font-size: 1.45rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: #000000;
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-subtitle {
  font-size: 0.88rem;
  color: var(--text-muted);
  font-weight: 600;
}

.dive-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin: 1.5rem 0 3.5rem;
}

@media (max-width: 960px) { .dive-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .dive-grid { grid-template-columns: 1fr; } }

.dive-card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.5rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.dive-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: #000000;
}

.dive-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.dive-kicker {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.dive-date {
  font-size: 0.8rem;
  color: #9ca3af;
  font-weight: 600;
}

.dive-card-title {
  font-size: 1.18rem;
  font-weight: 800;
  line-height: 1.35;
  margin-bottom: 0.75rem;
  color: #111827;
}

.dive-card-summary {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
  flex-grow: 1;
}

.dive-card-footer {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid #f3f4f6;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
}

.badge-verified {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--accent-emerald);
  background: var(--accent-emerald-light);
  padding: 3px 9px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
}

.dive-card-action {
  font-weight: 800;
  color: #000000;
}

/* ==========================================================================
   📂 4. Category Shelves
   ========================================================================== */
.category-shelf {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  margin: 1.5rem 0 3rem;
}

.shelf-card {
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.shelf-card:hover {
  background: #ffffff;
  border-color: #000000;
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.shelf-kicker {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 6px;
  display: block;
}

.shelf-name {
  font-size: 1.15rem;
  font-weight: 800;
  color: #111827;
  margin-bottom: 6px;
}

.shelf-blurb {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ==========================================================================
   📖 5. Article Detail (p-magazine-detail & Writer 5-Stage Bible)
   ========================================================================== */
.post-article {
  padding: 3.5rem 0 7rem;
  position: relative;
  isolation: isolate;
}

.article-header,
.art-head {
  padding: 1.5rem 0 2.75rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 3rem;
  isolation: isolate;
}

.article-kicker {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 1.15rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.kicker-sep,
.meta-sep {
  color: #cbd5e1;
  font-weight: 400;
}

.art-cat {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 0.85rem;
  letter-spacing: 0.05em;
}

.article-header h1,
.art-title {
  font-size: clamp(2.3rem, 4vw, 3.25rem);
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: -0.035em;
  margin-bottom: 1.75rem;
  color: #0f172a;
  word-break: keep-all;
  overflow-wrap: break-word;
  text-wrap: balance;
}

.article-header .meta,
.art-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.15rem;
  font-size: 1.0rem;
  font-weight: 700;
  color: #475569;
  margin-bottom: 2rem;
}

.section-idx {
  display: inline-block;
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--accent);
  margin-right: 12px;
  font-family: var(--font-display);
}

.article-header .lede,
.art-lead {
  font-size: 1.28rem;
  font-weight: 500;
  color: #334155;
  line-height: 1.85;
  margin-bottom: 2.25rem;
  word-break: keep-all;
  overflow-wrap: break-word;
  text-wrap: pretty;
}

/* 3줄 요약 하이라이트 박스 (Key Takeaways) */
.article-highlights {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-left: 5px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 2rem 2.25rem;
  margin: 2.5rem 0;
  box-shadow: var(--shadow-sm);
  isolation: isolate;
}

.highlights-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 1.15rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.article-highlights ul,
.highlights-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.article-highlights li,
.highlights-list li {
  font-size: 1.08rem;
  color: #334155;
  line-height: 1.75;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  word-break: keep-all;
  overflow-wrap: break-word;
  text-wrap: pretty;
}

.article-highlights li::before,
.highlights-list li::before {
  content: "✔";
  color: var(--accent);
  font-weight: 900;
  margin-right: 4px;
  flex-shrink: 0;
}

/* 📌 목차 인덱스 바 (TOC) */
.toc {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-sm);
  padding: 2rem 2.25rem;
  margin: 2.75rem 0;
  isolation: isolate;
}

.toc-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 1.15rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.toc ol,
.toc-list {
  padding-left: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.toc li {
  font-size: 1.08rem;
  color: #334155;
  line-height: 1.7;
}

.toc a {
  color: #0f172a;
  font-weight: 700;
  transition: color 0.15s ease;
}

.toc a:hover {
  color: var(--accent);
  text-decoration: underline;
}

/* 본문 섹션 */
.article-section,
.art-content {
  padding: 1.75rem 0 2.25rem;
  font-size: 1.1875rem;
  line-height: 1.92;
  color: #1e293b;
  isolation: isolate;
}

.article-section h2,
.art-content h2 {
  font-size: 1.85rem;
  font-weight: 900;
  margin: 3.75rem 0 1.5rem;
  color: #0f172a;
  letter-spacing: -0.03em;
  padding-bottom: 0.85rem;
  border-bottom: 2px solid #e2e8f0;
  word-break: keep-all;
  overflow-wrap: break-word;
  text-wrap: balance;
  scroll-margin-top: 110px;
}

.article-section p,
.art-content p {
  margin-bottom: 2rem;
  line-height: 1.92;
  letter-spacing: -0.025em;
  color: #1e293b;
  font-size: 1.1875rem;
  word-break: keep-all;
  overflow-wrap: break-word;
  text-wrap: pretty;
  white-space: pre-line;
}

.article-callout {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-left: 5px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 2rem 2.25rem;
  margin: 3rem 0;
  isolation: isolate;
}

.article-callout h2 {
  font-size: 1.35rem;
  font-weight: 800;
  color: #1e40af;
  margin-bottom: 0.85rem;
  border: none;
  padding: 0;
  letter-spacing: -0.02em;
}

.article-callout p {
  font-size: 1.125rem;
  color: #1e3a8a;
  line-height: 1.82;
  margin: 0;
  word-break: keep-all;
  overflow-wrap: break-word;
  text-wrap: pretty;
  white-space: pre-line;
}

/* 💡 방송 및 공공 공식 확인 절차 단계형 카드 그리드 */
.watchhow-box {
  background: linear-gradient(135deg, #f0fdf4 0%, #e0f2fe 100%);
  border: 1px solid #bae6fd;
  border-left: 5px solid #0284c7;
  border-radius: var(--radius-sm);
  padding: 2.25rem 2.5rem;
  margin: 3.25rem 0;
  box-shadow: var(--shadow-sm);
  isolation: isolate;
}

.watchhow-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 1.35rem;
}

.watchhow-header h2 {
  font-size: 1.38rem;
  font-weight: 900;
  color: #0369a1;
  margin: 0;
  border: none;
  padding: 0;
  letter-spacing: -0.02em;
}

.watchhow-steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.15rem;
  margin-top: 1rem;
}

.watchhow-step-card {
  background: #ffffff;
  border: 1px solid #e0e7ff;
  border-radius: var(--radius-sm);
  padding: 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.watchhow-step-card:hover {
  transform: translateY(-2px);
  border-color: #38bdf8;
}

.watchhow-step-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  padding: 4px 12px;
  font-size: 0.82rem;
  font-weight: 900;
  color: #0369a1;
  background: #e0f2fe;
  border-radius: var(--radius-full);
  letter-spacing: 0.04em;
}

.watchhow-step-desc {
  font-size: 1.05rem;
  font-weight: 600;
  color: #1e293b;
  line-height: 1.68;
  word-break: keep-all;
  overflow-wrap: break-word;
}

/* 🏷️ 방송 프로그램 및 공식 링크 배지 */
.badge-program-kbs {
  display: inline-block;
  padding: 4px 10px;
  font-size: 0.82rem;
  font-weight: 900;
  color: #1d4ed8;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: var(--radius-sm);
  margin-right: 8px;
  white-space: nowrap;
}

.badge-program-sbs {
  display: inline-block;
  padding: 4px 10px;
  font-size: 0.82rem;
  font-weight: 900;
  color: #047857;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-radius: var(--radius-sm);
  margin-right: 8px;
  white-space: nowrap;
}

.badge-area {
  display: inline-block;
  padding: 4px 10px;
  font-size: 0.88rem;
  font-weight: 700;
  color: #334155;
  background: #f1f5f9;
  border-radius: var(--radius-sm);
  white-space: nowrap;
}

.btn-official-source {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 16px;
  font-size: 0.92rem;
  font-weight: 800;
  color: #ffffff !important;
  background: #0f172a;
  border-radius: var(--radius-sm);
  text-decoration: none !important;
  transition: background 0.15s ease, transform 0.15s ease;
  white-space: nowrap;
}

.btn-official-source:hover {
  background: #2563eb;
  transform: translateY(-1px);
}

/* 💬 p-magazine-detail 인용구 블록 */
.art-quote {
  border-left: 5px solid var(--accent);
  padding: 2rem 2.5rem;
  background: #F0F7FF;
  font-size: 1.28rem;
  font-weight: 700;
  color: #1E3A8A;
  margin: 3.5rem 0;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  line-height: 1.8;
  word-break: keep-all;
  overflow-wrap: break-word;
  text-wrap: pretty;
  isolation: isolate;
}

/* 📊 4열 데이터 테이블 */
.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 2.75rem 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  width: 100%;
  isolation: isolate;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1.05rem;
  text-align: left;
}

th {
  background: #f1f5f9;
  padding: 16px 20px;
  font-weight: 800;
  color: #0f172a;
  border-bottom: 2px solid #cbd5e1;
  font-size: 1.05rem;
}

td {
  padding: 16px 20px;
  border-bottom: 1px solid #f1f5f9;
  color: #334155;
  font-size: 1.05rem;
  line-height: 1.7;
}

tr:last-child td { border-bottom: none; }
tr:hover td { background: #f8fafc; }

/* ❓ FAQ 아코디언 */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 2.5rem 0;
  isolation: isolate;
}

.faq-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #ffffff;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.faq-q {
  padding: 20px 26px;
  font-weight: 800;
  font-size: 1.18rem;
  color: #0f172a;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 14px;
  background: #f8fafc;
  list-style: none;
  transition: background 0.15s ease;
  word-break: keep-all;
  overflow-wrap: break-word;
}

.faq-q:hover {
  background: #f1f5f9;
}

.q-badge {
  background: var(--accent);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 900;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.faq-a {
  padding: 22px 26px;
  font-size: 1.125rem;
  color: #334155;
  line-height: 1.88;
  border-top: 1px solid #f1f5f9;
  word-break: keep-all;
  overflow-wrap: break-word;
  text-wrap: pretty;
}

/* 🏛️ 출처 안내 */
.sources-section {
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 2.25rem;
  margin: 4rem 0;
  isolation: isolate;
}

.sources-section h2 {
  font-size: 1.35rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 12px;
}

.sources-notice {
  font-size: 0.98rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.65;
}

.sources-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 1.02rem;
}

.sources-list a {
  color: var(--accent);
  text-decoration: underline;
  word-break: break-all;
}



/* 👣 Footer */
.site-footer {
  border-top: 2px solid #000000;
  padding: 3.5rem 0 2.5rem;
  background: #f8f9fa;
  margin-top: 5rem;
}

.footer-cols {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 3rem;
  margin-bottom: 2.5rem;
}

@media (max-width: 768px) { .footer-cols { grid-template-columns: 1fr; gap: 2rem; } }

.footer-brand {
  font-size: 1.25rem;
  font-weight: 900;
  font-family: var(--font-display);
  margin-bottom: 0.5rem;
}

.footer-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 500px;
}

.footer-cols ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-top: 0.75rem;
}

.footer-cols ul a:hover {
  color: #000000;
  text-decoration: underline;
}

.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-bottom nav {
  display: flex;
  gap: 1.25rem;
  font-weight: 700;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
  margin: 1.5rem 0 1rem;
}

.breadcrumb .sep { color: #d1d5db; }

/* ==========================================================================
   ✨ 6. Advanced Editorial & SEO Checklist Components (Writer & Design Center)
   ========================================================================== */

/* 1) Checklist Card Grid (단순 텍스트 나열 탈피 · 체계적 체크리스트 카드) */
.checklist-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  margin: 1.75rem 0 2.25rem;
  isolation: isolate;
}

.checklist-item-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-sm);
  padding: 1.35rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  position: relative;
  overflow: hidden;
}

.checklist-item-card:hover {
  transform: translateY(-2px);
  border-color: #2563eb;
  box-shadow: var(--shadow-md);
}

.checklist-item-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--accent);
}

.checklist-item-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.08rem;
  font-weight: 800;
  color: #0f172a;
  word-break: keep-all;
  overflow-wrap: break-word;
}

.chk-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: var(--radius-full);
  background: #dbeafe;
  color: #1d4ed8;
  font-size: 0.8rem;
  font-weight: 900;
  flex-shrink: 0;
}

.checklist-item-body {
  font-size: 1.02rem;
  color: #475569;
  line-height: 1.72;
  word-break: keep-all;
  overflow-wrap: break-word;
}

/* 2) Spotlight Highlight Cards (방영 코너 & 핵심 취재 요약 카드) */
.spotlight-card {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-sm);
  padding: 1.75rem 2rem;
  margin: 1.75rem 0 2.25rem;
  box-shadow: var(--shadow-sm);
  isolation: isolate;
}

.spotlight-header {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.15rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px dashed #cbd5e1;
}

.spotlight-badge {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 900;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  background: #1e293b;
  color: #ffffff;
  letter-spacing: 0.04em;
}

.spotlight-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.spotlight-list li {
  font-size: 1.05rem;
  color: #334155;
  line-height: 1.75;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  word-break: keep-all;
  overflow-wrap: break-word;
}

.spotlight-list li::before {
  content: "📍";
  font-size: 0.95rem;
  flex-shrink: 0;
}

/* 3) Step Flow Cards (단계형 가이드 플로우) */
.step-flow-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin: 1.75rem 0 2.25rem;
  isolation: isolate;
}

.step-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-sm);
  padding: 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: var(--shadow-sm);
}

.step-card-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  padding: 4px 12px;
  font-size: 0.8rem;
  font-weight: 900;
  background: #f1f5f9;
  color: #1e293b;
  border-radius: var(--radius-full);
  letter-spacing: 0.04em;
}

.step-card-content {
  font-size: 1.02rem;
  color: #334155;
  line-height: 1.7;
  word-break: keep-all;
  overflow-wrap: break-word;
}

/* 4) Editorial Notice & Callout Cards */
.editorial-notice-card {
  background: #fefce8;
  border: 1px solid #fef08a;
  border-left: 5px solid #eab308;
  border-radius: var(--radius-sm);
  padding: 1.5rem 1.75rem;
  margin: 1.75rem 0 2.25rem;
  color: #713f12;
  font-size: 1.08rem;
  line-height: 1.75;
  word-break: keep-all;
  overflow-wrap: break-word;
  isolation: isolate;
}



/* ==========================================================================
   🎬 7. YouTube Video Clip Embed Container (체류시간 극대화 비디오 플레이어)
   ========================================================================== */
.video-embed-section {
  background: #0f172a;
  color: #ffffff;
  border-radius: var(--radius-sm);
  padding: 2.25rem;
  margin: 3.5rem 0;
  box-shadow: var(--shadow-lg);
  isolation: isolate;
}

.video-embed-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.video-embed-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
}

.video-badge-yt {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #dc2626;
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 900;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  letter-spacing: 0.04em;
}

.video-verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(52, 211, 153, 0.35);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 9999px;
  letter-spacing: 0.02em;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}

.video-card {
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: var(--radius-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.video-card:hover {
  border-color: #475569;
  transform: translateY(-2px);
}

.video-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  background: #000000;
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.video-caption {
  padding: 1rem 1.25rem;
  font-size: 0.95rem;
  background: #1e293b;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  word-break: keep-all;
}

.video-caption-main {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.video-caption-title {
  font-weight: 700;
  color: #f1f5f9;
}

.video-external-link {
  font-size: 0.82rem;
  font-weight: 600;
  color: #93c5fd;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  background: rgba(147, 197, 253, 0.1);
  border: 1px solid rgba(147, 197, 253, 0.2);
  transition: background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}

.video-external-link:hover {
  background: rgba(147, 197, 253, 0.2);
  color: #bfdbfe;
}

.video-notice-box {
  margin-top: 1.5rem;
  padding: 1.15rem 1.35rem;
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
}

.video-notice-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.86rem;
  font-weight: 800;
  color: #94a3b8;
  margin-bottom: 0.4rem;
}

.video-notice-text {
  font-size: 0.84rem;
  color: #cbd5e1;
  margin: 0;
  line-height: 1.6;
  word-break: keep-all;
}

/* ==========================================================================
   🌍 8. Living in Korea - Global Expat Verified Toolkit & Affiliate Module
   ========================================================================== */
.expat-toolkit-section {
  background: linear-gradient(145deg, #0f172a 0%, #132238 100%);
  border: 1px solid rgba(16, 185, 129, 0.28);
  border-radius: var(--radius-sm);
  padding: 2.25rem;
  margin: 3.5rem 0;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3), 0 8px 10px -6px rgba(0, 0, 0, 0.3);
  isolation: isolate;
}

.expat-toolkit-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.expat-toolkit-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
}

.toolkit-badge-icon {
  font-size: 1.25rem;
  line-height: 1;
}

.toolkit-verified-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(16, 185, 129, 0.18);
  color: #34d399;
  border: 1px solid rgba(52, 211, 153, 0.4);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 9999px;
  letter-spacing: 0.02em;
}

.expat-toolkit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.expat-partner-card {
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: var(--radius-sm);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.expat-partner-card:hover {
  transform: translateY(-3px);
  border-color: #10b981;
}

.expat-partner-header {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 0.75rem;
}

.partner-icon {
  font-size: 2.2rem;
  line-height: 1;
  flex-shrink: 0;
}

.partner-badge {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 800;
  color: #34d399;
  background: rgba(16, 185, 129, 0.15);
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 6px;
  letter-spacing: 0.02em;
}

.partner-name {
  font-size: 1.15rem;
  font-weight: 800;
  color: #f8fafc;
  margin: 0;
  line-height: 1.35;
}

.partner-tagline {
  font-size: 0.88rem;
  font-weight: 700;
  color: #94a3b8;
  margin-bottom: 0.75rem;
}

.partner-desc {
  font-size: 0.86rem;
  color: #cbd5e1;
  line-height: 1.6;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.partner-perk-box {
  background: rgba(15, 23, 42, 0.75);
  border: 1px dashed rgba(52, 211, 153, 0.45);
  border-radius: 4px;
  padding: 0.7rem 0.9rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: #6ee7b7;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
}

.btn-partner-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  background: #10b981;
  color: #022c22;
  font-weight: 800;
  font-size: 0.92rem;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: background 0.15s ease, transform 0.15s ease;
  letter-spacing: 0.01em;
}

.btn-partner-cta:hover {
  background: #34d399;
  transform: translateY(-1px);
}

.expat-toolkit-disclosure {
  margin-top: 1.75rem;
  padding: 1rem 1.25rem;
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.disclosure-icon {
  font-size: 1.1rem;
  margin-top: 1px;
  flex-shrink: 0;
}

.disclosure-text {
  font-size: 0.8rem;
  color: #94a3b8;
  line-height: 1.55;
  margin: 0;
}

/* ==========================================================================
   📶 9. Airalo South Korea eSIM Live Pricing & Plan Comparison Table
   ========================================================================== */
.esim-pricing-container {
  background: #0f172a;
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: var(--radius-sm);
  padding: 2.25rem;
  margin: 3.5rem 0;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
  isolation: isolate;
}

.esim-pricing-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.esim-pill-tag {
  display: inline-block;
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(52, 211, 153, 0.4);
  font-size: 0.78rem;
  font-weight: 800;
  padding: 2px 10px;
  border-radius: 9999px;
  margin-bottom: 6px;
}

.esim-pricing-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
}

.btn-esim-primary-top {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #10b981;
  color: #022c22;
  font-weight: 800;
  font-size: 0.88rem;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: background 0.15s ease;
}

.btn-esim-primary-top:hover {
  background: #34d399;
}

.esim-pricing-desc {
  font-size: 0.88rem;
  color: #cbd5e1;
  line-height: 1.6;
  margin: 1.25rem 0 1.5rem;
}

.esim-table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius-sm);
  border: 1px solid #334155;
  background: #1e293b;
}

.esim-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  text-align: left;
}

.esim-table th {
  background: #0f172a;
  color: #94a3b8;
  padding: 12px 16px;
  font-weight: 800;
  border-bottom: 1px solid #334155;
  font-size: 0.82rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.esim-table td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: #e2e8f0;
  vertical-align: middle;
}

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

.esim-table tr.row-highlight {
  background: rgba(16, 185, 129, 0.07);
}

.plan-name-box {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.plan-name {
  font-weight: 700;
  color: #f8fafc;
}

.plan-badge {
  font-size: 0.72rem;
  font-weight: 800;
  color: #34d399;
  background: rgba(16, 185, 129, 0.2);
  padding: 2px 6px;
  border-radius: 4px;
}

.network-pill {
  font-size: 0.78rem;
  font-weight: 700;
  color: #93c5fd;
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.3);
  padding: 2px 8px;
  border-radius: 4px;
}

.plan-price-box {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.plan-price-usd {
  font-size: 1.05rem;
  font-weight: 800;
  color: #10b981;
}

.plan-price-krw {
  font-size: 0.76rem;
  color: #94a3b8;
}

.btn-plan-buy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #334155;
  color: #f8fafc;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.btn-plan-buy:hover {
  background: #475569;
  color: #ffffff;
}

.btn-plan-buy.highlight {
  background: #10b981;
  color: #022c22;
  font-weight: 800;
}

.btn-plan-buy.highlight:hover {
  background: #34d399;
}

.esim-table-footer {
  margin-top: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.82rem;
  color: #94a3b8;
}

/* ==========================================================================
   ✈️ 10. Travelpayouts / Aviasales Live Flight Deals to Seoul
   ========================================================================== */
.flight-deals-section {
  background: linear-gradient(145deg, #0b132b 0%, #1c2541 100%);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: var(--radius-sm);
  padding: 2.25rem;
  margin: 3.5rem 0;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.35);
  isolation: isolate;
}

.flight-deals-header {
  margin-bottom: 1.75rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.flight-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
  border: 1px solid rgba(96, 165, 250, 0.35);
  font-size: 0.8rem;
  font-weight: 800;
  padding: 3px 12px;
  border-radius: 9999px;
  margin-bottom: 8px;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3b82f6;
  box-shadow: 0 0 8px #3b82f6;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.2); }
  100% { opacity: 1; transform: scale(1); }
}

.flight-deals-title {
  font-size: 1.45rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 6px 0;
}

.flight-deals-subtitle {
  font-size: 0.88rem;
  color: #94a3b8;
  margin: 0;
  line-height: 1.5;
}

.flight-deals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.flight-deal-card {
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: var(--radius-md);
  padding: 1.35rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  box-sizing: border-box;
  overflow: hidden;
  position: relative;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.flight-deal-card:hover {
  transform: translateY(-3px);
  border-color: #3b82f6;
  box-shadow: 0 8px 20px -4px rgba(37, 99, 235, 0.25);
}

.flight-deal-route {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 0.85rem;
}

.route-cities {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.origin-city {
  font-weight: 800;
  color: #f8fafc;
  font-size: 1.05rem;
}

.route-arrow {
  color: #60a5fa;
  font-size: 0.85rem;
}

.dest-city {
  font-size: 0.86rem;
  color: #94a3b8;
  font-weight: 600;
}

.airline-badge {
  font-size: 0.74rem;
  font-weight: 800;
  color: #93c5fd;
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.3);
  padding: 2px 8px;
  border-radius: 4px;
  white-space: nowrap;
}

.flight-deal-pricing {
  margin-bottom: 0.65rem;
}

.price-label {
  font-size: 0.74rem;
  color: #94a3b8;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.price-val {
  font-size: 1.6rem;
  font-weight: 900;
  color: #38bdf8;
  line-height: 1.2;
}

.currency-tag {
  font-size: 0.85rem;
  font-weight: 700;
  color: #94a3b8;
}

.flight-deal-meta {
  font-size: 0.8rem;
  color: #94a3b8;
  margin-bottom: 1rem;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  line-height: 1.4;
}

.btn-flight-search {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  box-sizing: border-box;
  background: #2563eb;
  color: #ffffff;
  font-weight: 800;
  font-size: 0.88rem;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: background 0.15s ease, transform 0.15s ease;
  margin-top: auto;
  text-align: center;
}

.btn-flight-search:hover {
  background: #3b82f6;
  transform: translateY(-1px);
}

.flight-deals-footer {
  margin-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.8rem;
  color: #94a3b8;
}

/* ==========================================================================
   POPULAR POSTS RANKINGS (Daily / Weekly Interactivity)
   ========================================================================== */
.ranking-section {
  margin: 3rem 0;
  padding: 2.25rem 2rem;
  background: #090d16;
  border: 1px solid #1e293b;
  border-radius: var(--radius-lg);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45);
  color: #f8fafc;
}

.ranking-header {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .ranking-header {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }
}

.ranking-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 800;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.25);
  padding: 4px 10px;
  border-radius: 9999px;
  margin-bottom: 0.5rem;
}

.ranking-title {
  font-size: 1.45rem;
  font-weight: 900;
  color: #ffffff;
  margin-bottom: 0.35rem;
  letter-spacing: -0.02em;
}

.ranking-subtitle {
  font-size: 0.92rem;
  color: #94a3b8;
  line-height: 1.5;
}

/* Period Tabs (Daily vs Weekly) */
.ranking-period-tabs {
  display: flex;
  gap: 8px;
  background: #111827;
  padding: 4px;
  border-radius: 12px;
  border: 1px solid #1f2937;
  align-self: flex-start;
}

.ranking-period-tabs .tab-btn {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 0.88rem;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.ranking-period-tabs .tab-btn:hover {
  color: #ffffff;
}

.ranking-period-tabs .tab-btn.active {
  background: #2563eb;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
}

/* Category Filters */
.ranking-category-filters {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 1.5rem;
  scrollbar-width: thin;
}

.filter-chip {
  background: #1e293b;
  border: 1px solid #334155;
  color: #cbd5e1;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 9999px;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.15s ease;
}

.filter-chip:hover {
  background: #334155;
  color: #ffffff;
}

.filter-chip.active {
  background: #0284c7;
  border-color: #38bdf8;
  color: #ffffff;
}

/* Ranking List & Items */
.ranking-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ranking-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: #111827;
  border: 1px solid #1f2937;
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.ranking-item:hover {
  background: #172033;
  border-color: #3b82f6;
  transform: translateX(4px);
}

/* Ranking Badges */
.ranking-badge {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 900;
  border-radius: 10px;
  color: #ffffff;
}

.ranking-badge.rank-1 {
  background: linear-gradient(135deg, #f59e0b 0%, #b45309 100%);
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.45);
}

.ranking-badge.rank-2 {
  background: linear-gradient(135deg, #94a3b8 0%, #475569 100%);
  box-shadow: 0 4px 14px rgba(148, 163, 184, 0.35);
}

.ranking-badge.rank-3 {
  background: linear-gradient(135deg, #d97706 0%, #78350f 100%);
  box-shadow: 0 4px 14px rgba(217, 119, 6, 0.35);
}

.ranking-badge.rank-4,
.ranking-badge.rank-5 {
  background: #1e293b;
  color: #94a3b8;
  border: 1px solid #334155;
}

/* Ranking Item Content */
.ranking-content {
  flex: 1;
  min-width: 0;
}

.ranking-meta-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
  flex-wrap: wrap;
}

.ranking-cat-label {
  font-size: 0.76rem;
  font-weight: 800;
  color: #38bdf8;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.ranking-trend-tag {
  font-size: 0.72rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
}

.ranking-trend-tag.trend-hot {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.4);
}

.ranking-trend-tag.trend-up {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.ranking-trend-tag.trend-star {
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.ranking-trend-tag.trend-new {
  background: rgba(168, 85, 247, 0.2);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.4);
}

.ranking-views-text {
  font-size: 0.76rem;
  color: #64748b;
}

.ranking-item-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #f1f5f9;
  margin-bottom: 4px;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ranking-item-summary {
  font-size: 0.85rem;
  color: #94a3b8;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ranking-arrow {
  flex-shrink: 0;
  color: #64748b;
  font-size: 1.1rem;
  font-weight: 800;
  transition: transform 0.2s ease, color 0.2s ease;
}

.ranking-item:hover .ranking-arrow {
  color: #38bdf8;
  transform: translateX(4px);
}

/* ==========================================================================
   🎯 AdSense Responsive Layout & CLS Zero-Shift Engine
   ========================================================================== */
.ad-container {
  margin: 2.5rem auto;
  width: 100%;
  max-width: 960px;
  min-height: 280px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  background: transparent;
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: min-height 0.2s ease;
}

@media (max-width: 768px) {
  .ad-container {
    min-height: 120px;
    margin: 1.75rem auto;
  }
}

.ad-container-clean {
  margin: 1.5rem 0;
  height: 1px;
  width: 100%;
  opacity: 0;
  pointer-events: none;
}

/* ⚡ Dwell-Time Interactive Engagement Polish */
.reading-progress-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3.5px;
  background: transparent;
  z-index: 999;
}

.reading-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #2563eb, #38bdf8, #059669);
  transition: width 0.1s ease-out;
}

/* ==========================================================================
   🌐 🏛️ Cogrow Portal Central Styling (Root Home /)
   ========================================================================== */
.portal-hero {
  text-align: center;
  padding: 4rem 1rem 3rem;
  max-width: 960px;
  margin: 0 auto;
}

.portal-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #334155;
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 1.5rem;
}

.portal-hero-title {
  font-size: 2.75rem;
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: -0.04em;
  color: #0f172a;
  margin-bottom: 1.25rem;
}

@media (max-width: 768px) {
  .portal-hero-title {
    font-size: 2rem;
  }
}

.portal-hero-subtitle {
  font-size: 1.2rem;
  line-height: 1.7;
  color: #475569;
  margin-bottom: 2rem;
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
}

/* Dual Media Gateways */
.portal-gateways-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem;
  margin-bottom: 3.5rem;
}

@media (max-width: 768px) {
  .portal-gateways-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}

.portal-gateway-card {
  position: relative;
  border-radius: var(--radius-lg);
  padding: 2.25rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  overflow: hidden;
}

.portal-gateway-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.08);
}

.portal-gateway-card.card-kti {
  background: #ffffff;
  border: 2px solid #e2e8f0;
}

.portal-gateway-card.card-kti:hover {
  border-color: #2563eb;
}

.portal-gateway-card.card-expat {
  background: #ffffff;
  border: 2px solid #e2e8f0;
}

.portal-gateway-card.card-expat:hover {
  border-color: #059669;
}

.gateway-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
}

.card-kti .gateway-tag {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}

.card-expat .gateway-tag {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}

.gateway-title {
  font-size: 1.65rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: #0f172a;
  margin-bottom: 0.75rem;
}

.gateway-desc {
  font-size: 1.05rem;
  line-height: 1.65;
  color: #475569;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.gateway-meta-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 1.5rem;
}

.meta-pill {
  font-size: 0.8rem;
  font-weight: 700;
  background: #f8fafc;
  color: #64748b;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  border: 1px solid #e2e8f0;
}

.gateway-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.96rem;
  font-weight: 800;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  transition: all 0.15s ease;
}

.card-kti .gateway-action-btn {
  background: #18181b;
  color: #ffffff;
}

.card-kti:hover .gateway-action-btn {
  background: #2563eb;
}

.card-expat .gateway-action-btn {
  background: #0f172a;
  color: #ffffff;
}

.card-expat:hover .gateway-action-btn {
  background: #059669;
}

/* E-E-A-T Trust Section */
.portal-trust-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-lg);
  padding: 2.25rem 2rem;
  margin-top: 3.5rem;
  margin-bottom: 3.5rem;
}

.trust-header {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
  font-weight: 900;
  color: #0f172a;
  margin-bottom: 1rem;
}

.trust-desc {
  font-size: 1.02rem;
  line-height: 1.75;
  color: #475569;
}

.trust-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 1.5rem;
}

@media (max-width: 768px) {
  .trust-pillars {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

.trust-pillar-item {
  background: #ffffff;
  padding: 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid #e2e8f0;
}

.trust-pillar-title {
  font-weight: 800;
  font-size: 1rem;
  color: #1e293b;
  margin-bottom: 0.4rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

.trust-pillar-desc {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #64748b;
}

/* ==========================================================================
   ⚡ In-Article High-CTR Affiliate Inline Callout
   ========================================================================== */
.affiliate-inline-callout {
  background: linear-gradient(135deg, #090d16 0%, #111827 100%);
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-left: 4px solid #38bdf8;
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  margin: 2.25rem 0;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.affiliate-inline-callout:hover {
  border-color: #60a5fa;
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.2);
}

.callout-badge-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}

.callout-icon {
  font-size: 1.2rem;
}

.callout-badge {
  font-size: 0.78rem;
  font-weight: 800;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.15);
  padding: 2px 8px;
  border-radius: 4px;
}

.callout-verified {
  font-size: 0.75rem;
  font-weight: 700;
  color: #34d399;
  background: rgba(16, 185, 129, 0.12);
  padding: 2px 8px;
  border-radius: 4px;
}

.callout-body {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 768px) {
  .callout-body {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.callout-text-wrap {
  flex-grow: 1;
}

.callout-title {
  font-size: 1.15rem;
  font-weight: 900;
  color: #ffffff;
  margin-bottom: 0.25rem;
}

.callout-desc {
  font-size: 0.92rem;
  color: #cbd5e1;
  margin: 0;
  line-height: 1.5;
}

.callout-action-wrap {
  flex-shrink: 0;
}

.btn-callout-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #2563eb;
  color: #ffffff;
  font-weight: 800;
  font-size: 0.92rem;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.btn-callout-action:hover {
  background: #3b82f6;
  transform: translateY(-1px);
}

/* ==========================================================================
   🖼️ Post Article Hero Image (100% Zero-Crop Safe Layer)
   ========================================================================== */
.article-hero-image-wrap {
  width: 100%;
  margin: 1.5rem 0 2rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
  border: 1px solid #e2e8f0;
  background-color: #0f172a;
  display: flex;
  justify-content: center;
  align-items: center;
}

.article-hero-image {
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: contain;
  display: block;
}
