
/* ===== template-parts/single-blog/related-posts/assets/styles.css ===== */
.blog-related-wrapper {
  padding: 4.25rem 0 5.5rem;
  font-family: "SF Pro Display", sans-serif;
  background: #f7f4ec;
  position: relative;
}

.related-news-section {
  padding: 0;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 28.125rem;
  margin: 0 auto;
}

.related-news-header {
  padding: 0 0.75rem;
  margin-bottom: 1.5rem;
}

.related-news-title {
  color: #680103;
  font-family: "Phudu", cursive;
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.925rem;
}

.related-news-container {
  position: relative;
  padding: 0;
}

.related-news-section .nav-btn {
  display: none;
}

.related-news-slider {
  overflow: hidden;
  position: relative;
  padding-left: 0.75rem;
}

.related-news-slider .swiper-slide {
  width: 17.1875rem;
}

.related-news-card {
  display: flex;
  flex-direction: column;
  width: 17.1875rem;
}

.card-thumb {
  width: 100%;
  height: 9.9375rem;
  overflow: hidden;
  display: block;
  position: relative;
}

.card-thumb img.zoom-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.post-card__layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  object-fit: cover;
}

.card-content {
  padding-top: 0.875rem;
  display: flex;
  flex-direction: column;
}

.card-meta {
  display: flex;
  align-items: center;
}

.card-tag {
  display: flex;
  padding: 0 0.375rem;
  height: 1.25rem;
  justify-content: center;
  align-items: center;
  border-radius: 6rem;
  background: rgba(104, 1, 3, 0.04);
  color: #680103;
  font-family: "SF Pro Display", sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.125rem;
  text-transform: uppercase;
  margin-right: 0.5rem;
}

.card-date {
  color: rgba(29, 29, 29, 0.4);
  font-family: "SF Pro Display", sans-serif;
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.3125rem;
}

.card-title {
  color: #1d1d1d;
  font-family: "SF Pro Display", sans-serif;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.3rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-title a {
  color: inherit;
  text-decoration: none;
}

@media (min-width: 1024px) {
  .related-news-card:hover .card-thumb img {
    transform: scale(1.1);
  }

  .related-news-card:hover .card-title {
    color: #680103;
  }
}

@media (min-width: 638px) {
  /* 767px */
  .blog-related-wrapper {
    padding: 8.125rem 0 6.875rem;
  }

  .related-news-section {
    max-width: 91.5rem;
  }

  .related-news-header {
    padding: 0;
    margin-bottom: 3rem;
  }

  .related-news-title {
    font-size: 3.625rem;
    line-height: 110%;
  }

  .related-news-container {
    padding: 0;
  }

  .related-news-section .nav-btn {
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .related-news-slider {
    padding-left: 0;
  }

  .related-news-slider .swiper-slide {
    width: 21.75rem;
  }

  .related-news-card {
    width: 21.75rem;
  }

  .card-thumb {
    height: 14.17rem;
  }

  .card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 400ms cubic-bezier(0.41, -0.01, 0.01, 1);
  }

  .card-content {
    padding-top: 1rem;
  }

  .card-meta {
    margin-bottom: 0.375rem;
  }

  .card-tag {
    padding: 0 0.75rem;
    height: 1.75rem;
    font-size: 0.875rem;
    line-height: 150%;
    margin-right: 0.75rem;
  }

  .card-date {
    font-size: 1rem;
    line-height: 150%;
  }

  .card-title {
    font-size: 1.25rem;
    line-height: 130%;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: transform 400ms cubic-bezier(0.41, -0.01, 0.01, 1);
  }

  .nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 2.5rem;
    height: 2.5rem;
    background: white;
    box-shadow: 0px 0px 1.875rem rgba(0, 0, 0, 0.12);
    border-radius: 50%;
    z-index: 100;
    overflow: hidden; /* quan trọng */
  }

  .nav-btn::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(
      50% 169.61% at 50% 50%,
      #cb5140 46.54%,
      #d8a061 91.01%
    );
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: inherit;
  }

  .nav-btn.related-prev {
    left: -1.12rem;
    top: 5.81rem;
    transform: none;
  }
  .nav-btn.related-next {
    right: -1.12rem;
    top: 5.81rem;
    transform: none;
  }

  .nav-btn:hover::before {
    opacity: 1;
  }

  .nav-btn svg {
    position: relative;
    width: 1.25rem;
    height: 1.25rem;
  }

  .nav-btn:hover svg path {
    stroke: #ffffff;
  }
}


/* ===== template-parts/single-blog/table-content-mobile/assets/styles.css ===== */
.mobile-toc-trigger {
   position: fixed;
   left: 0;
   bottom: 0;
   z-index: 120;
   width: 100%;
   padding: 1.25rem 0.75rem;
   height: 3.75rem;
   background: white;
   display: flex;
   align-items: center;
   justify-content: space-between;
}

.mobile-toc-trigger-text {
    color: #680103;
    font-family: Phudu;
    font-size: 1.125rem;
    font-style: normal;
    font-weight: 700;
    line-height: 120%; 
}

