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

  .py-3 {
      padding-top: 1rem;
      padding-bottom: 1rem;
  }

  .mt-3 {
      margin-top: 1rem;
  }

  .mb-3 {
      margin-bottom: 1rem;
  }

  .ms-3 {
      margin-left: 1rem;
  }

  .me-3 {
      margin-right: 1rem;
  }

  .my-3 {
      margin-top: 1rem;
      margin-bottom: 1rem;
  }

  body {
      font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
      background-color: #fff;
      color: #292929;
      line-height: 1.6;
      overflow-x: hidden;
      /* Prevent horizontal scroll */
  }

  img {
      max-width: 100%;
      height: auto;
      display: block;
  }

  .header {
      border-bottom: 1px solid #f2f2f2;
      padding: 16px 0;
      position: sticky;
      top: 0;
      background: #fff;
      z-index: 100;
  }

  .header-content {
      max-width: 1192px;
      margin: 0 auto;
      padding: 0 24px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 20px;
  }

  .logo {
      font-size: 24px;
      font-weight: bold;
      text-decoration: none;
      color: #333;
      white-space: nowrap;
  }

  .search-container {
      flex: 1;
      max-width: 400px;
      min-width: 200px;
  }

  .search-form {
      display: flex;
      gap: 8px;
      width: 100%;
  }

  .search-input {
      flex: 1;
      padding: 8px 12px;
      border: 1px solid #ddd;
      border-radius: 4px;
      font-size: 14px;
  }

  .search-btn {
      padding: 8px 16px;
      background: #28a745;
      color: white;
      border: 1px solid #28a745;
      border-radius: 4px;
      font-size: 14px;
      cursor: pointer;
      white-space: nowrap;
  }

  .search-btn:hover {
      background: #218838;
      border-color: #1e7e34;
  }

  .nav-links {
      display: flex;
      align-items: center;
      gap: 20px;
  }

  .nav-links a {
      text-decoration: none;
      color: #333;
      font-size: 14px;
      white-space: nowrap;
  }

  .nav-links a:hover {
      color: #000;
  }

  .write-btn {
      background: #333;
      color: white !important;
      padding: 8px 16px;
      border-radius: 20px;
  }

  .write-btn:hover {
      background: #555;
  }

  /* Mobile menu toggle */
  .mobile-menu-toggle {
      display: none;
      background: none;
      border: none;
      font-size: 18px;
      cursor: pointer;
  }

  /* Mobile slide-out menu */
  .mobile-menu {
      position: fixed;
      top: 0;
      right: -300px;
      width: 300px;
      height: 100vh;
      background: white;
      box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
      transition: right 0.3s ease;
      z-index: 1000;
      padding: 20px;
  }

  .mobile-menu.active {
      right: 0;
  }

  .mobile-menu-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 30px;
      padding-bottom: 15px;
      border-bottom: 1px solid #eee;
  }

  .mobile-menu-close {
      background: none;
      border: none;
      font-size: 24px;
      cursor: pointer;
  }

  .mobile-menu-links {
      display: flex;
      flex-direction: column;
      gap: 20px;
  }

  .mobile-menu-links a {
      text-decoration: none;
      color: #333;
      font-size: 16px;
      padding: 12px 0;
      border-bottom: 1px solid #f2f2f2;
  }

  .mobile-menu-overlay {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100vh;
      background: rgba(0, 0, 0, 0.5);
      opacity: 0;
      visibility: hidden;
      transition: all 0.3s ease;
      z-index: 999;
  }

  .mobile-menu-overlay.active {
      opacity: 1;
      visibility: visible;
  }

  .main-container {
      max-width: 1192px;
      margin: 0 auto;
      padding: 0 24px;
      display: grid;
      grid-template-columns: 1fr 352px;
      gap: 64px;
      margin-top: 48px;
  }

  .main-container .articles-section {
      padding-bottom: 48px;
  }

  .main-container .article-card {
      padding: 32px 0;
      border-bottom: 1px solid #f2f2f2;
      display: flex;
      gap: 24px;
      cursor: pointer;
      transition: all 0.main-container .2s ease;
  }

  .main-container .article-card:hover {
      opacity: 0.main-container .8;
  }

  .main-container .article-content {
      flex: 1;
      min-width: 0;
  }

  .main-container .author-info {
      display: flex;
      align-items: center;
      gap: 8px;
      margin-bottom: 12px;
  }

  .main-container .author-avatar {
      width: 24px;
      height: 24px;
      border-radius: 50%;
      object-fit: cover;
  }

  .main-container .author-name {
      font-size: 14px;
      color: #292929;
      font-weight: 500;
  }

  .main-container .publication-date {
      font-size: 14px;
      color: #6B6B6B;
  }

  .main-container .article-title {
      font-size: 22px;
      font-weight: 700;
      color: #292929;
      margin-bottom: 8px;
      line-height: 1.main-container .3;
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
      overflow: hidden;
  }

  .main-container .article-subtitle {
      font-size: 16px;
      color: #6B6B6B;
      margin-bottom: 16px;
      line-height: 1.main-container .4;
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
      overflow: hidden;
  }

  .main-container .article-meta {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      gap: 16px;
      font-size: 13px;
      color: #6B6B6B;
  }

  .main-container .article-actions {
      display: flex;
      align-items: center;
      gap: 8px;
      margin-left: auto;
  }

  .main-container .action-btn {
      background: none;
      border: none;
      color: #6B6B6B;
      cursor: pointer;
      padding: 4px;
      border-radius: 50%;
      transition: all 0.main-container .2s;
      display: flex;
      align-items: center;
      justify-content: center;
  }

  .main-container .action-btn:hover {
      background: #f2f2f2;
      color: #292929;
  }

  .main-container .action-btn svg {
      width: 16px;
      height: 16px;
  }

  .main-container .reading-time {
      background: #f2f2f2;
      padding: 2px 8px;
      border-radius: 12px;
  }

  .main-container .topic-tag {
      background: #f2f2f2;
      color: #6B6B6B;
      padding: 2px 8px;
      border-radius: 12px;
      font-size: 13px;
      text-decoration: none;
  }

  .main-container .topic-tag:hover {
      background: #e6e6e6;
      color: #6B6B6B;
      text-decoration: none;
  }

  .article-image {
      width: 112px;
      height: 112px;
      object-fit: cover;
      object-position: center;
      border-radius: 4px;
      flex-shrink: 0;
  }

  .main-container .sidebar {
      padding-top: 16px;
      position: sticky;
      top: 80px;
      height: fit-content;
  }

  .main-container .sidebar-section {
      margin-bottom: 48px;
  }

  .main-container .sidebar-title {
      font-size: 16px;
      font-weight: 600;
      color: #292929;
      margin-bottom: 16px;
  }

  .main-container .recommended-topics {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
  }

  .main-container .topic-chip {
      background: #f2f2f2;
      color: #6B6B6B;
      padding: 8px 16px;
      border-radius: 20px;
      font-size: 14px;
      text-decoration: none;
      transition: all 0.main-container .2s;
  }

  .main-container .topic-chip:hover {
      background: #e6e6e6;
      color: #292929;
      text-decoration: none;
  }

  .main-container .who-to-follow {
      border-top: 1px solid #f2f2f2;
      padding-top: 24px;
  }

  .main-container .follow-suggestion {
      display: flex;
      align-items: center;
      gap: 12px;
      margin-bottom: 16px;
  }

  .main-container .follow-avatar {
      width: 40px;
      height: 40px;
      border-radius: 50%;
      object-fit: cover;
  }

  .main-container .follow-info {
      flex: 1;
  }

  .main-container .follow-name {
      font-size: 14px;
      font-weight: 600;
      color: #292929;
      line-height: 1.main-container .2;
  }

  .main-container .follow-bio {
      font-size: 13px;
      color: #6B6B6B;
      line-height: 1.main-container .3;
  }

  .main-container .follow-btn {
      background: #1A8917;
      color: white;
      border: none;
      padding: 6px 16px;
      border-radius: 20px;
      font-size: 13px;
      font-weight: 500;
      cursor: pointer;
      transition: background 0.main-container .2s;
  }

  .main-container .follow-btn:hover {
      background: #156d13;
  }

  /* Details section  */

  .toc-container {
      display: flex;
      max-width: 100%;
      margin: 0 auto;
      min-height: 100vh;
      overflow-x: hidden;
  }

  .container {
      width: 100%;
      padding-right: 15px;
      padding-left: 15px;
      margin-right: auto;
      margin-left: auto;
  }

  /* Table of Contents */
  .toc-sidebar {
      width: 280px;
      background: #fff;
      overflow-y: auto;
      z-index: 100;
      padding: 2rem 1.5rem;
      position: absolute;
      height: 100vh;
      transition: all 0.3s ease;
      border-right: 1px solid #e1e5e9;
  }

  .toc-sidebar.fixed {
      position: fixed;
      top: 90px;
  }

  .toc-title {
      font-size: 1.1rem;
      font-weight: 600;
      margin-bottom: 1.5rem;
      color: #1a1a1a;
      z-index: 300;
      padding-bottom: 0.5rem;
      border-bottom: 2px solid #f0f0f0;
  }

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

  .toc-item {
      margin-bottom: 0.5rem;
  }

  .toc-link {
      display: block;
      padding: 0.5rem 0.75rem;
      text-decoration: none;
      color: #666;
      font-size: 0.9rem;
      border-radius: 6px;
      transition: all 0.2s ease;
      position: relative;
  }

  .toc-link:hover {
      color: #007acc;
      background-color: #f8f9fa;
  }

  .toc-link.active {
      color: #007acc;
      background-color: #e3f2fd;
      font-weight: 500;
  }

  .toc-link.active::before {
      content: '';
      position: absolute;
      left: 0;
      top: 0;
      bottom: 0;
      width: 3px;
      background-color: #007acc;
      border-radius: 0 2px 2px 0;
  }

  .toc-link.h3 {
      padding-left: 1.5rem;
      font-size: 0.85rem;
      color: #888;
  }

  /* MAIN CONTENT */
  .main-content {
      margin-left: 280px;
      flex: 1;
      background: #fff;
      min-height: 100vh;
      max-width: calc(100% - 280px);
      overflow-x: hidden;
  }


  .progress-bar {
      position: fixed;
      top: 0;
      left: 280px;
      right: 0;
      height: 3px;
      background: #f0f0f0;
      z-index: 102;
  }

  .progress-fill {
      height: 100%;
      background: linear-gradient(90deg, #007acc, #0056b3);
      width: 0%;
      transition: width 0.2s ease;
  }

  .article-container {
      max-width: min(800px, 100%);
      margin: 0 auto;
      padding: 2rem 1rem;
      overflow-x: hidden;
  }

  .article-container .article-header {
      margin-bottom: 2rem;
      padding-bottom: 2rem;
      border-bottom: 1px solid #e1e5e9;
  }

  .article-container .article-title {
      font-size: 2.5rem;
      font-weight: 700;
      line-height: 1.2;
      margin-bottom: 1rem;
      color: #1a1a1a;
  }

  .article-container .article-subtitle {
      font-size: 1.25rem;
      color: #666;
      margin-bottom: 2rem;
      line-height: 1.5;
  }

  .author-section {
      display: flex;
      justify-content: space-between;
      align-items: center;
  }

  .author-info {
      display: flex;
      align-items: center;
      gap: 1rem;
  }

  .title-section .author-avatar {
      width: clamp(40px, 8vw, 48px);
      height: clamp(40px, 8vw, 48px);
      border-radius: 50%;
      object-fit: cover;
      flex-shrink: 0;
  }

  .title-section .author-details {
      min-width: 0;
      flex: 1;
      overflow: hidden;
  }

  .title-section .author-details h4 {
      color: white;
      font-size: clamp(0.9rem, 2.5vw, 1rem);
      margin-bottom: 0.25rem;
      word-wrap: break-word;
      overflow-wrap: break-word;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
  }

  .title-section .author-meta {
      display: flex;
      gap: 0.5rem;
      font-size: clamp(0.75rem, 2vw, 0.875rem);
      color: rgba(255, 255, 255, 0.8);
      flex-wrap: wrap;
      align-items: center;
  }

  .title-section .article-actions-top {
      display: flex;
      gap: 0.5rem;
      flex-shrink: 0;
  }

  .title-section .action-icon {
      width: clamp(36px, 8vw, 40px);
      height: clamp(36px, 8vw, 40px);
      border: 1px solid rgba(255, 255, 255, 0.3);
      background: none;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      color: rgba(255, 255, 255, 0.8);
      transition: all 0.2s ease;
  }

  .title-section .action-icon:hover {
      background-color: rgba(255, 255, 255, 0.1);
      color: white;
  }

  .title-section .action-icon svg {
      width: clamp(16px, 4vw, 20px);
      height: clamp(16px, 4vw, 20px);
  }

  .hero-image {
      width: 100%;
      max-width: 100%;
      height: auto;
      max-height: 400px;
      object-fit: cover;
      border-radius: 8px;
      margin: 2rem 0;
  }

  .article-container .article-content {
      font-size: clamp(1rem, 2.5vw, 1.125rem);
      line-height: 1.7;
      overflow-wrap: break-word;
      word-wrap: break-word;
  }

  .article-container .article-content h2 {
      font-size: clamp(1.3rem, 4vw, 1.75rem);
      font-weight: 600;
      margin: 2.5rem 0 1rem 0;
      color: #1a1a1a;
      scroll-margin-top: 2rem;
      word-wrap: break-word;
  }

  .article-container .article-content h3 {
      font-size: clamp(1.1rem, 3vw, 1.375rem);
      font-weight: 600;
      margin: 2rem 0 1rem 0;
      color: #1a1a1a;
      scroll-margin-top: 2rem;
      word-wrap: break-word;
  }

  .article-container .article-content p {
      margin-bottom: 1.5rem;
      word-wrap: break-word;
      overflow-wrap: break-word;
  }

  .article-container .article-content ul {
      margin: 1.5rem 0;
      padding-left: 2rem;
  }

  .article-container .article-content li {
      margin-bottom: 0.5rem;
      word-wrap: break-word;
  }

  .article-container .article-content blockquote {
      margin: 2rem 0;
      padding: 1.5rem;
      background: #f8f9fa;
      border-left: 4px solid #007acc;
      font-style: italic;
      font-size: clamp(1rem, 2.5vw, 1.1rem);
      word-wrap: break-word;
      overflow-wrap: break-word;
  }

  .article-container .article-content pre {
      background: #f8f9fa;
      padding: 1rem;
      border-radius: 8px;
      overflow-x: auto;
      margin: 1.5rem 0;
      border: 1px solid #e1e5e9;
      max-width: 100%;
      font-size: clamp(0.75rem, 2vw, 0.9rem);
      line-height: 1.4;
  }

  .article-container .article-content code {
      background: #f1f3f4;
      padding: 0.25rem 0.5rem;
      border-radius: 4px;
      font-family: 'Monaco', 'Menlo', 'Consolas', monospace;
      font-size: clamp(0.8rem, 2vw, 0.9rem);
      word-wrap: break-word;
      overflow-wrap: break-word;
  }

  .article-container .article-content pre code {
      background: none;
      padding: 0;
      word-wrap: normal;
      overflow-wrap: normal;
      white-space: pre;
  }


  /* Updated footer styles */
  .article-footer {
      margin-top: 3rem;
      padding-top: 2rem;
      border-top: 1px solid #e1e5e9;
  }

  /* Keep existing tags section styles */
  .tags-section {
      display: flex;
      flex-wrap: wrap;
      gap: 0.5rem;
      margin-bottom: 2rem;
  }

  .tag {
      padding: 0.5rem 1rem;
      background: #f1f3f4;
      color: #666;
      text-decoration: none;
      border-radius: 20px;
      font-size: clamp(0.8rem, 2vw, 0.875rem);
      transition: 0.2s;
      white-space: nowrap;
  }

  .tag:hover {
      background: #e1e5e9;
      color: #333;
  }

  /* Footer with comments  */

  /* New comments section styles */
  .comments-section {
      margin-top: 2rem;
  }

  .comments-title {
      font-size: 1.5rem;
      font-weight: 600;
      margin-bottom: 1.5rem;
      color: #1a1a1a;
  }

  .comment-form {
      background: #f8f9fa;
      padding: 1.5rem;
      border-radius: 12px;
      margin-bottom: 2rem;
  }

  .comment-form h4 {
      margin-bottom: 1rem;
      font-size: 1.1rem;
      color: #1a1a1a;
  }

  .comment-textarea {
      width: 100%;
      min-height: 120px;
      padding: 0.75rem;
      border: 1px solid #dee2e6;
      border-radius: 8px;
      font-family: inherit;
      font-size: 0.9rem;
      resize: vertical;
      margin-bottom: 1rem;
  }

  .comment-textarea:focus {
      outline: none;
      border-color: #007acc;
      box-shadow: 0 0 0 2px rgba(0, 122, 204, 0.1);
  }

  .comment-actions {
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 1rem;
  }

  .comment-submit {
      background: #007acc;
      color: white;
      border: none;
      padding: 0.75rem 1.5rem;
      border-radius: 6px;
      font-size: 0.9rem;
      font-weight: 500;
      cursor: pointer;
      transition: 0.2s;
  }

  .comment-submit:hover {
      background-color: #0056b3;
  }

  .comment-submit:disabled {
      background: #ccc;
      cursor: not-allowed;
  }

  .comment-info {
      font-size: 0.8rem;
      color: #666;
  }

  .comments-list {
      margin-top: 2rem;
  }

  .comment {
      border-bottom: 1px solid #e1e5e9;
      padding: 1.5rem 0;
  }

  .comment:last-child {
      border-bottom: none;
  }

  .comment-header {
      display: flex;
      align-items: center;
      gap: 0.75rem;
      margin-bottom: 0.75rem;
  }

  .comment-avatar {
      width: 40px;
      height: 40px;
      border-radius: 50%;
      object-fit: cover;
  }

  .comment-author {
      font-weight: 600;
      color: #1a1a1a;
      font-size: 0.9rem;
  }

  .comment-date {
      color: #666;
      font-size: 0.8rem;
  }

  .comment-content {
      color: #333;
      line-height: 1.6;
      margin-bottom: 0.75rem;
  }

  .comment-actions-list {
      display: flex;
      gap: 1rem;
      align-items: center;
  }

  .comment-action {
      background: none;
      border: none;
      color: #666;
      font-size: 0.8rem;
      cursor: pointer;
      display: flex;
      align-items: center;
      gap: 0.25rem;
      transition: 0.2s;
  }

  .comment-action:hover {
      color: #007acc;
  }

  .comment-action svg {
      width: 16px;
      height: 16px;
  }

  .comment-replies {
      margin-left: 2rem;
      margin-top: 1rem;
      border-left: 2px solid #f1f3f4;
      padding-left: 1rem;
  }

  .load-more-comments {
      background: none;
      border: 1px solid #007acc;
      color: #007acc;
      padding: 0.75rem 1.5rem;
      border-radius: 6px;
      cursor: pointer;
      font-size: 0.9rem;
      margin-top: 1.5rem;
      transition: 0.2s;
  }

  .load-more-comments:hover {
      background: #007acc;
      color: white;
  }

  .article-container .author-card {
      display: flex;
      gap: 1rem;
      padding: 2rem;
      background: #f8f9fa;
      border-radius: 12px;
      margin-bottom: 2rem;
  }

  .article-container .author-card-avatar {
      width: 80px;
      height: 80px;
      border-radius: 50%;
      object-fit: cover;
  }

  .article-container .author-card-info h4 {
      font-size: 1.25rem;
      margin-bottom: 0.5rem;
  }

  .article-container .author-card-info p {
      color: #666;
      margin-bottom: 1rem;
  }

  .article-container .author-card-actions {
      display: flex;
      gap: 0.5rem;
  }

  .article-container .action-button {
      padding: 0.5rem 1rem;
      border: 1px solid #007acc;
      background: none;
      color: #007acc;
      border-radius: 20px;
      cursor: pointer;
      font-size: 0.875rem;
      transition: all 0.2s ease;
  }

  .article-container .follow-btn {
      background: #007acc;
      color: white;
  }

  .article-container .action-button:hover {
      background: #007acc;
      color: white;
  }

  .article-container .related-articles {
      margin-top: 2rem;
  }

  .article-container .related-title {
      font-size: 1.5rem;
      margin-bottom: 1.5rem;
  }

  .article-container .related-article {
      display: flex;
      gap: 1rem;
      padding: 1rem 0;
      border-bottom: 1px solid #e1e5e9;
  }

  .article-container .related-article:last-child {
      border-bottom: none;
  }

  .article-container .related-content {
      flex: 1;
  }

  .article-container .related-content h5 {
      font-size: 1.1rem;
      margin-bottom: 0.5rem;
  }

  .article-container .related-content p {
      color: #666;
      font-size: 0.9rem;
      margin-bottom: 0.5rem;
  }

  .article-container .related-meta {
      font-size: 0.8rem;
      color: #888;
  }

  .article-container .related-image {
      width: 80px;
      height: 80px;
      object-fit: cover;
      border-radius: 6px;
  }


  /* update  */

  /* Full-width title section with gradient background */
  /* .title-section {
      width: 100%;
      background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
      color: white;
      padding: 3rem 2rem;
      margin-bottom: 0;
  } */

  .title-section {
      width: 100%;
      max-width: 100vw;
      /* Prevent overflow */
      background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
      color: white;
      padding: 3rem 1rem;
      margin-bottom: 0;
      overflow: hidden;
      /* Prevent content overflow */
      position: relative;
  }

  .title-section::before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background: inherit;
      z-index: -1;
  }

  .title-section .article-title {
      max-width: min(1200px, 100%);
      margin: 0 auto;
      font-size: clamp(1.5rem, 5vw, 2.5rem);
      font-weight: 700;
      line-height: 1.2;
      color: white;
      text-align: center;
      margin-bottom: 1rem;
      word-wrap: break-word;
      overflow-wrap: break-word;
      hyphens: auto;
      padding: 0 1rem;
  }

  .title-section .article-subtitle {
      max-width: min(800px, 100%);
      margin: 0 auto 2rem;
      font-size: clamp(0.9rem, 3vw, 1.25rem);
      color: rgba(255, 255, 255, 0.9);
      line-height: 1.5;
      text-align: center;
      word-wrap: break-word;
      overflow-wrap: break-word;
      hyphens: auto;
      padding: 0 1rem;
  }

  .title-section .author-section {
      max-width: min(800px, 100%);
      margin: 0 auto;
      display: flex;
      justify-content: space-between;
      align-items: center;
      flex-wrap: wrap;
      gap: 1rem;
      padding: 0 1rem;
  }

  .title-section .author-info {
      display: flex;
      align-items: center;
      gap: 0.75rem;
      flex: 1;
      min-width: 0;
      max-width: 100%;
  }

  .title-section .action-icon {
      color: rgba(255, 255, 255, 0.8);
      border: 1px solid rgba(255, 255, 255, 0.3);
  }

  .title-section .action-icon:hover {
      background-color: rgba(255, 255, 255, 0.1);
      color: white;
  }


  /* Mobile TOC Styles - Bootstrap Design */
  .mobile-toc {
      display: none;
      background: #f8f9fa;
      border: 1px solid #dee2e6;
      border-radius: 0.375rem;
      margin-bottom: 1.5rem;
      position: relative;
      /* Not fixed - inline with content */
  }

  .mobile-toc-header {
      padding: 0.75rem 1rem;
      background: #e9ecef;
      border-bottom: 1px solid #dee2e6;
      border-radius: 0.375rem 0.375rem 0 0;
      cursor: pointer;
      display: flex;
      justify-content: space-between;
      align-items: center;
      font-weight: 600;
      color: #495057;
      margin: 0;
  }

  .mobile-toc-header:hover {
      background: #dee2e6;
  }

  .mobile-toc-toggle {
      transition: transform 0.2s ease;
      font-size: 0.875rem;
  }

  .mobile-toc-toggle.collapsed {
      transform: rotate(-90deg);
  }

  .mobile-toc-content {
      padding: 0;
  }

  .mobile-toc-list {
      list-style: none;
      margin: 0;
      padding: 0;
  }

  .mobile-toc-list li {
      border-bottom: 1px solid #dee2e6;
  }

  .mobile-toc-list li:last-child {
      border-bottom: none;
  }

  .mobile-toc-list a {
      display: block;
      padding: 0.75rem 1rem;
      color: #495057;
      text-decoration: none;
      font-size: 0.875rem;
      transition: all 0.15s ease;
  }

  .mobile-toc-list a:hover {
      background: #f8f9fa;
      color: #0d6efd;
      padding-left: 1.25rem;
  }

  .mobile-toc-list a.active {
      background: #e7f1ff;
      color: #0d6efd;
      font-weight: 500;
  }

  .mobile-toc-list .toc-h3 a {
      padding-left: 1.5rem;
      font-size: 0.8rem;
      color: #6c757d;
  }

  .mobile-toc-list .toc-h3 a:hover {
      padding-left: 1.75rem;
  }

  .mobile-toc-list .toc-h4 a {
      padding-left: 2rem;
      font-size: 0.75rem;
      color: #868e96;
  }

  .mobile-toc-list .toc-h4 a:hover {
      padding-left: 2.25rem;
  }

  .mobile-toc-list .toc-h5 a {
      padding-left: 2.5rem;
      font-size: 0.7rem;
      color: #adb5bd;
  }

  .mobile-toc-list .toc-h5 a:hover {
      padding-left: 2.75rem;
  }

  .mobile-toc-list .toc-h6 a {
      padding-left: 3rem;
      font-size: 0.65rem;
      color: #ced4da;
  }

  .mobile-toc-list .toc-h6 a:hover {
      padding-left: 3.25rem;
  }



  @media (max-width: 1080px) {
      .main-container {
          grid-template-columns: 1fr;
          gap: 32px;
      }

      .main-container .sidebar {
          display: none;
      }

      .container {
          max-width: 1140px;
      }
  }

  @media (max-width: 992px) {
      .nav-links a:not(.write-btn) {
          display: none;
      }

      .container {
          max-width: 960px;
      }
  }

  /* @media (max-width: 991.98px) {
      .mobile-toc {
          display: block;
      }
  } */

  @media (max-width: 768px) {
      .mobile-menu-toggle {
          display: block;
      }

      .mobile-toc {
          display: block;
      }

      .container {
          max-width: 720px;
      }

      .main-container {
          padding: 0 16px;
          margin-top: 24px;
      }

      .main-container .header-content {
          padding: 0 16px;
          gap: 12px;
      }

      .search-container {
          max-width: 300px;
          min-width: 150px;
      }

      .search-btn {
          padding: 8px 12px;
          font-size: 13px;
      }

      .logo {
          font-size: 20px;
      }

      .main-container .article-card {
          flex-direction: column-reverse;
          gap: 16px;
          padding: 24px 0;
      }

      .toc-toggle {
          display: flex;
      }

      .main-container .article-image {
          width: 100%;
          height: 200px;
      }

      /* .nav-links {
          display: none;
      } */

      /* Details page  */
      .toc-sidebar {
          transform: translateX(-100%);
          position: fixed;
          left: 0;
          top: 0;
          height: 100vh;
          z-index: 1000;
          box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
      }

      .toc-sidebar.open {
          transform: translateX(0);
      }

      .toc-sidebar {
          display: none !important;
      }

      .toc-toggle {
          display: none !important;
      }

      .main-content {
          margin-left: 0;
          max-width: 100%;
      }

      .progress-bar {
          left: 0;
      }

      .article-container {
          padding: 1rem 0.75rem;
      }

      .article-container .article-title {
          font-size: 2rem;
      }

      .toc-toggle {
          position: fixed;
          top: 1rem;
          left: 1rem;
          z-index: 101;
          width: 44px;
          height: 44px;
          background: #007acc;
          color: white;
          border: none;
          border-radius: 8px;
          cursor: pointer;
          display: flex;
          align-items: center;
          justify-content: center;
          box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
      }

      .title-section {
          padding: 2rem 0.75rem;
      }

      .title-section .article-title {
          font-size: 2rem;
      }

      .title-section .article-subtitle {
          font-size: 1.1rem;
      }

      .title-section .author-section {
          flex-direction: column;
          align-items: center;
          text-align: center;
          gap: 1rem;
      }

      .title-section .author-info {
          justify-content: center;
          max-width: 100%;
      }

      .title-section .author-img {
          display: none;
      }

      .title-section .author-details h4 {
          white-space: normal;
          text-overflow: unset;
          overflow: visible;
      }

      .title-section .author-meta {
          justify-content: center;
          font-size: 0.8rem;
      }

      .title-section .article-actions-top {
          order: -1;
          justify-content: center;
      }

      /* Footer with comments  */
      .comment-form {
          padding: 1rem;
      }

      .comment-actions {
          flex-direction: column;
          align-items: flex-start;
          gap: 0.75rem;
      }

      .comment-replies {
          margin-left: 1rem;
          padding-left: 0.75rem;
      }
  }

  @media (max-width: 576px) {
      .header-content {
          gap: 8px;
          padding: 0 12px;
      }

      .container {
          max-width: 540px;
      }

      .search-container {
          max-width: none;
          min-width: 120px;
      }

      .search-form {
          gap: 4px;
      }

      .search-input {
          padding: 6px 8px;
          font-size: 13px;
      }

      .search-btn {
          padding: 6px 8px;
          font-size: 12px;
      }

      .nav-links {
          gap: 8px;
      }

      .nav-links a:not(.write-btn) {
          display: none;
      }

      .write-btn {
          padding: 6px 12px;
          font-size: 12px;
      }
  }

  @media (max-width: 480px) {
      .title-section {
          padding: 1.5rem 0.5rem;
      }

      .container {
          padding-left: 10px;
          padding-right: 10px;
      }

      .title-section .author-meta span:nth-child(even) {
          display: none;
      }

      .article-content pre {
          padding: 0.75rem;
          margin: 1rem -0.5rem;
          border-radius: 0;
          font-size: 0.75rem;
      }

      .logo {
          font-size: 18px;
      }

      .search-input::placeholder {
          font-size: 12px;
      }

      .search-input {
          width: 30px;
      }

      .title-section .article-title {
          font-size: 1.4rem;
      }
  }

  @media (min-width: 769px) {
      .toc-toggle {
          display: none;
      }
  }

  .toc-toggle {
      display: none;
  }