main.review-summary {
  margin-top: 40px;
}

.container {
  display: grid;
  grid-template-columns: 2.5fr 7.5fr;
  gap: 40px;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== Left Content ===== */
.left-content {
  position: sticky;
  top: 100px;
  align-self: start;
}

/* ===== Right Content ===== */
.right-content {
  padding-top: 100px;
}

.article-tag {
  display: inline-block;
  background-color: rgba(68, 157, 240, 0.1);
  color: #188ffe;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  margin-bottom: 10px;
  border: 1px solid rgba(68, 157, 240, 0.2);
}

.article-tag:hover {
  background-color: oklch(68% 0.15 250 / 0.2);
}

.article-title {
  font-size: 48px;
  line-height: 64px;
  font-weight: 600;
  margin: 10px 0 20px;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  font-size: 14px;
  color: #6b7280;
  margin-bottom: 20px;
}

.meta i {
  margin-right: 5px;
  color: #9ca3af;
}

/* Share buttons */
.share-buttons {
  display: flex;
  gap: 10px;
  margin-bottom: 25px;
}

.share-buttons button {
  background: #e5e7eb;
  border: none;
  border-radius: 6px;
  height: 30px;
  cursor: pointer;
  transition: background 0.3s ease;
  padding: 0 10px;
}

.share-buttons button:hover {
  background-color: #0e88f9;
  color: white;
  transition: all 0.5s ease;
}

/* Image */

figure.wp-block-image.size-large {
  display: flex;
  align-items: center;
}

.article-image img {
  width: 100%;
  height: auto;
  margin-bottom: 30px;
}

.article-body p {
  margin: 10px 0;
  line-height: 22px;
  font-size: 14px;
  font-weight: 300;
}

.article-body h2 {
  font-size: 32px;
  font-weight: 500;
  margin: 15px 0;
}

.article-body h3 {
  font-size: 24px;
  font-weight: 500;
  margin: 15px 0;
}

.article-body h4 {
  font-size: 14px;
  color: #111827;
  font-weight: 500;
}

/* .article-body ul {
  padding-left: 20px;
  margin-bottom: 20px;
} */

.wp-block-list li {
  margin: 5px 0;
}

.back-btn {
  margin-top: 40px;
}

.btn-back {
  display: inline-flex;
  align-items: center;
  background-color: #fff;
  color: #000;
  padding: 10px 16px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  border: 1px solid #e2e5e880;
  box-shadow: 0 1px 2px #e2e5e880;
}

.btn-back i {
  margin-right: 6px;
}

.btn-back:hover {
  background-color: #0e88f9;
  border: 1px solid #188ffe;
}

.btn-back:hover i {
  transform: translateX(-7px);
  /* icon dịch sang trái khi hover */
  transition: all 0.3s ease;
}

/*=================== related section =======================*/

.related-articles {
  text-align: center;
  padding: 60px 20px;
  max-width: 1400px;
  width: 100%;
  margin: auto;
}

.related-articles h2 {
  font-size: 28px;
  font-weight: 510;
  margin-bottom: 10px;
  color: #111827;
}

.related-articles .section-desc {
  color: #6b7280;
  font-size: 15px;
  margin-bottom: 40px;
}

/* Grid layout */
.articles-grid {
  display: grid;
  gap: 50px;
  grid-template-columns: repeat(3, 1fr);
  margin: 0 auto;
}

/* Article Card */
.article-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  transition: transform 0.5s ease;
}

.article-card:hover {
  transform: translateY(-10px);
}

.article-card .article-image {
  overflow: hidden;
}

.article-card .article-image img {
  width: 100%;
  transition: transform 0.3s ease;
}

.article-card:hover .article-image img {
  transform: scale(1.2);
}

/* Image */
.article-image {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: #f5f5f5;
  /* Thêm background */
}

.article-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  /* Thêm để ảnh sắc nét hơn */
  image-rendering: -webkit-optimize-contrast;
  backface-visibility: hidden;
  transform: translateZ(0);
}

/* Giảm scale xuống để ảnh ít bị vỡ hơn */
.article-card:hover .article-image img {
  transform: scale(1.05);
  /* Giảm từ 1.2 xuống 1.05 */
}

.article-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.article-image .tag {
  position: absolute;
  top: 12px;
  right: 12px;
  background-color: #fafcff;
  color: #000;
  font-size: 12px;
  padding: 5px 10px;
  border-radius: 5px;
}

/* Content */
.article-content {
  padding: 20px;
  text-align: left;
}

