.container-single {
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: 50px;
  margin-bottom: 40px;
  padding: 0 20px;
  max-width: 1200px;
  width: 100%;
}

.container-single > * {
  min-width: 0;
}

.main-content-single {
  min-width: 0;
  overflow: hidden; /* QUAN TRỌNG - Phải là hidden */
}

.content-box {
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.category-label {
  display: inline-block;
  text-decoration: none;
  color: #ffffffb3;
  text-transform: capitalize;
  font-size: 15px;
  margin-bottom: 12px;
}

.post-title {
  font-size: 40px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 15px;
}

.post-date {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #999;
  font-size: 14px;
  padding-bottom: 20px;
  border-bottom: 1px solid #333;
}

.post-date svg {
  color: #666;
}

.featured-image {
  width: 100%;
  height: auto;
  border-radius: 10px;
}

.post-description {
  margin: 10px 0;
}

.post-description p {
  padding: 10px 0;
}

.post-description p span {
  color: #ffffff !important;
}

.post-content {
  font-size: 16px;
  line-height: 1.8;
  color: #bebebe;
  overflow-wrap: break-word;
  word-break: break-word;
}

.post-content * {
  overflow-wrap: break-word;
  word-break: break-word;
}

.post-content h2,
.post-content h2 span {
  font-size: 32px;
  margin: 10px 0;
  color: #ffffff;
line-height: 40px;
}

.post-content h3,
.post-content h3 span {
  font-size: 22px;
  margin: 10px 0;
  color: #ffffff;
}

.post-content h4,
.post-content h4 span {
  font-size: 18px;
  margin: 10px 0;
  color: #ffffff;
}

.post-content ul,
.post-content ol {
  margin: 10px 0;
  padding-left: 30px;
}

.post-content strong {
  color: #fff;
  font-weight: 600;
}

.share-section {
  margin-top: 30px;
  padding-top: 30px;
  border-top: 1px solid #333;
}

.share-title {
  font-size: 16px;
  font-weight: 600;
  color: #b0b0b0;
  margin-bottom: 15px;
}

.share-buttons {
  display: flex;
  gap: 20px;
}

.share-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  cursor: pointer;
  text-decoration: none;
  background: #2a2a2a;
}

.share-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
  background: #333333;
}

.share-btn svg {
  color: #ffffff;
  fill: #ffffff;
}

.related-posts-section {
  padding: 40px 20px;
  max-width: 1200px;
  margin: auto;
}

.related-container {
  margin: 0 auto;
}

.section-title {
  font-size: 24px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 2px solid #3b82f6;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  margin-bottom: 35px;
}

.related-post-card {
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
  border-radius: 8px;
  overflow: hidden;
}

.related-post-card:hover {
  transform: translateY(-5px);
}

.related-post-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.3s;
}

.related-post-card:hover .related-post-image {
  transform: scale(1.05);
}

