:root {
      --primary: #007bff;
      --primary-dark: #0056b3;
      --navy: #0a3663;
      --navy-dark: #072242;
      --slate-50: #f8fafc;
      --slate-100: #f1f5f9;
      --slate-200: #e2e8f0;
      --slate-600: #475569;
      --slate-800: #1e293b;
    }

    body {
      background: #f4f7f6;
      font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
      color: #334155;
      min-height: 100vh;
      display: flex;
      flex-direction: column;
    }

    /* Navbar */
    .navbar {
      background: #ffffff;
      border-bottom: 1px solid #e0e0e0;
      padding: 10px 24px;
      box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
    }

    .nav-link {
      color: #555 !important;
      font-weight: 500;
      margin-right: 8px;
      transition: color 0.15s ease;
    }

    .nav-link:hover,
    .nav-link.active {
      color: #0284c7 !important;
    }

    /* Language Switcher */
    .lang-switch-pill {
      display: inline-flex;
      align-items: center;
      background: #f1f5f9;
      border: 1px solid #cbd5e1;
      border-radius: 30px;
      padding: 3px;
      box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    }

    .lang-btn {
      background: transparent;
      border: none;
      outline: none;
      font-family: 'Inter', sans-serif;
      font-size: 0.82rem;
      font-weight: 600;
      color: #475569;
      padding: 4px 12px;
      border-radius: 20px;
      cursor: pointer;
      transition: all 0.2s ease-in-out;
      display: inline-flex;
      align-items: center;
      gap: 5px;
    }

    .lang-btn:hover {
      color: #0f172a;
    }

    .lang-btn.active {
      background: #0284c7;
      color: #ffffff;
      box-shadow: 0 2px 6px rgba(2, 132, 199, 0.35);
    }

    .lang-nav-pill {
      display: inline-flex;
      align-items: center;
      background: #f1f5f9;
      border: 1px solid #cbd5e1;
      border-radius: 20px;
      padding: 2px;
    }

    .lang-btn-nav {
      background: transparent;
      border: none;
      font-size: 0.78rem;
      font-weight: 700;
      color: #64748b;
      padding: 3px 8px;
      border-radius: 16px;
      cursor: pointer;
      transition: all 0.15s ease;
    }

    .lang-btn-nav.active {
      background: #0284c7;
      color: #ffffff;
    }

    /* Google Translate clean display */
    .goog-te-banner-frame.skiptranslate,
    .goog-te-banner-frame,
    iframe.goog-te-banner-frame,
    #goog-gt-tt,
    .goog-te-balloon-frame {
      display: none !important;
    }
    body {
      top: 0px !important;
    }
    .goog-text-highlight {
      background: none !important;
      box-shadow: none !important;
    }
    #google_translate_element {
      display: none !important;
    }

    /* Main Container */
    .main-content {
      max-width: 1140px;
      margin: 25px auto 60px auto;
      padding: 0 20px;
      flex: 1;
      width: 100%;
    }

    /* Breadcrumbs */
    .breadcrumb-nav {
      font-size: 0.88rem;
      color: #64748b;
      margin-bottom: 20px;
    }

    .breadcrumb-nav a {
      color: #0284c7;
      text-decoration: none;
    }

    .breadcrumb-nav a:hover {
      text-decoration: underline;
    }

    /* Article Header */
    .article-header-card {
      background: #ffffff;
      border: 1px solid #e2e8f0;
      border-radius: 12px;
      padding: 36px 40px;
      box-shadow: 0 4px 14px rgba(0, 0, 0, 0.03);
      margin-bottom: 25px;
    }

    .category-badge {
      background: #e0f2fe;
      color: #0284c7;
      font-size: 0.8rem;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.5px;
      padding: 5px 12px;
      border-radius: 6px;
      display: inline-block;
      margin-bottom: 14px;
    }

    .article-main-title {
      font-family: 'Outfit', sans-serif;
      font-weight: 800;
      font-size: 2.3rem;
      line-height: 1.25;
      color: #0a3663;
      margin-bottom: 18px;
      letter-spacing: -0.5px;
    }

    .article-meta-bar {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      gap: 18px;
      color: #64748b;
      font-size: 0.92rem;
      padding-top: 14px;
      border-top: 1px solid #f1f5f9;
    }

    .meta-item {
      display: flex;
      align-items: center;
      gap: 6px;
    }

    /* Article Content Container */
    .article-body-card {
      background: #ffffff;
      border: 1px solid #e2e8f0;
      border-radius: 12px;
      padding: 40px;
      box-shadow: 0 4px 14px rgba(0, 0, 0, 0.03);
      margin-bottom: 30px;
    }

    /* Typography inside article */
    .article-body {
      font-size: 1.05rem;
      line-height: 1.8;
      color: #27364b;
    }

    .article-body h2 {
      font-family: 'Outfit', sans-serif;
      font-weight: 700;
      font-size: 1.6rem;
      color: #0a3663;
      margin-top: 36px;
      margin-bottom: 16px;
      padding-bottom: 8px;
      border-bottom: 2px solid #f1f5f9;
    }

    .article-body h3 {
      font-family: 'Outfit', sans-serif;
      font-weight: 600;
      font-size: 1.3rem;
      color: #1e293b;
      margin-top: 26px;
      margin-bottom: 12px;
    }

    .article-body h4 {
      font-family: 'Outfit', sans-serif;
      font-weight: 600;
      font-size: 1.15rem;
      color: #334155;
      margin-top: 20px;
      margin-bottom: 10px;
    }

    .article-body p {
      margin-bottom: 18px;
    }

    .article-body ul, .article-body ol {
      margin-bottom: 22px;
      padding-left: 28px;
    }

    .article-body li {
      margin-bottom: 8px;
    }

    .article-body strong {
      color: #0f172a;
    }

    .article-body blockquote {
      border-left: 4px solid #0284c7;
      background: #f0f9ff;
      padding: 16px 20px;
      border-radius: 0 8px 8px 0;
      margin: 24px 0;
      color: #0369a1;
      font-style: italic;
    }

    /* Image and Figure formatting inside article */
    .article-body figure {
      margin: 28px auto;
      text-align: center;
      max-width: 100%;
    }

    .article-body img {
      max-width: 100%;
      height: auto;
      border-radius: 10px;
      margin: 24px auto;
      display: block;
      box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
      border: 1px solid #e2e8f0;
      transition: transform 0.2s ease, box-shadow 0.2s ease;
    }

    .article-body figure img {
      margin: 0 auto 10px auto;
    }

    .article-body figcaption,
    .article-body .image-caption {
      text-align: center;
      font-size: 0.88rem;
      color: #64748b;
      margin-top: -10px;
      margin-bottom: 22px;
      font-style: italic;
      line-height: 1.5;
    }

    .article-body figure figcaption {
      margin-top: 4px;
      margin-bottom: 6px;
    }

    /* Table formatting inside article */
    .article-body table {
      width: 100%;
      border-collapse: collapse;
      margin: 26px 0;
      font-size: 0.95rem;
      display: block;
      overflow-x: auto;
      max-width: 100%;
    }

    .article-body {
      overflow-wrap: anywhere;
    }

    .article-body th,
    .article-body table:not(:has(th)) tr:first-child td {
      background: #0a3663;
      color: #ffffff;
      padding: 12px 16px;
      text-align: left;
      font-weight: 600;
    }

    .article-body td {
      padding: 12px 16px;
      border: 1px solid #e2e8f0;
      color: #334155;
    }

    .article-body tr:nth-child(even) {
      background: #f8fafc;
    }

    /* Callout Boxes */
    .article-callout {
      border-radius: 8px;
      padding: 20px 24px;
      margin: 24px 0;
    }

    .article-callout-info {
      background: #f0f9ff;
      border-left: 4px solid #0284c7;
      color: #0369a1;
    }

    .article-callout-warning {
      background: #fffbeb;
      border-left: 4px solid #f59e0b;
      color: #92400e;
    }

    /* Author Footer Card */
    .author-card {
      background: #f8fafc;
      border: 1px solid #e2e8f0;
      border-radius: 10px;
      padding: 24px;
      margin-top: 36px;
      display: flex;
      align-items: center;
      gap: 18px;
    }

    .author-avatar {
      width: 56px;
      height: 56px;
      background: #e0f2fe;
      color: #0284c7;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 1.6rem;
      flex-shrink: 0;
    }

    .author-name {
      font-weight: 700;
      color: #0a3663;
      font-size: 1.1rem;
      margin-bottom: 3px;
    }

    .author-bio {
      color: #64748b;
      font-size: 0.88rem;
      margin: 0;
      line-height: 1.5;
    }

    /* Sidebar Widgets */
    .sidebar-card {
      background: #ffffff;
      border: 1px solid #e2e8f0;
      border-radius: 12px;
      padding: 24px;
      box-shadow: 0 4px 14px rgba(0, 0, 0, 0.03);
      margin-bottom: 24px;
    }

    .sidebar-title {
      font-family: 'Outfit', sans-serif;
      font-weight: 700;
      font-size: 1.15rem;
      color: #0a3663;
      margin-bottom: 16px;
      display: flex;
      align-items: center;
      gap: 8px;
      border-bottom: 2px solid #f1f5f9;
      padding-bottom: 8px;
    }

    .sidebar-btn {
      display: block;
      width: 100%;
      text-align: center;
      padding: 10px 16px;
      border-radius: 8px;
      font-weight: 600;
      text-decoration: none;
      transition: all 0.15s ease;
    }

    /* Footer */
    footer {
      background: #ffffff;
      border-top: 1px solid #e0e0e0;
      padding: 30px 20px 20px;
      color: #64748b;
      font-size: 0.9rem;
      margin-top: auto;
    }

    .footer-links a {
      color: #475569;
      text-decoration: none;
      margin: 0 12px;
      transition: color 0.15s ease;
    }

    .footer-links a:hover {
      color: #0284c7;
    }

    @media (max-width: 768px) {
      .article-header-card {
        padding: 24px 20px;
      }
      .article-main-title {
        font-size: 1.7rem;
      }
      .article-body-card {
        padding: 24px 20px;
      }
    }

    /* Comments Section Styles */
    .comments-section-card {
      background: #ffffff;
      border: 1px solid #e2e8f0;
      border-radius: 12px;
      padding: 36px 40px;
      box-shadow: 0 4px 14px rgba(0, 0, 0, 0.03);
      margin-bottom: 30px;
    }

    .comments-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      flex-wrap: wrap;
      gap: 12px;
      margin-bottom: 24px;
      padding-bottom: 16px;
      border-bottom: 2px solid #f1f5f9;
    }

    .comments-title {
      font-family: 'Outfit', sans-serif;
      font-weight: 700;
      font-size: 1.45rem;
      color: #0a3663;
      margin: 0;
      display: flex;
      align-items: center;
      gap: 10px;
    }

    .comments-count-pill {
      background: #e0f2fe;
      color: #0284c7;
      font-size: 0.85rem;
      font-weight: 700;
      padding: 4px 12px;
      border-radius: 20px;
    }

    .comment-form-card {
      background: #f8fafc;
      border: 1px solid #e2e8f0;
      border-radius: 12px;
      padding: 24px;
      margin-bottom: 32px;
      transition: all 0.2s ease;
    }

    .comment-form-card:focus-within {
      background: #ffffff;
      border-color: #93c5fd;
      box-shadow: 0 6px 20px rgba(2, 132, 199, 0.08);
    }

    .comment-user-badge {
      display: flex;
      align-items: center;
      justify-content: space-between;
      flex-wrap: wrap;
      gap: 10px;
      margin-bottom: 16px;
      padding-bottom: 12px;
      border-bottom: 1px solid #e2e8f0;
    }

    .comment-user-info {
      display: flex;
      align-items: center;
      gap: 10px;
    }

    .user-avatar-sm {
      width: 36px;
      height: 36px;
      border-radius: 50%;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      font-weight: 700;
      font-size: 0.88rem;
      color: #ffffff;
      flex-shrink: 0;
      text-transform: uppercase;
      box-shadow: 0 2px 5px rgba(0, 0, 0, 0.12);
    }

    .badge-verified-member {
      background: #dcfce7;
      color: #15803d;
      font-size: 0.75rem;
      font-weight: 700;
      padding: 3px 8px;
      border-radius: 12px;
      display: inline-flex;
      align-items: center;
      gap: 4px;
    }

    .badge-article-author {
      background: #fef3c7;
      color: #b45309;
      font-size: 0.75rem;
      font-weight: 700;
      padding: 3px 8px;
      border-radius: 12px;
      display: inline-flex;
      align-items: center;
      gap: 4px;
    }

    .comment-card {
      background: #ffffff;
      border: 1px solid #e2e8f0;
      border-radius: 12px;
      padding: 22px;
      margin-bottom: 16px;
      transition: all 0.2s ease;
      position: relative;
    }

    .comment-card:hover {
      border-color: #cbd5e1;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
    }

    .comment-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      margin-bottom: 12px;
      flex-wrap: wrap;
    }

    .comment-author-info {
      display: flex;
      align-items: center;
      gap: 10px;
      flex-wrap: wrap;
    }

    .comment-author-name {
      font-weight: 700;
      color: #0a3663;
      font-size: 0.98rem;
    }

    .comment-time {
      color: #94a3b8;
      font-size: 0.82rem;
    }

    .comment-text {
      color: #334155;
      font-size: 0.98rem;
      line-height: 1.65;
      margin-bottom: 14px;
      white-space: pre-wrap;
      word-break: break-word;
    }

    .comment-actions {
      display: flex;
      align-items: center;
      gap: 16px;
      font-size: 0.85rem;
      padding-top: 10px;
      border-top: 1px solid #f8fafc;
    }

    .comment-action-btn {
      background: transparent;
      border: none;
      color: #64748b;
      font-weight: 600;
      cursor: pointer;
      padding: 4px 8px;
      border-radius: 6px;
      display: inline-flex;
      align-items: center;
      gap: 5px;
      transition: all 0.15s ease;
      font-size: 0.84rem;
    }

    .comment-action-btn:hover {
      color: #0284c7;
      background: #f0f9ff;
    }

    .comment-action-btn.delete-btn:hover {
      color: #ef4444;
      background: #fef2f2;
    }

    /* Threaded / Nested replies */
    .thread-replies {
      margin-left: 28px;
      padding-left: 20px;
      border-left: 2.5px solid #e2e8f0;
      margin-top: 14px;
    }

    .thread-replies .comment-card {
      background: #f8fafc;
      border-color: #e2e8f0;
      padding: 18px;
      margin-bottom: 12px;
    }

    .thread-replies .comment-card:hover {
      background: #ffffff;
      border-color: #cbd5e1;
    }

    .reply-form-inline {
      background: #f0f9ff;
      border: 1px solid #bae6fd;
      border-radius: 10px;
      padding: 18px;
      margin-top: 14px;
      margin-bottom: 14px;
      animation: fadeInReply 0.2s ease-in-out;
    }

    @keyframes fadeInReply {
      from { opacity: 0; transform: translateY(-6px); }
      to { opacity: 1; transform: translateY(0); }
    }

    .empty-comments-box {
      text-align: center;
      padding: 44px 20px;
      color: #64748b;
      background: #f8fafc;
      border-radius: 12px;
      border: 1px dashed #cbd5e1;
    }

    .empty-comments-icon {
      font-size: 3rem;
      margin-bottom: 12px;
      display: inline-block;
    }

    .skeleton-comment {
      background: #ffffff;
      border: 1px solid #e2e8f0;
      border-radius: 12px;
      padding: 22px;
      margin-bottom: 16px;
    }

    .skeleton-bar {
      height: 12px;
      background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
      background-size: 200% 100%;
      animation: skeletonPulse 1.5s infinite;
      border-radius: 6px;
      margin-bottom: 10px;
    }

    @keyframes skeletonPulse {
      0% { background-position: 200% 0; }
      100% { background-position: -200% 0; }
    }

    .comment-alert {
      padding: 12px 16px;
      border-radius: 8px;
      margin-bottom: 16px;
      font-size: 0.9rem;
      display: none;
    }

    .comment-char-count {
      font-size: 0.78rem;
      color: #94a3b8;
    }

    @media (max-width: 768px) {
      .comments-section-card {
        padding: 24px 18px;
      }
      .thread-replies {
        margin-left: 12px;
        padding-left: 12px;
        border-left-width: 2px;
      }
    }
