html,
body {
  max-width: 100%;
  overflow-x: clip;
}

@supports not (overflow: clip) {
  html,
  body {
    overflow-x: hidden;
  }
}

.pg-wrap {
  padding: 0 0 56px;
}

.pg-hero-slot--fullbleed {
  width: auto;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  margin-bottom: 28px;
  overflow: hidden;
}

.pg-hero-slot--fullbleed .pg-hero {
  margin-bottom: 0;
  border-radius: 0;
  max-width: 100%;
}

.pg-shell {
  display: block;
}

.pg-shell--has-sidebar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 300px);
  gap: 28px;
  align-items: start;
}

.pg-main {
  min-width: 0;
  order: 1;
}

.pg-sidebar {
  min-width: 0;
  order: 2;
}

.pg-sidebox {
  position: sticky;
  top: 96px;
  border: 1px solid #e5efe8;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 8px 24px rgba(16, 24, 40, 0.04);
}

.pg-sidebox__head {
  padding: 0;
  background: linear-gradient(135deg, #1f8f54 0%, #198754 100%);
}

.pg-sidebox__title,
.pg-sidebox__title:hover {
  display: block;
  padding: 18px 20px;
  color: #fff;
  text-decoration: none;
  font-size: 22px;
  line-height: 1.3;
  font-weight: 800;
}

.pg-sidebox__body {
  padding: 12px;
}

.pg-sidegroup {
  border-bottom: 1px solid #eef3ef;
}

.pg-sidegroup:last-child {
  border-bottom: 0;
}

.pg-sidegroup__summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 12px;
  cursor: pointer;
  font-weight: 800;
  color: #10261a;
  user-select: none;
}

.pg-sidegroup__summary::-webkit-details-marker {
  display: none;
}

.pg-sidegroup__label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
  flex: 1 1 auto;
}

.pg-sideicon {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #198754;
  margin-top: 1px;
}

.pg-sideicon svg {
  width: 22px;
  height: 22px;
  display: block;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pg-sidelink__label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
}

.pg-sidelink__text {
  display: block;
}

.pg-sidegroup__name {
  display: block;
  min-width: 0;
  font-size: 16px;
  line-height: 1.45;
}

.pg-sidegroup.is-active > .pg-sidegroup__summary {
  color: #198754;
}

.pg-sidegroup__caret {
  flex: 0 0 auto;
  font-size: 13px;
  transition:
    transform 0.42s cubic-bezier(0.22, 1, 0.36, 1),
    color 0.22s ease;
  color: #5b6472;
}

.pg-sidegroup.is-open > .pg-sidegroup__summary .pg-sidegroup__caret {
  transform: rotate(180deg);
}

.pg-sidegroup__body {
  overflow: hidden;
  height: 0;
  opacity: 0;
  transform: translateY(-6px);
  padding: 0 0 0 32px;
  transition:
    height 0.42s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.28s ease,
    transform 0.42s cubic-bezier(0.22, 1, 0.36, 1),
    padding-bottom 0.42s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: height, opacity, transform;
}

.pg-sidegroup.is-open > .pg-sidegroup__body {
  opacity: 1;
  transform: translateY(0);
  padding-bottom: 10px;
}

.pg-sidegroup__static {
  padding: 14px 12px;
  font-weight: 700;
  color: #10261a;
  border-bottom: 1px solid #eef3ef;
}

.pg-sidegroup__static:last-child {
  border-bottom: 0;
}

.pg-sidelink {
  display: block;
  margin: 2px 0;
  padding: 11px 12px 11px 18px;
  border-radius: 12px;
  color: #4b5563;
  text-decoration: none;
  line-height: 1.55;
  transition:
    background 0.18s ease,
    color 0.18s ease,
    transform 0.18s ease;
}

/* menu con trong accordion thụt vào cho thẳng với chữ menu cha */
.pg-sidegroup__body .pg-sidelink,
.pg-sidegroup__body .pg-sidelink--static {
  padding-left: 12px;
}

.pg-sidelink:hover {
  background: #f4fbf7;
  color: #198754;
  text-decoration: none;
}

.pg-sidelink.is-active,
.pg-sidelink--static.is-active,
.pg-sidegroup__static.is-active {
  background: #eef8f1;
  color: #198754;
  font-weight: 700;
}

.pg-sidelink--all {
  font-weight: 700;
  color: #0f5132;
}

.pg-sidelink--static {
  cursor: default;
}

