/* Page styles for blog-details.php (extracted from the original design) */
    /* ==========================================
       CORE STYLES & BRANDING
       Primary Navy: #0f172a
       Secondary Orange: #f97316
       Light Bg: #f8fafc
       Text Main: #334155
    ========================================== */
    :root {
      --primary-navy: #0f172a;
      --navy-light: #1e293b;
      --accent-orange: #f97316;
      --orange-hover: #ea580c;
      --bg-light: #f8fafc;
      --text-dark: #0f172a;
      --text-muted: #64748b;
      --border-color: #e2e8f0;
      --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    }

    * {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
    }

    body {
      font-family: 'Inter', system-ui, -apple-system, sans-serif;
      background-color: var(--bg-light);
      color: var(--text-dark);
      line-height: 1.6;
    }

    a {
      color: var(--accent-orange);
      text-decoration: none;
      transition: all 0.2s ease;
    }

    a:hover {
      color: var(--orange-hover);
    }

    .container {
      max-width: 1240px;
      margin: 0 auto;
      padding: 0 20px;
    }

    /* ==========================================
       TOP HEADER & NAVIGATION
    ========================================== */
    .top-bar {
      background-color: var(--primary-navy);
      color: #94a3b8;
      font-size: 13px;
      padding: 8px 0;
      border-bottom: 1px solid #334155;
    }

    .top-bar .container {
      display: flex;
      justify-content: space-between;
      align-items: center;
    }

    .top-info span {
      margin-right: 20px;
    }

    .top-info i {
      color: var(--accent-orange);
      margin-right: 6px;
    }

    .top-actions button {
      background: var(--accent-orange);
      color: #ffffff;
      border: none;
      padding: 4px 12px;
      border-radius: 4px;
      font-weight: 600;
      font-size: 12px;
      cursor: pointer;
      margin-left: 8px;
    }

    .main-header {
      background-color: #ffffff;
      box-shadow: 0 2px 4px rgba(0,0,0,0.05);
      position: sticky;
      top: 0;
      z-index: 1000;
    }

    .nav-wrapper {
      display: flex;
      justify-content: space-between;
      align-items: center;
      height: 70px;
    }

    .logo {
      display: flex;
      align-items: center;
      font-size: 22px;
      font-weight: 800;
      color: var(--primary-navy);
      letter-spacing: -0.5px;
    }

    .logo i {
      color: var(--accent-orange);
      margin-right: 8px;
      font-size: 26px;
    }

    .nav-links {
      display: flex;
      list-style: none;
      gap: 24px;
      align-items: center;
    }

    .nav-links a {
      color: var(--primary-navy);
      font-weight: 600;
      font-size: 14px;
    }

    .nav-links a.active, .nav-links a:hover {
      color: var(--accent-orange);
    }

    /* ==========================================
       HERO & BREADCRUMBS
    ========================================== */
    .blog-hero {
      background-color: var(--primary-navy);
      color: #ffffff;
      padding: 48px 0 60px;
      position: relative;
    }

    .breadcrumbs {
      display: flex;
      align-items: center;
      gap: 8px;
      font-size: 13px;
      color: #94a3b8;
      margin-bottom: 20px;
    }

    .breadcrumbs a {
      color: #94a3b8;
    }

    .breadcrumbs a:hover {
      color: var(--accent-orange);
    }

    .article-category {
      display: inline-block;
      background: rgba(249, 115, 22, 0.15);
      color: var(--accent-orange);
      font-size: 12px;
      font-weight: 700;
      padding: 4px 12px;
      border-radius: 20px;
      text-transform: uppercase;
      margin-bottom: 16px;
    }

    .article-title {
      font-size: 36px;
      font-weight: 800;
      line-height: 1.25;
      margin-bottom: 20px;
      max-width: 900px;
    }

    .article-meta {
      display: flex;
      align-items: center;
      gap: 20px;
      color: #94a3b8;
      font-size: 14px;
    }

    .author-badge {
      display: flex;
      align-items: center;
      gap: 10px;
    }

    .author-avatar {
      width: 40px;
      height: 40px;
      border-radius: 50%;
      background: var(--accent-orange);
      display: flex;
      align-items: center;
      justify-content: center;
      color: #fff;
      font-weight: 700;
    }

    /* ==========================================
       PAGE CONTENT LAYOUT
    ========================================== */
    .main-layout {
      display: grid;
      grid-template-columns: 1fr 340px;
      gap: 32px;
      margin-top: -30px;
      margin-bottom: 60px;
      position: relative;
      z-index: 10;
    }

    .article-card {
      background: #ffffff;
      border-radius: 8px;
      box-shadow: var(--card-shadow);
      padding: 40px;
      border: 1px solid var(--border-color);
    }

    .featured-img {
      width: 100%;
      height: 380px;
      object-fit: cover;
      border-radius: 6px;
      margin-bottom: 32px;
    }

    /* Table of Contents */
    .toc-box {
      background: #f1f5f9;
      border-left: 4px solid var(--accent-orange);
      padding: 20px;
      border-radius: 0 6px 6px 0;
      margin-bottom: 32px;
    }

    .toc-title {
      font-size: 16px;
      font-weight: 700;
      color: var(--primary-navy);
      margin-bottom: 12px;
    }

    .toc-list {
      list-style: none;
    }

    .toc-list li {
      margin-bottom: 8px;
    }

    .toc-list a {
      color: var(--text-dark);
      font-size: 14px;
      font-weight: 500;
    }

    /* Article Content Typography */
    .content-body h2 {
      font-size: 24px;
      font-weight: 700;
      color: var(--primary-navy);
      margin: 36px 0 16px;
    }

    .content-body h3 {
      font-size: 18px;
      font-weight: 600;
      color: var(--primary-navy);
      margin: 24px 0 12px;
    }

    .content-body p {
      color: #334155;
      font-size: 16px;
      margin-bottom: 20px;
    }

    .callout-box {
      background-color: #fff7ed;
      border: 1px solid #ffedd5;
      border-left: 4px solid var(--accent-orange);
      padding: 20px;
      border-radius: 4px;
      margin: 24px 0;
    }

    .callout-box h4 {
      color: #c2410c;
      font-size: 15px;
      margin-bottom: 6px;
    }

    blockquote {
      border-left: 4px solid var(--primary-navy);
      padding-left: 20px;
      font-style: italic;
      color: #475569;
      margin: 24px 0;
    }

    .code-block {
      background-color: var(--primary-navy);
      color: #e2e8f0;
      font-family: 'JetBrains Mono', monospace;
      padding: 16px;
      border-radius: 6px;
      font-size: 13px;
      overflow-x: auto;
      margin: 20px 0;
    }

    /* Comparison Table */
    .data-table {
      width: 100%;
      border-collapse: collapse;
      margin: 24px 0;
    }

    .data-table th, .data-table td {
      border: 1px solid var(--border-color);
      padding: 12px;
      font-size: 14px;
      text-align: left;
    }

    .data-table th {
      background-color: #f1f5f9;
      color: var(--primary-navy);
    }

    /* Engagement Bar */
    .engagement-bar {
      display: flex;
      justify-content: space-between;
      align-items: center;
      border-top: 1px solid var(--border-color);
      border-bottom: 1px solid var(--border-color);
      padding: 16px 0;
      margin: 40px 0;
    }

    .like-btn {
      background: #f1f5f9;
      border: 1px solid var(--border-color);
      padding: 8px 16px;
      border-radius: 20px;
      cursor: pointer;
      font-weight: 600;
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .like-btn:hover {
      background: #fee2e2;
      color: #ef4444;
      border-color: #fca5a5;
    }

    .share-buttons {
      display: flex;
      gap: 10px;
    }

    .share-btn {
      width: 36px;
      height: 36px;
      border-radius: 50%;
      background: #f1f5f9;
      display: flex;
      align-items: center;
      justify-content: center;
      color: var(--text-dark);
      cursor: pointer;
    }

    .share-btn:hover {
      background: var(--accent-orange);
      color: #fff;
    }

    /* Comments System */
    .comments-section {
      margin-top: 40px;
    }

    .section-title {
      font-size: 20px;
      font-weight: 700;
      color: var(--primary-navy);
      margin-bottom: 20px;
    }

    .comment-item {
      display: flex;
      gap: 16px;
      margin-bottom: 24px;
      border-bottom: 1px solid #f1f5f9;
      padding-bottom: 20px;
    }

    .comment-avatar {
      width: 44px;
      height: 44px;
      border-radius: 50%;
      background: #e2e8f0;
      display: flex;
      align-items: center;
      justify-content: center;
      font-weight: 700;
      color: var(--primary-navy);
      flex-shrink: 0;
    }

    .comment-content h5 {
      font-size: 15px;
      color: var(--primary-navy);
    }

    .comment-content span {
      font-size: 12px;
      color: var(--text-muted);
    }

    .comment-content p {
      font-size: 14px;
      margin-top: 6px;
      color: #475569;
    }

    .comment-form {
      background: #f8fafc;
      padding: 24px;
      border-radius: 6px;
      border: 1px solid var(--border-color);
      margin-top: 30px;
    }

    .form-group {
      margin-bottom: 16px;
    }

    .form-group label {
      display: block;
      font-size: 13px;
      font-weight: 600;
      margin-bottom: 6px;
    }

    .form-control {
      width: 100%;
      padding: 10px;
      border: 1px solid var(--border-color);
      border-radius: 4px;
      font-size: 14px;
      outline: none;
    }

    .form-control:focus {
      border-color: var(--accent-orange);
    }

    .submit-btn {
      background: var(--accent-orange);
      color: #fff;
      border: none;
      padding: 10px 24px;
      border-radius: 4px;
      font-weight: 600;
      cursor: pointer;
    }

    .submit-btn:hover {
      background: var(--orange-hover);
    }

    /* ==========================================
       SIDEBAR WIDGETS
    ========================================== */
    .sidebar-widget {
      background: #ffffff;
      border-radius: 8px;
      padding: 24px;
      box-shadow: var(--card-shadow);
      border: 1px solid var(--border-color);
      margin-bottom: 24px;
    }

    .widget-title {
      font-size: 16px;
      font-weight: 700;
      color: var(--primary-navy);
      padding-bottom: 10px;
      border-bottom: 2px solid var(--accent-orange);
      margin-bottom: 16px;
    }

    .cta-widget {
      background: linear-gradient(135deg, var(--primary-navy), var(--navy-light));
      color: #ffffff;
      text-align: center;
    }

    .cta-widget h4 {
      font-size: 18px;
      margin-bottom: 10px;
    }

    .cta-widget p {
      font-size: 13px;
      color: #cbd5e1;
      margin-bottom: 20px;
    }

    .cta-btn {
      display: block;
      background: var(--accent-orange);
      color: #fff;
      padding: 10px;
      border-radius: 4px;
      font-weight: 700;
    }

    .author-widget {
      text-align: center;
    }

    .author-widget-img {
      width: 80px;
      height: 80px;
      border-radius: 50%;
      background: var(--accent-orange);
      color: #fff;
      font-size: 28px;
      display: flex;
      align-items: center;
      justify-content: center;
      margin: 0 auto 12px;
    }

    /* ==========================================
       FOOTER
    ========================================== */
    footer {
      background-color: var(--primary-navy);
      color: #cbd5e1;
      padding-top: 50px;
      margin-top: 60px;
    }

    .footer-ribbon {
      background-color: var(--accent-orange);
      color: #ffffff;
      display: inline-block;
      padding: 6px 20px;
      font-weight: 700;
      font-size: 14px;
      margin-bottom: 30px;
    }

    .footer-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
      gap: 30px;
      padding-bottom: 40px;
      border-bottom: 1px solid #334155;
    }

    .footer-col h4 {
      color: #ffffff;
      font-size: 16px;
      margin-bottom: 16px;
    }

    .footer-links {
      list-style: none;
    }

    .footer-links li {
      margin-bottom: 8px;
    }

    .footer-links a {
      color: #94a3b8;
      font-size: 13px;
    }

    .footer-bottom {
      padding: 20px 0;
      text-align: center;
      font-size: 13px;
      color: #64748b;
    }

    /* Floating Chat Widget */
    .floating-chat {
      position: fixed;
      bottom: 20px;
      right: 20px;
      background: var(--accent-orange);
      color: #fff;
      padding: 12px 20px;
      border-radius: 30px;
      font-weight: 700;
      box-shadow: 0 4px 12px rgba(249, 115, 22, 0.4);
      cursor: pointer;
      display: flex;
      align-items: center;
      gap: 8px;
      z-index: 1000;
    }

    @media (max-width: 900px) {
      .main-layout {
        grid-template-columns: 1fr;
      }
      .article-title {
        font-size: 26px;
      }
    }
  


/* ===== Dynamic article additions (content written in the admin editor) ===== */
.content-body ul, .content-body ol { margin: 0 0 20px 26px; padding: 0; color: #334155; font-size: 16px; }
.content-body li { margin-bottom: 6px; }
.content-body a { text-decoration: underline; }
.content-body img { max-width: 100%; height: auto; border-radius: 6px; margin: 8px 0 20px; }
.content-body h4 { font-size: 16px; font-weight: 600; color: var(--primary-navy); margin: 18px 0 8px; }
.content-body .callout-box p:last-child { margin-bottom: 0; }
.content-body pre.code-block, .content-body .code-block { white-space: pre-wrap; word-break: break-word; }
.content-body table { display: block; overflow-x: auto; }
a.article-category { text-decoration: none; }
a.share-btn { text-decoration: none; }
.related-list { list-style: none; }
.related-list li { padding: 10px 0; border-bottom: 1px solid #f1f5f9; }
.related-list li:last-child { border-bottom: 0; }
.related-list a { display: block; color: var(--primary-navy); font-weight: 600; font-size: 14px; line-height: 1.4; }
.related-list a:hover { color: var(--accent-orange); }
.related-list span { font-size: 12px; color: var(--text-muted); }
.author-widget-img { font-weight: 700; }
