/* ============================================
   TGADS Online — Blog Theme CSS
   Shared across blog.html, faq.html, and all posts
   ============================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg-primary: #ffffff;
  --bg-secondary: #f9fafb;
  --bg-card: rgba(255,255,255,0.98);
  --bg-nav: rgba(255,255,255,0.85);
  --text-primary: #111827;
  --text-secondary: #4b5563;
  --text-muted: #9ca3af;
  --border-color: #e5e7eb;
  --brand: #3b82f6;
  --brand-dark: #1a56db;
  --accent: #ea580c;
  --accent-hover: #f97316;
  --accent-active: #c2410c;
  --gradient-start: #3b82f6;
  --gradient-end: #06b6d4;
  --card-shadow: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -4px rgba(0,0,0,0.05);
  --card-hover-shadow: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.08);
  --glow: rgba(59, 130, 246, 0.08);
}

.dark {
  --bg-primary: #030712;
  --bg-secondary: #0a0b14;
  --bg-card: rgba(255,255,255,0.04);
  --bg-nav: rgba(3,7,18,0.88);
  --text-primary: #f3f4f6;
  --text-secondary: #d1d5db;
  --text-muted: #6b7280;
  --border-color: rgba(255,255,255,0.08);
  --card-shadow: 0 10px 15px -3px rgba(0,0,0,0.3), 0 0 40px rgba(59,130,246,0.04);
  --card-hover-shadow: 0 20px 40px -5px rgba(0,0,0,0.4), 0 0 60px rgba(59,130,246,0.06);
  --glow: rgba(59, 130, 246, 0.06);
}

html { scroll-behavior: smooth; overflow-x: hidden; width: 100%; }

body {
  font-family: 'Outfit', ui-sans-serif, system-ui, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
}

/* ========== NAVBAR ========== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: var(--bg-nav);
  backdrop-filter: blur(16px) saturate(1.5);
  -webkit-backdrop-filter: blur(16px) saturate(1.5);
  border-bottom: 1px solid var(--border-color);
  transition: all 0.3s ease;
}
.navbar.scrolled { box-shadow: 0 4px 20px rgba(0,0,0,0.08); }
.dark .navbar.scrolled { box-shadow: 0 4px 20px rgba(0,0,0,0.3); }
.nav-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 1.5rem;
  display: flex; align-items: center; justify-content: space-between; height: 72px;
}
.nav-logo {
  font-family: 'Syne', sans-serif; font-weight: 800; font-size: 1.35rem;
  color: var(--text-primary); text-decoration: none; letter-spacing: -0.02em;
  display: flex; align-items: center; gap: 0.5rem;
}
.nav-logo span {
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.nav-links { display: flex; align-items: center; gap: 2rem; list-style: none; }
.nav-links a {
  font-family: 'Outfit', sans-serif; font-size: 0.9rem; font-weight: 500;
  color: var(--text-secondary); text-decoration: none; transition: color 0.2s ease; position: relative;
}
.nav-links a:hover, .nav-links a.active { color: var(--brand); }
.nav-links a.active::after {
  content: ''; position: absolute; bottom: -4px; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--gradient-start), var(--gradient-end)); border-radius: 1px;
}
.nav-cta {
  font-family: 'Syne', sans-serif; font-size: 0.8rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.03em; padding: 0.6rem 1.25rem;
  border-radius: 0.5rem; background: var(--accent); color: #fff;
  text-decoration: none; transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(234,88,12,0.25);
}
.nav-cta:hover { background: var(--accent-hover); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(234,88,12,0.35); }
.theme-toggle {
  background: none; border: 1px solid var(--border-color); border-radius: 0.5rem;
  padding: 0.45rem; cursor: pointer; color: var(--text-muted);
  display: flex; align-items: center; justify-content: center; transition: all 0.2s ease;
}
.theme-toggle:hover { color: var(--brand); border-color: var(--brand); }
.theme-toggle svg { width: 18px; height: 18px; }
.mobile-toggle { display: none; background: none; border: none; cursor: pointer; padding: 0.5rem; color: var(--text-primary); }
.mobile-toggle svg { width: 24px; height: 24px; }
.mobile-menu {
  display: none; position: fixed; top: 72px; left: 0; right: 0; bottom: 0;
  background: var(--bg-primary); z-index: 99; padding: 2rem 1.5rem;
  flex-direction: column; gap: 1.5rem;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-family: 'Outfit', sans-serif; font-size: 1.1rem; font-weight: 500;
  color: var(--text-secondary); text-decoration: none; padding: 0.75rem 0;
  border-bottom: 1px solid var(--border-color); transition: color 0.2s ease;
}
.mobile-menu a:hover { color: var(--brand); }
@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-cta-desktop { display: none; }
  .mobile-toggle { display: block; }
}

/* ========== BLOG HERO (Listing Page) ========== */
.blog-hero {
  padding: 10rem 1.5rem 4rem; text-align: center; position: relative; overflow: hidden; width: 100%;
}
.blog-hero::before {
  content: ''; position: absolute; top: -40%; left: 50%; transform: translateX(-50%);
  width: 800px; height: 800px;
  background: radial-gradient(circle, var(--glow) 0%, transparent 65%); pointer-events: none;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: 'Syne', sans-serif; font-size: 0.75rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em; color: var(--brand);
  background: rgba(59,130,246,0.08); border: 1px solid rgba(59,130,246,0.15);
  padding: 0.5rem 1.25rem; border-radius: 999px; margin-bottom: 1.5rem;
}
.dark .hero-badge { background: rgba(59,130,246,0.1); border-color: rgba(59,130,246,0.2); }
.blog-hero h1 {
  font-family: 'Syne', sans-serif; font-weight: 800; font-size: clamp(2.25rem, 5vw, 3.5rem);
  line-height: 1.1; margin-bottom: 1rem; letter-spacing: -0.03em;
}
.blog-hero h1 .gradient-text {
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.blog-hero p { font-size: 1.15rem; color: var(--text-secondary); max-width: 580px; margin: 0 auto; line-height: 1.7; }

/* ========== BLOG GRID ========== */
.blog-section { max-width: 1200px; margin: 0 auto; padding: 2rem 1.5rem 6rem; width: 100%; }
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
@media (max-width: 960px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .blog-grid { grid-template-columns: 1fr; } }

/* ========== BLOG CARD ========== */
.blog-card {
  background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 1rem;
  overflow: hidden; transition: all 0.3s ease; box-shadow: var(--card-shadow);
  display: flex; flex-direction: column; text-decoration: none; color: inherit;
}
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--card-hover-shadow); border-color: rgba(59,130,246,0.2); }
.dark .blog-card { backdrop-filter: blur(12px); }
.card-image { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; background: var(--bg-secondary); }
.card-image-placeholder {
  width: 100%; aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, rgba(59,130,246,0.08) 0%, rgba(6,182,212,0.08) 100%);
  display: flex; align-items: center; justify-content: center;
}
.dark .card-image-placeholder { background: linear-gradient(135deg, rgba(59,130,246,0.12) 0%, rgba(6,182,212,0.08) 100%); }
.card-image-placeholder svg { width: 48px; height: 48px; color: var(--text-muted); opacity: 0.4; }
.card-body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.card-meta { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.75rem; }
.card-tag {
  font-family: 'Syne', sans-serif; font-size: 0.65rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em; color: var(--brand);
  background: rgba(59,130,246,0.08); padding: 0.25rem 0.65rem; border-radius: 999px;
}
.dark .card-tag { background: rgba(59,130,246,0.15); }
.card-date { font-size: 0.8rem; color: var(--text-muted); }
.card-title {
  font-family: 'Syne', sans-serif; font-weight: 700; font-size: 1.15rem;
  line-height: 1.3; margin-bottom: 0.6rem; color: var(--text-primary); letter-spacing: -0.01em;
}
.blog-card:hover .card-title { color: var(--brand); }
.card-excerpt { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.6; flex: 1; }
.card-footer {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid var(--border-color);
}
.card-author { display: flex; align-items: center; gap: 0.5rem; }
.card-author-avatar {
  width: 28px; height: 28px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  display: flex; align-items: center; justify-content: center;
  font-family: 'Syne', sans-serif; font-weight: 700; font-size: 0.65rem; color: #fff;
}
.card-author-name { font-size: 0.8rem; font-weight: 600; color: var(--text-secondary); }
.card-read-time { font-size: 0.75rem; color: var(--text-muted); }