.related-post-content {
  padding: 20px 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.related-post-category {
  color: #ffffffb3;
  text-transform: capitalize;
  font-size: 15px;
}

.related-post-title {
  font-size: 16px;
  font-weight: 600;
  color: #ffffff;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.3s;
}

.related-post-card:hover .related-post-title {
  color: #3b82f6;
}

.related-post-date {
  font-size: 13px;
  color: #888;
  margin-top: auto;
}

.post-content figure.image img {
  width: 75%;
  border-radius: 10px;
}

.post-content figcaption {
  text-align: center;
}

.post-content p {
  color: #bebebe;
  line-height: 22px !important;
  padding: 10px 0;
}

.post-content p strong {
  color: #fff;
  font-weight: 600;
}

.post-content p span {
  color: #bebebe;
}

figure.image {
  padding-top: 10px;
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
}

figure.wp-caption.aligncenter,
figure.wp-block-image.image {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100% !important;
  margin: 20px 0;
}

.wp-block-image :where(figcaption) {
  margin-bottom: 0 !important;
  margin-top: 0 !important;
}

figure.wp-block-image {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100% !important;
  margin-top: 10px;
}

.wp-block-image img {
  border-radius: 10px;
  width: 75%;
}

.post-content ul li,
.post-content ol li {
  color: #bebebe !important;
}

.post-content ul li span,
.post-content ol li span {
  color: #bebebe;
  font-size: 16px !important;
}

.post-content p,
.post-content p span {
  font-size: 16px !important;
}

/* ===================================== */
/* MOBILE TOC - Ẩn trên desktop */
/* ===================================== */
.mobile-toc-wrapper {
  display: none !important;
  margin: 30px 0 20px 0;
  background: #1a1a1a;
  border-radius: 8px;
  padding: 5px 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.mobile-toc-title {
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  user-select: none;
}

.toc-toggle {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  padding: 5px;
  transition: transform 0.3s ease;
  display: none;
}

.toc-toggle:hover {
  color: #3b82f6;
}

.toc-toggle.active {
  transform: rotate(180deg);
}

.mobile-toc-container {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, margin-top 0.4s ease;
  margin-top: 0;
}

.mobile-toc-container.active {
  max-height: 400px;
  overflow-y: auto;
  overflow-x: hidden;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #333;
  scrollbar-width: thin;
  scrollbar-color: #3b82f6 #2a2a2a;
}

.mobile-toc-container.active::-webkit-scrollbar {
  width: 6px;
  display: block;
}

.mobile-toc-container.active::-webkit-scrollbar-track {
  background: #2a2a2a;
  border-radius: 3px;
}

.mobile-toc-container.active::-webkit-scrollbar-thumb {
  background: #3b82f6;
  border-radius: 3px;
}

.mobile-toc-container.active::-webkit-scrollbar-thumb:hover {
  background: #5b9bff;
}

/* Override plugin styles cho mobile TOC */
.mobile-toc-container .ez-toc-list,
.mobile-toc-container #ez-toc-container,
.mobile-toc-container .toc_widget_list,
.mobile-toc-container > div,
.mobile-toc-container .ez-toc-list-container {
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
  box-shadow: none !important;
}

.mobile-toc-container .ez-toc-title,
.mobile-toc-container #ez-toc-container .ez-toc-title-container,
.mobile-toc-container .toc_widget_list > p,
.mobile-toc-container .ez-toc-title-container {
  display: none !important;
}

/* Style links trong mobile TOC - GIỐNG DESKTOP */
.mobile-toc-container ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mobile-toc-container li {
  margin: 0;
  padding: 0;
}

.mobile-toc-container a {
  color: #fff !important;
  text-decoration: none !important;
  font-size: 14px;
  line-height: 1.6;
  display: block;
  padding: 10px 12px;
  transition: all 0.3s ease;
  border-left: 3px solid transparent;
  border-radius: 0 6px 6px 0;
}

.mobile-toc-container a:hover {
  color: #ffffff !important;
  background: rgba(59, 130, 246, 0.1);
  border-left-color: #3b82f6;
  padding-left: 16px;
}

.mobile-toc-container a.active {
  color: #ffffff !important;
  font-weight: 600;
  background: rgba(59, 130, 246, 0.15);
  border-left-color: #3b82f6;
  padding-left: 16px;
}

/* Nested headings cho mobile TOC */
.mobile-toc-container ul ul {
  padding-left: 16px;
  margin-top: 4px;
  margin-bottom: 4px;
}

.mobile-toc-container ul ul a {
  font-size: 13px;
  color: #ccc !important;
  padding: 8px 12px;
}

.mobile-toc-container ul ul a:hover,
.mobile-toc-container ul ul a.active {
  color: #fff !important;
}

.mobile-toc-container ul ul ul {
  padding-left: 16px;
  margin-top: 2px;
}

.mobile-toc-container ul ul ul a {
  font-size: 12px;
  color: #999 !important;
  padding: 6px 12px;
}

.mobile-toc-container ul ul ul a:hover,
.mobile-toc-container ul ul ul a.active {
  color: #ccc !important;
}

/* ===================================== */
/* DESKTOP SIDEBAR TOC - Sticky */
/* ===================================== */

.sidebar-single {
  min-width: 0;
  position: relative;
}

.sidebar-single.desktop-toc {
  display: block;
}

.sidebar-wrapper {
  background: transparent;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  border: none;
  position: sticky;
  top: 90px;
  max-height: calc(100vh - 110px);
  overflow: hidden;
}

.sidebar-title {
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid #3b82f6;
}

.sidebar-single .toc-container {
  background: transparent;
  border-radius: 0;
  padding: 0;
  margin: 0;
  max-height: calc(100vh - 200px);
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.sidebar-single .toc-container::-webkit-scrollbar {
  display: none;
}

.sidebar-single .ez-toc-list,
.sidebar-single #ez-toc-container,
.sidebar-single .toc_widget_list,
.sidebar-single .toc-container > div,
.sidebar-single .ez-toc-list-container {
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
  box-shadow: none !important;
}

.sidebar-single .ez-toc-title,
.sidebar-single #ez-toc-container .ez-toc-title-container,
.sidebar-single .toc_widget_list > p,
.sidebar-single .ez-toc-title-container {
  display: none !important;
}

.sidebar-single .toc-container ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-single .toc-container li {
  margin: 0;
  padding: 0;
  position: relative;
}

.sidebar-single .toc-container a {
  color: #fff;
  text-decoration: none !important;
  font-size: 14px;
  line-height: 1.6;
  display: block;
  padding: 10px 12px;
  transition: all 0.3s ease;
  border-left: 3px solid transparent;
  border-radius: 0 6px 6px 0;
  position: relative;
}

.sidebar-single .toc-container a:hover {
  color: #ffffff !important;
  text-decoration: none !important;
  background: rgba(59, 130, 246, 0.1);
  border-left-color: #3b82f6;
  padding-left: 16px;
}

.sidebar-single .toc-container a.active {
  color: #ffffff !important;
  font-weight: 600;
  background: rgba(59, 130, 246, 0.15);
  border-left-color: #3b82f6;
  padding-left: 16px;
  text-decoration: none !important;
}

.sidebar-single .toc-container ul ul {
  padding-left: 16px;
  margin-top: 4px;
  margin-bottom: 4px;
}

.sidebar-single .toc-container ul ul a {
  font-size: 13px;
  color: #ccc;
  padding: 8px 12px;
}

.sidebar-single .toc-container ul ul a:hover,
.sidebar-single .toc-container ul ul a.active {
  color: #fff !important;
  text-decoration: none !important;
}

.sidebar-single .toc-container ul ul ul {
  padding-left: 16px;
  margin-top: 2px;
}

.sidebar-single .toc-container ul ul ul a {
  font-size: 12px;
  color: #999;
  padding: 6px 12px;
}

.sidebar-single .toc-container ul ul ul a:hover,
.sidebar-single .toc-container ul ul ul a.active {
  color: #ccc !important;
  text-decoration: none !important;
}

html {
  scroll-behavior: smooth;
}

/* ===================================== */
/* RESPONSIVE */
/* ===================================== */

@media (max-width: 1024px) {
  .sidebar-single .toc-container {
    max-height: calc(100vh - 180px);
  }
}

@media (max-width: 820px) {
  .container-single {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* Ẩn Desktop TOC */
  .sidebar-single.desktop-toc {
    display: none !important;
  }

  /* Hiện Mobile TOC */
  .mobile-toc-wrapper {
    display: block !important;
  }

  .toc-toggle {
    display: block !important;
  }

  .post-title {
    font-size: 28px;
  }

  .related-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (max-width: 480px) {
  .container-single {
    padding: 0 15px;
  }

  .post-title {
    font-size: 24px;
  }

  .related-grid {
    grid-template-columns: 1fr;
  }

  .share-buttons {
    justify-content: center;
  }
}

/* ===================================== */
/* TOC STYLING - H2, H3, H4 */
/* ===================================== */

/* DESKTOP TOC - Sidebar */
.sidebar-single .toc-container ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-single .toc-container li {
  margin: 0;
  padding: 0;
}

/* H2 - Main heading (20px, #fff) */
.sidebar-single .toc-container li.ez-toc-page-1 > a,
.sidebar-single .toc-container li.ez-toc-heading-level-2 > a {
  color: #fff !important;
  text-decoration: none !important;
  font-size: 18px !important;
  font-weight: 600;
  line-height: 1.6;
  display: flex;
  align-items: baseline;
  padding: 12px 16px;
  transition: all 0.3s ease;
  border-left: 3px solid transparent;
  border-radius: 0 6px 6px 0;
}

.sidebar-single .toc-container li.ez-toc-page-1 > a:hover,
.sidebar-single .toc-container li.ez-toc-heading-level-2 > a:hover {
  background: rgba(59, 130, 246, 0.15);
  border-left-color: #3b82f6;
  padding-left: 20px;
}

.sidebar-single .toc-container li.ez-toc-page-1 > a.active,
.sidebar-single .toc-container li.ez-toc-heading-level-2 > a.active {
  background: rgba(59, 130, 246, 0.2) !important;
  border-left-color: #3b82f6 !important;
  padding-left: 20px;
  box-shadow: 0 0 15px rgba(59, 130, 246, 0.3);
}

/* H3 - Sub heading (16px, #fff) */
.sidebar-single .toc-container li.ez-toc-heading-level-3 > a {
  color: #fff !important;
  text-decoration: none !important;
  font-size: 16px !important;
  font-weight: 500;
  line-height: 1.6;
  display: flex;
  align-items: baseline;
  padding: 10px 14px;
  padding-left: 24px;
  transition: all 0.3s ease;
  border-left: 3px solid transparent;
  border-radius: 0 6px 6px 0;
}

.sidebar-single .toc-container li.ez-toc-heading-level-3 > a:hover {
  background: rgba(59, 130, 246, 0.12);
  border-left-color: #3b82f6;
  padding-left: 28px;
}

.sidebar-single .toc-container li.ez-toc-heading-level-3 > a.active {
  background: rgba(59, 130, 246, 0.18) !important;
  border-left-color: #3b82f6 !important;
  padding-left: 28px;
  font-weight: 600;
  box-shadow: 0 0 12px rgba(59, 130, 246, 0.25);
}

/* H4 - Sub-sub heading (12px, #bebebe) */
.sidebar-single .toc-container li.ez-toc-heading-level-4 > a {
  color: #bebebe !important;
  text-decoration: none !important;
  font-size: 14px !important;
  font-weight: 400;
  line-height: 1.6;
  display: flex;
  align-items: baseline;
  padding: 8px 12px;
  padding-left: 36px;
  transition: all 0.3s ease;
  border-left: 3px solid transparent;
  border-radius: 0 6px 6px 0;
}

.sidebar-single .toc-container li.ez-toc-heading-level-4 > a:hover {
  color: #fff !important;
  background: rgba(59, 130, 246, 0.1);
  border-left-color: #3b82f6;
  padding-left: 40px;
}

.sidebar-single .toc-container li.ez-toc-heading-level-4 > a.active {
  color: #fff !important;
  background: rgba(59, 130, 246, 0.15) !important;
  border-left-color: #3b82f6 !important;
  padding-left: 40px;
  font-weight: 500;
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.2);
}

/* H5, H6 nếu có */
.sidebar-single .toc-container li.ez-toc-heading-level-5 > a,
.sidebar-single .toc-container li.ez-toc-heading-level-6 > a {
  color: #999 !important;
  font-size: 11px !important;
  padding-left: 48px;
}

/* MOBILE TOC */
.mobile-toc-container ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mobile-toc-container li {
  margin: 0;
  padding: 0;
}

/* Fix TOC: Số thứ tự và tiêu đề thẳng hàng, chỉ clamp text */
.toc-container a,
.mobile-toc-container a {
  display: flex;
  align-items: center; /* Căn giữa theo chiều dọc */
  gap: 10px;
  padding: 10px 12px; /* Giữ padding gốc */
  line-height: 1.6;
  text-decoration: none !important;
  transition: all 0.3s ease;
  border-left: 3px solid transparent;
  border-radius: 0 6px 6px 0;
}

.toc-number {
  flex-shrink: 0;
  text-align: right;
  color: #3b82f6;
  font-weight: 600;
}

.toc-text {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  line-height: 24px;
}

.view-all-related {
  text-align: center;
}

a.btn-view-all {
  background-color: #3b82f6;
  color: #ffffff;
  padding: 10px 20px;
  text-decoration: none;
  border-radius: 10px;
  transition: all 0.3s ease;
}

a.btn-view-all:hover {
  background-color: #166cf7;
}

/* ===================================== */
/* AUTHOR BOX SECTION */
/* ===================================== */

.author-box-section {
  margin-top: 40px;
  padding-top: 40px;
  border-top: 1px solid #333;
}

.author-box-title {
  font-size: 24px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 25px;
}

.author-box {
  display: flex;
  align-items: flex-start;
  gap: 25px;
  padding: 30px;
  background: #1a1a1a;
  border-radius: 16px;
  border: 1px solid #2a2a2a;
  transition: all 0.3s ease;
}

.author-box:hover {
  border-color: #3b82f6;
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.1);
}

.author-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 3px solid #2a2a2a;
  transition: border-color 0.3s ease;
}

.author-box:hover .author-avatar {
  border-color: #3b82f6;
}

.author-info {
  flex: 1;
  min-width: 0;
}

.author-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 12px;
}

.author-name-group {
  flex: 1;
  min-width: 0;
}

.author-name {
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 4px;
  line-height: 1.3;
}

.author-position {
  font-size: 14px;
  font-weight: 500;
  color: #888888;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.author-linkedin {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: #2a2a2a;
  border-radius: 50%;
  color: #888888;
  text-decoration: none;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.author-linkedin:hover {
  background: #0077b5;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 119, 181, 0.3);
}

.author-linkedin i {
  font-size: 18px;
}

.author-bio {
  font-size: 15px;
  color: #b0b0b0;
  line-height: 1.7;
  margin-bottom: 15px;
  display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
}

.author-learn-more {
  display: inline-flex;
  align-items: center;
  font-weight: 500;
  color: #3b82f6;
  transition: all 0.3s ease;
}

.author-learn-more:hover {
  color: #5b9bff;
  gap: 8px;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .author-box-title {
    font-size: 20px;
  }

  .author-box {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 25px 20px;
  }

  .author-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .author-name-group {
    text-align: center;
  }

  .author-avatar {
    width: 90px;
    height: 90px;
  }

  .author-name {
    font-size: 18px;
  }

  .author-linkedin {
    margin-top: 10px;
  }
}

@media (max-width: 480px) {
  .author-box {
    padding: 20px 15px;
  }

  .author-avatar {
    width: 80px;
    height: 80px;
  }

  .author-name {
    font-size: 16px;
  }

  .author-position {
    font-size: 13px;
  }

  .author-bio {
    font-size: 14px;
  }
}

.post-author-inline a {
  text-decoration: none;
  color: #999;
}

.post-content figure, .post-content figure figure {
   width: 90%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.post-content figure img, .post-content figure figure img {
   width: 90% !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: auto;
    border-radius: 20px;
}

figure.wp-caption.alignnone {
  width: 90% !important;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ===================================== */
/* TABLE STYLING - SCROLL NGANG */
/* ===================================== */

/* Wrapper chứa table - CHO PHÉP SCROLL */
.post-content .table-scroll {
  width: 100% !important;
  overflow-x: auto !important;
  overflow-y: visible !important;
  margin: 30px 0 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  -webkit-overflow-scrolling: touch;
  display: block !important;
}

/* Table bên trong wrapper */
.post-content .table-scroll table {
  border-collapse: collapse !important;
  background: #1a1a1a !important;
  width: max-content !important;
  min-width: 100% !important;
  display: table !important;
  margin: 0 !important;
}

/* Cells styling */
.post-content table th,
.post-content table td {
  border: 1px solid #3a3a3a !important;
  padding: 12px 15px !important;
  vertical-align: middle !important;
  transition: background-color 0.2s ease; /* Thêm transition cho smooth */
}

.post-content table th {
  background: #2a2a2a !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  font-size: 14px !important;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 2px solid #3b82f6 !important;
}

.post-content table td {
  color: #bebebe !important;
  font-size: 14px !important;
  line-height: 1.6 !important;
}

/* Hover effect cho rows - BỎ QUA HEADER */
.post-content table tbody tr {
  transition: background-color 0.2s ease;
}

.post-content table tbody tr:hover {
  background: rgba(59, 130, 246, 0.1) !important;
}

.post-content table tbody tr:hover td {
  background: transparent !important; /* Đảm bảo td không override */
}

/* Scrollbar styling - XÓA MARGIN để dài 100% */
.post-content .table-scroll::-webkit-scrollbar {
  height: 10px !important;
}

.post-content .table-scroll::-webkit-scrollbar-track {
  background: #2a2a2a !important;
  border-radius: 0 !important; /* Bỏ border-radius để vuông */
  margin: 0 !important; /* XÓA MARGIN - scrollbar sẽ dài 100% */
}

.post-content .table-scroll::-webkit-scrollbar-thumb {
  background: #3b82f6 !important;
  transition: background 0.2s ease;
}

.post-content .table-scroll::-webkit-scrollbar-thumb:hover {
  background: #5b9bff !important;
}

/* Hover effect cho container */
.post-content .table-scroll:hover {
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3) !important;
}

/* Responsive */
@media (max-width: 480px) {
  .post-content .table-scroll::-webkit-scrollbar {
    height: 8px !important;
  }
}

/* TABLE 2 CỘT - RULE ĐẶC BIỆT */
.post-content .table-scroll table.table-2-columns {
  width: 100% !important;
  min-width: 100% !important;
  max-width: 100% !important;
  table-layout: fixed !important;
}

/* Đảm bảo cells của table 2 cột wrap content */
.post-content .table-scroll table.table-2-columns th,
.post-content .table-scroll table.table-2-columns td {
  width: 50% !important;
  white-space: normal !important;
  word-wrap: break-word !important;
  overflow-wrap: break-word !important;
}

/* Wrapper của table 2 cột không cần scroll */
.post-content .table-scroll:has(table.table-2-columns) {
  overflow-x: hidden !important;
}