.pg-hero {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(135deg, #f3fbf5 0%, #ffffff 55%, #eef7ff 100%);
  border: 1px solid #e5efe8;
  box-shadow: 0 10px 30px rgba(16, 24, 40, 0.05);
  margin-bottom: 28px;
}

.pg-hero__inner {
  padding: 34px 30px;
}

.pg-shell--has-sidebar .pg-hero__inner {
  padding: 28px 24px;
}

.pg-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  background: #eef8f1;
  color: #1f6f43;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.pg-title {
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.15;
  margin: 14px 0 10px;
  color: #10261a;
  font-weight: 800;
}

.pg-lead {
  max-width: 860px;
  font-size: 16px;
  line-height: 1.75;
  color: #4b5563;
  margin: 0;
}

.pg-lead--rich p {
  margin: 0 0 10px;
}

.pg-lead--rich > *:last-child {
  margin-bottom: 0;
}

.pg-lead--rich a {
  color: inherit;
  text-decoration: underline;
}

.pg-cover {
  margin-top: 20px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #e6edf0;
  background: #fff;
}

.pg-cover img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: cover;
}

.pg-content {
  position: relative;
  background: #fff;
  border: 1px solid #e5efe8;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(16, 24, 40, 0.04);
  padding: 26px;
}

.pg-content--wide {
  padding: 32px;
}

.pg-article-head {
  margin: 0 0 26px;
  padding: 0;
}

.pg-article-title {
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.18;
  margin: 0 0 12px;
  color: #0b3b23;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.pg-article-desc {
  max-width: 920px;
  font-size: 16px;
  line-height: 1.75;
  color: #4b5563;
  margin: 0;
}

.pg-article-desc p {
  margin: 0 0 10px;
}

.pg-article-desc > *:last-child {
  margin-bottom: 0;
}

.pg-html {
  font-size: 16px;
  line-height: 1.8;
  color: #1f2937;
}

.pg-html h2[id],
.pg-html h3[id],
.pg-html h4[id] {
  scroll-margin-top: 120px;
}

/* Table of contents - icon vuông sticky bên trái vùng bài viết */
.pg-toc {
  position: sticky;
  top: calc(50vh - 26px);
  width: 0;
  height: 0;
  margin: 0;
  z-index: 120;
  pointer-events: none;
}

.pg-toc,
.pg-toc__fab,
.pg-toc__panel {
  box-sizing: border-box;
}

.pg-toc__fab {
  width: 52px;
  height: 52px;
  border: 1px solid #d9ddd4;
  border-radius: 12px;
  background: #f4eee5;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(16, 24, 40, 0.1);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease,
    border-color 0.18s ease;
  transform: translateX(calc(-100% - 30px));
  pointer-events: auto;
}

.pg-toc__fab:hover {
  transform: translateX(calc(-100% - 30px)) scale(1.06);
  box-shadow: 0 12px 26px rgba(16, 24, 40, 0.14);
}

.pg-toc.is-open .pg-toc__fab {
  background: #efe6d8;
  border-color: #cfd8ca;
}

.pg-toc__bars,
.pg-toc__head-icon {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
}

.pg-toc__bars span,
.pg-toc__head-icon span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: #1f2937;
}

.pg-toc__panel {
  position: absolute;
  top: 26px;
  left: 0;
  width: min(640px, calc(100vw - 120px));
  max-width: calc(100vw - 120px);
  max-height: min(420px, calc(100vh - 180px));
  overflow-y: auto;
  overflow-x: hidden;
  box-sizing: border-box;
  background: #f4eee5;
  border: 1px solid #ddd8cf;
  border-radius: 16px;
  box-shadow: 0 18px 36px rgba(16, 24, 40, 0.16);
  padding: 18px 18px 16px;
  pointer-events: auto;
  transform: translateY(-50%);
  overscroll-behavior: contain;
}

.pg-toc__head {
  margin-bottom: 14px;
}

.pg-toc__title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 17px;
  line-height: 1.35;
  font-weight: 800;
  color: #16212b;
}

.pg-toc__nav {
  display: grid;
  gap: 8px;
  padding-right: 4px;
}

.pg-toc__link {
  display: block;
  text-decoration: none;
  color: #1f2937;
  font-size: 15px;
  line-height: 1.55;
  padding: 6px 2px;
  border-radius: 8px;
  transition:
    color 0.18s ease,
    background 0.18s ease,
    padding-left 0.18s ease;
}

.pg-toc__link:hover,
.pg-toc__link.is-active {
  color: #198754;
  background: rgba(255, 255, 255, 0.38);
  padding-left: 8px;
  text-decoration: none;
}

.pg-toc__link--lv3 {
  padding-left: 20px;
  font-size: 14px;
}

.pg-toc__link--lv4 {
  padding-left: 38px;
  font-size: 13px;
}