.mobile-toc-trigger-icon {
    width: 1.5rem;
    height: 1.5rem;
}

.mobile-toc-trigger-icon svg {
    width: 100%;
    height: 100%;
}

.mobile-toc-overlay {
   position: fixed;
   inset: 0;
   z-index: 9997;
   background: rgba(0, 0, 0, 0.35);
   opacity: 0;
   visibility: hidden;
   pointer-events: none;
   transition: opacity 0.25s ease, visibility 0.25s ease;
}

.mobile-toc-overlay.is-open {
   opacity: 1;
   visibility: visible;
   pointer-events: auto;
}

.mobile-sticky-toc {
   position: fixed;
   bottom: 0;
   left: 50%;
   transform: translate(-50%, 100%);
   width: 100%;
   max-width: 28.125rem;
   margin: 0 auto;
   z-index: 9999;
   background: #ffffff;
   box-shadow: 0 -0.25rem 1.25rem rgba(0, 0, 0, 0.1);
   transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
   opacity: 0;
   pointer-events: none;
}

.mobile-sticky-toc.is-open {
   transform: translate(-50%, 0);
   opacity: 1;
   pointer-events: auto;
} 

.mobile-sticky-toc .toc-container {
   padding: 1.25rem 0.75rem;
   display: flex;
   flex-direction: column;
   max-height: 80vh;
   overflow-y: auto;
   border-radius: 0.75rem 0.75rem 0 0;
}

.mobile-sticky-toc .toc-header {
   display: flex;
   justify-content: space-between;
   align-items: center;
   width: 100%;
   cursor: pointer;
}

.mobile-sticky-toc .toc-header-title {
   color: #680103;
   font-family: "Phudu", sans-serif;
   font-size: 1.125rem;
   font-weight: 700;
   line-height: 1.35rem;
}

.mobile-sticky-toc .toc-header-icon {
   width: 1.5rem;
   height: 1.5rem;
   position: relative;
}

.mobile-sticky-toc .toc-divider {
   display: block;
   width: 100%;
   height: 0.0625rem;
   margin: 1.25rem 0;
}

.mobile-sticky-toc .toc-list-body {
   display: flex;
   flex-direction: column;
   gap: 1.125rem;
}

.mobile-sticky-toc #ez-toc-container {
   width: 100% !important;
   background: transparent !important;
   border: none !important;
   padding: 0 !important;
   margin: 0 !important;
}

.ez-toc-title-container {
  margin-bottom: 1rem;
}

div#ez-toc-container .ez-toc-title {
  color: #680103;
  font-family: Phudu;
  font-size: 1.5rem;
  font-style: normal;
  font-weight: 700;
  line-height: 110%; 
}

/*.mobile-sticky-toc #ez-toc-container .ez-toc-title-container {*/
/*   display: none !important;*/
/*}*/

.mobile-sticky-toc #ez-toc-container ul.ez-toc-list li {
   font-family: "SF Pro Display", sans-serif;
   font-size: 0.875rem !important;
   line-height: 1.3125rem !important;
   color: rgba(28, 28, 28, 0.8) !important;
   list-style: none !important;
   margin-bottom: 1.125rem !important;
}

.mobile-sticky-toc #ez-toc-container.toc-mobile-collapsible.toc-mobile-collapsed ul.ez-toc-list > li:nth-child(n + 5) {
   display: none !important;
}

.mobile-sticky-toc .toc-mobile-toggle-btn {
   border: none;
   background: transparent;
   padding: 0;
   color: #386AFF;
   font-family: "SF Pro Display", sans-serif;
   font-size: 0.875rem;
   font-weight: 600;
   line-height: 1.3125rem;
   cursor: pointer;
}

.mobile-sticky-toc .toc-mobile-toggle-btn:hover {
   text-decoration: underline;
}

.mobile-sticky-toc .toc-header {
   padding-bottom: env(safe-area-inset-bottom);
}

@media (min-width: 638px) {
   .mobile-toc-trigger,
   .mobile-toc-overlay,
   .mobile-sticky-toc {
      display: none !important;
   }
}


/* ===== template-parts/single-blog/assets/styles.css ===== */

:root {
  --primary-color: #680103;
  --text-color: #1d1d1d;
  --text-light: rgba(29, 29, 29, 0.8);
  --text-muted: rgba(29, 29, 29, 0.4);
  --bg-tag: rgba(104, 1, 3, 0.04);
}

main {
  background-image: url(/wp-content/uploads/2026/04/MB-Chi-tiet-bai-viet.webp);
}

.ez-toc-debug-messages {
  display: none !important;
}

.blog-detail-wrapper {
  padding: 3.75rem 0 0;
  /*background: #f7f4ec;*/
  font-family: "SF Pro Display", sans-serif;
}

.main-layout {
  display: block;
  max-width: 28.125rem;
  padding: 0;
  margin: 0 auto;
}

.sticky-share-column,
.sidebar {
  display: none !important;
}

.toc-custom-wrapper {
  padding: 0 0.75rem;
}

.toc-custom-container {
  background: #ffffff;
  padding: 1rem 0.875rem;
  margin-bottom: 2rem;
}

