:root {
            --primary-color: #1e3c72;
            --primary-gradient: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
            --accent-color: #00c6ff;
            --accent-gradient: linear-gradient(135deg, #00c6ff 0%, #0072ff 100%);
            --bg-body: #f8fafc;
            --bg-card: #ffffff;
            --text-title: #0f172a;
            --text-body: #334155;
            --text-light: #64748b;
            --border-color: #e2e8f0;
            --border-hover: #cbd5e1;
            --accent-hover: #0284c7;
            --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
            --shadow-md: 0 8px 24px rgba(148, 163, 184, 0.08);
            --shadow-lg: 0 16px 36px rgba(148, 163, 184, 0.12);
            --border-radius-md: 12px;
            --border-radius-lg: 20px;
            --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
            --font-display: 'Plus Jakarta Sans', sans-serif;
            --font-sans: 'Inter', sans-serif;
        }
        body.dark-theme {
            --bg-body: #070d19;
            --bg-card: #0c1524;
            --text-title: #f8fafc;
            --text-body: #cbd5e1;
            --text-light: #94a3b8;
            --border-color: #1e293b;
            --border-hover: #334155;
            --accent-color: #00f2fe;
            --accent-gradient: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%);
        }
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        body {
            font-family: var(--font-sans);
            background-color: var(--bg-body);
            color: var(--text-body);
            line-height: 1.7;
            transition: background-color 0.4s ease, color 0.4s ease;
        }
        .container {
            width: 100%;
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 24px;
        }
        /* ── Header ── */
        header {
            position: sticky;
            top: 0;
            z-index: 100;
            height: 80px;
            background: rgba(255, 255, 255, 0.75);
            backdrop-filter: blur(16px);
            border-bottom: 1.5px solid var(--border-color);
            transition: background-color 0.4s ease, border-color 0.4s ease;
        }
        body.dark-theme header {
            background: rgba(7, 13, 25, 0.8);
            border-color: rgba(30, 41, 59, 0.6);
        }
        .nav-container {
            height: 100%;
            display: flex;
            align-items: center;
            justify-content: space-between;
        }
        .logo-group {
            display: flex;
            align-items: center;
            gap: 12px;
            text-decoration: none;
        }
        .logo-icon {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 42px;
            height: 42px;
            background: var(--primary-gradient);
            border-radius: 10px;
        }
        body.dark-theme .logo-icon {
            background: var(--accent-gradient);
        }
        .logo-text {
            font-family: var(--font-display);
            font-size: 18px;
            font-weight: 800;
            background: var(--primary-gradient);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            display: flex;
            flex-direction: column;
            line-height: 1.1;
        }
        body.dark-theme .logo-text {
            background: var(--accent-gradient);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }
        .logo-subtitle {
            font-size: 10px;
            font-weight: 600;
            color: var(--text-light);
            text-transform: uppercase;
            letter-spacing: 1.5px;
            -webkit-text-fill-color: initial;
        }
        .nav-actions {
            display: flex;
            align-items: center;
            gap: 16px;
        }
        .theme-toggle-btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 40px;
            height: 40px;
            background-color: var(--bg-card);
            border: 1.5px solid var(--border-color);
            border-radius: 50%;
            cursor: pointer;
            color: var(--text-title);
            box-shadow: var(--shadow-sm);
            transition: var(--transition);
        }
        .theme-toggle-btn:hover {
            transform: scale(1.05);
            border-color: var(--accent-color);
        }
        .theme-toggle-btn .sun-icon { display: none; }
        .theme-toggle-btn .moon-icon { display: block; }
        body.dark-theme .theme-toggle-btn .sun-icon { display: block; color: #f59e0b; }
        body.dark-theme .theme-toggle-btn .moon-icon { display: none; }
        .btn-nav {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            padding: 10px 20px;
            background-color: var(--bg-card);
            color: var(--text-title);
            border: 1.5px solid var(--border-color);
            font-weight: 600;
            font-size: 13px;
            border-radius: 30px;
            cursor: pointer;
            text-decoration: none;
            box-shadow: var(--shadow-sm);
            transition: var(--transition);
        }
        .btn-nav:hover {
            background-color: var(--primary-color);
            color: #ffffff;
            border-color: var(--primary-color);
            transform: translateY(-2px);
        }
        body.dark-theme .btn-nav:hover {
            background: var(--accent-gradient);
            color: #070d19;
            border-color: transparent;
        }
        /* ── Article Layout ── */
        .article-layout {
            display: flex;
            gap: 40px;
            padding: 50px 0 80px 0;
        }
        .main-content {
            flex: 1;
            min-width: 0;
        }
        .sidebar {
            width: 320px;
            flex-shrink: 0;
        }
        /* ── Breadcrumbs ── */
        .breadcrumbs {
            font-size: 13px;
            color: var(--text-light);
            margin-bottom: 24px;
            display: flex;
            align-items: center;
            gap: 6px;
        }
        .breadcrumbs a {
            color: var(--text-light);
            text-decoration: none;
            transition: var(--transition);
        }
        .breadcrumbs a:hover {
            color: var(--accent-color);
        }
        /* ── Article Header ── */
        .article-category {
            display: inline-block;
            font-size: 11px;
            font-weight: 800;
            text-transform: uppercase;
            padding: 5px 14px;
            border-radius: 30px;
            background: rgba(30, 60, 114, 0.05);
            color: var(--primary-color);
            border: 1px solid rgba(30, 60, 114, 0.1);
            margin-bottom: 16px;
        }
        body.dark-theme .article-category {
            background: rgba(0, 242, 254, 0.06);
            color: var(--accent-color);
            border-color: rgba(0, 242, 254, 0.15);
        }
        .article-title {
            font-family: var(--font-display);
            font-size: 36px;
            font-weight: 800;
            color: var(--text-title);
            line-height: 1.25;
            margin-bottom: 20px;
            letter-spacing: -1px;
        }
        .article-meta {
            display: flex;
            align-items: center;
            gap: 16px;
            font-size: 13px;
            color: var(--text-light);
            margin-bottom: 36px;
            padding-bottom: 24px;
            border-bottom: 1px solid var(--border-color);
        }
        .author-badge {
            font-weight: 700;
            color: var(--text-title);
        }
        /* ── AI Summaries (TL;DR Box) ── */
        .tldr-box {
            background-color: var(--bg-card);
            border: 2px solid var(--accent-color);
            border-radius: var(--border-radius-md);
            padding: 24px;
            margin-bottom: 36px;
            box-shadow: var(--shadow-sm);
        }
        .tldr-title {
            font-family: var(--font-display);
            font-size: 15px;
            font-weight: 800;
            text-transform: uppercase;
            letter-spacing: 1px;
            color: var(--accent-color);
            margin-bottom: 10px;
            display: flex;
            align-items: center;
            gap: 8px;
        }
        .tldr-box p {
            font-size: 15px;
            font-weight: 500;
            color: var(--text-title);
            margin: 0;
        }
        /* ── Body Styles ── */
        .article-body h2 {
            font-family: var(--font-display);
            font-size: 24px;
            font-weight: 800;
            color: var(--text-title);
            margin: 36px 0 16px 0;
        }
        .article-body p {
            margin-bottom: 20px;
            color: var(--text-body);
            font-size: 16px;
        }
        .article-body ul, .article-body ol {
            margin: 0 0 24px 24px;
            color: var(--text-body);
        }
        .article-body li {
            margin-bottom: 8px;
        }
        /* ── Comparison Table ── */
        .comparison-table-wrap {
            overflow-x: auto;
            margin: 30px 0;
            border: 1.5px solid var(--border-color);
            border-radius: var(--border-radius-md);
        }
        table {
            width: 100%;
            border-collapse: collapse;
            text-align: left;
            font-size: 14px;
            background-color: var(--bg-card);
        }
        th, td {
            padding: 14px 20px;
            border-bottom: 1px solid var(--border-color);
        }
        th {
            background-color: rgba(30, 60, 114, 0.03);
            color: var(--text-title);
            font-weight: 700;
        }
        body.dark-theme th {
            background-color: rgba(255, 255, 255, 0.02);
        }
        tr:last-child td {
            border-bottom: none;
        }
        /* ── Sidebar Widgets ── */
        .widget {
            background-color: var(--bg-card);
            border: 1.5px solid var(--border-color);
            border-radius: var(--border-radius-md);
            padding: 24px;
            margin-bottom: 30px;
            box-shadow: var(--shadow-sm);
        }
        .widget-title {
            font-family: var(--font-display);
            font-size: 16px;
            font-weight: 800;
            color: var(--text-title);
            margin-bottom: 16px;
            border-bottom: 1.5px solid var(--border-color);
            padding-bottom: 10px;
        }
        .author-widget {
            text-align: center;
        }
        .widget-avatar {
            width: 60px;
            height: 60px;
            border-radius: 50%;
            background: #0b0f19; /* Dark slate background to match logo backdrop */
            border: 1.5px solid rgba(255, 255, 255, 0.08);
            display: inline-flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 12px;
            overflow: hidden;
        }
        .widget-avatar img {
            width: 85%;
            height: 85%;
            object-fit: contain;
        }
        body.dark-theme .widget-avatar {
            background: #050505;
            border-color: rgba(255, 255, 255, 0.12);
        }
        .cta-widget {
            background: var(--primary-gradient);
            color: #fff;
            border: none;
            text-align: center;
        }
        body.dark-theme .cta-widget {
            background: linear-gradient(135deg, #0c1c38 0%, #070d19 100%);
            border: 1.5px solid var(--border-color);
        }
        .cta-widget .widget-title {
            color: #fff;
            border-color: rgba(255, 255, 255, 0.1);
        }
        .btn-cta {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            width: 100%;
            padding: 12px 20px;
            background-color: #fff;
            color: var(--primary-color);
            text-decoration: none;
            font-weight: 700;
            font-size: 14px;
            border-radius: 20px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
            transition: var(--transition);
            margin-top: 16px;
        }
        body.dark-theme .btn-cta {
            background: var(--accent-gradient);
            color: #070d19;
        }
        .btn-cta:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 20px rgba(0,0,0,0.15);
        }
        /* ── FAQ Section ── */
        .faq-section {
            margin-top: 50px;
            padding-top: 40px;
            border-top: 1.5px solid var(--border-color);
        }
        .faq-item {
            margin-bottom: 24px;
        }
        .faq-question {
            font-size: 18px;
            font-weight: 700;
            color: var(--text-title);
            margin-bottom: 8px;
        }
        /* ── Footer ── */
        footer {
            background: #090e1a;
            color: #ffffff;
            padding: 50px 0;
            border-top: 1px solid rgba(255, 255, 255, 0.04);
        }
        body.dark-theme footer {
            background: #03060c;
        }
        .footer-container {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            text-align: center;
            gap: 20px;
        }
        .footer-logo {
            display: flex;
            align-items: center;
            gap: 10px;
        }
        .footer-logo-text {
            font-size: 18px;
            font-weight: 800;
            color: #ffffff;
        }
        .footer-logo-text span {
            color: var(--accent-color);
        }
        .copyright-text {
            font-size: 14px;
            color: #64748b;
        }
        .copyright-text a {
            color: #94a3b8;
            text-decoration: none;
            font-weight: 600;
        }
        /* ── Responsive ── */
        @media (max-width: 900px) {
            .article-layout { flex-direction: column; }
            .sidebar { width: 100%; }
        }
    
        /* Light Mode CSS Overrides */
        body.light {
            background-color: #E2E8F0 !important;
            color: #0F172A !important;
        }
        body.light nav {
            background-color: rgba(226, 232, 240, 0.85) !important;
            border-color: #CBD5E1 !important;
        }
        body.light .bg-white\/\[0\.02\] {
            background-color: #FFFFFF !important;
            border-color: #CBD5E1 !important;
        }
        body.light .text-zinc-300,
        body.light .text-zinc-400,
        body.light .text-zinc-500 {
            color: #475569 !important;
        }
        body.light .text-white {
            color: #0F172A !important;
        }
        body.light h1,
        body.light h2,
        body.light h3,
        body.light h4,
        body.light h5,
        body.light p,
        body.light td,
        body.light th {
            color: #0F172A !important;
            background: none !important;
            -webkit-text-fill-color: initial !important;
        }
        body.light .text-cyan-400,
        body.light .text-cyan-500 {
            color: #D14425 !important;
        }
        body.light .bg-cyan-500\/10 {
            background-color: rgba(209, 68, 37, 0.08) !important;
            color: #D14425 !important;
        }
        body.light .border-white\/5,
        body.light .border-white\/10 {
            border-color: #CBD5E1 !important;
        }
        body.light .bg-white\/\[0\.01\] {
            background-color: #FFFFFF !important;
        }

    
  /* Back to Top Button styling */
  #backToTopBtn {
      position: fixed;
      bottom: 95px;
      right: 30px;
      z-index: 999;
      width: 48px;
      height: 48px;
      border-radius: 50%;
      background: rgba(30, 41, 59, 0.85);
      backdrop-filter: blur(8px);
      border: 1px solid rgba(255, 255, 255, 0.1);
      color: #fff;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
      transition: all 0.3s ease;
      opacity: 0;
      visibility: hidden;
      transform: translateY(10px);
  }
  #backToTopBtn.show {
      opacity: 1;
      visibility: visible;
      transform: translateY(0);
  }
  #backToTopBtn:hover {
      background: rgba(30, 41, 59, 1);
      transform: translateY(-3px);
  }
  body:not(.dark-theme) #backToTopBtn,
  body.light #backToTopBtn {
      background: rgba(226, 232, 240, 0.85);
      border-color: #CBD5E1;
      color: #0F172A;
      box-shadow: 0 4px 20px rgba(15, 23, 42, 0.08);
  }
  body:not(.dark-theme) #backToTopBtn:hover,
  body.light #backToTopBtn:hover {
      background: #FFFFFF;
  }