/* Featured Post */
.featured-post { grid-column: 1 / -1; display: grid; grid-template-columns: 1.1fr 1fr; gap: 0; border-radius: 1.25rem; }
.featured-post .card-image { aspect-ratio: auto; height: 100%; min-height: 320px; border-radius: 1.25rem 0 0 1.25rem; }
.featured-post .card-body { padding: 2.5rem; justify-content: center; }
.featured-post .card-title { font-size: 1.5rem; }
.featured-label {
  font-family: 'Syne', sans-serif; font-size: 0.6rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.12em; color: var(--accent); margin-bottom: 0.5rem;
}
@media (max-width: 760px) {
  .featured-post { grid-template-columns: 1fr; }
  .featured-post .card-image { aspect-ratio: 16 / 9; min-height: auto; border-radius: 1rem 1rem 0 0; }
  .featured-post .card-body { padding: 1.5rem; }
  .featured-post .card-title { font-size: 1.25rem; }
}

/* ========== ARTICLE LAYOUT ========== */
.article-wrapper { padding-top: 72px; width: 100%; overflow-x: hidden; }
.featured-image-container { width: 100%; max-width: 100%; max-height: 520px; overflow: hidden; position: relative; }
.featured-image-container::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 120px;
  background: linear-gradient(to top, var(--bg-primary), transparent); pointer-events: none;
}
.featured-image { width: 100%; height: 520px; object-fit: cover; display: block; max-width: 100%; }
@media (max-width: 600px) {
  .featured-image-container { max-height: 280px; }
  .featured-image { height: 280px; }
}
.article-container { max-width: 760px; margin: 0 auto; padding: 0 1.5rem; width: 100%; }
.article-header { margin-top: -2rem; position: relative; z-index: 2; margin-bottom: 2.5rem; }
.article-breadcrumb {
  display: flex; align-items: center; gap: 0.4rem;
  font-size: 0.82rem; color: var(--text-muted); margin-bottom: 1.5rem;
}
.article-breadcrumb a { color: var(--text-muted); text-decoration: none; transition: color 0.2s ease; }
.article-breadcrumb a:hover { color: var(--brand); }
.article-breadcrumb svg { width: 14px; height: 14px; flex-shrink: 0; }
.article-meta { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.25rem; flex-wrap: wrap; }
.article-tag {
  font-family: 'Syne', sans-serif; font-size: 0.65rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em; color: var(--brand);
  background: rgba(59,130,246,0.08); padding: 0.3rem 0.75rem; border-radius: 999px;
}
.dark .article-tag { background: rgba(59,130,246,0.15); }
.article-date { font-size: 0.85rem; color: var(--text-muted); }
.article-read-time { font-size: 0.85rem; color: var(--text-muted); display: flex; align-items: center; gap: 0.3rem; }
.article-read-time svg { width: 14px; height: 14px; }
.article-title {
  font-family: 'Syne', sans-serif; font-weight: 800;
  font-size: clamp(1.75rem, 4vw, 2.75rem); line-height: 1.15;
  letter-spacing: -0.03em; margin-bottom: 1.25rem;
}
.article-subtitle { font-size: 1.15rem; color: var(--text-secondary); line-height: 1.7; max-width: 640px; }