.toc-custom-title {
  color: #680103;
  font-family: "Phudu", sans-serif;
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 120%;
  display: block;
}

#ez-toc-container {
  width: 100% !important;
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

#ez-toc-container::before,
#ez-toc-container::after,
#ez-toc-container ul::before,
#ez-toc-container ul::after {
  content: none !important;
  display: none !important;
}

#ez-toc-container,
#ez-toc-container * {
  box-shadow: none !important;
}

#ez-toc-container ul,
#ez-toc-container li {
  border: none !important;
}

/*#ez-toc-container .ez-toc-title-container {*/
/*  display: none !important;*/
/*}*/

#ez-toc-container .ez-toc-title-toggle {
  display: none !important;
}

div#ez-toc-container .ez-toc-title {
  display: block;
  color: #680103;
  font-family: "Phudu", sans-serif;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 120%;
}

#ez-toc-container ul.ez-toc-list {
  display: block !important;
  padding: 0 !important;
  margin: 0 !important;
}

/*.toc-custom-container #ez-toc-container .ez-toc-title-container {*/
/*  display: none !important;*/
/*}*/

#ez-toc-container ul.ez-toc-list li {
  font-size: 0.875rem !important;
  line-height: 1.3125rem !important;
  color: var(--text-light) !important;
  margin-bottom: 0.875rem !important;
  list-style: none !important;
}

#ez-toc-container ul.ez-toc-list li ul li {
  margin-bottom: 0.5rem !important;
}

#ez-toc-container ul.ez-toc-list li a {
  color: rgba(29, 29, 29, 0.8);
  font-weight: 400;
}

#ez-toc-container a:visited {
  color: inherit;
}

#ez-toc-container ul.ez-toc-list li > ul {
  margin-top: 0.75rem;
}

#ez-toc-container ul li,
div#ez-toc-container ul li a {
  font-size: 100%;
}

/* Desktop TOC: Xem thêm / Thu gọn khi > 4 mục */
.toc-custom-container
  #ez-toc-container.toc-is-collapsible.toc-is-collapsed
  ul.ez-toc-list
  > li:nth-child(n + 5) {
  display: none !important;
}

.toc-custom-container #ez-toc-container .toc-toggle-btn {
  padding: 0;
  border: none;
  background: transparent;
  color: #386aff;
  font-family: "SF Pro Display";
  font-size: 0.875rem;
  font-style: normal;
  font-weight: 400;
  line-height: 150%;
  cursor: pointer;
}

.toc-custom-container #ez-toc-container .toc-toggle-btn:hover {
  text-decoration: underline;
}

.entry-title {
  font-family: "Phudu";
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.925rem;
  color: #680103;
  padding: 0 0.75rem;
  margin-bottom: 2rem;
}

/**
 * Font gốc của vùng nội dung — PHẢI khai báo ở ngay container.
 *
 * global.css có `* { font-family: "Open Sans", sans-serif }`. Vì `*` khai báo TRỰC TIẾP
 * lên mọi thẻ (kể cả .entry-content) nên nó chặn thừa kế: thẻ nào không có rule riêng
 * bên dưới sẽ rơi về "Open Sans" — mà font đó KHÔNG được nạp ở đâu trong theme
 * (không @font-face, không link Google Fonts) ⇒ render bằng sans-serif mặc định của máy,
 * lệch hẳn so với SF Pro Display của các đoạn văn bên cạnh.
 *
 * Khai báo ở đây để gốc của chuỗi `font-family: inherit` (rule :where ở dưới) là SF Pro
 * Display. Có fallback đầy đủ để nếu font tự host lỗi thì rơi về font hệ thống có sẵn
 * italic thật, không rơi về serif mặc định của trình duyệt.
 */
.entry-content {
  --rte-font: "SF Pro Display", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  padding: 0 0.75rem;
  font-family: var(--rte-font);
}

.entry-content h2 {
  color: #680103;
  font-family: Phudu;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 120%;
  margin: 2rem 0 0.75rem;
}

.entry-content h3 {
  color: #680103;
  font-size: 1rem;
  font-weight: 600;
  line-height: 130%;
  margin: 1rem 0 0.5rem;
}

.entry-content p {
  color: rgba(29, 29, 29, 0.8);
  font-family: var(--rte-font);
  font-size: 1rem;
  font-weight: 400;
  line-height: 150%;
  margin-bottom: 1rem;
}

