/* Trang chi tiết — sản phẩm, tin tức, dự án, nhà đầu tư */

/* Header full width (render trực tiếp dưới body như Investors.ftl) */
body.page-detail .nav-header {
  width: 100%;
  left: 0;
  right: 0;
}

/* Header padding: dùng chung header.css (.nav-container clamp) như trang Home */

/* Hero item — cùng banner page-news-hero như trang Giới thiệu (nav-spacer ẩn bởi header.css) */
body.page-detail main.page-content > .page-news-hero:first-child {
  margin-top: 0;
}

body.page-detail main.page-content > .page-news-hero:first-child + .sec-blogDetail {
  padding-top: clamp(32px, 4vw, 48px);
}

body.page-detail .page-news-hero__title,
body.page-detail .sec-blogDetail__content .entry-text h1,
body.page-detail .sec-blogDetail__content .entry-text h2,
body.page-detail .sec-blogDetail__content .entry-text h3,
body.page-detail .sec-blogDetail__content .entry-text h4,
body.page-detail .sec-blogDetail__content .entry-text h5,
body.page-detail .sec-blogDetail__content .entry-text h6 {
  font-weight: 500;
}

body.page-detail .sec-blogDetail__content .entry-text,
body.page-detail .sec-blogDetail__content .entry-text * {
  color: #333333;
}

/* Nội dung + form liên hệ cùng một cột (col-xl-8 / col-xxxl-7) */
.sec-blogDetail__main {
  max-width: 100%;
}

.sec-blogDetail__main > .sec-blogDetail__content {
  width: 100%;
}

.sec-blogDetail__contact .contact-form--component {
  width: 100%;
  box-sizing: border-box;
}

/* Popup chia sẻ — main.css đặt .page-content { overflow: hidden } nên menu bị cắt */
body.page-detail main.page-content:has(.page-news-hero.is-share-open),
body.page-detail main.page-content:has(.entry-share.is-share-open) {
  overflow: visible;
}

body.page-detail:has(.page-news-hero.is-share-open) .page-wrapper,
body.page-detail:has(.entry-share.is-share-open) .page-wrapper {
  overflow: visible;
}

/* Chia sẻ cuối bài */
.entry-share {
  position: relative;
  z-index: 25;
  margin: clamp(24px, 3vw, 36px) 0 0;
  padding: 0;
  border-top: none;
}

.entry-share .page-news-hero__share {
  position: relative;
  z-index: 25;
}

.entry-share .page-news-hero__share-btn {
  color: #0a1d4d;
}

/* Override main.css .entry-share a / span styles */
.sec-blogDetail__content .entry-share .page-news-hero__share a,
.sec-blogDetail__content .entry-share .page-news-hero__share button {
  display: inline-flex;
  opacity: 1;
  margin-right: 0;
  max-width: none;
}

.sec-blogDetail__content .entry-share .page-news-hero__share-label {
  display: inline;
  vertical-align: baseline;
  margin-right: 0;
}

.sec-blogDetail__content .entry-share .page-news-hero__share-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

/* Share menu popup — luôn mở lên trên */
.sec-blogDetail__content .entry-share .page-news-hero__share-menu {
  position: absolute;
  bottom: calc(100% + 10px);
  top: auto;
  left: 0;
  right: auto;
}

.sec-blogDetail__content .entry-share .page-news-hero__share-option {
  display: flex;
  opacity: 1;
  margin-right: 0;
  max-width: none;
  align-items: center;
  gap: 12px;
}

.sec-blogDetail__content .entry-share .page-news-hero__share-option-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: static;
  width: 32px;
  height: 32px;
}

.sec-blogDetail__content .entry-share .page-news-hero__share-option-label,
.sec-blogDetail__content .entry-share .page-news-hero__share-menu-title {
  display: block;
  margin-right: 0;
  vertical-align: baseline;
}

.entry-share .page-news-hero__share-icon {
  border-radius: 0;
  background: #2B6BB2;
  position: relative;
  width: 30px;
  height: 30px;
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

.entry-share .page-news-hero__share-icon svg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: block;
  margin: 0;
}

.entry-share .page-news-hero__share-icon svg path {
  fill: #ffffff;
}

.entry-share .page-news-hero__share-menu {
  bottom: calc(100% + 10px);
  top: auto;
}

.entry-divider {
  border: none;
  border-top: 1px solid #AFBEC8;
  margin: clamp(20px, 2.5vw, 28px) 0;
}

/* Sticky box sidebar */
.sec-blogDetail__sidebar {
  display: none;
}

.news-sticky-box--desktop {
  position: sticky;
  top: 100px;
  max-width: 490px;
  width: 100%;
  padding: 32px 24px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  box-sizing: border-box;
  visibility: hidden;
}

.news-sticky-box--desktop.is-ready {
  visibility: visible;
}

.news-sticky-box__title {
  margin: 0 0 16px;
  font-family: "Lexend Deca", "Lexend", sans-serif;
  font-weight: 600;
  font-size: 24px;
  line-height: 120%;
  letter-spacing: -0.01em;
  color: #0a1d4d;
}

.news-sticky-box__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* TOC */
.news-toc__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.news-toc__link {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 51px;
  padding: 16px 16px 16px 24px;
  margin: 0;
  font-family: "Lexend Deca", "Lexend", sans-serif;
  font-weight: 600;
  font-size: 16px;
  line-height: 120%;
  letter-spacing: -0.01em;
  color: #000000;
  text-decoration: none;
  background: transparent;
  box-sizing: border-box;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.news-toc__link:visited {
  color: #000000;
}

.news-toc__link:hover {
  color: #000000;
  background: rgba(43, 107, 178, 0.06);
}

.news-toc__link.is-active {
  color: #ffffff;
  font-weight: 600;
  background: #2B6BB2;
}

.news-toc__item--h3 .news-toc__link,
.news-toc__item--h3.news-toc__item .news-toc__link {
  font-size: 16px;
}

.news-toc__item--h4 .news-toc__link,
.news-toc__item--h4.news-toc__item .news-toc__link {
  font-size: 16px;
}
@media (min-width: 1200px) {
  .sec-blogDetail__sidebar {
    display: block;
  }

  /* Override overflow:hidden trên .page-content để sticky hoạt động */
  body.page-detail .page-content {
    overflow: visible;
  }

  body.page-detail .page-wrapper {
    overflow-x: hidden;
  }
}

@media (min-width: 1600px) {
  .news-sticky-box--desktop {
    max-width: 490px;
  }
}
