:root {
      --primary: #1a1a1a;
      --accent: #2563eb;
      --bg: #ffffff;
      --text: #333333;
      --muted: #666666;
      --border: #e0e0e0;
      --light-bg: #f9fafb;
      --cta-bg: #f4f4f4;
      --radius: 8px;
    }

    *,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
    body {
      font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
      color: var(--text);
      line-height: 1.7;
      background: var(--bg);
    }
    a { color: var(--accent); text-decoration: none; }
    a:hover { text-decoration: underline; }

    /* NAV */
    .nav-bar {
      background: #fff;
      border-bottom: 1px solid var(--border);
      padding: 0 24px; height: 60px;
      display: flex; align-items: center; justify-content: space-between;
      position: sticky; top: 0; z-index: 1000;
    }
    .nav-logo a {
      font-size: 1.3rem; font-weight: 700; color: var(--primary);
    }
    .nav-links { display: flex; gap: 24px; list-style: none; }
    .nav-links a { color: var(--primary); font-weight: 500; font-size: 0.9rem; }

    /* BREADCRUMB */
    .breadcrumb {
      max-width: 900px; margin: 0 auto; padding: 16px 24px 0;
      font-size: 0.85rem; color: var(--muted);
    }
    .breadcrumb a { color: var(--muted); }
    .breadcrumb span { color: var(--primary); }

    /* ARTICLE HEADER */
    .article-header { max-width: 900px; margin: 0 auto; padding: 32px 24px 24px }
    .category-tag {
      display: inline-block; background: var(--primary); color: #fff;
      padding: 4px 12px; border-radius: 4px; font-size: 0.8rem;
      font-weight: 600; text-transform: uppercase; margin-bottom: 12px;
    }
    .article-header h1 {
      font-size: 2rem; color: var(--primary); line-height: 1.3; margin-bottom: 12px;
    }
    .article-meta { color: var(--muted); font-size: 0.9rem; }

    /* LAYOUT */
    .article-layout {
      max-width: 1200px; margin: 0 auto; padding: 0 24px;
      display: grid; grid-template-columns: 1fr 280px; gap: 40px;
    }
    .article-content { min-width: 0; }
    .sidebar { position: sticky; top: 80px; align-self: start; }

    /* CONTENT STYLING */
    .article-content h2 {
      font-size: 1.5rem; color: var(--primary); margin: 40px 0 16px;
      padding-bottom: 8px; border-bottom: 2px solid var(--border);
    }
    .article-content h3 { font-size: 1.15rem; color: var(--primary); margin: 24px 0 8px; }
    .article-content p { margin-bottom: 16px; color: #444; }
    .article-content ul, .article-content ol { margin: 16px 0 24px 20px; }
    .article-content li { margin-bottom: 10px; color: #444; }

    /* FEATURED SNIPPET */
    .quick-answer {
      background: #f0f7ff; border-left: 4px solid var(--accent);
      padding: 20px 24px; margin-bottom: 28px; border-radius: 0 var(--radius) var(--radius) 0;
    }
    .quick-answer strong { color: var(--primary); font-size: 1rem; }

    /* TABLE OF CONTENTS */
    .toc-box {
      background: var(--light-bg); padding: 20px 24px;
      border-radius: var(--radius); border: 1px solid var(--border); margin-bottom: 32px;
    }
    .toc-box h4 { margin-bottom: 12px; font-size: 1rem; color: var(--primary); }
    .toc-box ol { margin: 0 0 0 20px; }
    .toc-box li { margin-bottom: 6px; }
    .toc-box a { color: var(--accent); font-size: 0.9rem; }

    /* TABLES */
    .table-wrap { overflow-x: auto; margin: 20px 0 28px; }
    .table-wrap table {
      width: 100%; border-collapse: collapse; font-size: 0.9rem;
    }
    .table-wrap thead th {
      background: var(--primary); color: #fff; padding: 12px;
      border: 1px solid #555; text-align: left;
    }
    .table-wrap tbody td {
      padding: 10px 12px; border: 1px solid var(--border);
    }
    .table-wrap tbody tr:nth-child(even) { background: var(--light-bg); }

    /* COMPARE CARDS */
    .compare-grid {
      display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
      margin: 20px 0 28px;
    }
    .compare-card {
      background: var(--light-bg); border: 1px solid var(--border);
      border-radius: var(--radius); padding: 20px;
    }
    .compare-card h4 { font-size: 1rem; color: var(--primary); margin-bottom: 8px; }
    .compare-card p { font-size: 0.9rem; color: #555; }

    /* PROCESS LIST */
    .process-list { list-style: none; padding: 0; margin: 20px 0 28px; }
    .process-list li {
      display: flex; gap: 16px; margin-bottom: 18px; align-items: flex-start;
    }
    .process-list .step-num {
      flex-shrink: 0; width: 36px; height: 36px; background: var(--primary);
      color: #fff; border-radius: 50%; display: flex; align-items: center;
      justify-content: center; font-weight: 700; font-size: 1rem;
    }
    .process-list .step-body strong { display: block; margin-bottom: 4px; color: var(--primary); }
    .process-list .step-body p { color: #555; font-size: 0.9rem; }
    .process-list .step-body a { color: var(--accent); }

    /* QUOTE BOX */
    .quote-box {
      background: #fffdf0; border-left: 4px solid #e6b800;
      padding: 16px 20px; margin: 20px 0 28px;
      font-family: 'Courier New', Courier, monospace; font-size: 0.9rem;
      color: #555;
    }

    /* AI SUMMARY */
    .ai-summary {
      background: #1a1a2e; color: #e0e0e0; padding: 24px;
      border-radius: var(--radius); margin: 32px 0 24px;
    }
    .ai-summary h3 { color: #fff; margin-bottom: 8px; font-size: 1.1rem; }
    .ai-summary p { color: #ccc; font-size: 0.9rem; }

    /* ARTICLE CTA */
    .article-cta {
      background: linear-gradient(135deg, #1a3a5c, #3a6fb5);
      color: #fff; padding: 28px 32px; border-radius: var(--radius);
      margin: 32px 0 24px;
    }
    .article-cta h3 { color: #fff; margin-bottom: 8px; font-size: 1.2rem; }
    .article-cta p { color: #d0d8e8; font-size: 0.9rem; margin-bottom: 8px; }
    .article-cta a { color: #fff; }
    .cta-btn {
      display: inline-block; background: #fff; color: var(--primary) !important;
      padding: 10px 24px; border-radius: 4px; font-weight: 700; margin-top: 12px;
      font-size: 0.9rem;
    }
    .cta-btn:hover { background: #e8f0fe; text-decoration: none; }

    /* SIDEBAR */
    .sidebar-toc, .sidebar-cta {
      background: var(--light-bg); border: 1px solid var(--border);
      border-radius: var(--radius); padding: 20px; margin-bottom: 20px;
    }
    .sidebar-toc h4, .sidebar-cta h4 { font-size: 0.95rem; color: var(--primary); margin-bottom: 12px; }
    .sidebar-toc ol { margin: 0 0 0 18px; }
    .sidebar-toc li { margin-bottom: 6px; }
    .sidebar-toc a { font-size: 0.85rem; color: var(--accent); }
    .sidebar-cta p { font-size: 0.85rem; color: #555; margin-bottom: 12px; }
    .sidebar-cta .cta-btn { font-size: 0.8rem; padding: 8px 16px; }

    /* RELATED POSTS */
    .related-posts {
      max-width: 1200px; margin: 40px auto; padding: 0 24px;
    }
    .related-posts h3 { font-size: 1.3rem; color: var(--primary); margin-bottom: 20px; }
    .related-grid {
      display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
    }
    .related-card {
      border: 1px solid var(--border); border-radius: var(--radius);
      padding: 20px; transition: box-shadow .2s;
    }
    .related-card:hover { box-shadow: 0 2px 12px rgba(0,0,0,0.1); }
    .related-card .cat-tag {
      display: inline-block; background: var(--primary); color: #fff;
      padding: 2px 8px; border-radius: 3px; font-size: 0.7rem; font-weight: 600;
      text-transform: uppercase; margin-bottom: 8px;
    }
    .related-card h4 { font-size: 1rem; margin-bottom: 8px; }
    .related-card h4 a { color: var(--primary); }
    .related-card p { font-size: 0.85rem; color: var(--muted); }

    /* FOOTER */
    .site-footer {
      background: var(--primary); color: #ccc; text-align: center;
      padding: 24px; font-size: 0.85rem; margin-top: 40px;
    }

    @media (max-width: 900px) {
      .article-layout { grid-template-columns: 1fr; }
      .sidebar { position: static; }
      .compare-grid { grid-template-columns: 1fr; }
      .related-grid { grid-template-columns: 1fr 1fr; }
    }
    @media (max-width: 600px) {
      .related-grid { grid-template-columns: 1fr; }
      .article-header h1 { font-size: 1.5rem; }
    }
  
    .hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; }
    .hamburger span { display: block; width: 24px; height: 2px; background: #fff; border-radius: 2px; }
    @media (max-width: 768px) {
      header .nav-links, nav .nav-links { display: none; position: absolute; top: 56px; left: 0; right: 0; background: #1e3a5f; flex-direction: column; padding: 16px; gap: 4px; }
      header .nav-links.open, nav .nav-links.open { display: flex; }
      header .hamburger, nav .hamburger { display: flex; }
    }

  


/* 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 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; }




/* 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-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; }
