.cms-content-section {
  margin-block: 64rem 32rem;
  margin-inline: auto;
  max-width: 1024rem;
  background-color: #636b7a14;
  backdrop-filter: blur(140px);
  border-radius: 2rem;
  height: auto;
}
.cms-content-section::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 2rem;
  /* border thickness */
  border-radius: inherit;

  background: linear-gradient(180deg, rgba(35, 34, 49, 0.5) 0%, #0e142c 100%);

  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.cms-content-container {
  padding-block: 16rem;
  height: auto;
  margin-right: 4rem;
  padding-inline: 16rem 4rem;
  background: #636b7a14;
  backdrop-filter: blur(140px);
  color: #a6aac4;
}
.cms-content {
  height: 732rem;
  padding-right: 8rem;
  overflow-x: auto;
}
.huong-dan .cms-content {
  height: 680rem;
}
.cms-content::-webkit-scrollbar {
  width: 5rem;
  margin-right: 10rem;
}

.cms-content::-webkit-scrollbar-track {
  background: #ffffff33;
  /* Optional: Round the track edges too */
}

.cms-content::-webkit-scrollbar-thumb {
  background: #484eff;
}
/* ==========================================================================
   1. Billboard Card Layout & Typography Overlays
   ========================================================================== */
.content-img {
  width: 100%;
  max-width: 1024rem;
  margin: auto;
  margin-top: 16rem;
  height: auto;
  line-height: 1;
}
.gioi-thieu .content-img:first-of-type,
/* .chinh-sach .content-img:first-of-type, */
.about-us .content-img:first-of-type {
  margin-bottom: 27rem;
}
.content-img:first-of-type {
  margin-top: unset;
}
.content-img img {
  width: 100%;
  height: 100%;
}

/* ==========================================================================
   2. Content Blocks Styles
   ========================================================================== */
.article-content-block {
  margin-bottom: 45rem;
}
.boi-hoan .content-heading-primary {
  line-height: 30rem;
}
.white-title {
  font-size: 22rem;
  font-weight: 700;
  line-height: 44rem;
  margin-bottom: 11rem;
  color: #ffffff;
}
.content-heading-primary {
  font-size: 22rem;
  line-height: 44rem;
  font-weight: 700;
  color: #ffffff;
  text-transform: uppercase;
  margin-bottom: 5rem;
}

.content-heading-secondary {
  font-size: 18rem;
  font-weight: 700;
  color: #fecb45;
  margin-bottom: 10rem;
  line-height: 24rem;
  text-transform: uppercase;
}

.cms-content p {
  font-size: 16rem;
  line-height: 22rem;
  margin-bottom: 16rem;
}
p.image-caption {
  text-align: center;
  font-size: 14rem;
  font-style: italic;
  line-height: 22rem;
  color: #8b9fff;
  margin-block: 16rem;
  text-align: center !important;
}
.content-list {
  padding-left: 23rem;
  font-size: 16rem;
  line-height: 22rem;
  margin-bottom: 16rem;
}

.text-gold,
.p-text-gold {
  color: #ffd43b;
  font-weight: 400;
}
.p-text-gold {
  margin-bottom: 0rem;
}
p.sub-title-text-gold {
  font-size: 18rem;
  color: #ffd43b;
  line-height: 24rem;
}
.end-text {
  font-weight: 700;
  font-size: 22rem;
  line-height: 28rem;
  letter-spacing: 0%;
  text-transform: uppercase;
  margin-block: 31rem 11rem;
  color: #ddd8cd;
}
/* ==========================================================================
   3. Analytical Specification Table Styles
   ========================================================================== */
.info-table-wrap.desktop {
  display: block;
}
.info-table-wrap.mobile {
  display: none;
}
.info-table-wrap {
  width: 100%;
  max-width: 1440rem;
  margin: 0 auto 30rem;
}
.info-table-wrap th,
.info-table-wrap td {
  background: #ffffff1a;
}

.info-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-family: "SVN-Gilroy", sans-serif;
  color: #f4eefe;
  background: transparent;
}

.info-table thead th {
  font-size: 15rem;
  line-height: 22rem;
  font-weight: 500;
  color: #fecb45;
  padding: 26rem 23rem;
  text-align: center;
  position: relative;
  text-transform: uppercase;
  border-right: 1rem solid transparent;
  border-bottom: 1rem solid transparent;
}
.info-table tbody tr {
  position: relative;
}
.info-table tbody tr img {
  width: 24rem;
  height: 24rem;
}
.info-table tbody td {
  font-size: 15rem;
  font-weight: 400;
  line-height: 22rem;
  color: #a6aac4;
  padding: 14rem 20rem;
  text-align: center;
  border-right: 1rem solid transparent;
  border-bottom: 1rem solid transparent;
}