/* Author Bar */
.author-bar {
  display: flex; align-items: center; gap: 1rem; padding: 1.25rem 0;
  margin-bottom: 2rem; border-top: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color);
}
.author-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  display: flex; align-items: center; justify-content: center;
  font-family: 'Syne', sans-serif; font-weight: 700; font-size: 0.9rem; color: #fff; flex-shrink: 0;
}
.author-info { flex: 1; }
.author-name { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 0.95rem; }
.author-desc { font-size: 0.82rem; color: var(--text-muted); }
.share-buttons { display: flex; gap: 0.5rem; }
.share-btn {
  width: 36px; height: 36px; border-radius: 0.5rem; border: 1px solid var(--border-color);
  background: transparent; color: var(--text-muted); display: flex; align-items: center;
  justify-content: center; cursor: pointer; transition: all 0.2s ease;
}
.share-btn:hover { border-color: var(--brand); color: var(--brand); background: rgba(59,130,246,0.05); }
.share-btn svg { width: 16px; height: 16px; }

/* Table of Contents */
.toc {
  background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 0.75rem;
  padding: 1.5rem 1.75rem; margin-bottom: 2.5rem;
}
.toc-title {
  font-family: 'Syne', sans-serif; font-weight: 700; font-size: 0.85rem;
  text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 1rem; color: var(--text-primary);
}
.toc ol { list-style: none; counter-reset: toc-counter; padding: 0; }
.toc li { counter-increment: toc-counter; margin-bottom: 0.5rem; }
.toc li::before {
  content: counter(toc-counter) "."; font-family: 'Syne', sans-serif; font-weight: 700;
  color: var(--brand); margin-right: 0.5rem; font-size: 0.85rem;
}
.toc a {
  color: var(--text-secondary); text-decoration: none; font-size: 0.92rem;
  transition: color 0.2s ease;
}
.toc a:hover { color: var(--brand); }

