/* LWPToc */
:root {
  --toc-bg: #ffffff;
  --toc-border: rgba(14,165,160,0.15);
  --toc-accent: var(--primary-color);
  --toc-text: #0f172a;
  --toc-muted: #6b7280;
  --toc-radius: 12px;
  --toc-shadow: 0 4px 14px rgba(0,0,0,0.05);
}

/* Khối TOC tổng thể */
.lwptoc {
  font-family: var(--toc-font);
  background: var(--toc-bg);
  border: 1px solid var(--toc-border);
  border-radius: var(--toc-radius);
  box-shadow: var(--toc-shadow);
  padding: 16px 18px;
  color: var(--toc-text);
  box-sizing: border-box;
  max-width: 100%;
}

/* Header “Nội dung” */
.lwptoc_header {
  margin-bottom: 12px;
  border-bottom: 1px solid rgba(14,165,160,0.12);
  padding-bottom: 6px;
}

.lwptoc_title {
  font-weight: 700;
  font-size: 15px;
  color: var(--toc-accent);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Danh sách mục */
.lwptoc_items {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Từng mục */
.lwptoc_item {
  border-radius: 8px;
  transition: all 0.2s ease;
}

.lwptoc_item a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  color: var(--toc-text);
  text-decoration: none;
  font-size: 16px;
  line-height: 1.3;
  border-radius: 8px;
  transition: all 0.2s ease;
}

/* Biểu tượng nhỏ */
.lwptoc_item a::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--toc-accent);
  flex-shrink: 0;
  opacity: 0.7;
}

/* Hover effect */
.lwptoc_item a:hover {
  background: rgba(14,165,160,0.08);
  color: var(--toc-accent);
  transform: translateX(4px);
}

/* Mục đang active (tùy chọn: thêm class .active) */
.lwptoc_item.active a {
  background: rgba(14,165,160,0.12);
  color: var(--toc-accent);
  font-weight: 600;
}

.lwptoc:first-child {
    margin-top: 0px;
}

.lwptoc {
    margin: 0px; 
}

/* Responsive trên màn nhỏ */
@media (max-width: 576px) {
  .lwptoc {
    padding: 12px 14px;
    font-size: 13px;
  }
  .lwptoc_title {
    font-size: 14px;
  }
  .lwptoc_item a {
    font-size: 13px;
    padding: 6px 8px;
  }
}


.toc-sticky {
  position: -webkit-sticky;
  position: sticky;
  top: 90px; /* khoảng cách từ đỉnh trang */
  height: fit-content;
  z-index: 100;
  align-self: start;
}

.toc-sticky .card {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.toc-sticky .card-body {
  max-height: 80vh;
  overflow-y: auto;
  padding: 16px;
}

@media (min-width: 992px) { /* >= Bootstrap LG */
  .toc-sticky {
    position: -webkit-sticky;
    position: sticky;
    top: 90px;
    height: fit-content;
    z-index: 100;
    align-self: start;
  }
}

@media (max-width: 991.98px) {
  .toc-sticky {
    position: static; /* không sticky trên mobile */
    margin-bottom: 1rem;
  }
}


/* *************************************************************************** */


h5 a.tx-color-default {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;    /* số dòng tối đa hiển thị */
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.4;         /* điều chỉnh nếu cần */
  max-height: calc(1.4em * 2); /* tương ứng với line-clamp */
}


/* Căn chỉnh tổng thể bảng WordPress */
.wp-block-table {
  width: 100%;
  overflow-x: auto;
  margin: 1.5rem 0;
}

/* Bảng có khung rõ ràng */
.wp-block-table table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid #e0e0e0;
}

/* Ô bảng */
.wp-block-table td,
.wp-block-table th {
  border: 1px solid #e0e0e0;
  padding: 12px 16px;
  vertical-align: middle;
  font-size: 0.95rem;
  line-height: 1.5;
  width: 0px;
}

/* Căn giữa nội dung */
.wp-block-table .has-text-align-center {
  text-align: center;
}

/* Hàng đầu tiên (tiêu đề) */
.wp-block-table tr:first-child td {
  background-color: #f8f9fa;
  font-weight: 600;
}

/* Khi bảng có layout cố định */
.wp-block-table.has-fixed-layout table {
  table-layout: fixed;
}

/* Responsive - bảng không bị tràn trên mobile */
.wp-block-table {
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}


.wp-block-table strong {
  font-weight: 600;
  color: #1a73e8; /* xanh nhẹ, dễ nhìn */
  background-color: #f0f6ff;
  padding: 4px 8px;
  border-radius: 6px;
  display: inline-block;
}




section.content-blog {
  color: #252627;
}

section.content-blog li {
  margin-bottom: 0.6rem;
  line-height: 1.5;
}

section.content-blog h1,
section.content-blog h2,
section.content-blog h3,
section.content-blog h4,
section.content-blog h5,
section.content-blog h6 {
  position: relative;
  color: #252627;
  font-weight: 600;
  margin-bottom: 20px;
  padding-left: 12px;
  z-index: 1;
  line-height: 1.4;
}

/* Kích thước riêng cho từng cấp */
section.content-blog h1 {
  font-size: 32px;
  line-height: 46px;
}