.info-table tbody tr {
  position: relative;
}

.info-table tbody tr:nth-child(even) {
  background: transparent;
}
.info-table.table-3-column tbody tr:nth-child(odd) {
  background: transparent;
}
.info-table.table-3-column thead th:first-of-type {
  width: 35%;
}

.w-56 {
  width: 56% !important;
}
.w-24 {
  width: 24%;
}
.info-table th,
.info-table td {
  width: 50%;
}
.table-2-column tr th:first-of-type,
.table-2-column tr td:first-of-type {
  width: 30%;
}
.info-table.table-2-column tbody td {
  padding: 25rem;
}
.rating-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}

.star {
  line-height: 1;
  color: #ffcf40;
  filter: drop-shadow(0 0 4px rgba(255, 207, 64, 0.45));
}

/* 4-column widths similar to screenshot */
.table-4-column th,
.table-4-column td {
  width: 25%;
}

.value-cell {
  color: #ffffff;
  text-align: right;
}

.highlight-gold-cell {
  color: #ffd700;
  font-weight: 700;
}

.highlight-gold-cell i {
  margin-left: 4rem;
  font-size: 14rem;
}
@media screen and (max-width: 768px) {
  .chinh-sach .cms-content-container {
    padding-inline: 12rem;
  }
  .cms-content-section {
    margin-block: 0;
  }
  .cms-content-container {
    margin-right: 0;
    padding-inline: 12rem;
  }
  .huong-dan .topic-title {
    margin-block: 12rem 24rem;
  }
  .huong-dan .cms-content {
    height: auto;
  }
  .huong-dan .cms-content-section {
    display: none;
  }
  .white-title {
    line-height: 28rem;
  }
  .topic-title {
    color: #fae4b1;
    font-size: 20rem;
    line-height: 1;
    text-transform: uppercase;
  }
  .cms-content-wrapper {
    padding: 12rem;
    max-width: unset;
  }
  .cms-content,
  .cms-content.gioi-thieu {
    height: unset;
    overflow: unset;
    padding: unset;
  }

  .content-img {
    width: 378rem;
    margin-top: 22rem;
  }
  p.image-caption {
    font-size: 14rem;
  }
  .image-caption {
    font-size: 14rem;
    line-height: 22rem;
    margin-block: 16rem 22rem;
    padding: unset;
  }
  /* Content Block Updates */
  .content-heading-primary {
    font-size: 22rem;
    margin-bottom: 12rem;
    line-height: calc(26 / 22);
  }

  .cms-content p {
    font-size: 15rem;
    text-align: left;
    line-height: 22rem;
  }
  .content-list {
    font-size: 15rem;
  }
  .info-table-wrap.desktop {
    display: none;
  }
  .info-table-wrap.mobile {
    display: block;
  }

  .info-table-wrap {
    width: 402rem;
    overflow-x: auto;
    /* Optional but highly recommended: adds momentum scrolling on iOS devices */
    -webkit-overflow-scrolling: touch;
    display: block;
  }
  .info-table-wrap::-webkit-scrollbar {
    display: none;
  }

  .info-table.table-4-column {
    width: 512rem;
  }
  .boi-hoan .info-table.table-3-column {
    width: 1024rem;
  }
  .info-table.table-3-column {
    width: 723rem;
  }
  .width-577 {
    width: 577rem !important;
  }
  .info-table.table-6-column {
    width: 1215rem;
  }
  .info-table.table-3-column tr th {
    max-width: 115rem;
    width: 115rem;
    text-align: left;
  }
  .info-table.table-2-column thead th {
    background-color: unset;
    vertical-align: middle;
  }
  .info-table tr th {
    font-size: 15rem;
    line-height: calc(22 / 16);
    font-weight: 500;
    color: #fecb45;
    padding-inline: 11rem 13rem;
    padding-block: 18rem;
    min-width: 115rem;
    width: 25%;
    height: 48rem;
    position: relative;
    background: #ffffff1a;
  }
  .info-table.table-3-column thead th:first-of-type {
    width: 33%;
    text-align: left;
  }
  .info-table.table-2-column tr td {
    padding: 5rem 10rem;
    vertical-align: middle;
  }
  .info-table tr td {
    height: 48rem;
    padding-inline: 11rem 26rem;
    background: #ffffff0d;
    text-align: left;
  }

  .info-table.table-4-column .w-90 {
    width: 90rem;
  }
  .info-table.table-4-column .w-100 {
    width: 100rem;
  }
  .info-table.table-4-column .w-110 {
    width: 110rem;
  }
  .info-table tr {
    border-bottom: 1px solid #ffffff1a;
  }
  .info-table tr th {
    border-bottom: 1px solid #ffffff1a;
  }
  /* .info-table tr:not(:first-child) th {
    background: linear-gradient(90deg, rgba(27, 13, 40, 0) 0%, #2b1143 50%);
  } */
  /* .info-table tr th {
    background: linear-gradient(90deg, rgba(27, 13, 40, 0) 0%, #2b1143 50%);
  } */

  .info-table .top-cell {
    background: #430d10;
  }
  .info-table.table-4-column tbody tr,
  .info-table.table-6-column tbody tr,
  .info-table.table-more-column tbody tr {
    background: unset;
  }
  .info-table-wrap {
    overflow-x: auto;
    position: relative;
    -webkit-overflow-scrolling: touch;
  }

  .info-table {
    border-collapse: separate;
    border-spacing: 0;
    min-width: 402rem; /* adjust if needed */
    width: max-content;
  }
  .info-table-wrap:has(.table-2-column) {
    width: 378px; /* adjust if needed */
  }
  .info-table.table-2-column {
    width: unset;
    min-width: 378px; /* adjust if needed */
  }

  .info-table thead th:first-of-type,
  .info-table tbody tr td:first-of-type {
    position: sticky;
    left: 0;
    background-color: #262a37;
  }
  .info-table.table-2-column tbody tr td,
  .info-table.table-2-column thead th {
    background-color: #262a37;
    text-align: left;
    padding-left: 10rem;
  }
  .huong-dan .info-table thead th:first-of-type,
  .huong-dan .info-table tbody tr td:first-of-type {
    background-color: #2c3e6b;
  }

  /* 2. Semi-transparent 10% white layer on top of the solid layer */

  .info-table th,
  .info-table td {
    padding: 14rem 16rem;
    border: 1px solid #2f354d;
    background: #131722;
    color: #fff;
    vertical-align: top;
    white-space: normal;
  }

  .info-table.table-2-column th {
    padding: 26rem 7rem;
  }
  .info-table thead th {
    background: #ffffff0d;
    font-weight: 500;
  }

  /* top-left cell above other cells */
  .info-table thead th:first-child {
    z-index: 3;
  }
}

