/* 3H Việt Nam — Single news post */

body.single-post .threeh-page-title .threeh-page-title__content {
  max-width: 1050px;
}

body.single-post .threeh-page-title .threeh-page-title__title {
  max-width: 980px;
  text-wrap: balance;
}

.threeh-single-post {
  width: 100%;
  padding: clamp(52px, 6vw, 84px) var(--threeh-gutter) clamp(72px, 8vw, 112px);
  border-bottom: 1px solid #cfd5df;
  background: #f3f5f7;
}

.threeh-single-post__container {
  width: 100%;
  max-width: var(--threeh-container) !important;
  margin-inline: auto;
  padding: 0 !important;
}

.threeh-single-post__article {
  width: 100%;
}

.threeh-single-post__content {
  width: min(100%, 900px);
  margin-inline: auto;
  font-size: 16.5px;
  font-weight: 400;
  line-height: 1.82;
  color: #303947;
}

.threeh-single-post__content > :first-child {
  margin-top: 0 !important;
}

.threeh-single-post__content > :last-child {
  margin-bottom: 0 !important;
}

.threeh-single-post__content p {
  margin: 0 0 20px;
}

.threeh-single-post__content h2,
.threeh-single-post__content h3,
.threeh-single-post__content h4 {
  position: relative;
  margin: 42px 0 16px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -.022em;
  color: var(--threeh-navy);
}

.threeh-single-post__content h2 {
  padding-top: 18px;
  border-top: 1px solid #cfd5df;
  font-size: clamp(25px, 2.2vw, 32px);
}

.threeh-single-post__content h2::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 74px;
  height: 3px;
  background: var(--threeh-yellow);
}

.threeh-single-post__content h3 {
  font-size: clamp(21px, 1.75vw, 25px);
}

.threeh-single-post__content h4 {
  font-size: 18px;
}

.threeh-single-post__content a {
  color: var(--threeh-blue);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.threeh-single-post__content strong {
  font-weight: 700;
  color: #18243b;
}

.threeh-single-post__content ul,
.threeh-single-post__content ol {
  margin: 0 0 24px;
  padding-left: 24px;
}

.threeh-single-post__content li {
  margin-bottom: 8px;
  padding-left: 3px;
}

.threeh-single-post__content li::marker {
  color: var(--threeh-blue);
  font-weight: 700;
}

.threeh-single-post__content blockquote {
  margin: 30px 0;
  padding: 22px 26px;
  border: 0;
  border-left: 4px solid var(--threeh-yellow);
  border-radius: 0;
  background: #e9edf2;
  color: var(--threeh-navy);
}

.threeh-single-post__content blockquote p:last-child {
  margin-bottom: 0;
}

.threeh-single-post__content img,
.threeh-single-post__content figure,
.threeh-single-post__content .wp-caption {
  max-width: 100%;
  border-radius: 0 !important;
}

.threeh-single-post__content img {
  height: auto;
}

.threeh-single-post__content figure,
.threeh-single-post__content .wp-caption {
  width: 100% !important;
  margin: 30px 0;
}

.threeh-single-post__content figure img,
.threeh-single-post__content .wp-caption img {
  display: block;
  width: 100% !important;
  border: 1px solid #cfd5df;
}

.threeh-single-post__content figcaption,
.threeh-single-post__content .wp-caption-text {
  margin-top: 8px;
  font-size: 12px;
  line-height: 1.55;
  color: #747e8d;
}

.threeh-single-post__content table {
  width: 100%;
  margin: 30px 0;
  border-collapse: collapse;
  border: 1px solid #bfc7d1;
  background: #fff;
  font-size: 14px;
  line-height: 1.55;
}

.threeh-single-post__content th,
.threeh-single-post__content td {
  padding: 12px 14px;
  border: 1px solid #cfd5df;
  text-align: left;
  vertical-align: top;
}

.threeh-single-post__content th {
  background: var(--threeh-navy);
  font-weight: 700;
  color: #fff;
}

.threeh-single-post__content hr {
  margin: 38px 0;
  border: 0;
  border-top: 1px solid #cfd5df;
}

.threeh-related-posts {
  width: 100%;
  padding: clamp(52px, 6vw, 80px) var(--threeh-gutter) clamp(66px, 7vw, 96px);
  border-bottom: 1px solid #c6cdd7;
  background: #e9edf1;
}

.threeh-related-posts__container {
  width: 100%;
  max-width: var(--threeh-container) !important;
  margin-inline: auto;
  padding: 0 !important;
}

.threeh-related-posts__heading {
  position: relative;
  margin: 0 0 28px !important;
  padding-top: 15px;
  border-top: 1px solid #aeb7c3;
  font-size: clamp(25px, 2.1vw, 32px) !important;
  font-weight: 700 !important;
  line-height: 1.25 !important;
  letter-spacing: -.025em;
  color: var(--threeh-navy) !important;
}

.threeh-related-posts__heading::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 74px;
  height: 3px;
  background: var(--threeh-yellow);
}

