.cvn-single-post .article-inner {
  max-width: none;
  margin: 0;
}

.single-post .blog-wrapper.page-wrapper {
  padding-top: 0;
}

/* Tạo khối full-width cho breadcrumb và banner tiêu đề bài viết. */
.cvn-single-breadcrumb-bar,
.cvn-single-header {
  position: relative;
  left: auto;
  right: auto;
  width: auto;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

/* Đổi nền banner tiêu đề sang tông trắng - cam nhạt đồng bộ màu chủ đạo của site. */
.cvn-single-header {
  overflow: hidden;
  padding: 46px 0;
  border-bottom: 0;
  background:
    radial-gradient(circle at 78% 12%, rgba(255, 122, 0, 0.16), transparent 27%),
    linear-gradient(135deg, #ffffff 0%, #fffaf5 52%, #fff1e4 100%);
}

/* Custom nền và đường nhấn của thanh breadcrumb theo màu cam thương hiệu. */
.cvn-single-breadcrumb-bar {
  z-index: 2;
  border-top: 1px solid var(--primary, #ff7a00);
  border-bottom: 1px solid #f1e6dc;
  background: #ffffff;
  box-shadow: 0 4px 16px rgba(36, 50, 68, 0.04);
}

/* Đặt nội dung banner lên trên lớp nền và căn tiêu đề xuống đáy ảnh ở desktop. */
.cvn-single-hero {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(420px, 1fr);
  align-items: center;
  gap: 20px;
  width: calc(100% - 30px);
  max-width: 1260px;
  margin: 0 auto;
  padding: 0;
}

/* Dùng tên thương hiệu CopiersVN làm watermark phía sau tiêu đề thay cho hình tròn trang trí. */
/* .cvn-single-hero::before {
  position: absolute;
  top: 10%;
  left: -5px;
  content: "CopiersVN";
  pointer-events: none;
  color: rgba(255, 122, 0, 0.065);
  font-family: var(--font-sans, sans-serif);
  font-size: clamp(40px, 10vw, 100px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.065em;
  white-space: nowrap;
  user-select: none;
  transform: translateY(-50%);
} */

.cvn-single-hero__content {
  min-width: 0;
}

/* Thêm vạch cam phía trên tiêu đề để liên kết thị giác với màu thương hiệu. */
.cvn-single-hero__content::before {
  display: block;
  width: 54px;
  height: 4px;
  margin-bottom: 18px;
  content: "";
  background: var(--primary, #ff7a00);
  border-radius: 999px;
}

.cvn-single-hero--no-image {
  grid-template-columns: 1fr;
}

.cvn-single-hero--no-image .cvn-single-title {
  max-width: 900px;
}

.cvn-single-hero__image {
  display: block;
  overflow: hidden;
  border-radius: 12px;
  background: #e5e7eb;
  box-shadow: none;
  min-width: 0;
}

.cvn-single-hero__image img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

/* Custom màu tiêu đề bài viết: xanh đậm dễ đọc, hài hòa với cam chủ đạo. */
.cvn-single-title {
  max-width: 620px;
  margin: 0;
  color: var(--text);
  font-size: clamp(34px, 3vw, 46px);
  line-height: 1.32;
  font-weight: 800;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

/* Nút gửi bình luận dùng màu thương hiệu như các nút chính của website. */
.single-post .comment-form .submit {
  border-color: var(--button-primary-bg, #ff7a00);
  background: var(--button-primary-bg, #ff7a00);
  color: var(--button-primary-text, #ffffff);
}

.single-post .comment-form .submit:hover,
.single-post .comment-form .submit:focus-visible {
  border-color: var(--button-primary-hover-bg, #ef6400);
  background: var(--button-primary-hover-bg, #ef6400);
  color: var(--button-primary-text, #ffffff);
}

.single-post .comment-form .submit:focus-visible {
  outline: 2px solid var(--button-primary-active-bg, #c2410c);
  outline-offset: 3px;
}

.single-post .comment-form .submit:active {
  border-color: var(--button-primary-active-bg, #c2410c);
  background: var(--button-primary-active-bg, #c2410c);
}

/* Tên tác giả là đoạn văn; giữ phân cấp chữ riêng cho thẻ hồ sơ. */
.row-1794387334481 {
  margin: 24px 0 0;
  padding: 22px 24px;
  border: 1px solid var(--border-primary, #fdba74);
  border-radius: 12px;
  background: var(--primary-soft, #fff1e4);
  color: var(--text, #243244);
  overflow-wrap: anywhere;
}

.row-1794387334481 header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
}

.row-1794387334481 header > div {
  min-width: 0;
}

.row-1794387334481 .avatar {
  flex: 0 0 72px;
  width: 72px;
  height: 72px;
  margin: 0;
  border: 3px solid #ffffff;
  border-radius: 50%;
  background: #ffffff;
  object-fit: cover;
}

.row-1794387334481 p {
  margin: 0 0 8px;
}

.row-1794387334481 header p {
  margin: 0;
  color: var(--muted, #667085);
  font-size: 0.875em;
}

.row-1794387334481 header .p-1795779544150 {
  margin: 0;
  color: var(--text, #243244);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.row-1794387334481 .ux_text-1794388774992 {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  color: var(--primary-active, #c2410c);
  font-size: 0.875em;
}

.row-1794387334481 .ux_text-1794388774992 svg {
  flex: 0 0 18px;
  color: var(--primary, #ff7a00);
}

.row-1794387334481 .div-1794470000900 {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 16px;
  margin-top: 16px;
}

.row-1794387334481 .div-1794470000902 > p {
  margin: 0 0 8px;
  color: var(--muted, #667085);
  font-size: 14px;
  line-height: 1.5;
}

.row-1794387334481 .div-1794470000903 {
  padding-top: 16px;
  border-top: 1px solid var(--border-primary, #fdba74);
}

.row-1794387334481 .div-1794470000903 > a {
  display: inline;
  border-radius: 3px;
  color: var(--primary-active, #c2410c);
  text-decoration: none;
  text-underline-offset: 3px;
  font-weight: 600;
}

.row-1794387334481 .div-1794470000903 > a:hover span,
.row-1794387334481 .div-1794470000903 > a:focus-visible span {
  text-decoration: underline;
  text-decoration-thickness: 1px;
}

.row-1794387334481 .div-1794470000900 a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}

.row-1794387334481 .nav-1794470000901 {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 100%;
}

.row-1794387334481 .nav-1794470000901 a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  max-width: 100%;
  padding: 7px 12px;
  border: 1px solid #ead7c6;
  border-radius: 8px;
  background: #ffffff;
  color: var(--text, #243244);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
  text-decoration: none;
}

.row-1794387334481 .nav-1794470000901 a:hover {
  border-color: var(--primary, #ff7a00);
  background: #fff9f3;
}

.row-1794387334481 .nav-1794470000901 i {
  flex: 0 0 18px;
  width: 18px;
  font-size: 18px;
  text-align: center;
}

.row-1794387334481 .nav-1794470000901 .fa-facebook-f { color: #1877f2; }
.row-1794387334481 .nav-1794470000901 .fa-linkedin-in { color: #0a66c2; }

/* Thanh ngày đăng/chia sẻ và form tư vấn riêng, không lặp tác giả. */
.row-1794389673649 {
  display: grid;
  gap: 16px;
  margin-bottom: 26px;
}

.row-1794389673649 .cvn-single-meta-column {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line, #e9edf3);
  color: #657384;
  font-size: 0.875em;
  font-weight: 500;
}

.row-1794389673649 .cvn-single-date,
.row-1794389673649 .cvn-single-share {
  display: flex;
  align-items: center;
  gap: 8px;
}

.row-1794389673649 .cvn-single-date i {
  font-size: 1.15em;
}

.row-1794389673649 .fa-light {
  font-family: "Font Awesome 7 Pro";
  font-weight: 300;
}

.row-1794389673649 .social-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.row-1794389673649 .social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  min-width: 34px;
  min-height: 34px;
  margin: 0;
  padding: 0;
  border: 1px solid var(--border-ui-strong, #cbd5e1);
  border-radius: 50%;
  background: var(--bg, #f7f8fc);
  color: var(--muted, #667085);
  line-height: 1;
  box-shadow: none;
}

.row-1794389673649 .social-icons a i {
  color: inherit;
}

.row-1794389673649 .social-icons a:hover,
.row-1794389673649 .social-icons a:focus-visible {
  border-color: var(--primary, #ff7a00) !important;
  background: var(--primary-soft, #fff1e4) !important;
  color: var(--primary-active, #c2410c) !important;
}

.row-1794389673649 .social-icons a:hover i {
  color: inherit !important;
}

.row-1794389673649 .cvn-single-form-column,
.row-1794389673649 .input-wrap__hotline {
  min-width: 0;
}

.row-1794389673649 .wpcf7,
.row-1794389673649 form,
.row-1794389673649 p {
  margin: 0;
}

.row-1794389673649 .row-1794391836599 {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.2fr);
  align-items: center;
  gap: 20px 28px;
  padding: 24px;
  border: 1px solid var(--primary-100, #ffedd5);
  border-radius: 12px;
  background: var(--primary-50, #fff7ed);
}

.row-1794389673649 .ux_text-1794391836600 h3 {
  margin: 0 0 8px;
  color: var(--text, #243244);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.35;
}

.row-1794389673649 .ux_text-1794391836600 p {
  color: #657384;
  font-size: 0.875em;
  line-height: 1.6;
}

.row-1794389673649 .contact-card__hotline {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  width: 100%;
  max-width: none;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.row-1794389673649 .contact-title__hotline {
  display: none;
}

.row-1794389673649 .contact-form__hotline {
  --hotline-turnstile-gap: 10px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 10px;
  margin: 0;
}

.row-1794389673649 .contact-form__hotline > p {
  position: relative;
}

.row-1794389673649 .input-wrap__hotline i {
  left: 12px;
  font-size: 20px;
  animation: hotline-ring 1.2s ease-in-out infinite;
}

.row-1794389673649 .input-wrap__hotline br,
.row-1794389673649 .contact-note__hotline br {
  display: none;
}

.row-1794389673649 .contact-form__hotline input {
  margin: 0;
}

.row-1794389673649 .input-wrap__hotline input {
  border-color: var(--border-primary, #fdba74);
  transition: border-color 0.2s ease;
}

.row-1794389673649 .contact-form__hotline .contact-button__hotline {
  box-shadow: none;
}

.row-1794389673649 .contact-note__hotline {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #657384;
  font-size: 0.875em;
}

.row-1794389673649 .contact-note__hotline p {
  display: flex;
  align-items: center;
  gap: 6px;
}

.row-1794389673649 .contact-note__hotline span {
  margin: 0;
}

@media (min-width: 850px) {
  .blog-single > .row:has(> .post-sidebar .contact-form__hotline > .cf-turnstile) {
    --blog-sidebar-width: max(25%, 320px);
  }

  .blog-single > .row:has(> .post-sidebar .contact-form__hotline > .cf-turnstile) > .post-sidebar {
    flex-basis: var(--blog-sidebar-width);
    max-width: var(--blog-sidebar-width);
  }

  .blog-single > .row:has(> .post-sidebar .contact-form__hotline > .cf-turnstile) > .large-9 {
    flex-basis: calc(100% - var(--blog-sidebar-width));
    max-width: calc(100% - var(--blog-sidebar-width));
  }
}

@media (max-width: 767px) {
  .row-1794389673649 .row-1794391836599 {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
    padding: 20px;
  }

  .row-1794389673649 .ux_text-1794391836600 h3 {
    font-size: 20px;
  }

}

@media (max-width: 480px) {
  .row-1794389673649 .contact-form__hotline {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* -----------------------css mo ta bai viet------------- */

/* Khung nội dung bài viết đồng bộ card mô tả của site. */
.cvn-single-post .entry-content.single-page {
  padding: clamp(20px, 3vw, 34px);
  border: 1px solid var(--line, #e9edf3);
  border-radius: 12px;
  background: var(--white, #ffffff);
  color: var(--text, #243244);
  font-size: 16px;
  line-height: 24px;
  text-align: left;
  overflow-wrap: break-word;
  box-shadow: 0 12px 34px rgba(26, 38, 56, 0.06);
}

/* Tạo nhịp đọc rõ ràng cho đoạn văn và danh sách. */
.cvn-single-post .entry-content :is(p, ul, ol):not(:where(#ez-toc-container *)) {
  margin: 0 0 8px;
}

.cvn-single-post .entry-content :is(ul, ol):not(:where(#ez-toc-container *)) {
  margin: 0 0 8px;
  padding-left: 24px;
  list-style-position: outside;
}

.cvn-single-post .entry-content ul:not(:where(#ez-toc-container *)) {
  list-style-type: disc;
}

.cvn-single-post .entry-content ol:not(:where(#ez-toc-container *)) {
  list-style-type: decimal;
}

.cvn-single-post .entry-content li:not(:where(#ez-toc-container *)) {
  margin: 0 0 6px;
  padding: 0;
}

/* Danh sách lồng nhau chỉ thụt theo padding, không cộng margin mặc định của theme. */
.cvn-single-post .entry-content li > :is(ul, ol):not(:where(#ez-toc-container *)) {
  margin: 8px 0 0;
}

.cvn-single-post .entry-content :is(ul, ol) ul:not(:where(#ez-toc-container *)) {
  list-style-type: circle;
}

.cvn-single-post .entry-content :is(ul, ol) :is(ul, ol) ul:not(:where(#ez-toc-container *)) {
  list-style-type: square;
}

.cvn-single-post .entry-content li:last-child:not(:where(#ez-toc-container *)),
.cvn-single-post .entry-content li:not(:where(#ez-toc-container *)) > :last-child {
  margin-bottom: 0;
}

/* Heading cấp 2 có đường cam giống tiêu đề khối trên site. */
.cvn-single-post .entry-content h2:not(:where(#ez-toc-container *)) {
  margin: 16px 0 8px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--primary, #ff7a00);
  color: var(--text, #243244);
  font-size: 22px;
  line-height: 30px;
  font-weight: 600;
}

/* Heading cấp 3 gọn hơn để phân cấp nội dung rõ ràng. */
.cvn-single-post .entry-content h3:not(:where(#ez-toc-container *)) {
  margin: 12px 0 8px;
  color: var(--text, #243244);
  font-size: 18px;
  line-height: 26px;
  font-weight: 600;
}

@media (min-width: 850px) {
  .cvn-single-post .entry-content h2:not(:where(#ez-toc-container *)) {
    font-size: 24px;
    line-height: 32px;
  }

  .cvn-single-post .entry-content h3:not(:where(#ez-toc-container *)) {
    margin-top: 16px;
    font-size: 20px;
    line-height: 28px;
  }
}

/* Liên kết trong nội dung dùng màu thương hiệu. */
.cvn-single-post .entry-content a:not(:where(#ez-toc-container *)) {
  color: var(--primary-dark, #ef6400);
  font-weight: 600;
}

/* Giữ mục lục rõ nét cả với liên kết đã truy cập. */
.cvn-single-post #ez-toc-container a.ez-toc-link,
.cvn-single-post #ez-toc-container a.ez-toc-link:visited {
  color: #334155;
}

.cvn-single-post #ez-toc-container a.ez-toc-link:hover,
.cvn-single-post #ez-toc-container a.ez-toc-link:focus-visible,
.cvn-single-post #ez-toc-container li.active > a.ez-toc-link,
.cvn-single-post #ez-toc-container a.ez-toc-link[aria-current="location"] {
  color: #9a4200;
  text-decoration: underline;
}

.cvn-single-post #ez-toc-container a.ez-toc-link:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

/* Crop 2px mép ảnh để loại bỏ viền đen nằm sẵn trong file ảnh. */
.cvn-single-post .entry-content img {
  clip-path: inset(2px);
  border-radius: 10px;
}

.cvn-single-post .entry-content figure.wp-caption {
  max-width: 100%;
  margin: 24px auto;
  overflow: hidden;
  background: var(--bg, #f7f8fc);
}

/* Caption ảnh có nền nhẹ và khoảng cách cân đối. */
.cvn-single-post .entry-content .wp-caption-text {
  margin: 0;
  padding: 9px 14px 10px;
  color: var(--muted, #667085);
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
}

/* ------------------------------- */

.single-post .blog-wrapper>.row {
  margin-top: 28px;
}

.cvn-single-post .blog-share {
  display: none;
}

.cvn-related-posts {
  margin: 34px 0 0;
}

.cvn-related-posts__inner {
  margin: 0;
}

.cvn-related-posts__head {
  display: flex;
  align-items: center;
  margin-bottom: 16px;
}

.cvn-related-posts__title,
h3.highlight-event__title.cvn-related-posts__title {
  margin: 0;
  padding: 0 0 10px;
  border-bottom: 3px solid var(--primary, #ff7a00);
  background: transparent;
  color: #0b2447;
  font-size: clamp(22px, 2vw, 28px);
  line-height: 1.25;
  font-weight: 800;
}

.cvn-related-posts__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.cvn-related-post {
  overflow: hidden;
  min-width: 0;
  margin: 0;
  border-radius: 12px;
  background: #f5f6f8;
  box-shadow: inset 0 0 0 1px rgba(36, 50, 68, 0.04), 0 10px 24px rgba(26, 38, 56, 0.05);
}

.cvn-related-post__image {
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #eef1f5;
}

.cvn-related-post__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.28s ease;
}

.cvn-related-post__title {
  margin: 0;
  padding: 14px 16px 16px;
  color: #0b2447;
  font-size: 17px;
  line-height: 1.35;
  font-weight: 700;
  letter-spacing: 0;
  transition: color 0.22s ease;
}

.cvn-related-post__title a {
  color: inherit;
  transition: color 0.22s ease;
}

.cvn-related-post:hover .cvn-related-post__image img {
  transform: scale(1.04);
}

.cvn-related-post:hover .cvn-related-post__title,
.cvn-related-post:hover .cvn-related-post__title a,
.cvn-related-post:focus-within .cvn-related-post__title,
.cvn-related-post:focus-within .cvn-related-post__title a,
.cvn-related-post__title a:hover,
.cvn-related-post__title a:focus {
  color: var(--primary-dark, #ef6400);
}

@media (max-width: 1024px) {

  .cvn-single-header,
  .cvn-single-breadcrumb-bar {
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
  }

  .cvn-single-header .cvn-single-hero {
    grid-template-columns: minmax(0, 1fr) !important;
    grid-auto-flow: row;
    width: calc(100% - 30px);
    max-width: 1260px;
    margin: 0 auto;
    gap: 24px;
    align-items: start;
  }

  .cvn-single-hero__image {
    width: 100%;
    max-width: 100%;
  }

  .cvn-single-title {
    max-width: 100%;
    font-size: clamp(28px, 6vw, 40px);
  }

  .cvn-related-posts__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .row-1794387334481 {
    margin-top: 20px;
    padding: 18px;
  }

  .row-1794387334481 header {
    gap: 12px;
  }

  .row-1794387334481 .avatar {
    flex-basis: 60px;
    width: 60px;
    height: 60px;
  }

  .cvn-single-header {
    padding: 24px 0 28px;
  }

  .cvn-single-header .cvn-single-hero {
    width: calc(100% - 30px);
    gap: 18px;
    padding: 0;
  }

  .cvn-single-title {
    font-size: clamp(25px, 7vw, 34px);
    line-height: 1.22;
  }

  .cvn-single-hero__image {
    border-radius: 10px;
  }

  .cvn-single-hero__image img {
    aspect-ratio: 16 / 10;
  }

  .cvn-related-posts {
    margin-top: 28px;
  }

  .cvn-related-posts__grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .cvn-related-post__title {
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .cvn-single-header {
    padding: 20px 0 24px;
  }

  .cvn-single-header .cvn-single-hero {
    padding: 0;
  }

  .cvn-single-title {
    font-size: clamp(23px, 8vw, 30px);
  }
}