.entry-content ul {
  list-style-type: disc;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.entry-content ul li {
  color: var(--text-light);
  font-family: var(--rte-font);
  font-size: 1rem;
  font-weight: 400;
  line-height: 150%;
}

.entry-content ol {
  list-style-type: decimal;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.entry-content ol li {
  color: var(--text-light);
  font-family: var(--rte-font);
  font-size: 1rem;
  font-weight: 400;
  line-height: 150%;
}

.entry-content em,
.entry-content i {
  font-style: italic;
}

.entry-content strong,
.entry-content b {
  font-weight: 700;
  color: inherit;
}

.entry-content img {
  width: 100%;
  height: auto;
  margin: 1rem 0 !important;
}

/* ---- Ảnh bị editor nhét lồng trong tiêu đề / đoạn văn: ép về khối chuẩn ---- */
.entry-content :is(h1, h2, h3, h4, h5, h6, p, div) > img {
  display: block;
  margin: 1rem auto !important;
}

/* Tiêu đề chứa ảnh → bỏ khoảng cách lớn của tiêu đề dồn lên phía trên ảnh */
.entry-content :is(h1, h2, h3, h4, h5, h6):has(> img) {
  margin-top: 1rem;
}

/* Caption cũ (wp-caption) đặt width cố định (vd 970px) → tránh tràn ngang mobile */
.entry-content .wp-caption {
  width: auto !important;
  max-width: 100%;
}

/* Chữ nhỏ (caption) dưới ảnh cách ảnh đúng 1rem (bỏ margin dưới của ảnh trong caption) */
.entry-content .wp-caption > img {
  margin-bottom: 0 !important;
}

/* ---- Nội dung từ block editor: bổ sung thẻ còn thiếu + khoảng cách ---- */
.entry-content > *:first-child {
  margin-top: 0;
}

.entry-content > *:last-child {
  margin-bottom: 0;
}

.entry-content h1 {
  color: #680103;
  font-family: Phudu;
  font-size: 1.375rem;
  font-weight: 700;
  line-height: 120%;
  margin: 2rem 0 0.75rem;
}

.entry-content h4 {
  color: #680103;
  font-family: Phudu;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 130%;
  margin: 1.25rem 0 0.5rem;
}

.entry-content h5,
.entry-content h6 {
  color: #680103;
  font-family: var(--rte-font);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 140%;
  margin: 1rem 0 0.5rem;
}

.entry-content li {
  margin-bottom: 0.5rem;
}

.entry-content li:last-child {
  margin-bottom: 0;
}

.entry-content li > ul,
.entry-content li > ol {
  margin-top: 0.5rem;
  margin-bottom: 0;
}

/* Block editor bọc nội dung li trong <p> — bỏ margin p để li tự quyết khoảng cách */
.entry-content li > p {
  margin-bottom: 0;
}

.entry-content li > p:not(:last-child) {
  margin-bottom: 0.5rem;
}

.entry-content a {
  color: #680103;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 0.125rem;
  transition: color 0.2s ease;
}

.entry-content a:hover {
  color: #cb5140;
}

.entry-content blockquote {
  margin: 1.5rem 0;
  padding: 0.5rem 0 0.5rem 1rem;
  border-left: 0.1875rem solid #cb5140;
  color: var(--text-light);
  font-style: italic;
}

.entry-content blockquote p:last-child {
  margin-bottom: 0;
}

.entry-content figure {
  margin: 1rem 0;
}

.entry-content figure img {
  margin: 0 !important;
}

.entry-content figcaption,
.entry-content .wp-caption-text {
  margin: 1rem 0 0 !important;
  color: var(--text-muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 12pt;
  font-style: normal;
  font-weight: 400;
  line-height: 140%;
  text-align: center;
}

/**
 * Font trong nội dung soạn thảo (WYSIWYG) — cùng cơ chế đang dùng ở chi tiết sản phẩm
 * (xem `.wp-block-editor` trong assets/css/_reset.css).
 *
 * KHÔNG dùng `* { font-family: ... !important }` — rule !important đè cả inline style
 * TinyMCE sinh ra khi biên tập viên chọn font (<span style="font-family: georgia;">),
 * nên font chọn trong CMS luôn bị "trả về" font mặc định của theme.
 *
 * Quy tắc hiện tại:
 *   - Phần tử KHÔNG chọn font trong CMS  → inherit → lấy font của khối cha
 *     (figcaption → Georgia, đoạn văn → SF Pro Display; giữ nguyên như cũ).
 *   - Phần tử CÓ chọn font trong CMS      → không match rule → inline style thắng.
 *   - Phần tử con nằm trong vùng đã chọn font → inherit → theo font của vùng cha.
 *
 * `:where()` có specificity 0 nên không bao giờ đè các rule per-tag phía trên.
 */
.entry-content :where(*:not([style*="font-family"])) {
  font-family: inherit;
}

/* Cỡ chữ caption: tương tự — chỉ chuẩn hoá khi CMS không chỉ định cỡ chữ inline. */
.entry-content :is(figcaption, .wp-caption-text)
  :where(*:not([style*="font-size"])) {
  font-size: inherit;
  line-height: inherit;
}

.entry-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-family: var(--rte-font);
  font-size: 0.875rem;
  color: var(--text-light);
}

.entry-content th,
.entry-content td {
  padding: 0.625rem 0.75rem;
  border: 1px solid rgba(29, 29, 29, 0.12);
  text-align: left;
  line-height: 150%;
}

.entry-content th {
  background: var(--bg-tag);
  color: #680103;
  font-weight: 600;
}

.entry-content hr {
  border: none;
  border-top: 1px solid rgba(29, 29, 29, 0.12);
  margin: 2rem 0;
}

.entry-content code {
  padding: 0.125rem 0.375rem;
  background: var(--bg-tag);
  border-radius: 0.25rem;
  font-family: monospace;
  font-size: 0.875em;
  color: #680103;
}

.entry-content pre {
  margin: 1.5rem 0;
  padding: 1rem;
  background: var(--bg-tag);
  border-radius: 0.375rem;
  overflow-x: auto;
}

.entry-content pre code {
  padding: 0;
  background: none;
}

/**
 * Nội dung nhúng: dán link YouTube/Vimeo, chèn bản đồ, video tải lên.
 *
 * WordPress xuất iframe kèm width/height CỐ ĐỊNH (`<iframe width="560" height="315">`).
 * Viewport mobile 375px ⇒ video tràn ngang, đẩy vỡ layout cả trang. Không có rule nào
 * chặn việc này trước đây (_reset.css chỉ có `iframe { border: 0 }`).
 *
 * Thuộc tính width/height trên thẻ HTML là "presentational hint", specificity thấp hơn
 * mọi rule CSS ⇒ khai báo dưới đây đè được, không cần !important.
 */
.entry-content :is(iframe, embed, object, video) {
  max-width: 100%;
}

/* Video: lấp đủ chiều ngang, giữ khung 16:9. Chỉ nhắm các host video để không ép sai
   tỉ lệ cho iframe khác (bản đồ, form nhúng, TikTok dạng dọc). */
.entry-content
  :is(
    iframe[src*="youtube"],
    iframe[src*="youtu.be"],
    iframe[src*="vimeo"],
    iframe[src*="dailymotion"],
    iframe[src*="facebook.com/plugins/video"]
  ) {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  margin: 1.5rem 0;
  border: 0;
}

.entry-content video {
  width: 100%;
  height: auto;
}

/* Wrapper của oEmbed / shortcode [video] cũng mang width cố định inline */
.entry-content
  :is(
    .wp-video,
    .wp-block-embed,
    .wp-block-embed__wrapper,
    .wp-embedded-content,
    .mejs-container
  ) {
  max-width: 100%;
}

.entry-content .wp-video {
  width: 100% !important;
}

.cta-banner-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.375rem 0.5rem;
  background: radial-gradient(
    ellipse 50% 169.61% at 50% 50%,
    #cb5140 47%,
    #d8a061 91%
  );
  border-radius: 0.25rem;
}

.cta-contact-box {
  background: #f6f3ea;
  padding: 0.5rem;
  border-radius: 0.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
}

.entry-content #ez-toc-container {
  display: none !important;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 1rem 0.75rem 2rem;
  justify-content: flex-start;
}

