@charset "UTF-8";

/**
 * Theme overrides (load after tgwv-editor-content.css).
 * Base typography: plugins/tgwv-rich-editor/assets/css/tgwv-editor-content.css
 * Wrapper: .entry-content.tgwv-editor-body (tgwv_theme_editor_content_class())
 *
 * Override CSS variables below if frontend should differ from admin:
 *
 * .tgwv-editor-body {
 *     --tgwv-content-font-size: 16px;
 *     --tgwv-content-line-height: 1.6;
 *     --tgwv-content-link: #0066cc;
 * }
 */

: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-accent: #1607ab;
  --tgwv-entry-title-color: #241818;

  margin: 1.25rem 0 1.5rem;
  padding: 0.5rem 0 0.5rem 1rem;
  border: 0;
  border-left: 4px solid var(--tgwv-entry-title-accent);
  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;
  }
}

/* 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;
}

/* 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: 1.25rem;
  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-content-link, #0066cc);
  text-decoration: none;
}

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

.site-footer-copy {
  margin: 0;
  padding: 12px 15px;
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
}