/* ========== ARTICLE PROSE ========== */
.article-content { margin-bottom: 3rem; width: 100%; overflow-wrap: break-word; word-wrap: break-word; }
.article-content h2 {
  font-family: 'Syne', sans-serif; font-weight: 700; font-size: 1.6rem;
  line-height: 1.25; letter-spacing: -0.02em;
  margin-top: 3rem; margin-bottom: 1rem; padding-top: 1.5rem;
  border-top: 1px solid var(--border-color); overflow-wrap: break-word;
}
.article-content h2:first-child { margin-top: 0; padding-top: 0; border-top: none; }
.article-content h3 {
  font-family: 'Syne', sans-serif; font-weight: 700; font-size: 1.2rem;
  line-height: 1.3; margin-top: 2rem; margin-bottom: 0.75rem; overflow-wrap: break-word;
}
.article-content p { font-size: 1.05rem; line-height: 1.85; color: var(--text-secondary); margin-bottom: 1.5rem; overflow-wrap: break-word; }
.article-content a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; transition: color 0.2s ease; word-break: break-word; }
.article-content a:hover { color: var(--accent); }
.article-content strong { color: var(--text-primary); font-weight: 600; }
.article-content ul, .article-content ol { margin-bottom: 1.5rem; padding-left: 1.5rem; }
.article-content li { font-size: 1.05rem; line-height: 1.85; color: var(--text-secondary); margin-bottom: 0.5rem; overflow-wrap: break-word; }
.article-content blockquote {
  border-left: 3px solid var(--brand); padding: 1rem 1.5rem; margin: 2rem 0;
  background: rgba(59,130,246,0.04); border-radius: 0 0.5rem 0.5rem 0; max-width: 100%;
}
.dark .article-content blockquote { background: rgba(59,130,246,0.06); }
.article-content blockquote p { font-size: 1.1rem; font-style: italic; margin-bottom: 0; color: var(--text-primary); }
.article-content img {
  width: 100%; max-width: 100%; height: auto; border-radius: 0.75rem; margin: 2rem 0; border: 1px solid var(--border-color);
}
.article-content code {
  background: rgba(59,130,246,0.08); padding: 0.2rem 0.5rem; border-radius: 0.25rem;
  font-size: 0.9rem; font-family: 'Courier New', monospace; word-break: break-word;
}
.article-content pre {
  background: var(--bg-secondary); border: 1px solid var(--border-color); border-radius: 0.75rem;
  padding: 1.5rem; overflow-x: auto; margin: 2rem 0; max-width: 100%;
}
.article-content pre code { background: none; padding: 0; word-break: normal; }

/* Callout Box */
.callout {
  display: flex; gap: 1rem; background: rgba(59,130,246,0.05);
  border: 1px solid rgba(59,130,246,0.12); border-radius: 0.75rem;
  padding: 1.25rem 1.5rem; margin: 2rem 0; max-width: 100%;
}
.dark .callout { background: rgba(59,130,246,0.08); border-color: rgba(59,130,246,0.15); }
.callout-icon { flex-shrink: 0; width: 24px; height: 24px; color: var(--brand); margin-top: 2px; }
.callout p { margin-bottom: 0; font-size: 0.95rem; }

/* Key Takeaways Box */
.key-takeaways {
  background: linear-gradient(135deg, rgba(59,130,246,0.06) 0%, rgba(6,182,212,0.04) 100%);
  border: 1px solid rgba(59,130,246,0.15); border-radius: 0.75rem;
  padding: 1.75rem 2rem; margin: 2.5rem 0; max-width: 100%;
}
.dark .key-takeaways {
  background: linear-gradient(135deg, rgba(59,130,246,0.1) 0%, rgba(6,182,212,0.06) 100%);
  border-color: rgba(59,130,246,0.2);
}
.key-takeaways-title {
  font-family: 'Syne', sans-serif; font-weight: 700; font-size: 0.9rem;
  text-transform: uppercase; letter-spacing: 0.06em; color: var(--brand);
  margin-bottom: 1rem; display: flex; align-items: center; gap: 0.5rem;
}
.key-takeaways-title svg { width: 18px; height: 18px; }
.key-takeaways ul { list-style: none; padding: 0; }
.key-takeaways li {
  font-size: 0.95rem; color: var(--text-secondary); margin-bottom: 0.6rem;
  padding-left: 1.5rem; position: relative; line-height: 1.6;
}
.key-takeaways li::before {
  content: ''; position: absolute; left: 0; top: 0.55rem;
  width: 8px; height: 8px; border-radius: 50%; background: var(--brand);
}

/* In-article CTA Box */
.article-cta {
  background: linear-gradient(135deg, var(--accent) 0%, #dc2626 100%);
  border-radius: 1rem; padding: 2.5rem; margin: 3rem 0; text-align: center; color: #fff; max-width: 100%;
}
.article-cta h3 {
  font-family: 'Syne', sans-serif; font-weight: 800; font-size: 1.4rem;
  margin-bottom: 0.5rem; color: #fff;
}
.article-cta p { color: rgba(255,255,255,0.9); margin-bottom: 1.5rem; font-size: 1rem; }
.article-cta-btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: 'Syne', sans-serif; font-size: 0.85rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.03em; padding: 0.85rem 2rem;
  border-radius: 0.5rem; background: #fff; color: var(--accent); text-decoration: none;
  transition: all 0.2s ease; box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.article-cta-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,0.2); }

