:root {
      --primary: #2c5282;
      --accent: #d4a84b;
      --light: #f8fafc;
      --dark: #2c5282;
      --gray: #6b7280;
      --white: #ffffff;
      --radius: 14px;
      --shadow: 0 4px 24px rgba(30,58,95,0.08);
      --transition: 0.3s ease;
    }

    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
    html { scroll-behavior: smooth; scroll-padding-top: 80px; }
    body {
      font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
      color: var(--dark);
      background: var(--white);
      line-height: 1.7;
      overflow-x: hidden;
    }
    main { padding-top: 72px; }
    a { text-decoration: none; color: inherit; }
    img { max-width: 100%; display: block; }

    /* ===== NAV ===== */
    body > header {
      position: sticky; top: 0; z-index: 1000;
      background: #1e3a5f;
      box-shadow: 0 2px 12px rgba(0,0,0,0.2);
    }
    header nav {
      max-width: 1200px; margin: 0 auto; padding: 0 24px;
      display: flex; align-items: center; justify-content: space-between;
      height: 68px;
    }
    .logo { display: flex; align-items: center; gap: 10px; }
    .logo-icon {
      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;
    }
    .logo-text { color: var(--white); }
    .logo-text span { display: block; font-size: 18px; font-weight: 700; letter-spacing: 0.5px; }
    .logo-text small { font-size: 11px; opacity: 0.75; letter-spacing: 1px; }
    .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; font-weight: 500;
      transition: var(--transition);
    }
    .nav-links a:hover, .nav-links a.active { background: rgba(255,255,255,0.15); color: var(--white); }
    .nav-cta {
      background: #d4a84b !important; color: #1e3a5f !important;
      font-weight: 700 !important; border-radius: 6px !important; padding: 8px 18px !important;
    }
    .hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; }
    .hamburger span { display: block; width: 24px; height: 2px; background: #fff; border-radius: 2px; }

    /* ===== BREADCRUMB ===== */
    .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; color: var(--gray); }

    /* ===== ARTICLE HEADER ===== */
    .article-header { background: linear-gradient(135deg, #0e2247 0%, #1a3c6e 60%, #1e4a8a 100%);
      padding: 60px 24px 48px;
      position: relative;
      overflow: hidden }
    .article-header::before {
      content: '';
      position: absolute; inset: 0;
      background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 300"><circle cx="1200" cy="50" r="200" fill="rgba(232,160,32,0.06)"/><circle cx="100" cy="250" r="150" fill="rgba(232,160,32,0.04)"/></svg>') center/cover no-repeat;
    }
    .article-header-inner {
      max-width: 800px; margin: 0 auto;
      position: relative; text-align: center;
    }
    .article-meta {
      display: flex; align-items: center; justify-content: center; gap: 14px;
      font-size: 13px; color: rgba(255,255,255,0.7); margin-bottom: 20px;
      flex-wrap: wrap;
    }
    .article-meta .cat-tag {
      background: rgba(255,255,255,0.15);
      color: var(--accent); padding: 4px 12px;
      border-radius: 20px; font-weight: 700;
      text-transform: uppercase; letter-spacing: 0.5px;
      font-size: 11px;
    }
    .article-header h1 {
      font-size: clamp(24px, 4vw, 38px);
      font-weight: 800; color: var(--white);
      line-height: 1.25; margin-bottom: 16px;
    }
    .article-header h1 em { color: var(--accent); font-style: normal; }

    /* ===== ARTICLE LAYOUT WITH SIDEBAR ===== */
    .article-layout {
      max-width: 1200px; margin: 0 auto;
      padding: 48px 24px;
      display: grid;
      grid-template-columns: 1fr 340px;
      gap: 40px;
    }
    @media (max-width: 1024px) {
      .article-layout { grid-template-columns: 1fr; }
    }

    /* ===== ARTICLE CONTENT ===== */
    .article-container {
      max-width: 100%;
    }
    .article-content h2 {
      font-size: 22px; font-weight: 700;
      color: var(--dark); margin: 40px 0 16px;
    }
    .article-content h3 {
      font-size: 18px; font-weight: 700;
      color: var(--dark); margin: 32px 0 12px;
    }
    .article-content p {
      font-size: 16px; color: #374151;
      line-height: 1.8; margin-bottom: 16px;
    }
    .article-content ul {
      padding-left: 24px; margin-bottom: 20px;
    }
    .article-content ul li {
      font-size: 16px; color: #374151;
      line-height: 1.8; margin-bottom: 10px;
    }
    .table-wrap {
      overflow-x: auto;
      margin: 24px 0;
      -webkit-overflow-scrolling: touch;
    }
    .table-wrap table {
      width: 100%; border-collapse: collapse;
      min-width: 520px; font-size: 14px;
      margin: 0;
    }
    .article-content th {
      background: var(--primary); color: var(--white);
      padding: 12px 16px; text-align: left; font-weight: 600;
      white-space: nowrap;
    }
    .article-content td {
      padding: 12px 16px;
      border-bottom: 1px solid rgba(26,60,110,0.08);
    }
    .article-content tr:nth-child(even) td { background: var(--light); }
    @media (max-width: 768px) {
      .table-wrap table { font-size: 12px; }
      .article-content th, .article-content td { padding: 8px 10px; }
    }

    /* ===== CTA BOX ===== */
    .article-cta {
      background: var(--light); border-radius: 12px;
      padding: 32px; text-align: center; margin: 48px 0;
      border: 1px solid rgba(26,60,110,0.08);
    }
    .article-cta h3 { font-size: 18px; margin-bottom: 12px; color: var(--dark); }
    .article-cta p { margin-bottom: 16px; font-weight: 600; color: var(--dark); font-size: 16px; }
    .article-cta a {
      display: inline-block;
      background: var(--primary); color: var(--white);
      padding: 14px 32px; border-radius: 8px;
      font-size: 15px; font-weight: 700;
      transition: var(--transition);
    }
    .article-cta a:hover { background: #2a5298; transform: translateY(-2px); }

    /* ===== SHARE ===== */
    .article-share {
      display: flex; gap: 10px; flex-wrap: wrap;
      align-items: center; padding-top: 32px;
      border-top: 1px solid rgba(26,60,110,0.08);
    }
    .article-share span { font-size: 14px; color: var(--gray); }
    .share-btn {
      padding: 8px 16px; border-radius: 6px; border: none;
      font-size: 13px; font-weight: 600; cursor: pointer;
      transition: var(--transition); font-family: inherit;
    }
    .share-linkedin { background: #0077b5; color: #fff; }
    .share-twitter { background: #1da1f2; color: #fff; }
    .share-copy { background: var(--light); color: var(--primary); border: 1px solid rgba(26,60,110,0.15); }
    .share-btn:hover { opacity: 0.85; }

    /* ===== RELATED POSTS ===== */
    .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(--dark); margin-bottom: 24px;
      text-align: center;
    }
    .related-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 24px;
    }
    .related-card {
      background: var(--white);
      border-radius: var(--radius);
      overflow: hidden;
      box-shadow: var(--shadow);
      border: 1px solid rgba(26,60,110,0.07);
      transition: var(--transition);
    }
    .related-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(26,60,110,0.14); }
    .related-card-img span { font-size: 48px; opacity: 0.6; }
    .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: 8px;
      line-height: 1.4;
    }
    .related-card-body p {
      font-size: 13px; color: var(--gray);
      line-height: 1.6;
      display: -webkit-box; -webkit-line-clamp: 2;
      -webkit-box-orient: vertical; overflow: hidden;
    }

    /* ===== FOOTER ===== */
    footer { background: var(--primary); color: var(--white); padding: 60px 24px 24px; margin-top: 0; }
    .footer-content { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
    .footer-section h4 { font-size: 16px; font-weight: 700; margin-bottom: 20px; color: var(--accent); }
    .footer-section p, .footer-section li { font-size: 14px; color: rgba(255,255,255,0.8); margin-bottom: 12px; line-height: 1.6; }
    .footer-section a { color: rgba(255,255,255,0.8); transition: var(--transition); }
    .footer-section a:hover { color: var(--accent); }
    .footer-bottom { max-width: 1200px; margin: 40px auto 0; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.1); text-align: center; font-size: 14px; color: rgba(255,255,255,0.6); }

    /* ===== FLOATING BTN ===== */
    .float-btns {
      position: fixed; bottom: 28px; right: 24px;
      display: flex; flex-direction: column; gap: 12px;
      z-index: 999;
    }
    .float-btn {
      background: var(--accent); color: var(--primary);
      border-radius: 50px; padding: 13px 20px;
      font-size: 13px; font-weight: 800;
      box-shadow: 0 4px 18px rgba(232,160,32,0.45);
      display: flex; align-items: center; gap: 8px;
      transition: var(--transition); white-space: nowrap;
    }
    .float-btn:hover { background: #f5b840; transform: translateY(-3px); }
    .float-wa { background: #25d366 !important; color: #fff !important; box-shadow: 0 4px 18px rgba(37,211,102,0.35); }
    .float-wa:hover { background: #20c55b !important; }

    /* ===== SIDEBAR ===== */
    .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; }
    .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;
      transition: var(--transition);
    }
    .cat-list a:hover { color: var(--primary); }
    .cat-list .count {
      background: rgba(26,60,110,0.08);
      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: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: var(--primary);
      padding: 12px 24px; border-radius: 8px;
      font-size: 13px; font-weight: 700;
      transition: var(--transition);
    }
    .sidebar-cta a:hover { background: #f5b840; }

    /* ===== QUICK ANSWER / TOC / AI SUMMARY / FAQ ===== */
    .quick-answer {
      background: #f0f7ff;
      border-left: 4px solid var(--primary);
      padding: 20px 24px;
      margin: 24px 0;
      border-radius: 0 var(--radius) var(--radius) 0;
    }
    .quick-answer p { margin-bottom: 0; }
    .toc {
      display: block;
      background: var(--light);
      border: 1px solid rgba(26,60,110,0.08);
      border-radius: var(--radius);
      padding: 24px;
      margin: 28px 0;
    }
    .toc h3 { font-size: 16px; margin-top: 0; margin-bottom: 14px; color: var(--primary); }
    .toc ol { padding-left: 20px; margin-bottom: 0; }
    .toc li { margin-bottom: 8px; }
    .toc a { color: var(--primary); text-decoration: underline; }
    .ai-summary {
      background: var(--light);
      border: 1px solid rgba(26,60,110,0.1);
      border-radius: var(--radius);
      padding: 24px;
      margin: 40px 0;
    }
    .ai-label {
      display: inline-block;
      background: var(--primary);
      color: var(--white);
      font-size: 12px;
      font-weight: 700;
      padding: 4px 10px;
      border-radius: 4px;
      margin-bottom: 10px;
      text-transform: uppercase;
    }
    .ai-summary p { margin-bottom: 0; }
    .faq-section { margin: 48px 0; }
    .faq-block {
      background: var(--light);
      border: 1px solid rgba(26,60,110,0.08);
      border-radius: 10px;
      padding: 20px 24px;
      margin-bottom: 16px;
    }
    .faq-block h4 { color: var(--primary); font-size: 15px; font-weight: 700; margin-bottom: 10px; }
    .faq-block p { margin-bottom: 0; }

    /* ===== RESPONSIVE ===== */
    @media (max-width: 1024px) {
      .related-grid { grid-template-columns: repeat(2, 1fr); }
      .footer-content { grid-template-columns: repeat(2, 1fr); }
      .article-layout { grid-template-columns: 1fr; }
      .sidebar { display: none; }
    }
    @media (max-width: 768px) {
      .nav-links { display: none; }
      .hamburger { display: flex; }
      .related-grid { grid-template-columns: 1fr; }
      .article-content table { font-size: 12px; }
      .article-content th, .article-content td { padding: 8px 10px; }
      .footer-content { grid-template-columns: 1fr; }
    }
  


    .nav-links.open { 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; }


/* ===== FLOATING CTA OVERLAP FIX v3 ===== */
.float-btns {
  align-items: flex-end;
  max-width: calc(100vw - 48px);
  box-sizing: border-box;
}
.float-btn {
  white-space: nowrap;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
  text-overflow: ellipsis;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
@media (max-width: 480px) {
  .float-btns {
    right: 12px;
    bottom: 16px;
    gap: 10px;
  }
  .float-btn {
    padding: 11px 16px;
    font-size: 13px;
  }
}