.article-content h3 {
  font-size: 18px;
  font-weight: 510;
  color: #111827;
  margin-bottom: 8px;
  transition: all 0.3s ease;
  -webkit-line-clamp: 2;
}

.article-card:hover h3 {
  color: #188ffe;
}

.article-content p {
  font-size: 14px;
  color: #6b7280;
  margin-bottom: 16px;
  line-height: 1.5;
  -webkit-line-clamp: 2;
}

/* Meta info */
.meta {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 13px;
  color: #6b7280;
}

.meta i {
  margin-right: 5px;
  color: #9ca3af;
}

.menu-toggle {
  display: none;
  font-size: 24px;
  background: none;
  border: none;
  color: #333;
  cursor: pointer;
}

/* =================== Responsive =================== */

/* Tablet */
@media (max-width: 992px) {
  .container {
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 20px auto;
    padding: 0 20px;
  }

  .right-content {
    width: 100%;
    padding-top: 80px;
  }

  .header-row {
    justify-content: space-between;
    position: relative;
  }

  /* Ẩn menu và 2 nút Sign In / Trial */
  .header-center,
  .header-right .btn {
    display: none;
  }

  .menu-toggle {
    display: inline-block;
    background: none;
    border: none;
    font-size: 1.4rem;
    color: #111;
    cursor: pointer;
  }

  .header-center.active {
    display: block;
    position: absolute;
    top: 70px;
    right: 0;
    width: 200px;
    background: #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    z-index: 999;
  }

  .header-center .menu {
    flex-direction: column;
    padding: 15px;
    gap: 12px;
    text-align: right;
  }

  .header-center .menu li a {
    display: block;
    padding: 8px 0;
  }

  /* ===== Table of Contents ===== */
  /* Ẩn left-content (TOC bên trái PC) */
  .left-content {
    display: none;
  }

  /* TOC di động */
  .toc-mobile {
    display: block;
    margin: 20px 0;
  }

  /* 
  .toc-toggle {
    background:white;
    color: #fff;
    border: none;
    padding: 10px 16px;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    width: 100%;
    font-size: 1rem;
  } */

  .toc-toggle {
    background: white;
    color: black;
    border: none;
    padding: 10px 16px;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    width: 100%;
    text-align: center;
    font-size: 1rem;
  }

  .toc-toggle:hover {
    background-color: #0e88f9;
    color: white;
    transition: all 0.5s ease;
  }

  .toc-content {
    display: none;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 15px;
    margin-top: 10px;
  }

  .toc-content.show {
    display: block;
  }

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

  .toc-content ul li {
    margin: 8px 0;
  }

  .toc-content ul li a {
    color: #333;
    text-decoration: none;
    font-size: 12px;
  }

  .toc-content ul li a:hover {
    color: black;
  }

  /* ===== Related Articles ===== */
  .articles-grid {
    grid-template-columns: repeat(2, 1fr);
    justify-items: start;
  }
}

/* Mobile */
@media (max-width: 600px) {

  /* ===== Header ===== */
  .site-title {
    font-size: 1.2rem;
  }

  .header-center.active {
    width: 100%;
    right: 0;
  }

  /* ===== TOC ===== */
  .toc-toggle {
    width: 100%;
  }

  /* ===== Related Articles: 1 box mỗi hàng ===== */
  .articles-grid {
    grid-template-columns: 1fr;
  }

  .articles-grid .article-card:last-child {
    width: 100%;
  }
}

@media (min-width: 992px) {

  /* TOC di động ẩn trên PC */
  .toc-mobile {
    display: none;
  }

  /* TOC bên trái chỉ hiển thị ở PC */
  .left-content {
    display: block;
  }
}

h2 .wp-block-heading {
  padding-bottom: 10px;
}

/* ul.wp-block-list {
  margin-left: 40px;
  font-size: 14px;
  margin-bottom: 10px;
} */

.wp-block-image :where(figcaption) {
  margin-bottom: 1em;
  margin-top: 0.5em;
  text-align: center;
  font-size: 13px;
  color: #6b6b6b;
  font-style: italic;
}

td {
  font-size: 14px;
}

/* ===== Blog Content Table Styles ===== */
.article-body table,
.right-content table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 24px 0;
  font-size: 14px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
  border: 1px solid #e5e7eb;
}