/* =========================================
  Scroll Reveal Animations
========================================= */
.reveal-up {
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform, opacity;
}

.reveal-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered delays for child elements */
.reveal-up--delay-1 { transition-delay: 0.1s; }
.reveal-up--delay-2 { transition-delay: 0.2s; }
.reveal-up--delay-3 { transition-delay: 0.3s; }
.reveal-up--delay-4 { transition-delay: 0.4s; }
.reveal-up--delay-5 { transition-delay: 0.5s; }

/* =========================================
  CMS Content Individual Element Animations
========================================= */
.cms-content .content-img,
.cms-content .image-caption,
.cms-content .white-title,
.cms-content h1,
.cms-content h2,
.cms-content h3,
.cms-content p,
.cms-content .sub-title-text-gold,
.cms-content .content-box,
.cms-content .info-table-wrap {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform, opacity;
}

.cms-content .content-img.is-visible,
.cms-content .image-caption.is-visible,
.cms-content .white-title.is-visible,
.cms-content h1.is-visible,
.cms-content h2.is-visible,
.cms-content h3.is-visible,
.cms-content p.is-visible,
.cms-content .sub-title-text-gold.is-visible,
.cms-content .content-box.is-visible,
.cms-content .info-table-wrap.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered delays for p tags */
.cms-content p:nth-child(4n+1) { transition-delay: 0s; }
.cms-content p:nth-child(4n+2) { transition-delay: 0.1s; }
.cms-content p:nth-child(4n+3) { transition-delay: 0.2s; }
.cms-content p:nth-child(4n) { transition-delay: 0.3s; }

/* Staggered delays for images */
.cms-content .content-img:nth-of-type(2n+1) { transition-delay: 0.15s; }
.cms-content .content-img:nth-of-type(2n) { transition-delay: 0.25s; }
