@charset "UTF-8";

/**
 * Theme overrides (load after tgwv-editor-content.css).
 * Token màu gốc: assets/css/tgwv-color-tokens.css (3 màu: dark / light / brand)
 * Base typography: plugins/tgwv-rich-editor/assets/css/tgwv-editor-content.css
 * Wrapper: .entry-content.tgwv-editor-body (tgwv_theme_editor_content_class())
 */

body {
  font-family: var(--tgwv-font-body, system-ui, -apple-system, "Segoe UI", sans-serif);
  font-size: var(--tgwv-font-size-body, 15px);
  background-color: var(--tgwv-surface, #faf7f2);
  color: var(--tgwv-color-dark, #231f20);
  background:
    url("../images/bg-footer-optimized.6b456453.jpg") bottom no-repeat,
    url("../images/bg-body-5.41b92e69.png") right 4430px no-repeat,
    url("../images/bg-body-4.1f9bdefd.png") 0 4500px no-repeat,
    url("../images/bg-body-3.e2cb3b1c.png") right 3330px no-repeat,
    url("../images/bg-body-2.f61c9139.png") 0 2700px no-repeat,
    url("../images/bg-body-1.418a9985.png") right 2100px no-repeat,
    url("../images/bg-header-2.489b84a6.jpg") top no-repeat,
    url("../images/bg-body.9bfd1cb8.png");
  min-height: 1500px;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6,
.tgwv-heading {
  font-family: var(--tgwv-font-heading, var(--tgwv-font-body, sans-serif));
}

.tgwv-header-default .tgwv-header-default-menu > ul > li > a,
.tgwv-header-default-menu-sub .tgwv-header-default-menu > ul > li > a,
.tgwv-header-stacked__menu-desktop .nav-link,
.tgwv-header-stacked__menu-mobile .nav-link {
  font-family: var(--tgwv-font-heading, var(--tgwv-font-body, sans-serif));
}

.tgwv-editor-body,
.tgwv-page-builder-output {
  font-family: var(--tgwv-font-body, system-ui, sans-serif);
  font-size: var(--tgwv-font-size-body, 14px);
}

/* Rich Editor — đồng bộ màu chữ frontend */
.tgwv-editor-body {
  --tgwv-content-color: var(--tgwv-color-dark);
}

.tgwv-editor-body h1,
.tgwv-editor-body h2,
.tgwv-editor-body h3,
.tgwv-editor-body h4,
.tgwv-editor-body h5 {
  color: var(--tgwv-color-dark);
}

:root, .tgwv-page-builder-output {
  padding-left: 0;
  padding-right: 0;
}

.site-container,
.site-container-fluid {
  --tgwv-container-padding-x: 15px !important;
}

.site-container {
  width: 100%;
  max-width: var(--tgwv-container-max-width, 1200px);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--tgwv-container-padding-x, 15px);
  padding-right: var(--tgwv-container-padding-x, 15px);
  box-sizing: border-box;
}

/* Full-width container — không giới hạn max-width, vẫn giữ padding ngang. */
.site-container-fluid {
  width: 100%;
  max-width: none;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--tgwv-container-padding-x, 15px);
  padding-right: var(--tgwv-container-padding-x, 15px);
  box-sizing: border-box;
}

/* Modifier "No space": full width, bỏ luôn padding ngang để nội dung sát mép màn hình. */
.site-container-fluid--flush {
  padding-left: 0;
  padding-right: 0;
}

/* Tiêu đề trang (H1) — archive, category, search, chi tiết page/article */
.site-main .entry-title {
  --tgwv-entry-title-color: var(--tgwv-color-dark);

  margin: 1.25rem 0 1.5rem;
  padding: 0.5rem 0 0.5rem 1rem;
  border: 0;
  border-left: 4px solid var(--tgwv-entry-title-accent, var(--tgwv-brand, #000000));
  border-bottom: 1px solid rgba(22, 7, 171, 0.12);
  box-sizing: border-box;

  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--tgwv-entry-title-color);
  text-wrap: balance;
}
@media (min-width: 992px) {
  .site-main .entry-title {
    font-size: 24px;
  }
}

@media (min-width: 768px) {
  .site-main .entry-title {
    margin-top: 1.5rem;
    margin-bottom: 1.75rem;
    padding-bottom: 10px;
    padding-left: 1.125rem;
  }
}

/* Article detail: title + view count on one row */
.site-main .entry-article__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  margin: 1.25rem 0 1.5rem;
  padding: 0.5rem 0 0.5rem 1rem;
  border: 0;
  border-left: 4px solid var(--tgwv-entry-title-accent, var(--tgwv-brand, #000000));
  border-bottom: 1px solid rgba(22, 7, 171, 0.12);
  box-sizing: border-box;
  flex-wrap: nowrap;
}

@media (min-width: 768px) {
  .site-main .entry-article__header {
    margin-top: 1.5rem;
    margin-bottom: 1.75rem;
    padding-bottom: 10px;
    padding-left: 1.125rem;
  }
}

.site-main .entry-article__header .entry-title {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.site-main .entry-article__views {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex: 0 0 auto;
  align-self: center;
  margin: 0;
  padding: 5px 10px;
  border: 1px solid #d4e4f7;
  border-radius: 999px;
  background-color: #f0f7ff;
  color: #2563eb;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.site-main .entry-article__views-icon {
  display: inline-flex;
  font-size: 11px;
  line-height: 1;
}

/* Builder trong container: một lớp hộp — tránh tiêu đề lệch so với nội dung section */
.site-container > .tgwv-page-builder-output .tgwv-section-inner.tgwv-container,
.site-container-fluid > .tgwv-page-builder-output .tgwv-section-inner.tgwv-container {
  max-width: none;
  padding-left: 0;
  padding-right: 0;
}

/* Layout có sidebar (sidebar-left / sidebar-right) — dùng Bootstrap row/col. */
.site-layout-row {
  display: flex;
  flex-wrap: wrap;
  margin-left: -15px;
  margin-right: -15px;
}

.site-layout-row > .site-content-col,
.site-layout-row > .site-sidebar {
  padding-left: 15px;
  padding-right: 15px;
  box-sizing: border-box;
  width: 100%;
}

@media (min-width: 992px) {
  .site-layout-row > .col-lg-3 {
    width: 25%;
    flex: 0 0 25%;
    max-width: 25%;
  }
  .site-layout-row > .col-lg-9 {
    width: 75%;
    flex: 0 0 75%;
    max-width: 75%;
  }
}

.site-sidebar {
  margin-top: 1.5rem;
}

.tgwv-page-draft-notice {
  margin: 0 0 1rem;
  padding: 12px 16px;
  border: 1px solid #f0c36d;
  border-radius: 6px;
  background: #fff8e5;
  color: #5c4a1f;
  font-size: 14px;
  line-height: 1.5;
}

/* Trang TGWV Builder chưa có layout — thông báo đang cập nhật */
.tgwv-builder-empty-state {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: clamp(220px, 38vh, 380px);
  margin: 1.25rem 0 2rem;
  padding: 2.5rem 1rem;
  text-align: center;
}

.tgwv-builder-empty-notice {
  margin: 0;
  width: min(100%, 32rem);
  padding: 2rem 1.5rem;
  border: 1px solid rgba(var(--tgwv-brand-rgb, 25, 135, 84), 0.12);
  border-radius: 18px;
  background:
    radial-gradient(circle at 50% 0%, rgba(var(--tgwv-brand-rgb, 25, 135, 84), 0.08), transparent 48%),
    var(--tgwv-color-light, #fff);
  box-shadow:
    0 16px 36px rgba(15, 23, 42, 0.06),
    0 2px 6px rgba(15, 23, 42, 0.03);
}

.tgwv-builder-empty-notice__visual {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  margin-bottom: 1.25rem;
  border: 1px solid rgba(var(--tgwv-brand-rgb, 25, 135, 84), 0.14);
  border-radius: 18px;
  color: var(--tgwv-brand, #198754);
  background: rgba(var(--tgwv-brand-rgb, 25, 135, 84), 0.08);
  box-shadow: 0 8px 20px rgba(var(--tgwv-brand-rgb, 25, 135, 84), 0.08);
}

.tgwv-builder-empty-notice__visual svg {
  width: 2rem;
  height: 2rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tgwv-builder-empty-notice__title {
  margin: 0;
  color: #273244;
  font-size: 18px;
  font-weight: 650;
  line-height: 1.45;
  letter-spacing: -0.01em;
}

.tgwv-builder-empty-notice__description {
  max-width: 25rem;
  margin: 0.6rem auto 0;
  color: #687386;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.65;
}

@media (min-width: 768px) {
  .tgwv-builder-empty-state {
    margin-top: 1.75rem;
    padding: 2.5rem 1.5rem;
  }

  .tgwv-builder-empty-notice {
    padding: 2.5rem 2.75rem;
  }

  .tgwv-builder-empty-notice__title {
    font-size: 20px;
  }
}

/* Có thể bạn quan tâm — cuối trang chi tiết bài viết */
.related-articles {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.related-articles__title {
  margin: 0 0 1rem;
  font-size: 20px;
  line-height: 1.35;
}

.related-articles__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.related-articles__item + .related-articles__item {
  margin-top: 0.5rem;
}

.related-articles__link {
  color: var(--tgwv-color-dark);
  text-decoration: none;
  font-size: 14px;
}

.related-articles__link:hover {
  text-decoration: underline;
}

.tag-related-items {
  margin-top: 1.75rem;
}

.tag-related-items__group + .tag-related-items__group {
  margin-top: 1.75rem;
}

.tag-related-items__group-title {
  margin: 0 0 0.75rem;
  padding-left: 0.65rem;
  border-left: 3px solid var(--tgwv-brand, #198754);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0.01em;
  color: var(--tgwv-color-dark, #111);
}

.tag-related-items__list {
  margin: 0;
  padding: 0;
  list-style: none;
  border: 1px solid rgba(var(--tgwv-brand-rgb, 25, 135, 84), 0.12);
  border-radius: 8px;
  overflow: hidden;
  background: var(--tgwv-surface, #fff);
}

.tag-related-items__item + .tag-related-items__item {
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.tag-related-items__link {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.7rem 0.85rem;
  color: var(--tgwv-color-dark, #111);
  text-decoration: none;
  font-size: 0.95rem;
  line-height: 1.45;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.tag-related-items__link:hover,
.tag-related-items__link:focus-visible {
  background: rgba(var(--tgwv-brand-rgb, 25, 135, 84), 0.06);
  color: var(--tgwv-brand, #198754);
  outline: none;
}

.tag-related-items__link:hover .tag-related-items__title,
.tag-related-items__link:focus-visible .tag-related-items__title {
  text-decoration: none;
}

.tag-related-items__thumb {
  flex: 0 0 72px;
  width: 72px;
  height: 54px;
  overflow: hidden;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.04);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06);
}

.tag-related-items__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.2s ease;
}

.tag-related-items__link:hover .tag-related-items__thumb img {
  transform: scale(1.04);
}

.tag-related-items__title {
  flex: 1 1 auto;
  min-width: 0;
  font-weight: 500;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tag-related-items__empty {
  margin: 0;
  padding: 0.85rem 1rem;
  border-radius: 8px;
  font-size: 0.9rem;
  color: rgba(0, 0, 0, 0.65);
  background: rgba(0, 0, 0, 0.03);
}

@media (max-width: 575.98px) {
  .tag-related-items__link {
    gap: 0.75rem;
    padding: 0.65rem 0.7rem;
  }

  .tag-related-items__thumb {
    flex-basis: 64px;
    width: 64px;
    height: 48px;
  }
}

/* Trang kết quả tìm kiếm */
.site-search-results__form {
  margin: 0 auto 1.5rem;
  max-width: 520px;
  width: 100%;
}

.site-search-results__input-group {
  position: relative;
  display: flex;
  align-items: stretch;
  border-radius: 999px;
  overflow: hidden;
  background: var(--tgwv-color-light);
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 2px 16px rgba(20, 16, 15, 0.07);
  transition:
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.site-search-results__input-group::before {
  content: "\f002";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  left: 0.95rem;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
  font-size: 13px;
  pointer-events: none;
  z-index: 2;
}

.site-search-results__input-group:focus-within {
  border-color: var(--tgwv-brand);
  box-shadow: 0 6px 28px rgba(var(--tgwv-brand-rgb), 0.14);
}

.site-search-results__input-group .form-control {
  flex: 1 1 auto;
  border: 0;
  border-radius: 0;
  padding: 0.65rem 0.85rem 0.65rem 2.35rem;
  font-size: 14px;
  line-height: 1.4;
  background: transparent;
  box-shadow: none;
}

.site-search-results__input-group .form-control:focus {
  box-shadow: none;
  border-color: transparent;
  outline: none;
}

.site-search-results__submit {
  flex: 0 0 auto;
  border-radius: 0 999px 999px 0 !important;
  padding: 0.65rem 1.15rem;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  background-color: var(--tgwv-brand) !important;
  border-color: var(--tgwv-brand) !important;
  white-space: nowrap;
  transition: filter 0.2s ease;
}

.site-search-results__submit:hover,
.site-search-results__submit:focus {
  filter: brightness(0.94);
  background-color: var(--tgwv-brand) !important;
  border-color: var(--tgwv-brand) !important;
}

@media (max-width: 575px) {
  .site-search-results__input-group .form-control {
    padding-left: 2.1rem;
    font-size: 14px;
  }

  .site-search-results__submit {
    padding: 0.65rem 0.95rem;
    font-size: 13px;
  }
}

.site-search-results__hint {
  margin: 0 auto 1rem;
  max-width: 520px;
  text-align: center;
  font-size: 15px;
  line-height: 1.5;
  color: #6b7280;
}

.site-search-results__empty,
.site-search-results__count {
  margin: 0 0 1rem;
  font-size: 15px;
  line-height: 1.5;
  color: #4b5563;
}

.site-search-results__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-search-results__item + .site-search-results__item {
  margin-top: 0.65rem;
  padding-top: 0.65rem;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.site-search-results__link {
  display: inline-block;
  font-size: 16px;
  line-height: 1.45;
  font-weight: 600;
  color: var(--tgwv-content-link, #0066cc);
  text-decoration: none;
}

.site-search-results__link:hover {
  text-decoration: underline;
}

.site-search-results__pagination {
  margin-top: 1.5rem;
  margin-bottom: 20px;
  display: flex;
  justify-content: center;
}

.site-search-results__pagination .pagination {
  margin-bottom: 0;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.25rem;
}

.site-search-results__pagination .page-link {
  border-radius: 8px;
  min-width: 2.25rem;
  text-align: center;
  color: var(--tgwv-brand);
  border-color: rgba(var(--tgwv-brand-rgb), 0.28);
  background-color: var(--tgwv-color-light);
}

.site-search-results__pagination .page-link:hover,
.site-search-results__pagination .page-link:focus {
  color: var(--tgwv-color-light);
  background-color: var(--tgwv-brand);
  border-color: var(--tgwv-brand);
  box-shadow: none;
}

.site-search-results__pagination .page-item.active .page-link {
  color: var(--tgwv-color-light);
  background-color: var(--tgwv-brand);
  border-color: var(--tgwv-brand);
}

/* Breadcrumb — một dòng, cuộn ngang khi dài (không xuống dòng) */
.site-breadcrumb {
  margin: 0 0 1rem;
  padding: 0;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(61, 68, 81, 0.35) transparent;
  background: transparent;
}

.site-breadcrumb::-webkit-scrollbar {
  height: 5px;
}

.site-breadcrumb::-webkit-scrollbar-track {
  background: transparent;
}

.site-breadcrumb::-webkit-scrollbar-thumb {
  background: rgba(61, 68, 81, 0.28);
  border-radius: 999px;
}

.site-breadcrumb::-webkit-scrollbar-thumb:hover {
  background: rgba(61, 68, 81, 0.42);
}

.site-breadcrumb .breadcrumb {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0;
  margin: 0;
  padding: 0.5rem 0;
  min-width: max-content;
  width: max-content;
  max-width: none;
  background: transparent;
  font-size: 13px;
  line-height: 1.35;
  white-space: nowrap;
  list-style: none;
}

.site-breadcrumb .breadcrumb-item {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  max-width: none;
  white-space: nowrap;
  color: var(--tgwv-breadcrumb-current, var(--tgwv-color-dark, #000000));
}

.site-breadcrumb .breadcrumb-item + .breadcrumb-item {
  padding-left: 0;
}

.site-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
  content: "";
  display: inline-block;
  flex: 0 0 auto;
  width: 0.35rem;
  height: 0.35rem;
  margin: 0 0.55rem;
  padding: 0;
  border: 0;
  border-right: 1.5px solid var(--tgwv-breadcrumb-separator, color-mix(in srgb, var(--tgwv-color-dark, #000000) 45%, transparent));
  border-bottom: 1.5px solid var(--tgwv-breadcrumb-separator, color-mix(in srgb, var(--tgwv-color-dark, #000000) 45%, transparent));
  transform: rotate(-45deg);
  opacity: 0.85;
  float: none;
  vertical-align: middle;
}

.site-breadcrumb .breadcrumb-item a {
  display: inline-block;
  color: var(--tgwv-breadcrumb-link, var(--tgwv-color-dark, #000000));
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s ease;
}

.site-breadcrumb .breadcrumb-item a:hover {
  color: var(--tgwv-breadcrumb-link-hover);
}

.site-breadcrumb .breadcrumb-item a:focus-visible {
  outline: 2px solid var(--tgwv-breadcrumb-link-hover);
  outline-offset: 2px;
  border-radius: 2px;
}

.site-breadcrumb .breadcrumb-item.active {
  color: var(--tgwv-breadcrumb-current, var(--tgwv-color-dark, #000000));
  font-weight: normal;
}

@media (min-width: 768px) {
  .site-breadcrumb .breadcrumb {
    font-size: 14px;
    padding: 0.5625rem 0;
  }
}