.article-body table thead,
.right-content table thead {
  background: linear-gradient(135deg, #2b7fff 0%, #00b8db 100%);
}

.article-body table thead th,
.right-content table thead th {
  color: #fff;
  font-weight: 600;
  font-size: 13px;
  padding: 13px 18px;
  text-align: left;
  border: none;
  white-space: nowrap;
}

.article-body table tbody tr:nth-child(odd),
.right-content table tbody tr:nth-child(odd) {
  background: #f8faff;
}

.article-body table tbody tr:nth-child(even),
.right-content table tbody tr:nth-child(even) {
  background: #ffffff;
}

.article-body table tbody tr:hover,
.right-content table tbody tr:hover {
  background: #eef6ff;
  transition: background 0.18s;
}

.article-body table tbody td,
.right-content table tbody td {
  padding: 11px 18px;
  color: #374151;
  border-bottom: 1px solid #f0f3f8;
  vertical-align: middle;
  line-height: 1.5;
}

.article-body table tbody tr:last-child td,
.right-content table tbody tr:last-child td {
  border-bottom: none;
}

@media (max-width: 768px) {

  .article-body table,
  .right-content table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
    font-size: 13px;
  }
}

.wp-block-embed__wrapper {
  position: relative;
  font-size: 14px;
}

#toc-list li:not(.toc-sub) a,
#toc-list-mobile li:not(.toc-sub) a {
  color: #000;
  text-decoration: none;
  transition: color 0.2s;
  display: -webkit-box !important;
  -webkit-box-orient: vertical;
  overflow: hidden;
  -webkit-line-clamp: 1;
}

#toc-list li.toc-sub a,
#toc-list-mobile li.toc-sub a {
  color: #666;
  text-decoration: none;
  transition: color 0.2s;
  display: -webkit-box !important;
  -webkit-box-orient: vertical;
  overflow: hidden;
  -webkit-line-clamp: 1;
}

ol,
ul {
  box-sizing: border-box;
  margin-left: 40px;
  font-size: 14px;
  margin-bottom: 10px;
  font-weight: 300;
}

nav.rank-math-breadcrumb {
  color: #6b7280;
  font-size: 13px;
}

.wp-block-list li strong {
  font-weight: 510;
}

/* Author Box - Simple & Compact */
.author-box {
  margin: 40px 0;
  padding: 25px;
  background: linear-gradient(135deg, #f0f9ff 0%, #ffffff 100%);
  border: 2px solid #e0f2fe;
  border-radius: 12px;
  position: relative;
  overflow: hidden;
}

.author-box::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #188ffe 0%, #64b5f6 100%);
}

.author-box-content {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.author-avatar {
  flex-shrink: 0;
}

.author-avatar img {
  width: 80px;
  height: 48px;
  border-radius: 50%;
  border: 3px solid #188ffe;
  box-shadow: 0 4px 12px rgba(68, 157, 240, 0.15);
  object-fit: cover;
}

.author-info {
  flex: 1;
}

.author-name {
  font-size: 20px;
  font-weight: 510;
  color: #1a1a1a;
  margin: 0 0 3px 0;
  line-height: 1.2;
}

.author-role {
  font-size: 13px;
  color: #188ffe;
  font-weight: 600;
  margin: 0 0 12px 0;
}

.author-bio {
  margin: 0 0 12px 0;
  line-height: 1.6;
  color: #555;
  font-size: 14px;
}

.author-meta {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.meta-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  color: #666;
}

.meta-item i {
  color: #188ffe;
  font-size: 14px;
}

/* Responsive */
@media (max-width: 768px) {
  .author-box {
    padding: 20px;
  }

  .author-box-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .author-name {
    font-size: 18px;
  }

  .author-meta {
    justify-content: center;
  }
}

/* Blog FAQ Styles */
.blog-faq-section {
  padding: 30px 0;
  border-top: 1px solid #e0e0e0;
}

.blog-faq-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.blog-faq-item {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.blog-faq-item:hover {
  border-color: #449df0;
  box-shadow: 0 2px 8px rgba(68, 157, 240, 0.1);
}

.blog-faq-question {
  padding: 20px;
  margin: 0;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 18px;
  font-weight: 600;
  background: #f9f9f9;
  transition: all 0.3s ease;
}

.blog-faq-question:hover {
  background: #f0f6fc;
  color: #449df0;
}

.blog-toggle-icon {
  transition: transform 0.3s ease;
  color: #449df0;
}

.blog-faq-item.active-faq .blog-toggle-icon {
  transform: rotate(180deg);
}

.blog-faq-answer-container {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.blog-faq-item.active-faq .blog-faq-answer-container {
  max-height: 500px;
}

.blog-faq-answer-content {
  padding: 20px;
  background: white;
}

.blog-faq-answer {
  margin: 0;
  line-height: 1.6;
  color: #333;
}