/* FAQ Section */
.faq-section { margin: 3rem 0; }
.faq-section-title {
  font-family: 'Syne', sans-serif; font-weight: 700; font-size: 1.5rem;
  margin-bottom: 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--border-color);
}
.faq-item {
  border: 1px solid var(--border-color); border-radius: 0.75rem;
  margin-bottom: 0.75rem; overflow: hidden; transition: border-color 0.2s ease;
}
.faq-item:hover { border-color: rgba(59,130,246,0.25); }
.faq-question {
  width: 100%; background: none; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.15rem 1.5rem; font-family: 'Syne', sans-serif; font-weight: 600;
  font-size: 1rem; color: var(--text-primary); text-align: left; transition: color 0.2s ease;
}
.faq-question:hover { color: var(--brand); }
.faq-question svg {
  width: 18px; height: 18px; flex-shrink: 0; color: var(--text-muted);
  transition: transform 0.3s ease;
}
.faq-item.open .faq-question svg { transform: rotate(180deg); }
.faq-answer {
  max-height: 0; overflow: hidden; transition: max-height 0.3s ease, padding 0.3s ease;
}
.faq-item.open .faq-answer { max-height: 500px; }
.faq-answer-inner {
  padding: 0 1.5rem 1.25rem; font-size: 0.95rem; color: var(--text-secondary); line-height: 1.7;
}

/* Article Tags */
.article-tags {
  display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 2rem;
  padding-top: 1.5rem; border-top: 1px solid var(--border-color);
}
.article-tags-label {
  font-family: 'Syne', sans-serif; font-size: 0.75rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted);
  margin-right: 0.5rem; display: flex; align-items: center;
}
.tag-pill {
  font-size: 0.78rem; font-weight: 500; color: var(--text-secondary);
  background: var(--bg-card); border: 1px solid var(--border-color);
  padding: 0.3rem 0.75rem; border-radius: 999px; text-decoration: none;
  transition: all 0.2s ease;
}
.tag-pill:hover { border-color: var(--brand); color: var(--brand); }

/* ========== RELATED POSTS ========== */
.related-section { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem 5rem; width: 100%; }
.related-section h2 {
  font-family: 'Syne', sans-serif; font-weight: 700; font-size: 1.5rem;
  margin-bottom: 2rem; padding-bottom: 1rem; border-bottom: 1px solid var(--border-color);
}
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
@media (max-width: 860px) { .related-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .related-grid { grid-template-columns: 1fr; } }
.related-card {
  background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 0.75rem;
  overflow: hidden; text-decoration: none; color: inherit; transition: all 0.3s ease; box-shadow: var(--card-shadow);
}
.related-card:hover { transform: translateY(-3px); border-color: rgba(59,130,246,0.2); }
.related-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.related-card-body { padding: 1.25rem; }
.related-card-tag {
  font-family: 'Syne', sans-serif; font-size: 0.6rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em; color: var(--brand); margin-bottom: 0.5rem;
}
.related-card-title {
  font-family: 'Syne', sans-serif; font-weight: 700; font-size: 1rem;
  line-height: 1.3; margin-bottom: 0.4rem;
}
.related-card:hover .related-card-title { color: var(--brand); }
.related-card-date { font-size: 0.78rem; color: var(--text-muted); }

/* ========== FOOTER ========== */
.site-footer { background: var(--bg-secondary); border-top: 1px solid var(--border-color); position: relative; overflow: hidden; width: 100%; }
.footer-gradient-line { position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(59,130,246,0.4), transparent); }
.footer-cta { text-align: center; padding: 5rem 1.5rem 3.5rem; position: relative; }
.footer-cta::before {
  content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 600px; height: 400px;
  background: radial-gradient(circle, var(--glow) 0%, transparent 70%); pointer-events: none;
}
.footer-cta h2 {
  font-family: 'Syne', sans-serif; font-weight: 800;
  font-size: clamp(1.5rem, 3.5vw, 2.25rem); margin-bottom: 0.75rem; letter-spacing: -0.02em;
}
.footer-cta p { color: var(--text-secondary); max-width: 500px; margin: 0 auto 2rem; font-size: 1rem; line-height: 1.7; }
.footer-cta-btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: 'Syne', sans-serif; font-size: 0.85rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.03em; padding: 0.9rem 2rem;
  border-radius: 0.5rem; background: var(--accent); color: #fff; text-decoration: none;
  transition: all 0.2s ease; box-shadow: 0 10px 15px -3px rgba(234,88,12,0.2);
}
.footer-cta-btn:hover { background: var(--accent-hover); transform: translateY(-2px); box-shadow: 0 15px 25px -3px rgba(234,88,12,0.3); }
.footer-main {
  max-width: 1200px; margin: 0 auto; padding: 3rem 1.5rem;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem;
  border-top: 1px solid var(--border-color);
}
@media (max-width: 860px) { .footer-main { grid-template-columns: 1fr 1fr; gap: 2rem; } }
@media (max-width: 500px) { .footer-main { grid-template-columns: 1fr; gap: 1.5rem; } }
.footer-brand p { color: var(--text-muted); font-size: 0.88rem; line-height: 1.7; margin-top: 0.75rem; max-width: 340px; }
.footer-col h4 {
  font-family: 'Syne', sans-serif; font-weight: 700; font-size: 0.8rem;
  text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-primary); margin-bottom: 1rem;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
