/* Trang bài viết — giao diện biên tập hiện đại (đè lên blog.css cho .tg-single--v2) */

.tg-single--v2 { background: #fff; color: #26332d; }

/* ---------- Đầu bài ---------- */
.tg-ph { padding: 28px 0 0; background: linear-gradient(180deg, #f4f8f5 0, #fff 100%); }
.tg-ph__in { max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.tg-ph__title { max-width: 900px; }
.tg-single--v2 .tg-breadcrumb { margin: 0 0 18px; }
.tg-single--v2 .tg-breadcrumb__list { margin: 0; font-size: 13px; color: var(--tg-muted); display: flex; flex-wrap: wrap; gap: 4px 6px; align-items: center; }
.tg-single--v2 .tg-breadcrumb__list a { color: var(--tg-muted); text-decoration: none; }
.tg-single--v2 .tg-breadcrumb__list a:hover { color: var(--tg-main); text-decoration: underline; }
.tg-single--v2 .tg-breadcrumb__list [aria-current] { color: var(--tg-charcoal); max-width: 42ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.tg-ph__chips { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.tg-ph__cat { display: inline-block; padding: 5px 14px; border-radius: 999px; background: #e3f1e8; color: var(--tg-main); font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; }
.tg-ph__cat:hover { background: var(--tg-main); color: #fff; }
.tg-ph__read { font-size: 13px; color: var(--tg-muted); }

.tg-ph__title { margin: 0 0 14px; font-size: clamp(30px, 4.6vw, 50px); line-height: 1.15; letter-spacing: -.015em; font-weight: 700; color: var(--tg-charcoal); text-wrap: balance; }
.tg-ph__lede { margin: 0 0 22px; font-size: clamp(17px, 2vw, 20px); line-height: 1.6; color: #4a5a52; max-width: 760px; }

.tg-ph__meta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 14px 0 26px; font-size: 14px; color: var(--tg-muted); }
.tg-ph__author { display: flex; align-items: center; gap: 10px; color: var(--tg-charcoal); font-weight: 600; }
.tg-ph__author img { width: 40px; height: 40px; border-radius: 50%; object-fit: contain; padding: 4px; background: #fff; border: 1px solid #dfe8e2; }
.tg-ph__dot { width: 4px; height: 4px; border-radius: 50%; background: #b9c6be; }

.tg-ph__fig { max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.tg-ph__fig img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 8; object-fit: cover; border-radius: 22px; box-shadow: 0 18px 50px rgba(20, 60, 45, .16); background: #e8efe9; }

/* Ảnh đại diện độ phân giải thấp: không kéo giãn quá kích thước thật */
.tg-ph__fig--sm img { width: auto; max-width: min(100%, var(--fig-w)); aspect-ratio: auto; margin: 0 auto; }

/* ---------- Bố cục ---------- */
.tg-single--v2 .tg-post-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 56px; max-width: 1140px; margin: 0 auto; padding: 44px 20px 24px; align-items: start; }
.tg-single--v2 .tg-post-content { max-width: 760px; width: 100%; min-width: 0; }
@media (max-width: 1020px) {
  .tg-single--v2 .tg-post-layout { grid-template-columns: minmax(0, 1fr); gap: 32px; padding-top: 28px; }
  .tg-single--v2 .tg-post-content { max-width: none; }
}

/* Thanh tiến độ đọc */
.tg-single--v2 .tg-progress-bar { position: fixed; top: 0; left: 0; width: 0; height: 3px; background: linear-gradient(90deg, var(--tg-accent), var(--tg-main)); z-index: 10001; transition: width .1s linear; }

/* ---------- Nội dung ---------- */
.tg-single--v2 .tg-post-body { font-size: 18px; line-height: 1.85; color: #26332d; counter-reset: none; }
.tg-single--v2 .tg-post-body > *:first-child { margin-top: 0; }
.tg-single--v2 .tg-post-body p { margin: 0 0 1.35em; }
.tg-single--v2 .tg-post-body h2 { counter-increment: none; font-size: clamp(24px, 3vw, 31px); line-height: 1.25; font-weight: 700; color: var(--tg-charcoal); margin: 2.2em 0 .65em; padding: 0; border: 0; letter-spacing: -.01em; scroll-margin-top: 90px; display: block; }
.tg-single--v2 .tg-post-body h2::before { content: none; display: none; }
.tg-single--v2 .tg-post-body h3 { font-size: clamp(20px, 2.3vw, 24px); line-height: 1.3; font-weight: 600; color: var(--tg-charcoal); margin: 1.9em 0 .5em; scroll-margin-top: 90px; }
.tg-single--v2 .tg-post-body h4 { font-size: 18px; font-weight: 600; margin: 1.6em 0 .4em; }
.tg-single--v2 .tg-post-body a { color: var(--tg-main); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; font-weight: 500; }
.tg-single--v2 .tg-post-body a:hover { color: var(--tg-accent-dk); }
.tg-single--v2 .tg-post-body strong { color: var(--tg-charcoal); }

.tg-single--v2 .tg-post-body ul,
.tg-single--v2 .tg-post-body ol { margin: 0 0 1.5em; padding-left: 1.4em; }
.tg-single--v2 .tg-post-body li { margin: .45em 0; padding-left: .2em; }
.tg-single--v2 .tg-post-body li::marker { color: var(--tg-accent-dk); font-weight: 700; }

.tg-single--v2 .tg-post-body img { max-width: 100%; height: auto; border-radius: 16px; margin: 1.6em auto; display: block; }
.tg-single--v2 .tg-post-body figure { margin: 1.8em 0; }
.tg-single--v2 .tg-post-body figure img { margin: 0 auto; }
.tg-single--v2 .tg-post-body figcaption,
.tg-single--v2 .tg-post-body .wp-caption-text { margin-top: 10px; text-align: center; font-size: 14px; line-height: 1.5; color: var(--tg-muted); }

.tg-single--v2 .tg-post-body blockquote { margin: 1.8em 0; padding: 20px 24px; background: #f2f8f4; border: 0; border-left: 4px solid var(--tg-accent); border-radius: 0 14px 14px 0; font-size: 19px; line-height: 1.7; color: #1f3a2e; }
.tg-single--v2 .tg-post-body blockquote p:last-child { margin-bottom: 0; }

.tg-single--v2 .tg-post-body table { display: block; width: 100%; overflow-x: auto; border-collapse: collapse; margin: 1.8em 0; font-size: 16px; line-height: 1.55; }
.tg-single--v2 .tg-post-body th,
.tg-single--v2 .tg-post-body td { padding: 12px 14px; border: 1px solid #dfe8e2; text-align: left; vertical-align: top; }
.tg-single--v2 .tg-post-body th { background: #eef6f1; font-weight: 600; color: var(--tg-charcoal); }

.tg-single--v2 .tg-post-body iframe[src*="youtube"],
.tg-single--v2 .tg-post-body iframe[src*="youtu.be"],
.tg-single--v2 .tg-post-body iframe[src*="vimeo"],
.tg-single--v2 .tg-post-body video { display: block; width: 100%; max-width: 100%; height: auto; aspect-ratio: 16 / 9; border: 0; border-radius: 16px; margin: 1.8em 0; background: #000; }
.tg-single--v2 .tg-post-body .wp-block-embed__wrapper { position: relative; }
.tg-single--v2 .tg-post-body hr { border: 0; height: 1px; background: #dfe8e2; margin: 2.4em 0; }
.tg-single--v2 .tg-post-body code { background: #eef3f0; padding: 2px 6px; border-radius: 6px; font-size: .9em; }

.tg-single--v2 .tg-post-video { aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden; background: #000; margin: 0 0 32px; box-shadow: 0 12px 34px rgba(0, 0, 0, .18); }
.tg-single--v2 .tg-post-video iframe,
.tg-single--v2 .tg-post-video video { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- Khối chân bài ---------- */
.tg-single--v2 .tg-article-contact { margin: 44px 0 28px; padding: 26px 28px; border-radius: 20px; background: linear-gradient(150deg, var(--tg-dark), var(--tg-main)); color: #fff; box-shadow: 0 14px 36px rgba(13, 74, 59, .22); }
.tg-single--v2 .tg-article-contact h3 { margin: 0; font-size: 22px; color: #fff; }
.tg-single--v2 .tg-article-contact__tagline { margin: 2px 0 16px; color: var(--tg-gold-lt); font-style: italic; }
.tg-single--v2 .tg-article-contact__grid { grid-template-columns: 120px 1fr; gap: 12px 16px; font-size: 15px; }
.tg-single--v2 .tg-article-contact__grid dt { color: #a9d3ae; }
.tg-single--v2 .tg-article-contact__grid dd { color: #fff; }
.tg-single--v2 .tg-article-contact__grid a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.tg-single--v2 .tg-article-contact__grid a:hover { color: var(--tg-gold-lt); }
.tg-single--v2 .tg-sidebar-widget:has(> .custom-html-widget:empty) { display: none; }
.tg-single--v2 .tg-post-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 22px; }
.tg-single--v2 .tg-tag { padding: 6px 14px; border-radius: 999px; background: #eef3f0; color: var(--tg-charcoal); font-size: 13px; text-decoration: none; }
.tg-single--v2 .tg-tag:hover { background: var(--tg-main); color: #fff; }

.tg-single--v2 .tg-share-bar { display: flex; align-items: center; gap: 10px; padding: 16px 0; margin: 0 0 28px; border-top: 1px solid #e3ebe6; border-bottom: 1px solid #e3ebe6; }
.tg-single--v2 .tg-share-bar__label { font-weight: 600; font-size: 14px; margin-right: 4px; }
.tg-single--v2 .tg-share-btn { width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; border: 1px solid #d5e2da; background: #fff; color: var(--tg-charcoal); cursor: pointer; transition: var(--tg-trans); }
.tg-single--v2 .tg-share-btn:hover { background: var(--tg-main); color: #fff; border-color: var(--tg-main); }

.tg-single--v2 .tg-author-box { display: flex; gap: 16px; align-items: center; padding: 20px 22px; border-radius: 18px; background: #fff; border: 1px solid #e0e9e3; box-shadow: 0 6px 22px rgba(20, 60, 45, .06); margin-bottom: 28px; }
.tg-single--v2 .tg-author-box__avatar { width: 64px; height: 64px; border-radius: 50%; object-fit: contain; padding: 6px; background: #fff; border: 1px solid #dfe8e2; flex: none; }
.tg-single--v2 .tg-author-box__name { margin: 0 0 4px; font-weight: 700; font-size: 17px; }
.tg-single--v2 .tg-author-box__bio { margin: 0; color: var(--tg-muted); font-size: 15px; line-height: 1.55; }

.tg-single--v2 .tg-post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 0 0 32px; }
.tg-single--v2 .tg-post-nav > div { padding: 16px 18px; border-radius: 14px; border: 1px solid #e0e9e3; }
.tg-single--v2 .tg-post-nav__next { text-align: right; }
.tg-single--v2 .tg-post-nav__label { display: block; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--tg-muted); margin-bottom: 4px; }
.tg-single--v2 .tg-post-nav__title { color: var(--tg-charcoal); font-weight: 600; text-decoration: none; line-height: 1.4; }
.tg-single--v2 .tg-post-nav__title:hover { color: var(--tg-main); }
@media (max-width: 560px) { .tg-single--v2 .tg-post-nav { grid-template-columns: 1fr; } .tg-single--v2 .tg-post-nav__next { text-align: left; } }

/* ---------- Thanh bên ---------- */
.tg-single--v2 .tg-sidebar__sticky { display: flex; flex-direction: column; gap: 20px; }
.tg-single--v2 .tg-sidebar-widget,
.tg-single--v2 .svc-sb-widget { border-radius: 18px; background: #fff; border: 1px solid #e0e9e3; box-shadow: 0 6px 22px rgba(20, 60, 45, .05); padding: 20px 22px; }
.tg-single--v2 .tg-sidebar-widget__title,
.tg-single--v2 .svc-sb-widget__title { margin: 0 0 12px; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--tg-muted); }
.tg-single--v2 .tg-toc__list { margin: 0; padding: 0; list-style: none; max-height: 52vh; overflow: auto; }
.tg-single--v2 .tg-toc__item { margin: 0; }
.tg-single--v2 .tg-toc__link { display: block; padding: 7px 0 7px 14px; border-left: 2px solid #e3ebe6; font-size: 14px; line-height: 1.45; color: #44564d; text-decoration: none; }
.tg-single--v2 .tg-toc__item--h3 .tg-toc__link { padding-left: 28px; font-size: 13.5px; }
.tg-single--v2 .tg-toc__link:hover { color: var(--tg-main); }
.tg-single--v2 .tg-toc__link--active { border-left-color: var(--tg-accent); color: var(--tg-main); font-weight: 600; }
.tg-single--v2 .tg-sidebar-cta { background: linear-gradient(150deg, var(--tg-dark), var(--tg-main)); border: 0; color: #fff; }
.tg-single--v2 .tg-sidebar-cta__eyebrow { margin: 0 0 6px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--tg-gold-lt); }
.tg-single--v2 .tg-sidebar-cta__title { margin: 0 0 8px; font-size: 22px; line-height: 1.25; font-weight: 700; }
.tg-single--v2 .tg-sidebar-cta__desc { margin: 0 0 16px; font-size: 14px; opacity: .88; line-height: 1.55; }
@media (max-width: 1020px) { .tg-single--v2 .tg-sidebar__sticky { position: static !important; } .tg-single--v2 .tg-toc { display: none; } }

/* ---------- Bài cùng chủ đề + CTA ---------- */
.tg-single--v2 .tg-related-grid-section { background: #f4f8f5; padding: 56px 0; margin-top: 24px; }
.tg-single--v2 .tg-blog-card { border-radius: 18px; overflow: hidden; background: #fff; border: 1px solid #e0e9e3; transition: var(--tg-trans); }
.tg-single--v2 .tg-blog-card:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(20, 60, 45, .12); }
.tg-single--v2 .tg-card-title { font-size: 18px; line-height: 1.4; }

@media (max-width: 640px) {
  .tg-single--v2 .tg-post-body { font-size: 17px; line-height: 1.8; }
  .tg-ph__fig img { aspect-ratio: 16 / 10; border-radius: 16px; }
  .tg-ph__fig, .tg-ph__in { padding-left: 16px; padding-right: 16px; }
  .tg-single--v2 .tg-post-layout { padding-left: 16px; padding-right: 16px; }
}
@media (prefers-reduced-motion: reduce) { .tg-single--v2 * { transition: none !important; } }

/* Thành phần chuyển đổi từ shortcode cũ */
.tg-single--v2 .tg-post-body .tg-details { margin: 1em 0; border: 1px solid #dfe8e2; border-radius: 14px; padding: 4px 18px; background: #fafcfb; }
.tg-single--v2 .tg-post-body .tg-details > summary { cursor: pointer; font-weight: 600; padding: 12px 0; color: var(--tg-charcoal); }
.tg-single--v2 .tg-post-body .tg-details[open] > summary { color: var(--tg-main); border-bottom: 1px solid #e3ebe6; margin-bottom: 10px; }
.tg-single--v2 .tg-post-body a.tg-btn-inline { display: inline-block; padding: 12px 22px; border-radius: 12px; background: var(--tg-main); color: #fff; text-decoration: none; font-weight: 600; }
.tg-single--v2 .tg-post-body a.tg-btn-inline:hover { background: var(--tg-accent-dk); color: #fff; }

/* Màu chữ cũ (maroon/navy/xanh đậm) từ editor cũ làm bài khó đọc, đồng bộ về màu chữ chuẩn */
.tg-single--v2 .tg-post-body [style*="color: maroon"],
.tg-single--v2 .tg-post-body [style*="color: navy"],
.tg-single--v2 .tg-post-body [style*="color: green"],
.tg-single--v2 .tg-post-body [style*="color: brown"],
.tg-single--v2 .tg-post-body [style*="color: darkred"],
.tg-single--v2 .tg-post-body [style*="color: #800000"],
.tg-single--v2 .tg-post-body [style*="color: #000080"],
.tg-single--v2 .tg-post-body [style*="color: #008000"],
.tg-single--v2 .tg-post-body [style*="color:#800000"],
.tg-single--v2 .tg-post-body [style*="color:#000080"] { color: inherit !important; }
.tg-single--v2 .tg-post-body [style*="float: left"],
.tg-single--v2 .tg-post-body [style*="float:left"] { max-width: 100%; }
@media (max-width: 640px) {
  .tg-single--v2 .tg-post-body [style*="float: left"],
  .tg-single--v2 .tg-post-body [style*="float:left"],
  .tg-single--v2 .tg-post-body [style*="float: right"] { float: none !important; width: 100% !important; margin: 0 0 1em !important; }
}

/* Khối "Có thể bạn quan tâm" (liên kết nội bộ cuối bài) */
.tg-single--v2 .tg-post-body .tg-readmore { margin: 2.4em 0 0; padding: 20px 24px; border-radius: 16px; background: #f2f8f4; border: 1px solid #dcebe1; }
.tg-single--v2 .tg-post-body .tg-readmore h3 { margin: 0 0 10px; font-size: 18px; }
.tg-single--v2 .tg-post-body .tg-readmore ul { margin: 0 0 12px; }
.tg-single--v2 .tg-post-body .tg-readmore p { margin: 0; font-size: 16px; line-height: 1.7; }

/* Link trong nội dung: bỏ gạch chân, dùng màu xanh lá + đậm nhẹ; rê chuột nền xanh nhạt (tương phản 4.7:1 trên nền trắng) */
.tg-single--v2 .tg-post-body a:not(.tg-btn-inline):not(.tg-btn-cta),
.tg-single--v2 .tg-readmore a,
.tg-single--v2 .tg-post-body .tg-readmore a {
  color: #158546; text-decoration: none; font-weight: 600;
  border-radius: 4px; padding: 0 2px; margin: 0 -2px;
  transition: background-color .18s, color .18s;
}
.tg-single--v2 .tg-post-body a:not(.tg-btn-inline):not(.tg-btn-cta):hover,
.tg-single--v2 .tg-readmore a:hover { color: #0e6b37; background: rgba(46, 170, 100, .14); text-decoration: none; }
.tg-single--v2 .tg-post-body a:not(.tg-btn-inline):not(.tg-btn-cta):focus-visible { outline: 2px solid #158546; outline-offset: 2px; }
.tg-single--v2 .tg-post-body a img { border-radius: 16px; }
/* Link trong thẻ liên hệ (nền xanh đậm): xanh bạc hà sáng, không gạch chân */
.tg-single--v2 .tg-article-contact__grid a { color: #b6f3cf; text-decoration: none; font-weight: 600; }
.tg-single--v2 .tg-article-contact__grid a:hover { color: #fff; text-decoration: none; }
.tg-single--v2 .tg-post-tags a, .tg-single--v2 .tg-post-nav a { text-decoration: none; }

/* ===== Banner dịch vụ dựng bằng code (thay ảnh "Quan tâm") ===== */
.tg-promo { position: relative; border-radius: 22px; overflow: hidden; background: linear-gradient(160deg, #0d4a3b, #146653 70%); color: #fff; box-shadow: 0 16px 40px rgba(13, 74, 59, .26); transition: transform .3s, box-shadow .3s; }
.tg-promo:hover { transform: translateY(-4px); box-shadow: 0 24px 50px rgba(13, 74, 59, .34); }
.tg-promo__art { height: 150px; background: #eaf8ef; }
.tg-promo__art svg { display: block; width: 100%; height: 100%; }
.tg-promo__spray path { animation: tgSpray 1.6s linear infinite; }
.tg-promo__spray path:nth-child(2) { animation-delay: -.3s; }
.tg-promo__spray path:nth-child(3) { animation-delay: -.6s; }
.tg-promo__spray path:nth-child(4) { animation-delay: -.9s; }
.tg-promo__spray path:nth-child(5) { animation-delay: -1.2s; }
@keyframes tgSpray { to { stroke-dashoffset: -40; } }
.tg-promo__mist circle { animation: tgMist 2.4s ease-in-out infinite alternate; transform-box: fill-box; transform-origin: center; }
.tg-promo__mist circle:nth-child(even) { animation-delay: -1.2s; }
@keyframes tgMist { from { opacity: .25; transform: scale(.7); } to { opacity: .9; transform: scale(1.3); } }
.tg-promo__body { position: relative; padding: 20px 22px 22px; }
.tg-promo__body::before { content: ''; position: absolute; right: -50px; top: -50px; width: 170px; height: 170px; border-radius: 50%; background: radial-gradient(circle, rgba(226, 196, 122, .28), transparent 65%); pointer-events: none; }
.tg-promo__eyebrow { margin: 0 0 4px; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--tg-gold-lt); }
.tg-promo__title { margin: 0 0 14px; font-size: 24px; line-height: 1.2; font-weight: 700; color: #fff; }
.tg-promo__title em { font-style: normal; background: linear-gradient(90deg, #f3dc9f, #e2c47a); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tg-promo__list { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 9px; font-size: 14px; line-height: 1.45; }
.tg-promo__list li { display: flex; gap: 9px; align-items: flex-start; color: rgba(255, 255, 255, .92); }
.tg-promo__list svg { flex: none; margin-top: 2px; color: #7be0a6; }
.tg-promo__cta { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 13px 18px; border-radius: 12px; background: linear-gradient(135deg, #e2c47a, #c9a84c); color: var(--tg-charcoal); font-weight: 700; font-size: 15px; text-decoration: none; box-shadow: 0 10px 22px rgba(201, 168, 76, .35); transition: transform .2s, box-shadow .2s; }
.tg-promo__cta:hover { transform: translateY(-2px); box-shadow: 0 14px 28px rgba(201, 168, 76, .45); color: var(--tg-charcoal); }
.tg-promo__cta svg { transition: transform .2s; }
.tg-promo__cta:hover svg { transform: translateX(4px); }
.tg-promo__phone { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 12px; font-weight: 600; font-size: 15px; color: #b6f3cf; text-decoration: none; }
.tg-promo__phone:hover { color: #fff; }
@media (prefers-reduced-motion: reduce) { .tg-promo, .tg-promo * { animation: none !important; transition: none !important; } }

/* ===== Mobile: căn lề, thẻ liên hệ không tràn ===== */
@media (max-width: 640px) {
  .tg-single--v2 > .tg-container { padding-left: 0; padding-right: 0; }
  .tg-single--v2 .tg-article-contact { padding: 22px 20px; }
  .tg-single--v2 .tg-article-contact__grid { grid-template-columns: 1fr; gap: 2px 0; }
  .tg-single--v2 .tg-article-contact__grid dt { margin-top: 10px; }
  .tg-single--v2 .tg-article-contact__grid dd { margin: 0; overflow-wrap: anywhere; }
  .tg-single--v2 .tg-author-box { flex-direction: column; text-align: center; }
}

/* Thẻ "Bài viết cùng chủ đề": ảnh bấm được toàn khung, khoảng cách gọn hơn */
.tg-single--v2 .tg-blog-card__img-link { display: block; width: 100%; height: 100%; }
.tg-single--v2 .tg-blog-card__img { height: 200px; }
.tg-single--v2 .tg-blog-card__body { padding: 16px 20px 20px; gap: 8px; }
.tg-single--v2 .tg-card-cat { position: absolute; left: 12px; top: 12px; z-index: 2; }

/* ===== Định dạng bài cũ: danh sách gạch đầu dòng, tiêu đề phụ, khung "Xem thêm" ===== */
.tg-single--v2 .tg-post-body ul.tg-dashlist { list-style: none; padding: 0; margin: 0 0 1.5em; display: grid; gap: 10px; }
.tg-single--v2 .tg-post-body ul.tg-dashlist li { position: relative; padding: 12px 16px 12px 46px; margin: 0; border-radius: 14px; background: #f5faf6; border: 1px solid #e0ece4; line-height: 1.7; }
.tg-single--v2 .tg-post-body ul.tg-dashlist li::before { content: ''; position: absolute; left: 16px; top: 17px; width: 18px; height: 18px; border-radius: 50%; background: #5aaa2a url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 12px no-repeat; }
.tg-single--v2 .tg-post-body ul.tg-dashlist li::marker { content: ''; }
.tg-single--v2 .tg-post-body h3.tg-pseudo-h { font-size: clamp(19px, 2.2vw, 23px); line-height: 1.3; font-weight: 700; color: var(--tg-main); margin: 1.9em 0 .5em; padding-left: 14px; border-left: 4px solid var(--tg-accent); scroll-margin-top: 90px; }
.tg-single--v2 .tg-post-body p.tg-seemore { margin: 1.6em 0; padding: 14px 18px; border-radius: 14px; background: #fff8e6; border: 1px solid #f0dfae; border-left: 4px solid #c9a84c; font-size: 16px; }

/* ===== Làm mịn bài viết: đoạn mở đầu, ảnh, bảng, mục link sản phẩm ===== */
.tg-single--v2 .tg-post-body { font-weight: 400; }
.tg-single--v2 .tg-post-body strong, .tg-single--v2 .tg-post-body b { font-weight: 600; color: var(--tg-charcoal); }
.tg-single--v2 .tg-post-body > p:first-of-type { font-size: 1.07em; color: #33463d; }
.tg-single--v2 .tg-post-body img { max-width: min(100%, 680px); box-shadow: 0 10px 30px rgba(20, 60, 45, .12); }
.tg-single--v2 .tg-post-body figure { text-align: center; }
.tg-single--v2 .tg-post-body figure img { margin-inline: auto; }
.tg-single--v2 .tg-post-body li > strong:first-child { color: var(--tg-main); }
.tg-single--v2 .tg-post-body li.tg-li-product { list-style: none; margin: 1em 0 1.4em -1.4em; padding: 12px 16px; border-radius: 14px; background: #f3faf5; border: 1px solid #cfe5d6; }
.tg-single--v2 .tg-post-body li.tg-li-product::marker { content: ''; }
.tg-single--v2 .tg-post-body li.tg-li-product a { font-weight: 700; }
.tg-single--v2 .tg-post-body table { font-size: 15px; border: 1px solid #dfe8e2; border-radius: 14px; }
.tg-single--v2 .tg-post-body th { white-space: nowrap; font-size: 14px; letter-spacing: .02em; }
.tg-single--v2 .tg-post-body td, .tg-single--v2 .tg-post-body th { padding: 12px 14px; }
.tg-single--v2 .tg-post-body td:first-child { font-weight: 600; white-space: nowrap; }

/* ===== Nhịp bài viết: ảnh dọc không phình quá khung, các mục cách nhau rõ ràng, khoảng cách đoạn luôn đều ===== */
.tg-single--v2 .tg-post-body img { width: auto; height: auto; max-height: 520px; }
.tg-single--v2 .tg-post-body figure img, .tg-single--v2 .tg-post-body p > img { margin-inline: auto; }
.tg-single--v2 .tg-post-body p { margin-block: 0 1.3em !important; line-height: 1.85 !important; }
.tg-single--v2 .tg-post-body li { line-height: 1.8 !important; }
.tg-single--v2 .tg-post-body h2 { margin-top: 2.5em; padding-top: 1.1em; border-top: 1px solid #e3ebe6; }
.tg-single--v2 .tg-post-body > h2:first-child, .tg-single--v2 .tg-post-body > p:first-child + h2 { border-top: 0; padding-top: 0; }
@media (max-width: 640px) { .tg-single--v2 .tg-post-body img { max-height: 380px; } }

/* ===== Đầu bài: ảnh đại diện nhỏ canh trái, cùng mép với tiêu đề và cột chữ (không lơ lửng ở giữa) ===== */
.tg-ph__fig--sm img { margin: 0 !important; max-width: min(100%, var(--fig-w), 760px); aspect-ratio: auto; }
.tg-ph__fig--sm { text-align: left; }
.tg-ph__fig img { margin: 0; }