/* Match the Tin tức archive card format: image + date + title + excerpt. */
.threeh-related-posts__grid,
.threeh-related-posts__grid ul.related-posts {
  width: 100%;
}

.threeh-related-posts__grid ul.related-posts {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  align-items: start !important;
  gap: 24px !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none;
}

.threeh-related-posts__grid li.repeater-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-self: start !important;
  height: auto !important;
  min-height: 0 !important;
  min-width: 0;
  overflow: hidden;
  border: 1px solid #bcc4cf;
  border-radius: 0 !important;
  background: #fff;
  box-shadow: none !important;
  transition: border-color .2s ease;
}

.threeh-related-posts__grid li.repeater-item::before {
  content: "";
  position: absolute;
  z-index: 2;
  top: -1px;
  left: -1px;
  width: 58px;
  height: 3px;
  background: var(--threeh-yellow);
  pointer-events: none;
}

.threeh-related-posts__grid li.repeater-item:hover {
  border-color: var(--threeh-navy);
}

body.single-post #brxe-s3h023 figure {
  width: 100%;
  height: 300px !important;
  min-height: 300px !important;
  flex: 0 0 300px !important;
  aspect-ratio: auto !important;
  margin: 0 !important;
  overflow: hidden;
  border-right: 0;
  border-bottom: 1px solid #cfd5df;
}

body.single-post #brxe-s3h023 figure a,
body.single-post #brxe-s3h023 figure img {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

.threeh-related-posts__grid figure img {
  object-fit: cover;
  object-position: center;
  border-radius: 0 !important;
  transition: transform .3s ease;
}

.threeh-related-posts__grid li.repeater-item:hover figure img {
  transform: scale(1.025);
}

.threeh-related-posts__grid .post-content {
  display: flex;
  flex: 0 0 auto !important;
  flex-direction: column;
  justify-content: flex-start;
  gap: 0;
  height: auto !important;
  min-width: 0;
  min-height: 0 !important;
  padding: 22px 22px 24px;
}

.threeh-related-posts__grid [data-field-id="r3htitle"] {
  order: 2;
  margin: 0 0 10px !important;
  font-size: clamp(17px, 1.35vw, 20px) !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;
  letter-spacing: -.018em !important;
}

.threeh-related-posts__grid [data-field-id="r3htitle"] a {
  color: var(--threeh-navy) !important;
  text-decoration: none;
}

.threeh-related-posts__grid [data-field-id="r3htitle"] a:hover {
  color: var(--threeh-blue) !important;
}

.threeh-related-posts__grid [data-field-id="r3hdate"] {
  order: 1;
  position: relative;
  margin: 0 0 10px !important;
  padding-left: 18px;
  font-size: 10px !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #707a89 !important;
}

.threeh-related-posts__grid [data-field-id="r3hdate"]::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 10px;
  height: 2px;
  background: var(--threeh-yellow);
  transform: translateY(-50%);
}

.threeh-related-posts__grid [data-field-id="r3hexcerpt"] {
  order: 3;
  display: -webkit-box;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  font-size: 13px !important;
  font-weight: 400 !important;
  line-height: 1.62 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  color: #667080 !important;
}

@media (max-width: 991px) {
  .threeh-related-posts__grid ul.related-posts {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 20px !important;
  }

  body.single-post #brxe-s3h023 figure {
    height: 280px !important;
    min-height: 280px !important;
    flex-basis: 280px !important;
  }
}

@media (max-width: 600px) {
  .threeh-single-post,
  .threeh-related-posts {
    padding-left: 20px;
    padding-right: 20px;
  }

  .threeh-single-post__content {
    font-size: 15.5px;
    line-height: 1.78;
  }

  .threeh-single-post__content h2,
  .threeh-single-post__content h3 {
    margin-top: 34px;
  }

  .threeh-single-post__content table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

  .threeh-related-posts__grid ul.related-posts {
    grid-template-columns: 1fr !important;
    gap: 18px !important;
  }

  body.single-post #brxe-s3h023 figure {
    height: 230px !important;
    min-height: 230px !important;
    flex-basis: 230px !important;
  }

  .threeh-related-posts__grid .post-content {
    padding: 18px 18px 20px;
  }
}
