: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: 1024px) { .article-layout { grid-template-columns: 1fr; } .sidebar { display: none; } }

    .article-content h2 { font-size: 26px; font-weight: 800; color: var(--dark); margin: 40px 0 14px; padding-top: 8px; border-top: 3px solid var(--accent); display: inline-block; padding-bottom: 4px; }
    .article-content h3 { font-size: 19px; font-weight: 700; color: var(--primary); margin: 28px 0 10px; }
    .article-content p { margin-bottom: 18px; color: #374151; line-height: 1.85; font-size: 15.5px; }
    .article-content ul, .article-content ol { padding-left: 24px; margin-bottom: 18px; color: #374151; }
    .article-content li { margin-bottom: 8px; font-size: 15.5px; line-height: 1.8; }
    .article-content strong { color: var(--dark); }
    .article-content a { color: var(--primary); text-decoration: underline; }
    .article-content img { max-width: 100%; border-radius: var(--radius); margin: 20px 0; box-shadow: var(--shadow); }

    .featured-snippet {
      background: linear-gradient(135deg, #eff6ff, #f0f9ff);
      border: 2px solid var(--primary);
      border-radius: var(--radius);
      padding: 28px 28px 24px;
      margin: 24px 0 32px;
      position: relative;
    }
    .featured-snippet::before {
      content: 'Quick Answer';
      position: absolute; top: -12px; left: 24px;
      background: var(--primary); color: var(--white);
      padding: 4px 16px; border-radius: 20px;
      font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
    }
    .featured-snippet p { font-size: 15px; color: #1e3a5f; margin-bottom: 12px; }
    .featured-snippet p:last-child { margin-bottom: 0; }

    .table-wrap { overflow-x: auto; margin: 24px 0 32px; border-radius: var(--radius); box-shadow: var(--shadow); }
    table { width: 100%; border-collapse: collapse; font-size: 14px; }
    thead th { background: var(--primary); color: var(--white); padding: 14px 16px; text-align: left; font-weight: 700; font-size: 13px; letter-spacing: 0.4px; }
    thead th:first-child { border-radius: var(--radius) 0 0 0; }
    thead th:last-child { border-radius: 0 var(--radius) 0 0; }
    tbody td { padding: 12px 16px; border-bottom: 1px solid rgba(26,60,110,0.08); color: #374151; }
    tbody tr:last-child td { border-bottom: none; }
    tbody tr:nth-child(even) { background: #f8fafc; }

    .checklist { list-style: none; padding: 0; margin: 20px 0; }
    .checklist li { padding: 10px 0 10px 36px; border-bottom: 1px solid rgba(26,60,110,0.06); position: relative; font-size: 15.5px; color: #374151; }
    .checklist li:last-child { border-bottom: none; }
    .checklist li::before { content: '✓'; position: absolute; left: 0; top: 10px; width: 24px; height: 24px; background: var(--primary); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; line-height: 24px; text-align: center; }

    .compare-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 24px 0 32px; }
    @media (max-width: 768px) { .compare-grid { grid-template-columns: 1fr; } }
    .compare-card { background: var(--white); border: 1px solid rgba(44,82,130,0.15); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
    .compare-card h4 { font-size: 15px; font-weight: 800; color: var(--primary); margin-bottom: 10px; padding-bottom: 8px; border-bottom: 2px solid var(--accent); }
    .compare-card p { font-size: 13.5px; color: #374151; margin-bottom: 8px; line-height: 1.6; }
    .compare-card p:last-child { margin-bottom: 0; }

    .alert { border-radius: 10px; padding: 18px 22px; margin: 24px 0; font-size: 14.5px; line-height: 1.7; }
    .alert-info { background: #eff6ff; border: 1px solid #bfdbfe; color: #1e40af; }
    .alert-warning { background: #fffbeb; border: 1px solid #fde68a; color: #92400e; }
    .alert strong { font-weight: 700; display: block; margin-bottom: 4px; }

    .ai-summary { background: #1a202c; border-radius: var(--radius); padding: 28px 32px; margin: 40px 0; color: rgba(255,255,255,0.9); }
    .ai-summary h3 { font-size: 14px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
    .ai-summary p { font-size: 14.5px; color: rgba(255,255,255,0.85); margin-bottom: 10px; line-height: 1.75; }
    .ai-summary p:last-child { margin-bottom: 0; }

    .article-cta { background: linear-gradient(135deg, #0e2247, #1e4a8a); padding: 40px 32px; text-align: center; margin: 48px 0; border-radius: var(--radius); color: var(--white); }
    .article-cta h2 { font-size: 22px; font-weight: 800; margin-bottom: 12px; border: none; padding: 0; color: var(--white); }
    .article-cta p { opacity: 0.9; color: var(--white); margin-bottom: 20px; font-size: 14.5px; max-width: 600px; margin-left: auto; margin-right: auto; }
    .article-cta .btn { display: inline-block; background: var(--accent); color: #1a1a1a; padding: 14px 32px; border-radius: 8px; text-decoration: none; font-weight: 700; font-size: 15px; transition: var(--transition); }
    .article-cta .btn:hover { background: #f0b93a; }
    .article-cta .secondary-link { display: block; margin-top: 14px; font-size: 13px; opacity: 0.6; }

    .sidebar { display: flex; flex-direction: column; gap: 24px; }
    .sidebar-card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid rgba(26,60,110,0.07); overflow: hidden; }
    .sidebar-card .sidebar-head { background: var(--primary); color: var(--white); padding: 14px 20px; font-size: 14px; font-weight: 700; letter-spacing: 0.5px; }
    .sidebar-card .sidebar-body { padding: 20px; }
    .toc {display: block;
      list-style: none; padding: 0; }
    .toc li { padding: 8px 0; border-bottom: 1px solid rgba(26,60,110,0.06); }
    .toc li:last-child { border-bottom: none; }
    .toc a { font-size: 13px; color: var(--dark); font-weight: 500; text-decoration: none; transition: var(--transition); }
    .toc a:hover { color: var(--primary); }
    .cat-list { list-style: none; }
    .cat-list li { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid rgba(26,60,110,0.06); }
    .cat-list li:last-child { border-bottom: none; }
    .cat-list a { font-size: 13px; color: var(--dark); font-weight: 500; text-decoration: none; transition: var(--transition); }
    .cat-list a:hover { color: var(--primary); }
    .cat-list .count { background: rgba(44,82,130,0.1); color: var(--primary); padding: 3px 9px; border-radius: 20px; font-size: 11px; font-weight: 700; }
    .popular-post { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid rgba(26,60,110,0.06); }
    .popular-post:last-child { border-bottom: none; }
    .popular-num { width: 28px; height: 28px; flex-shrink: 0; background: var(--primary); color: var(--white); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; margin-top: 2px; }
    .popular-info h4 { font-size: 13px; font-weight: 600; color: var(--dark); margin-bottom: 4px; line-height: 1.4; }
    .popular-info h4 a { text-decoration: none; color: inherit; }
    .popular-info h4 a:hover { color: var(--primary); }
    .popular-info span { font-size: 11px; color: var(--gray); }
    .sidebar-cta { background: linear-gradient(135deg, var(--primary), #1a3c6e); border-radius: var(--radius); padding: 24px; color: var(--white); text-align: center; }
    .sidebar-cta h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
    .sidebar-cta p { font-size: 13px; opacity: 0.9; margin-bottom: 16px; }
    .sidebar-cta a { display: inline-block; background: var(--accent); color: #1a1a1a; padding: 10px 24px; border-radius: 8px; text-decoration: none; font-weight: 700; font-size: 13px; transition: var(--transition); }
    .sidebar-cta a:hover { background: #f0b93a; }

    .related-posts { background: var(--light); padding: 60px 24px; }
    .related-posts-inner { max-width: 1200px; margin: 0 auto; }
    .related-posts h2 { font-size: 24px; font-weight: 700; color: var(--primary); margin-bottom: 24px; text-align: center; }
    .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: var(--white); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); border: 1px solid rgba(26,60,110,0.07); text-decoration: none; transition: var(--transition); display: block; }
    .related-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(30,58,95,0.14); }
    .related-card-body { padding: 24px 20px 20px; border-top: 4px solid var(--primary) }
    .related-card-body h3 { font-size: 15px; font-weight: 700; color: var(--dark); margin-bottom: 6px; line-height: 1.4; }
    .related-card-body p { font-size: 13px; color: var(--gray); margin: 0; }

    footer { background: #1a1a1a; color: rgba(255,255,255,0.5); text-align: center; padding: 24px; font-size: 13px; }
    @media print { .sidebar, .related-posts, footer, header, .breadcrumb { display: 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; }