.footer-col ul a { color: var(--text-muted); font-size: 0.88rem; text-decoration: none; transition: color 0.2s ease; }
.footer-col ul a:hover { color: var(--brand); }
.footer-trust { display: flex; gap: 1rem; margin-top: 1.25rem; flex-wrap: wrap; }
.trust-badge {
  display: inline-flex; align-items: center; gap: 0.35rem; font-size: 0.7rem; font-weight: 600;
  color: var(--text-muted); background: rgba(59,130,246,0.05); border: 1px solid var(--border-color);
  padding: 0.3rem 0.65rem; border-radius: 999px;
}
.trust-badge svg { width: 12px; height: 12px; color: #22c55e; }
.footer-bottom { max-width: 1200px; margin: 0 auto; padding: 1.5rem; border-top: 1px solid var(--border-color); text-align: center; }
.footer-bottom p { font-size: 0.78rem; color: var(--text-muted); }

/* ========== BACK TO TOP ========== */
.back-to-top {
  position: fixed; bottom: 2rem; right: 2rem; width: 44px; height: 44px;
  border-radius: 50%; background: var(--brand); color: #fff; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: all 0.3s ease; box-shadow: 0 4px 12px rgba(59,130,246,0.3); z-index: 50;
}
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--brand-dark); transform: translateY(-2px); }
.back-to-top svg { width: 20px; height: 20px; }

/* ========== ANIMATIONS ========== */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
.animate-in { opacity: 0; animation: fadeInUp 0.6s ease forwards; }
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }
.delay-6 { animation-delay: 0.6s; }

/* ========== FAQ PAGE SPECIFIC ========== */
.faq-hero { padding: 10rem 1.5rem 3rem; text-align: center; position: relative; }
.faq-hero::before {
  content: ''; position: absolute; top: -40%; left: 50%; transform: translateX(-50%);
  width: 800px; height: 800px;
  background: radial-gradient(circle, var(--glow) 0%, transparent 65%); pointer-events: none;
}
.faq-hero h1 {
  font-family: 'Syne', sans-serif; font-weight: 800; font-size: clamp(2rem, 4.5vw, 3rem);
  line-height: 1.15; margin-bottom: 1rem; letter-spacing: -0.03em;
}
.faq-hero p { font-size: 1.1rem; color: var(--text-secondary); max-width: 560px; margin: 0 auto; line-height: 1.7; }
.faq-page-section { max-width: 760px; margin: 0 auto; padding: 2rem 1.5rem 5rem; }
.faq-category-title {
  font-family: 'Syne', sans-serif; font-weight: 700; font-size: 1.25rem;
  margin-bottom: 1.25rem; margin-top: 2.5rem; padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--brand); display: inline-block;
}
.faq-category-title:first-child { margin-top: 0; }

/* ========== IMAGE SHIMMER LOADING ========== */
@keyframes shimmer {
  0% { background-position: -800px 0; }
  100% { background-position: 800px 0; }
}
.featured-image-container {
  position: relative;
  background: var(--bg-secondary);
}
.featured-image-container::before {
  display: none;
}
.featured-image {
  opacity: 1;
}

/* Card images shimmer */
.blog-card .card-image-wrap {
  position: relative;
  background: var(--bg-secondary);
  overflow: hidden;
}
.blog-card .card-image-wrap::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(90deg,
    var(--bg-secondary) 0%,
    rgba(59,130,246,0.06) 20%,
    rgba(59,130,246,0.1) 40%,
    rgba(59,130,246,0.06) 60%,
    var(--bg-secondary) 100%
  );
  background-size: 800px 100%;
  animation: shimmer 1.8s ease-in-out infinite;
  z-index: 1;
}
.blog-card .card-image-wrap.loaded::before {
  opacity: 0;
  transition: opacity 0.4s ease;
}
.blog-card .card-image-wrap .card-image {
  opacity: 1;
}

/* ========== HIDE DATES FROM FRONTEND ========== */
.card-date,
.article-date { display: none; }

/* Progress bar for reading */
.reading-progress {
  position: fixed; top: 72px; left: 0; height: 3px; z-index: 99;
  background: linear-gradient(90deg, var(--gradient-start), var(--gradient-end));
  transition: width 0.1s linear; width: 0%;
}

/* ========== MOBILE ARTICLE RESPONSIVE ========== */