.breadcrumb a {
  color: rgba(28.59, 28.59, 28.59, 0.4);
  font-size: 0.75rem;
  font-family: "SF Pro Display", sans-serif;
  font-weight: 400;
  line-height: 1.125rem;
  text-decoration: none;
  word-wrap: break-word;
  transition: color 0.2s ease;
}

.breadcrumb a:hover {
    color: rgba(28, 28, 28, 0.7);
}

.breadcrumb .current {
  color: #1d1d1d;
  font-size: 0.75rem;
  font-family: "SF Pro Display", sans-serif;
  font-weight: 400;
  line-height: 1.125rem;
  word-wrap: break-word;
}

.breadcrumb .dot {
  width: 0.25rem;
  height: 0.25rem;
  background: rgba(28.59, 28.59, 28.59, 0.4);
  border-radius: 624.9375rem;
  display: block;
}

.breadcrumb .dot.active {
  background: #1d1d1d;
}

.blog-post-cta {
  width: 100%;
  margin-top: 1.67rem;
}

.meta-row {
  display: flex;
  flex-direction: column;
  align-items: start;
  padding: 0 0.75rem;
}

.author-info,
.post-date {
  margin-bottom: 0.875rem;
}

.footer-top-line {
  display: block;
  width: 100%;
  height: 0.0625rem;
  margin: 1.67rem 0;
}

.author-info,
.post-date {
  color: var(--Text-Body-80, rgba(29, 29, 29, 0.8));
  font-family: "SF Pro Display";
  font-size: 1rem;
  font-style: normal;
  font-weight: 400;
  line-height: 150%;
}

.author-info strong,
.post-date strong {
  color: var(--Text-Body-80, rgba(29, 29, 29, 0.8));
  font-family: "SF Pro Display";
  font-size: 1rem;
  font-style: normal;
  font-weight: 700;
  line-height: 150%;
}

.blog-post-cta {
  width: 100%;
  padding: 0 0.75rem;
  margin-top: 2rem;
}

.cta-banner-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.375rem 0.5rem 0.375rem 0.375rem;
  background: radial-gradient(
    ellipse 50% 169.61% at 50% 50%,
    #cb5140 47%,
    #d8a061 91%
  );
  border-radius: 0.25rem;
}

.cta-contact-box {
  width: 8.75rem;
  background: #f6f3ea;
  border-radius: 0.25rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-decoration: none;
}

.cta-contact-title {
  color: #680103;
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.3125rem;
}

.cta-contact-phone {
  color: #680103;
  font-size: 0.75rem;
  font-weight: 400;
  line-height: 1.125rem;
}

