:root {
      --primary: #1e3a5f;
      --accent: #2563eb;
      --light: #f8fafc;
      --text: #334155;
      --border: #e2e8f0;
    }
    * { box-sizing: border-box; }
    body { margin: 0; font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; background: #f8fafc; color: #334155; line-height: 1.7; }
    a { color: #2563eb; text-decoration: none; }
    a:hover { text-decoration: underline; }
    img { max-width: 100%; height: auto; }

    /* Navigation */
    .header nav { background: #fff; border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 1000; }
    .nav-inner { max-width: 1280px; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; height: 70px; }
    .nav-logo { font-weight: 800; font-size: 1.4rem; color: var(--primary); }
    .nav-links { display: flex; gap: 28px; align-items: center; }
    .nav-links a { color: #475569; font-size: 0.95rem; font-weight: 500; }
    .nav-links a:hover { color: var(--accent); }
    .nav-cta { background: var(--accent); color: #fff; padding: 10px 20px; border-radius: 6px; font-weight: 600; }
    .nav-cta:hover { background: #1d4ed8; text-decoration: none; }
    .hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 8px; }
    .hamburger span { width: 24px; height: 2px; background: #334155; }

    /* Breadcrumb */
    .breadcrumb { max-width: 1000px; margin: 0 auto; padding: 20px 24px; font-size: 0.88rem; color: #64748b; }
    .breadcrumb a { color: #64748b; }
    .breadcrumb a:hover { color: var(--accent); }

    /* Article layout */
    .article-wrap { max-width: 1000px; margin: 0 auto; padding: 0 24px 60px; display: grid; grid-template-columns: 1fr 320px; gap: 48px; }
    .article-content { min-width: 0; }

    /* Article header */
    .article-header { background: linear-gradient(135deg, #1e3a5f, #0f172a); color: #fff; border-radius: 12px; padding: 40px; margin-bottom: 32px }
    .cat-tag { display: inline-block; background: rgba(255,255,255,0.15); color: #93c5fd; padding: 6px 14px; border-radius: 20px; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 16px; }
    .article-header h1 { font-size: 2.1rem; line-height: 1.25; margin: 0 0 16px; }
    .article-meta { display: flex; flex-wrap: wrap; gap: 16px; font-size: 0.88rem; color: #cbd5e1; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 16px; }

    /* Featured snippet */
    .featured-snippet { background: #eff6ff; border-left: 4px solid var(--accent); padding: 20px 24px; border-radius: 0 8px 8px 0; margin-bottom: 32px; }
    .featured-snippet strong { color: #1e40af; }

    /* Table of contents */
    .toc {display: block;
      background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 24px; margin-bottom: 32px; }
    .toc h3 { margin: 0 0 14px; font-size: 1rem; color: var(--primary);; margin-top: 0}
    .toc ol { margin: 0; padding-left: 20px; }
    .toc li { margin-bottom: 8px; font-size: 0.95rem; }
    .toc a { color: var(--text); }
    .toc a:hover { color: var(--accent); }

    /* Sections */
    .article-content h2 { font-size: 1.55rem; color: var(--primary); margin: 42px 0 18px; padding-bottom: 10px; border-bottom: 1px solid var(--border); }
    .article-content h3 { font-size: 1.2rem; color: #334155; margin: 28px 0 12px; }
    .article-content p { margin: 0 0 16px; color: var(--text); }
    .article-content ul, .article-content ol { margin: 0 0 18px; padding-left: 22px; }
    .article-content li { margin-bottom: 8px; }

    /* Tables */
    .table-wrap { overflow-x: auto; margin: 24px 0; border: 1px solid var(--border); border-radius: 8px; background: #fff; }
    .table-wrap table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
    .table-wrap th { background: #f1f5f9; color: #475569; font-weight: 600; text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--border); }
    .table-wrap td { padding: 14px 16px; border-bottom: 1px solid var(--border); color: #475569; }
    .table-wrap tr:last-child td { border-bottom: none; }

    /* Compare cards */
    .compare-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 24px 0; }
    .compare-card { background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 24px; }
    .compare-card h4 { margin: 0 0 12px; color: var(--primary); }

    /* Checklist / process */
    .checklist { list-style: none; padding-left: 0; }
    .checklist li { position: relative; padding-left: 30px; margin-bottom: 10px; }
    .checklist li::before { content: "✓"; position: absolute; left: 0; color: #16a34a; font-weight: 700; }

    .process-list { list-style: none; padding-left: 0; counter-reset: step; }
    .process-list li { position: relative; padding-left: 44px; margin-bottom: 16px; }
    .process-list li::before { counter-increment: step; content: counter(step); position: absolute; left: 0; top: 0; width: 28px; height: 28px; background: var(--accent); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.85rem; font-weight: 700; }

    /* Quote box */
    .quote-box { border-left: 4px solid #f59e0b; background: #fffbeb; padding: 20px 24px; border-radius: 0 8px 8px 0; margin: 24px 0; font-style: italic; color: #78350f; }

    /* AI Summary */
    .ai-summary { background: #0f172a; color: #e2e8f0; border-radius: 12px; padding: 28px; margin: 40px 0; }
    .ai-summary h3 { color: #93c5fd; margin: 0 0 14px; font-size: 1.1rem; }
    .ai-summary p { color: #cbd5e1; margin: 0; }

    /* Article CTA */
    .article-cta { background: linear-gradient(135deg, #2563eb, #1e40af); color: #fff; border-radius: 12px; padding: 36px; text-align: center; margin: 48px 0; }
    .article-cta h3 { margin: 0 0 12px; font-size: 1.4rem; }
    .article-cta p { color: #dbeafe; margin: 0 0 20px; }
    .article-cta .btn { display: inline-block; background: #fff; color: #1e40af; padding: 12px 28px; border-radius: 6px; font-weight: 700; }
    .article-cta .btn:hover { background: #eff6ff; text-decoration: none; }

    /* Sidebar */
    .sidebar { display: flex; flex-direction: column; gap: 24px; }
    .sidebar-card { background: #fff; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
    .sidebar-head { background: var(--primary); color: #fff; padding: 16px 20px; font-weight: 700; }
    .sidebar-body { padding: 20px; }
    .sidebar-toc { list-style: none; padding: 0; margin: 0; }
    .sidebar-toc li { margin-bottom: 10px; font-size: 0.92rem; }
    .sidebar-toc a { color: #475569; }
    .sidebar-toc a:hover { color: var(--accent); }
    .sidebar-cta { background: #eff6ff; padding: 20px; border-radius: 8px; text-align: center; }
    .sidebar-cta p { margin: 0 0 12px; font-size: 0.9rem; color: #1e3a5f; }
    .sidebar-cta .btn { display: block; background: var(--accent); color: #fff; padding: 10px; border-radius: 6px; font-weight: 600; }

    /* Related posts */
    .related-posts { max-width: 1000px; margin: 0 auto 60px; padding: 0 24px; }
    .related-posts h2 { font-size: 1.5rem; color: var(--primary); margin-bottom: 24px; }
    .related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
    .related-card { background: #fff; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; display: flex; flex-direction: column; }
    .related-img { height: 140px; background: linear-gradient(135deg, #1e3a5f, #3b82f6); }
    .related-body { padding: 20px; flex-grow: 1; display: flex; flex-direction: column; }
    .related-body h4 { margin: 0 0 10px; font-size: 1rem; color: var(--primary); }
    .related-body p { font-size: 0.9rem; color: #64748b; margin: 0 0 16px; flex-grow: 1; }
    .related-body a { font-weight: 600; font-size: 0.9rem; }

    /* Footer */
    .footer { background: #0f172a; color: #cbd5e1; padding: 48px 24px 24px; }
    .footer-inner { max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
    .footer-brand h3 { color: #fff; margin: 0 0 12px; }
    .footer-brand p { margin: 0; font-size: 0.9rem; color: #94a3b8; }
    .footer-col h4 { color: #fff; margin: 0 0 16px; font-size: 1rem; }
    .footer-col ul { list-style: none; padding: 0; margin: 0; }
    .footer-col li { margin-bottom: 10px; }
    .footer-col a { color: #94a3b8; font-size: 0.9rem; }
    .footer-col a:hover { color: #fff; }
    .footer-bottom { max-width: 1280px; margin: 32px auto 0; padding-top: 24px; border-top: 1px solid #1e293b; text-align: center; font-size: 0.85rem; color: #64748b; }

    @media (max-width: 900px) {
      .article-wrap { grid-template-columns: 1fr; }
      .sidebar { display: none; }
      .related-grid { grid-template-columns: 1fr; }
      .compare-grid { grid-template-columns: 1fr; }
      .nav-links { display: none; }
      .hamburger { display: flex; }
    }
  



/* Unified header styles */
body > header {
  background: #1e3a5f !important;
  box-shadow: 0 2px 12px rgba(0,0,0,0.2);
  position: sticky;
  width: 100%;
  top: 0;
  z-index: 1000;
}
header nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 72px;
}
.logo {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
}
header .logo::before {
  content: 'A';
  width: 44px;
  height: 44px;
  background: #d4a84b;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 800;
  color: #1e3a5f;
}
.nav-links {
  display: flex;
  list-style: none;
  gap: 8px;
  align-items: center;
  margin: 0;
  padding: 0;
}
.nav-links a {
  text-decoration: none;
  color: rgba(255,255,255,0.88);
  font-weight: 500;
  font-size: 14px;
  padding: 8px 14px;
  border-radius: 6px;
  transition: all 0.3s ease;
  position: relative;
  display: inline-block;
}
.nav-links a:hover { background: rgba(255,255,255,0.15); color: #fff; }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; }
.hamburger span { display: block; width: 24px; height: 2px; background: #fff; border-radius: 2px; }
.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 8px;
  right: 8px;
  height: 2px;
  background: #d4a84b;
  border-radius: 1px;
}
.nav-cta {
  background: #d4a84b;
  color: #1e3a5f !important;
  padding: 10px 20px;
  border-radius: 6px;
  font-weight: 700;
}
.nav-cta:hover { background: #d49010; transform: translateY(-2px); }
/* Language Switcher */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: 16px;
  padding-left: 16px;
  border-left: 1px solid rgba(255,255,255,0.2);
}
.lang-switcher a {
  font-size: 14px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 6px;
  color: rgba(255,255,255,0.8);
  transition: all 0.3s ease;
  text-decoration: none;
}
.lang-switcher a.active {
  background: rgba(255,255,255,0.25);
  color: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.lang-switcher a:hover:not(.active) { color: #fff; }
/* Resources dropdown nav */
.dropdown { position: relative; display: inline-block; }
.dropdown::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 8px;
  background: transparent;
  z-index: 199;
}

.dropdown-toggle { display: inline-flex; align-items: center; gap: 4px; }
.dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  min-width: 200px;
  padding: 8px 0;
  list-style: none;
  margin: 0;
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
  z-index: 1100;
}
.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu { display: block; z-index: 1100}
.dropdown-menu li { list-style: none; }
.dropdown-menu a {
  display: block;
  padding: 8px 16px;
  font-size: 14px;
  color: #2d3748;
  white-space: nowrap;
  text-decoration: none;
}
.dropdown-menu a:hover { background: #f7fafc; color: #2b6cb0; }
.dropdown-menu a.active { color: #2b6cb0; font-weight: 600; }
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-links.open { display: flex; }
  .hamburger { display: flex; }
}

/* ===== Author Byline ===== */
.author-byline { font-size: 0.95rem; color: #4a5568; margin: 8px 0 24px; }
.author-byline a { color: #2c5282; text-decoration: underline; }
.author-byline a:hover { color: #d4a84b; }