section.content-blog h2 {
  font-size: 25px;
  line-height: 40px;
}

section.content-blog h3 {
  font-size: 20px;
  line-height: 32px;
}

section.content-blog h4 {
  font-size: 18px;
  line-height: 28px;
}

section.content-blog h5 {
  font-size: 16px;
  line-height: 26px;
}

section.content-blog h6 {
  font-size: 14px;
  line-height: 22px;
  font-weight: 500;
}

section.content-blog h2::before {
  content: "";
  position: absolute;
  height: 100%;
  width: 100%;
  left: 0;
  top: 0;
  border-left: 3px solid #38a7ff;
  background: linear-gradient(270deg, rgba(215, 237, 255, 0) 0%, #d7edff 100%);
  z-index: -1;
}


.card .wp-post-image {
 height: auto;
}

/* Căn giữa và responsive ảnh trong bài viết WordPress */
.wp-block-image {
  text-align: center;
}

.wp-block-image img {
  display: inline-block;
  max-width: 100%;
  height: auto;
  border-radius: 10px; /* bo góc nhẹ cho đẹp, có thể bỏ nếu không cần */
}

/* Responsive cho cột chứa ảnh */
.wp-block-columns.is-layout-flex {
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

/* Điều chỉnh cho giao diện mobile */
@media (max-width: 768px) {
  .wp-block-columns.is-layout-flex {
    flex-direction: column;
  }

  .wp-block-column {
    flex-basis: 100% !important;
    max-width: 100%;
  }

  .wp-block-image img {
    width: 100%;
    height: auto;
  }
}


.wp-element-caption {
  font-style: italic;        /* Chữ in nghiêng */
  text-align: center;        /* Căn giữa */
  margin-top: 8px;           /* Tạo khoảng cách với ảnh */
  color: #666;               /* Màu chữ nhẹ, tinh tế */
  font-size: 14px;           /* Cỡ chữ vừa phải */
  line-height: 1.4;          /* Giãn dòng dễ đọc */
}


.two-line-ellipsis {
  display: -webkit-box;
  -webkit-line-clamp: 2; /* Giới hạn 2 dòng */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 16px;
}

.author-box {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 1rem;
  margin-top: auto;
}

.author-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 0 0 2px #fff, 0 2px 6px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.author-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.author-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.author-name {
  font-weight: 600;
  font-size: 15px;
  color: #252627;
  text-decoration: none;
}

.author-name:hover {
  color: #007bff;
}

.author-date {
  font-size: 13px;
  color: #6c757d;
  margin-top: 2px;
}


.wp-block-quote.is-layout-flow.wp-block-quote-is-layout-flow {
  background-color: #e8f3ff; /* xanh pastel */
  border-left: 4px solid #38a7ff; /* line xanh bên trái */
  padding: 16px 20px;
  border-radius: 10px;
  font-style: italic;
  color: #222;
}

/* Xóa khoảng trống dư của thẻ p bên trong */
.wp-block-quote.is-layout-flow.wp-block-quote-is-layout-flow p {
  margin-bottom: 0;
}


.kk-star-ratings .kksr-legend {
    margin-top: 5px;
}


.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: #f0f0f0; /* đen nhạt (xám sáng) */
  color: #333; /* icon màu đen nhẹ */
  text-decoration: none;
  transition: all 0.2s ease;
}

.social-icon:hover {
  background-color: #dcdcdc; /* tối hơn nhẹ khi hover */
  color: #000;
}


hr.mg-y-30 {
  border: none;
  border-top: 1px solid #8f8e8e; /* xám nhạt */
}


.tool-img {
  width: 80px;              /* Kích thước cố định */
  height: 80px;
  object-fit: contain;      /* Giữ nguyên tỉ lệ ảnh */
  padding: 8px;             /* Khoảng cách trong */
  display: block;
  margin: 0 auto 10px auto; /* Căn giữa ảnh */
}


/* --- Giao diện mobile --- */
@media (max-width: 767.98px) {
  .tab-style-3 .nav {
    flex-direction: column;
    align-items: stretch;
  }

  .tab-style-3 .nav-item {
    width: 100%;
    margin-right: 0 !important;
  }

  .tab-style-3 .feature-card-3 {
    padding: 10px 15px;
  }

  .tab-style-3 .feature-card-3 .tx-16 {
    font-size: 1rem;
  }
}


.object-cover {
  object-fit: cover;
}

.bank-logo-card {
  border: 1px solid #eee;
  border-radius: 12px;
}


.bank-info-table {
  width: 100%;
  border-collapse: collapse;
}

.bank-info-table td {
  padding: 12px 0;
  border-bottom: 1px solid #eaeaea;
  color: #555;
  font-size: 15px;
  vertical-align: middle;
}

.bank-info-table tr:last-child td {
  border-bottom: none; /* bỏ line ở dòng cuối cùng */
}

.bank-info-table td:first-child {
  width: 180px;
  color: #777;
}

.payment-info {
  border-left: 3px solid #0d6efd;
  padding-left: 15px;
  margin: 20px 0;
}

.payment-item {
  padding: 6px 0;
  border-bottom: 1px solid #eee;
}

.note {
  font-size: 15px;
  line-height: 1.6;
}

