:root {
      --primary: #2c5282;
      --accent: #d4a84b;
      --light: #f8fafc;
      --gray: #6b7280;
      --dark: #1a202c;
      --white: #ffffff;
      --radius: 12px;
      --shadow: 0 4px 24px rgba(30,58,95,0.08);
      --transition: 0.3s ease;
    }
    * { box-sizing: border-box; margin: 0; padding: 0; }
    body { font-family: 'Inter', 'Segoe UI', Arial, sans-serif; color: var(--primary); line-height: 1.7; }

    body > header { background: #1e3a5f; position: sticky; top: 0; z-index: 1000; }
    header nav { max-width: 1200px; margin: 0 auto; padding: 12px 24px; display: flex; justify-content: space-between; align-items: center; }
    .logo { color: var(--white); font-weight: 700; font-size: 20px; text-decoration: none; }
    .nav-links { display: flex; gap: 8px; list-style: none; }
    .nav-links a { color: rgba(255,255,255,0.88); padding: 8px 14px; border-radius: 6px; font-size: 14px; text-decoration: none; transition: var(--transition); }
    .nav-links a:hover, .nav-links a.active { background: rgba(255,255,255,0.15); }

    .breadcrumb { background: var(--light); padding: 12px 0; border-bottom: 1px solid rgba(26,60,110,0.08); }
    .breadcrumb-inner { max-width: 1200px; margin: 0 auto; padding: 0 24px; font-size: 13px; color: var(--gray); }
    .breadcrumb-inner a { color: var(--primary); text-decoration: none; }
    .breadcrumb-inner a:hover { text-decoration: underline; }
    .breadcrumb-sep { margin: 0 8px; }

    .article-header { background: linear-gradient(135deg, #0e2247, #1e4a8a); padding: 64px 24px; text-align: center; color: var(--white) }
    .article-header .tag { display: inline-block; background: rgba(212,168,75,0.25); color: var(--accent); border: 1px solid var(--accent); padding: 4px 14px; border-radius: 20px; font-size: 12px; font-weight: 600; letter-spacing: 0.8px; text-transform: uppercase; margin-bottom: 16px; }
    .article-header h1 { font-size: clamp(24px, 4vw, 38px); font-weight: 800; max-width: 840px; margin: 0 auto 16px; line-height: 1.3; }
    .article-header .meta { opacity: 0.75; font-size: 14px; }

    .article-layout { max-width: 1200px; margin: 0 auto; padding: 48px 24px; display: grid; grid-template-columns: 1fr 320px; gap: 48px; }
    @media (max-width: 860px) { .article-layout { grid-template-columns: 1fr; } }

    .article-content { font-size: 16px; }
    .article-content h2 { font-size: 24px; font-weight: 700; color: var(--dark); margin: 48px 0 16px; padding-bottom: 8px; border-bottom: 2px solid var(--accent); }
    .article-content h3 { font-size: 19px; font-weight: 600; color: var(--primary); margin: 32px 0 12px; }
    .article-content p { margin-bottom: 16px; }
    .article-content a { color: #1e5fbd; text-decoration: underline; }
    .article-content ul, .article-content ol { margin: 0 0 20px 20px; }
    .article-content li { margin-bottom: 8px; }

    /* Featured Snippet */
    .featured-snippet { background: #eef4ff; border-left: 4px solid #2c5282; padding: 20px 24px; margin: 32px 0; border-radius: 0 8px 8px 0; }
    .featured-snippet .label { font-size: 11px; font-weight: 700; text-transform: uppercase; color: #2c5282; letter-spacing: 1px; margin-bottom: 6px; }

    /* TOC */
    .toc {display: block;
      background: var(--light); padding: 24px; border-radius: var(--radius); margin: 32px 0; border: 1px solid rgba(26,60,110,0.08); }
    .toc h4 { font-size: 15px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.8px; color: var(--gray); margin-bottom: 12px; }
    .toc ol { margin: 0; padding-left: 20px; }
    .toc li { margin-bottom: 6px; font-size: 14px; }
    .toc a { color: var(--primary); text-decoration: none; }
    .toc a:hover { text-decoration: underline; }

    /* Table */
    .table-wrap { overflow-x: auto; margin: 24px 0; }
    .table-wrap table { width: 100%; border-collapse: collapse; font-size: 14px; }
    .table-wrap th { background: #1e3a5f; color: #fff; padding: 12px 16px; text-align: left; font-weight: 600; }
    .table-wrap td { padding: 12px 16px; border-bottom: 1px solid #e5e7eb; }
    .table-wrap tr:nth-child(even) td { background: #f8fafc; }

    /* Compare Grid */
    .compare-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 24px 0; }
    @media (max-width: 600px) { .compare-grid { grid-template-columns: 1fr; } }
    .compare-card { background: var(--light); padding: 24px; border-radius: var(--radius); border: 1px solid rgba(26,60,110,0.1); }
    .compare-card h4 { font-size: 17px; font-weight: 700; margin-bottom: 12px; color: var(--dark); }
    .compare-card ul { margin: 0; padding-left: 18px; font-size: 14px; }
    .compare-card.b64 { border-top: 3px solid #2c5282; }
    .compare-card.cdl { border-top: 3px solid var(--accent); }

    /* Quote box */
    .quote-box { background: #fefcf5; border-left: 4px solid var(--accent); padding: 20px 24px; margin: 32px 0; border-radius: 0 8px 8px 0; font-style: italic; color: #4a4a4a; }

    /* AI Summary */
    .ai-summary { background: #1a202c; color: #e5e7eb; padding: 28px; border-radius: var(--radius); margin: 40px 0; }
    .ai-summary .label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; color: var(--accent); margin-bottom: 8px; }
    .ai-summary p { font-size: 15px; line-height: 1.7; margin-bottom: 0; }

    /* CTA Block */
    .article-cta { background: linear-gradient(135deg, #1e4a8a, #2c6ab5); color: #fff; padding: 36px; border-radius: var(--radius); margin: 40px 0; text-align: center; }
    .article-cta h3 { color: #fff; font-size: 22px; margin: 0 0 12px; }
    .article-cta p { color: rgba(255,255,255,0.88); font-size: 15px; margin-bottom: 8px; }
    .article-cta .btn-cta { display: inline-block; background: var(--accent); color: #1a202c; padding: 12px 28px; border-radius: 6px; text-decoration: none; font-weight: 700; font-size: 15px; margin-top: 16px; transition: var(--transition); }
    .article-cta .btn-cta:hover { background: #c19434; }

    /* Sidebar */
    .sidebar-toc { background: var(--light); padding: 24px; border-radius: var(--radius); border: 1px solid rgba(26,60,110,0.08); position: sticky; top: 88px; }
    .sidebar-toc h4 { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--gray); margin-bottom: 12px; }
    .sidebar-toc ol { padding-left: 18px; margin: 0; }
    .sidebar-toc li { margin-bottom: 6px; font-size: 13px; }
    .sidebar-toc a { color: var(--primary); text-decoration: none; }
    .sidebar-toc a:hover { color: var(--accent); }

    .sidebar-cta { background: linear-gradient(135deg, #1e3a5f, #2c5282); color: #fff; padding: 24px; border-radius: var(--radius); margin-top: 20px; text-align: center; }
    .sidebar-cta h4 { font-size: 16px; margin-bottom: 8px; }
    .sidebar-cta p { font-size: 13px; opacity: 0.88; margin-bottom: 12px; }
    .sidebar-cta .btn-side { display: inline-block; background: var(--accent); color: #1a202c; padding: 8px 20px; border-radius: 6px; text-decoration: none; font-weight: 600; font-size: 13px; }

    /* Related Posts */
    .related-section { background: var(--light); padding: 64px 0; }
    .related-inner { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
    .related-inner h2 { font-size: 24px; font-weight: 700; text-align: center; margin-bottom: 32px; }
    .related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
    @media (max-width: 768px) { .related-grid { grid-template-columns: 1fr; } }
    .related-card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: var(--transition); }
    .related-card:hover { transform: translateY(-4px); box-shadow: 0 8px 32px rgba(30,58,95,0.12); }
    .related-img { height: 140px; background: linear-gradient(135deg, #1e3a5f, #2c5282); display: flex; align-items: center; justify-content: center; }
    .related-img span { color: rgba(255,255,255,0.25); font-size: 40px; }
    .related-body { padding: 16px 20px; }
    .related-body h4 { font-size: 15px; font-weight: 600; margin-bottom: 6px; }
    .related-body h4 a { color: var(--dark); text-decoration: none; }
    .related-body h4 a:hover { color: var(--accent); }
    .related-body .tag-sm { display: inline-block; background: rgba(44,82,130,0.1); color: var(--primary); font-size: 11px; font-weight: 600; padding: 2px 10px; border-radius: 12px; }

    /* Footer */
    .site-footer { background: #0e2247; color: rgba(255,255,255,0.7); text-align: center; padding: 32px 24px; font-size: 13px; }
    .site-footer a { color: var(--accent); text-decoration: none; }
  
    .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; }