/* Tablet/mobile: icon cố định bên trái, chỉ hiện sau khi cuộn */
@media (max-width: 991.98px) {
  .pg-toc {
    position: fixed;
    left: 12px;
    top: 33vh;
    width: auto;
    height: auto;
    margin: 0;
    z-index: 980;
    opacity: 0;
    transform: translateX(-12px);
    pointer-events: none;
    transition:
      opacity 0.2s ease,
      transform 0.2s ease;
  }

  .pg-toc.is-mobile-visible {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
  }

  .pg-toc__fab {
    transform: none;
  }

  .pg-toc__fab:hover {
    transform: scale(1.06);
  }

  .pg-toc__panel {
    position: absolute;
    left: 58px;
    top: 0;
    width: min(330px, calc(100vw - 76px));
    max-width: calc(100vw - 76px);
    min-width: 240px;
    max-height: min(330px, calc(100vh - 33vh - 130px));
    padding: 14px;
    overflow-y: auto;
    overflow-x: hidden;
    transform: none;
  }
}

/* Mobile */
@media (max-width: 767.98px) {
  .pg-toc {
    left: 10px;
    top: 33vh;
  }

  .pg-toc__fab {
    width: 46px;
    height: 46px;
    border-radius: 11px;
  }

  .pg-toc__panel {
    position: absolute;
    left: 54px;
    top: 0;
    width: min(330px, calc(100vw - 66px));
    max-width: calc(100vw - 66px);
    min-width: 240px;
    max-height: min(320px, calc(100vh - 33vh - 130px));
    padding: 14px;
    transform: none;
  }

  .pg-toc__title {
    font-size: 16px;
  }

  .pg-toc__link {
    font-size: 14px;
  }

  .pg-toc__link--lv3 {
    padding-left: 16px;
    font-size: 13.5px;
  }

  .pg-toc__link--lv4 {
    padding-left: 28px;
    font-size: 13px;
  }
}

/* Mobile nhỏ */
@media (max-width: 420px) {
  .pg-toc {
    left: 8px;
    top: 32vh;
  }

  .pg-toc__fab {
    width: 42px;
    height: 42px;
    border-radius: 10px;
  }

  .pg-toc__panel {
    position: absolute;
    left: 50px;
    top: 0;
    width: calc(100vw - 60px);
    max-width: calc(100vw - 60px);
    min-width: 0;
    max-height: min(300px, calc(100vh - 32vh - 145px));
    padding: 12px;
    border-radius: 14px;
    transform: none;
  }

  .pg-toc__title {
    font-size: 15px;
    gap: 9px;
  }

  .pg-toc__head {
    margin-bottom: 10px;
  }

  .pg-toc__nav {
    gap: 6px;
  }

  .pg-toc__link {
    font-size: 13.5px;
    line-height: 1.45;
    padding: 6px 2px;
  }

  .pg-toc__link--lv3 {
    padding-left: 12px;
    font-size: 13px;
  }

  .pg-toc__link--lv4 {
    padding-left: 22px;
    font-size: 12.5px;
  }
}

.pg-html h2,
.pg-html h3,
.pg-html h4 {
  color: #0f5132;
  margin-top: 1.6em;
  margin-bottom: 0.7em;
}

.pg-html img {
  max-width: 100%;
  height: auto;
  border-radius: 16px;
}

.pg-html table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0;
}

.pg-html th,
.pg-html td {
  border: 1px solid #e5e7eb;
  padding: 10px 12px;
  vertical-align: top;
}

.pg-html blockquote {
  margin: 18px 0;
  padding: 14px 16px;
  border-left: 4px solid #28a745;
  background: #f7fbf8;
  border-radius: 12px;
}

.pg-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.pg-card {
  height: 100%;
  background: #fff;
  border: 1px solid #e5efe8;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(16, 24, 40, 0.04);
  overflow: hidden;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease;
}

.pg-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(16, 24, 40, 0.08);
  border-color: #cfe6d7;
}

.pg-card__media {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, #eff9f1 0%, #f5faff 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-bottom: 1px solid #edf2ee;
}

.pg-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pg-card__body {
  padding: 18px;
}

.pg-card__title {
  font-size: 20px;
  line-height: 1.35;
  font-weight: 800;
  color: #10261a;
  margin: 0 0 8px;
}

.pg-card__desc {
  font-size: 14px;
  line-height: 1.7;
  color: #5b6472;
  margin: 0 0 14px;
}

.pg-card__action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #198754;
  font-weight: 700;
  text-decoration: none;
}

.pg-card__action:hover {
  text-decoration: none;
  opacity: 0.92;
}

.pg-section-title {
  font-size: 26px;
  line-height: 1.25;
  font-weight: 800;
  color: #10261a;
  margin: 0 0 16px;
}

.pg-section-head {
  margin-bottom: 18px;
}