/* Preserve white text inside dark widgets and buttons in light mode */
body.light .cta-widget h3,
body.light .cta-widget p,
body.light .cta-widget li,
body.light .cta-widget span,
body.light .bg-zinc-900 h3,
body.light .bg-zinc-900 p,
body.light .bg-zinc-900 span {
    color: #FFFFFF !important;
}

/* -- Article Links & Inline Anchors ------------------ */
.article-body a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px dashed var(--accent-color);
    transition: var(--transition);
}
.article-body a:hover {
    color: var(--text-title);
    border-bottom-style: solid;
}
body.light .article-body a {
    color: #1e3c72;
    border-bottom-color: #1e3c72;
}
body.light .article-body a:hover {
    color: #D14425;
    border-bottom-color: #D14425;
}

/* -- Related Guides Widget ------------------ */
.related-guides {
    margin: 40px 0;
    padding: 24px;
    background-color: var(--bg-card);
    border: 1.5px solid var(--border-color);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-sm);
}
.related-title {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 800;
    color: var(--text-title);
    margin-bottom: 16px;
    border-bottom: none !important;
    padding-bottom: 0 !important;
}
.related-list {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.related-list li {
    margin: 0 !important;
    padding: 0 !important;
    display: flex;
    align-items: center;
}
.related-list li::before {
    content: "→";
    color: var(--accent-color);
    font-weight: 800;
    margin-right: 8px;
}
body.light .related-list li::before {
    color: #D14425;
}
.related-list a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border-bottom: none !important;
}
.related-list a:hover {
    color: var(--text-title);
    text-decoration: underline !important;
}
body.light .related-list a {
    color: #1e3c72;
}
body.light .related-list a:hover {
    color: #D14425;
}

/* -- Article Body Inline CTA Button ------------------ */
.article-body .bg-white.text-black {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: var(--primary-color) !important;
    color: #ffffff !important;
    font-weight: 700;
    font-size: 14px;
    padding: 12px 28px;
    border-radius: 30px;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(30, 60, 114, 0.15);
    margin: 20px 0;
    border: 1px solid var(--primary-color);
}
.article-body .bg-white.text-black:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(30, 60, 114, 0.3);
    background-color: var(--primary-light) !important;
    border-color: var(--primary-light);
}
body.dark-theme .article-body .bg-white.text-black {
    background: var(--accent-gradient) !important;
    color: #070d19 !important;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 242, 254, 0.25);
}
body.dark-theme .article-body .bg-white.text-black:hover {
    box-shadow: 0 8px 24px rgba(0, 242, 254, 0.45);
    transform: translateY(-3px);
}