/* Tablets & small laptops */
@media (max-width: 768px) {
  .blog-hero { padding: 8rem 1.25rem 3rem; }
  .blog-hero p { font-size: 1.05rem; }
  .blog-section { padding: 1.5rem 1.25rem 4rem; }

  .article-container { padding: 0 1.25rem; }

  .article-title { font-size: clamp(1.5rem, 5vw, 2rem); margin-bottom: 1rem; }
  .article-subtitle { font-size: 1rem; line-height: 1.65; }

  .author-bar {
    flex-wrap: wrap; gap: 0.75rem; padding: 1rem 0;
  }
  .author-info { min-width: 0; }
  .share-buttons { width: 100%; justify-content: flex-start; gap: 0.6rem; padding-top: 0.5rem; border-top: 1px solid var(--border-color); }

  .toc { padding: 1.25rem 1.25rem; }
  .toc a { font-size: 0.88rem; }

  .article-content h2 { font-size: 1.35rem; margin-top: 2.5rem; }
  .article-content h3 { font-size: 1.1rem; margin-top: 1.5rem; }
  .article-content p { font-size: 1rem; line-height: 1.75; margin-bottom: 1.25rem; }
  .article-content li { font-size: 1rem; line-height: 1.75; }

  .callout { padding: 1rem 1.15rem; gap: 0.75rem; }
  .callout p { font-size: 0.9rem; }

  .key-takeaways { padding: 1.25rem 1.25rem; margin: 2rem 0; }
  .key-takeaways li { font-size: 0.9rem; }

  .article-cta { padding: 2rem 1.5rem; margin: 2rem 0; }
  .article-cta h3 { font-size: 1.2rem; }
  .article-cta p { font-size: 0.95rem; }
  .article-cta-btn { padding: 0.75rem 1.5rem; font-size: 0.8rem; }

  .faq-question { padding: 1rem 1.15rem; font-size: 0.95rem; }
  .faq-answer-inner { padding: 0 1.15rem 1rem; font-size: 0.9rem; }

  .related-section { padding: 0 1.25rem 4rem; }
}