.pg-empty {
  padding: 20px;
  border: 1px dashed #d7e6db;
  border-radius: 12px;
  background: #fafdfb;
  color: #4b5563;
}

.pg-related {
  margin-top: 28px;
}

.pg-cta {
  margin-top: 28px;
  border: 1px solid #d9eade;
  border-radius: 16px;
  background: linear-gradient(135deg, #f5fbf6 0%, #fff 60%, #eef7ff 100%);
  padding: 24px;
}

.pg-cta__title {
  font-size: 24px;
  font-weight: 800;
  color: #10261a;
  margin: 0 0 8px;
}

.pg-cta__desc {
  font-size: 15px;
  line-height: 1.7;
  color: #5b6472;
  margin: 0 0 16px;
}

.pg-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.vt-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  padding: 0 18px;
  border-radius: 12px;
  font-weight: 700;
  text-decoration: none;
}

.vt-btn--solid {
  background: #198754;
  color: #fff;
}

.vt-btn--outline {
  border: 1px solid #198754;
  color: #198754;
  background: #fff;
}

@media (max-width: 1199.98px) {
  .pg-shell--has-sidebar {
    grid-template-columns: minmax(0, 1fr) minmax(240px, 280px);
    gap: 22px;
  }
}

@media (max-width: 991.98px) {
  .pg-shell--has-sidebar {
    grid-template-columns: 1fr;
  }

  .pg-main {
    order: 1;
  }

  .pg-sidebar {
    order: 2;
  }

  .pg-sidebox {
    position: static;
  }

  .pg-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pg-hero__inner {
    padding: 26px 22px;
  }
}

@media (max-width: 767.98px) {
  .pg-grid {
    grid-template-columns: 1fr;
  }

  .pg-content,
  .pg-content--wide {
    padding: 18px;
  }

  .pg-title {
    font-size: 28px;
  }

  .pg-sidebox__title {
    font-size: 20px;
  }
}

.pg-hero--banner {
  min-height: clamp(210px, 16vw, 280px);
  border: 0;
  background: #0c1622;
  box-shadow: 0 14px 36px rgba(16, 24, 40, 0.1);
}

.pg-hero__bg {
  position: absolute;
  inset: 0;
}

.pg-hero__bg picture,
.pg-hero__bg img {
  display: block;
  width: 100%;
  height: 100%;
}

.pg-hero__bg img {
  object-fit: cover;
  object-position: center;
}

.pg-hero__overlay {
  display: none;
}

.pg-hero__inner--banner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  min-height: clamp(210px, 16vw, 280px);
  padding-block: clamp(22px, 3vw, 34px);
  padding-inline: max(20px, calc((100% - var(--vt-container)) / 2 + 16px));
  padding-bottom: clamp(84px, 11vw, 104px);
}

.pg-hero__copy {
  max-width: min(720px, 100%);
}

.pg-crumbbar {
  position: absolute;
  right: 24px;
  bottom: 18px;
  z-index: 3;
  display: flex;
  justify-content: flex-end;
  max-width: min(760px, calc(100% - 40px));
  pointer-events: none;
}

.pg-crumbbar__nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  background: rgba(16, 24, 40, 0.78);
  color: #fff;
  padding: 10px 14px;
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.1);
  max-width: 100%;
  backdrop-filter: blur(10px);
  pointer-events: auto;
}

.pg-crumbbar__sep {
  opacity: 0.6;
  font-weight: 700;
}

.pg-crumbbar__home,
.pg-crumbbar__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-size: 13px;
}

.pg-crumbbar__home svg {
  width: 18px;
  height: 18px;
}

.pg-crumbbar__cur {
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-size: 13px;
  opacity: 0.95;
}

.pg-hero-slot--fullbleed .pg-crumbbar {
  right: max(20px, calc((100% - var(--vt-container)) / 2 + 16px));
  bottom: clamp(14px, 2vw, 22px);
}

.pg-hero--banner .pg-kicker {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  backdrop-filter: blur(8px);
}

.pg-hero--banner .pg-title {
  color: #fff;
}

.pg-hero--banner .pg-lead {
  max-width: 60ch;
  color: rgba(255, 255, 255, 0.92);
}

.pg-actions--hero {
  margin-top: 18px;
}

.pg-actions--hero .vt-btn--solid {
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
}

@media (max-width: 767.98px) {
  .pg-hero--banner {
    min-height: 200px;
  }

  .pg-hero__inner--banner {
    min-height: 200px;
    padding: 18px 16px 78px;
  }

  .pg-crumbbar {
    right: 16px;
    left: 16px;
    bottom: 16px;
    max-width: none;
    justify-content: flex-start;
  }

  .pg-crumbbar__nav {
    width: 100%;
  }

  .pg-hero__overlay {
    display: none;
  }
}