.cta-social-wrap {
  display: flex;
  align-items: center;
}

.cta-social-text {
  color: #f7f4ec;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.3125rem;
  margin-right: 0.375rem;
}

.cta-social-icons {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.social-icon-item {
  position: relative;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
}

.icon-bg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #f6f3ea;
  opacity: 0.2;
  border-radius: 3.90625rem;
}

.social-icon-item svg {
  position: relative;
  z-index: 1;
  width: auto;
  height: auto;
  max-width: 1.45831rem;
  color: #f6f3ea;
}

.meta-right {
  display: flex;
  flex-direction: column-reverse;
  align-items: start;
}

.tags-list {
  color: var(--Text-Title---Highlight-100, #680103);
  text-align: center;
  font-family: "SF Pro Display";
  font-size: 0.625rem;
  font-style: normal;
  font-weight: 500;
  line-height: 0.9375rem;
  text-transform: uppercase;
  display: flex;
  gap: 0.63rem;
}
.tag-item {
  display: flex;
  padding: 0 0.375rem;
  height: 1.25rem;
  justify-content: center;
  align-items: center;
  border-radius: 6rem;
  background: var(--Button-Inactive, rgba(104, 1, 3, 0.04));
  color: var(--Text-Title---Highlight-100, #680103);
  text-align: center;
  font-family: "SF Pro Display";
  font-size: 0.75rem;
  font-style: normal;
  font-weight: 500;
  line-height: 150%;
}

@media (min-width: 638px) {
  main {
    background: #f7f4ec;
    position: relative;
    background-image: url(/wp-content/uploads/2026/04/Chi-tiet-san-pham.webp);
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    background-attachment: fixed;
  }

  .blog-detail-wrapper {
    padding: 11.375rem 0 0;
    font-family: "SF Pro Display", sans-serif;
    /*background: #f7f4ec;*/
    position: relative;
  }

  .main-layout-wrapper {
    margin-left: -7.16rem;
  }

  .main-layout {
    display: flex;
    justify-content: center;
    max-width: 84.78rem;
    margin: 0 auto;
    align-items: flex-start;
    position: relative;
  }

  .main-content {
    width: 70rem;
  }

  .breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 1rem 0;
  }

  .breadcrumb a,
  .breadcrumb .current {
    font-size: 0.875rem;
    color: var(--text-muted);
    text-decoration: none;
  }

  .breadcrumb .current {
    color: var(--text-color);
  }

  .breadcrumb .dot {
    width: 0.3125rem;
    height: 0.3125rem;
    background: var(--text-muted);
    border-radius: 50%;
  }

  .breadcrumb .dot.active {
    background: var(--text-color);
  }

  .entry-title {
    text-box-edge: cap alphabetic;
    text-box-trim: trim-both;
    font-family: "Phudu", cursive;
    font-size: 2.875rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1.2;
    margin: 1.5rem 0 2.5rem;
    padding: 0;
  }

  .entry-content {
    padding: 0;
  }

  #ez-toc-container {
    background: white !important;
    padding: 0rem !important;
    border: none !important;
    width: 100% !important;
    margin: 0 !important;
  }

  #ez-toc-container .ez-toc-title-container {
    color: var(--primary-color) !important;
    font-family: "Phudu" !important;
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    margin-bottom: 1rem !important;
    /*display: none !important;*/
  }
  
  div#ez-toc-container .ez-toc-title {
    color: #680103;
    font-family: Phudu;
    font-size: 1.5rem;
    font-style: normal;
    font-weight: 700;
    line-height: 110%; 
  }

  #ez-toc-container ul.ez-toc-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
  }

  #ez-toc-container ul.ez-toc-list li {
    font-size: 1rem !important;
    color: var(--text-light) !important;
    list-style: none !important;
    line-height: 150% !important;
    margin-bottom: 0.75rem !important;
  }

  .toc-custom-container #ez-toc-container .toc-toggle-btn {
    font-size: 1rem;
  }

  #ez-toc-container a {
    color: var(--text-light) !important;
    text-decoration: none !important;
  }

  .entry-content h2 {
    color: var(--primary-color);
    font-family: "Phudu";
    font-size: 1.5rem;
    margin: 2rem 0 1rem;
    font-weight: 700;
    line-height: 110%;
  }

  .entry-content h3 {
    color: var(--primary-color);
    font-family: "Phudu";
    font-size: 1.25rem;
    margin: 1rem 0 0.75rem;
    font-weight: 600;
    line-height: 120%;
  }

  .rent-price-row {
    color: rgba(29, 29, 29, 0.8);
    font-family: "SF Pro Display";
    font-size: 0.75rem;
    font-style: normal;
    font-weight: 400;
    line-height: 150%;
    margin-bottom: 0.125rem;
  }

  .rent-price-row span {
    color: var(--Text-Title---Highlight-100, #680103);
    font-family: "SF Pro Display";
    font-size: 0.75rem;
    font-style: normal;
    font-weight: 400;
    line-height: 150%;
  }

  .sale-price {
    color: var(--Text-Title---Highlight-100, #680103);
    font-family: "SF Pro Display";
    font-size: 0.75rem;
    font-style: normal;
    font-weight: 400;
    line-height: 150%;
  }

  .entry-content p {
    color: var(--text-light);
    font-family: var(--rte-font);
    font-size: 1rem;
    font-weight: 400;
    line-height: 150%;
    margin-bottom: 1rem;
  }

  .entry-content ul {
    list-style-type: disc;
    padding-left: 1.5rem;
    margin-bottom: 1rem;
  }

  .entry-content ul li {
    color: var(--text-light);
    font-family: var(--rte-font);
    font-size: 1rem;
    font-weight: 400;
    line-height: 150%;
  }

  .entry-content ol {
    list-style-type: decimal;
    padding-left: 1.5rem;
    margin-bottom: 1.25rem;
  }

  .entry-content ol li {
    color: var(--text-light);
    font-family: var(--rte-font);
    font-size: 1rem;
    font-weight: 400;
    line-height: 150%;
  }

  .entry-content img {
    width: 100%;
    height: auto;
    margin: 1.25rem 0 !important;
  }

  .entry-content :is(h1, h2, h3, h4, h5, h6, p, div) > img {
    margin: 1.25rem auto !important;
  }

  .entry-content :is(h1, h2, h3, h4, h5, h6):has(> img) {
    margin-top: 1.25rem;
  }

  .entry-content h1 {
    font-family: "Phudu";
    font-size: 2rem;
    margin: 2.5rem 0 1rem;
  }

  .entry-content h4 {
    font-family: "Phudu";
    font-size: 1.125rem;
    margin: 1.5rem 0 0.75rem;
  }

  .entry-content h5,
  .entry-content h6 {
    font-size: 1rem;
    margin: 1.25rem 0 0.5rem;
  }

  .entry-content figure {
    margin: 1.25rem 0;
  }

  .entry-content figcaption,
  .entry-content .wp-caption-text {
    font-size: 12pt;
  }

  .entry-content blockquote {
    padding: 0.75rem 0 0.75rem 1.5rem;
  }

  .entry-content table {
    font-size: 1rem;
    margin: 2rem 0;
  }

  .footer-top-line {
    display: block;
    width: 100%;
    height: 0.0625rem;
    margin: 2.5rem 0 1.125rem;
  }

  .meta-row {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 0;
    margin-bottom: 1rem;
  }
  .author-info,
  .post-date {
    margin-bottom: 0;
  }
  .meta-right {
    display: flex;
    align-items: center;
    flex-direction: row;
    gap: 0.75rem;
  }

  .tags-list {
    color: var(--Text-Title---Highlight-100, #680103);
    text-align: center;
    font-family: "SF Pro Display";
    font-size: 0.875rem;
    font-style: normal;
    font-weight: 500;
    line-height: 150%;
    text-transform: uppercase;
  }

  .tag-item {
    display: flex;
    padding: 0 0.75rem;
    height: 1.75rem;
    justify-content: center;
    align-items: center;
    border-radius: 6rem;
    background: var(--Button-Inactive, rgba(104, 1, 3, 0.04));
    font-size: 0.875rem;
  }

  .blog-post-cta {
    width: 100%;
    padding: 0;
    margin-top: 1.125rem;
  }

  .cta-banner-wrapper {
    display: flex;
    padding: 0.5rem 0.75rem 0.5rem 0.5rem;
    justify-content: space-between;
    align-items: center;
    align-self: stretch;
    border-radius: 0.5rem;
    background: radial-gradient(
      ellipse 50% 169.61% at 50% 50%,
      #cb5140 47%,
      #d8a061 91%
    );
    font-family: "SF Pro Display", sans-serif;
  }

  .cta-contact-box {
    display: flex;
    flex-direction: column;
    width: 20.1875rem;
    align-items: center;
    padding: 0.5rem 1.9375rem;
    background-color: #f6f3ea;
    border-radius: 0.375rem;
    text-decoration: none;
    transition: 0.2s ease;
  }

  .cta-contact-box:hover {
    background: #fff;
    box-shadow: 0 0 1.875rem 0 #f6f3ea;
    transform: none;
  }

  .cta-contact-title {
    font-family: "SF Pro Display", sans-serif;
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.5;
    color: #680103;
  }

  .cta-contact-phone {
    font-family: "SF Pro Display", sans-serif;
    font-size: 0.875rem;
    font-weight: 400;
    line-height: 1.5;
    color: #680103;
  }

  .cta-social-wrap {
    display: flex;
    align-items: center;
  }

  .cta-social-text {
    font-family: "SF Pro Display", sans-serif;
    color: #f7f4ec;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.5;
    margin-right: 0.8125rem;
  }

  .cta-social-icons {
    display: flex;
    align-items: center;
  }

  .social-icon-item {
    position: relative;
    width: 3.5rem;
    height: 3.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
  }

  .social-icon-item svg {
    max-width: 2.04169rem;
    color: #f6f3ea;
    transition: color 400ms cubic-bezier(0.41, -0.01, 0.01, 1);
  }

  .icon-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #f6f3ea;
    opacity: 0.2;
    border-radius: 62.5rem;
    transition:
      opacity 400ms cubic-bezier(0.41, -0.01, 0.01, 1),
      box-shadow 400ms cubic-bezier(0.41, -0.01, 0.01, 1);
  }
  .social-icon-item:hover .icon-bg-overlay {
    opacity: 1;
    background: white;
    box-shadow: 0 0 30px 0 #f6f3ea;
  }

  .social-icon-item:hover svg {
    color: #680103;
  }

  .icon-svg {
    position: relative;
    z-index: 1;
    width: 2rem;
    height: auto;
  }

  .sidebar {
    display: block !important;
    width: 15.125rem;
    padding-top: 7rem;
    flex-shrink: 0;
    position: sticky;
    top: 1rem;
    height: fit-content;
    z-index: 10;
    margin-left: 2.5rem;
  }

  .sidebar-title {
    color: #680103;
    font-family: "Phudu";
    font-size: 1.5rem;
    font-style: normal;
    font-weight: 700;
    line-height: 110%;
  }

  .title-divider {
    display: block;
    width: 100%;
    height: 0.0625rem;
    margin: 1.125rem 0;
  }

  .product-list {
    display: flex;
    flex-direction: column;
  }

  .product-item-small {
    display: flex;
    align-items: center;
    height: 100%;
  }

  .product-item-small:not(:last-child) {
    margin-bottom: 0.875rem;
  }

  .product-img {
    width: 4.875rem;
    height: 7.18rem;
    overflow: hidden;
    flex-shrink: 0;
    margin-right: 0.625rem;
  }

  .product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease-out;
  }

  .product-cat {
    display: flex;
    width: fit-content;
    height: 1.25rem;
    padding: 0 0.375rem;
    justify-content: center;
    align-items: center;
    font-size: 0.75rem;
    font-style: normal;
    font-weight: 500;
    line-height: 150%;
    background: var(--bg-tag);
    color: var(--primary-color);
    font-family: "SF Pro Display";
    border-radius: 6rem;
    margin-bottom: 0.125rem;
  }

  .product-name {
    color: #1d1d1d;
    font-family: "SF Pro Display";
    font-size: 0.875rem;
    font-style: normal;
    font-weight: 600;
    line-height: 150%;
    margin-bottom: 0.375rem;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: all 0.3s ease-out;
  }

  .product-price {
    display: flex;
    flex-direction: column;
    color: var(--primary-color);
  }

  .product-price strong {
    font-weight: 700;
  }

  .view-all-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
  }

  .view-all-link svg {
    width: 1.5rem;
    height: 1.5rem;
    margin-right: 0.5rem;
    transition: transform 400ms cubic-bezier(0.47, 0, 0.01, 1.01);
  }

  .view-all-link span {
    color: #1d1d1d;
    leading-trim: both;
    text-edge: cap;
    font-family: "SF Pro Display";
    font-size: 1.125rem;
    font-style: normal;
    font-weight: 500;
    line-height: 150%;
    transition: color 400ms cubic-bezier(0.47, 0, 0.01, 1.01);
  }

  .toc-custom-wrapper {
    padding: 0;
  }

  .toc-custom-container {
    background: #fff;
    padding: 1.875rem;
    margin-bottom: 2.5rem;
  }

  .toc-custom-title {
    color: #680103;
    font-family: "Phudu", sans-serif;
    font-size: 1.5rem;
    font-style: normal;
    font-weight: 700;
    line-height: 1.65rem;
    margin-bottom: 1rem;
  }

  .sticky-share-column {
    display: flex !important;
    position: sticky;
    top: 20rem;
    left: 0rem;
    z-index: 100;
    width: 3.125rem;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-right: 4.03rem;
  }

  .share-label-wrap {
    display: flex;
    max-width: 3.125rem;
    padding: 0.5rem 0;
    justify-content: center;
    align-items: center;
    border-bottom: 1px solid rgba(29, 29, 29, 0.12);
  }

  .share-label {
    color: rgba(29, 29, 29, 0.8);
    font-family: "SF Pro Display";
    font-size: 1rem;
    font-style: normal;
    font-weight: 400;
    line-height: 150%;
  }

  .share-socials-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
  }

  .share-circle {
    width: 3.125rem;
    height: 3.125rem;
    border-radius: 50%;
    border: 0.0975rem solid #cb5140;
    background-color: transparent;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
  }

  .share-circle svg {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}

@media (min-width: 1024px) {
  .product-item-small:hover .product-name {
    color: #680103;
    text-decoration-line: underline;
    text-decoration-style: solid;
  }

  .product-item-small:hover .product-img img {
    transform: scale(1.1);
  }

  .view-all-link:hover svg {
    transform: translateX(0.315rem);
  }

  .view-all-link:hover span {
    color: #680103;
  }

  #ez-toc-container a {
    color: rgba(29, 29, 29, 0.8);
  }

  #ez-toc-container a:hover {
    color: var(--primary-color) !important;
  }
}

@media (max-width: 78.125rem) {
  .sticky-share-column {
    display: none;
  }
   .entry-content h2 {
    margin-top: 1.5rem;
   }
}