/* Mobile phones */
@media (max-width: 480px) {
  .blog-hero { padding: 6.5rem 1rem 2.5rem; }
  .blog-hero h1 { font-size: 1.75rem; }
  .blog-hero p { font-size: 0.95rem; max-width: 100%; }
  .blog-section { padding: 1rem 1rem 3rem; }
  .blog-grid { gap: 1.25rem; }
  .card-body { padding: 1.15rem; }
  .card-title { font-size: 1.05rem; }
  .card-excerpt { font-size: 0.85rem; }
  .card-footer { margin-top: 1rem; padding-top: 0.75rem; }

  .nav-inner { padding: 0 1rem; height: 60px; }
  .nav-logo { font-size: 1.15rem; }
  .mobile-menu { top: 60px; padding: 1.5rem 1rem; }
  .mobile-menu a { font-size: 1rem; padding: 0.65rem 0; }
  .reading-progress { top: 60px; }
  .article-wrapper { padding-top: 60px; }

  .article-container { padding: 0 1rem; }
  .article-header { margin-top: -1rem; margin-bottom: 1.75rem; }

  .article-breadcrumb { font-size: 0.75rem; gap: 0.3rem; overflow-x: auto; white-space: nowrap; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding-bottom: 0.25rem; max-width: 100%; }
  .article-breadcrumb::-webkit-scrollbar { display: none; }
  .article-breadcrumb svg { width: 12px; height: 12px; }

  .article-meta { gap: 0.6rem; }
  .article-tag { font-size: 0.6rem; padding: 0.25rem 0.6rem; }
  .article-read-time { font-size: 0.78rem; }

  .article-title { font-size: 1.35rem; line-height: 1.2; }
  .article-subtitle { font-size: 0.95rem; }

  .author-bar { margin-bottom: 1.5rem; }
  .author-avatar { width: 38px; height: 38px; font-size: 0.8rem; }
  .author-name { font-size: 0.88rem; }
  .author-desc { font-size: 0.78rem; }
  .share-btn { width: 34px; height: 34px; }
  .share-btn svg { width: 14px; height: 14px; }

  .toc { padding: 1rem; margin-bottom: 2rem; }
  .toc-title { font-size: 0.78rem; margin-bottom: 0.75rem; }
  .toc li { margin-bottom: 0.4rem; }
  .toc li::before { font-size: 0.8rem; }
  .toc a { font-size: 0.85rem; }

  .article-content h2 { font-size: 1.2rem; margin-top: 2rem; padding-top: 1.25rem; }
  .article-content h3 { font-size: 1.05rem; }
  .article-content p { font-size: 0.95rem; line-height: 1.7; margin-bottom: 1.15rem; }
  .article-content li { font-size: 0.95rem; line-height: 1.7; }
  .article-content ul, .article-content ol { padding-left: 1.25rem; }
  .article-content blockquote { padding: 0.85rem 1rem; margin: 1.5rem 0; }
  .article-content blockquote p { font-size: 1rem; }

  .callout { flex-direction: column; gap: 0.5rem; padding: 1rem; margin: 1.5rem 0; }
  .callout-icon { width: 20px; height: 20px; }

  .key-takeaways { padding: 1rem; margin: 1.5rem 0; }
  .key-takeaways-title { font-size: 0.8rem; }
  .key-takeaways li { font-size: 0.88rem; padding-left: 1.25rem; }
  .key-takeaways li::before { width: 6px; height: 6px; top: 0.5rem; }

  .article-cta { padding: 1.5rem 1.15rem; margin: 1.75rem 0; border-radius: 0.75rem; }
  .article-cta h3 { font-size: 1.1rem; }
  .article-cta p { font-size: 0.9rem; margin-bottom: 1.25rem; }
  .article-cta-btn { padding: 0.7rem 1.25rem; font-size: 0.75rem; width: 100%; justify-content: center; }

  .faq-section { margin: 2rem 0; }
  .faq-section-title { font-size: 1.25rem; margin-bottom: 1rem; }
  .faq-item { margin-bottom: 0.6rem; }
  .faq-question { padding: 0.9rem 1rem; font-size: 0.9rem; gap: 0.75rem; }
  .faq-question svg { width: 16px; height: 16px; }
  .faq-answer-inner { padding: 0 1rem 1rem; font-size: 0.88rem; }

  .article-tags { gap: 0.4rem; padding-top: 1.25rem; }
  .article-tags-label { font-size: 0.7rem; }
  .tag-pill { font-size: 0.72rem; padding: 0.25rem 0.6rem; }

  .related-section { padding: 0 1rem 3rem; }
  .related-section h2 { font-size: 1.25rem; margin-bottom: 1.25rem; }
  .related-card-body { padding: 1rem; }
  .related-card-title { font-size: 0.92rem; }

  .footer-cta { padding: 3.5rem 1rem 2.5rem; }
  .footer-cta::before { width: 300px; height: 200px; }
  .footer-cta h2 { font-size: 1.35rem; }
  .footer-cta p { font-size: 0.92rem; max-width: 100%; }
  .footer-cta-btn { padding: 0.8rem 1.5rem; font-size: 0.8rem; }
  .footer-main { padding: 2rem 1rem; gap: 1.5rem; }
  .footer-brand p { max-width: 100%; }
  .footer-trust { gap: 0.5rem; }
  .trust-badge { font-size: 0.65rem; padding: 0.25rem 0.5rem; }
  .footer-bottom { padding: 1.25rem 1rem; }
  .footer-bottom p { font-size: 0.72rem; }

  .back-to-top { bottom: 1.25rem; right: 1.25rem; width: 40px; height: 40px; }
  .back-to-top svg { width: 18px; height: 18px; }

  .featured-image-container { max-height: 220px; }
  .featured-image { height: 220px; }
}

/* Extra small phones (320px-360px) */
@media (max-width: 360px) {
  .blog-hero { padding: 6rem 0.75rem 2rem; }
  .blog-hero h1 { font-size: 1.5rem; }

  .nav-inner { padding: 0 0.75rem; }
  .nav-logo { font-size: 1.05rem; }
  .mobile-menu { padding: 1.25rem 0.75rem; }

  .article-container { padding: 0 0.75rem; }
  .article-title { font-size: 1.2rem; }
  .article-subtitle { font-size: 0.9rem; }

  .author-bar { gap: 0.5rem; }
  .share-btn { width: 32px; height: 32px; }

  .toc { padding: 0.85rem; }
  .toc a { font-size: 0.82rem; }

  .article-content h2 { font-size: 1.1rem; }
  .article-content h3 { font-size: 1rem; }
  .article-content p, .article-content li { font-size: 0.9rem; }
  .article-content ul, .article-content ol { padding-left: 1rem; }

  .callout { padding: 0.85rem; }
  .key-takeaways { padding: 0.85rem; }
  .article-cta { padding: 1.25rem 1rem; }
  .article-cta h3 { font-size: 1rem; }

  .faq-question { padding: 0.8rem 0.85rem; font-size: 0.85rem; }
  .faq-answer-inner { padding: 0 0.85rem 0.85rem; font-size: 0.85rem; }

  .related-section { padding: 0 0.75rem 2.5rem; }
  .related-card-body { padding: 0.85rem; }
  .related-card-title { font-size: 0.88rem; }

  .footer-cta { padding: 3rem 0.75rem 2rem; }
  .footer-main { padding: 1.5rem 0.75rem; }
  .footer-bottom { padding: 1rem 0.75rem; }

  .blog-section { padding: 1rem 0.75rem 3rem; }
}
