/* =============================================
   VIEASY CARE — Giao diện khu vực blog
   Trang bài viết đơn, trang tin tức, trang chuyên mục
============================================= */

/* ── Dải chuyên mục ── */
.vcs-cat-bar {
  border-bottom: 1px solid var(--border);
  background: var(--white);
  position: sticky; top: var(--header-h); z-index: 20;
}
.vcs-cat-bar__inner {
  display: flex; gap: 10px; align-items: center;
  flex-wrap: wrap; justify-content: center;
  padding-top: 14px; padding-bottom: 14px;
  scrollbar-width: none;
}
/* Man hinh hep: cuon ngang thay vi xuong dong, chua them dem phai de
   chip cuoi khong bi dinh sat mep (loi cu: chip dang chon bi cat mat chu). */
@media (max-width: 900px) {
  .vcs-cat-bar__inner {
    flex-wrap: nowrap; justify-content: flex-start;
    overflow-x: auto; padding-right: 20px;
  }
}
.vcs-cat-bar__inner::-webkit-scrollbar { display: none; }
.vcs-cat-chip {
  flex: 0 0 auto;
  padding: 8px 16px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--white);
  color: var(--ink-soft); font-size: 14px; font-weight: 500;
  text-decoration: none; white-space: nowrap;
  transition: all .2s var(--easing);
}
.vcs-cat-chip:hover { border-color: var(--teal); color: var(--teal); }
.vcs-cat-chip.is-active { background: var(--teal); border-color: var(--teal); color: var(--white); }

/* ── Hero bài viết ── */
.vcs-post-hero {
  background: linear-gradient(180deg, var(--cream) 0%, var(--white) 100%);
  padding: clamp(32px, 5vw, 56px) 0 clamp(24px, 3vw, 36px);
  border-bottom: 1px solid rgba(221, 214, 196, .5);
}
.vcs-post-hero__inner { max-width: 860px; }
.vcs-crumb {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
  font-size: 13.5px; color: var(--ink-muted); margin-bottom: 18px;
}
.vcs-crumb a { color: var(--ink-muted); text-decoration: none; }
.vcs-crumb a:hover { color: var(--teal); text-decoration: underline; }
.vcs-crumb span { opacity: .6; }

.vcs-post-hero__title {
  font-size: clamp(28px, 4.4vw, 46px);
  line-height: 1.2; font-weight: 700; letter-spacing: 0;
  color: var(--ink); margin: 10px 0 0;
}
.vcs-post-hero__sub {
  font-size: clamp(16px, 1.6vw, 18.5px); line-height: 1.65;
  color: var(--ink-soft); margin-top: 16px; max-width: 68ch;
}
.vcs-post-meta {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
  margin-top: 20px; font-size: 14px; color: var(--ink-muted);
}
.vcs-post-meta span { display: inline-flex; align-items: center; gap: 6px; }
.vcs-post-meta svg { opacity: .7; }

/* ── Ảnh bìa ── */
.vcs-post-cover {
  margin: clamp(24px, 3vw, 36px) auto 0;
  max-width: 940px; border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-md);
}
.vcs-post-cover img { width: 100%; height: auto; display: block; }

/* ── Bố cục 2 cột ── */
.vcs-post-layout {
  display: grid; grid-template-columns: minmax(0, 1fr) 300px;
  gap: clamp(32px, 4vw, 56px);
  padding-top: clamp(36px, 5vw, 60px);
  padding-bottom: clamp(40px, 6vw, 72px);
  align-items: start;
}
.vcs-post-body { min-width: 0; }
.vcs-post-side { position: sticky; top: calc(var(--header-h) + 76px); display: grid; gap: 20px; }

/* ── Mục lục ── */
.vcs-toc {
  background: var(--cream); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px 22px;
}
.vcs-toc__title {
  font-size: 13px; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: var(--teal); margin-bottom: 12px;
}
.vcs-toc__list { list-style: none; counter-reset: toc; display: grid; gap: 9px; }
.vcs-toc__list li { counter-increment: toc; display: flex; gap: 10px; font-size: 14.5px; line-height: 1.5; }
.vcs-toc__list li::before {
  content: counter(toc); flex: 0 0 22px; height: 22px;
  display: grid; place-items: center; border-radius: 6px;
  background: var(--white); color: var(--teal);
  font-size: 11.5px; font-weight: 700; margin-top: 1px;
}
.vcs-toc__list a { color: var(--ink-soft); text-decoration: none; }
.vcs-toc__list a:hover { color: var(--teal); text-decoration: underline; }
.vcs-toc--mobile { display: none; margin-bottom: 28px; }

/* ── Thân bài ── */
.vcs-article { font-size: 17px; line-height: 1.78; color: var(--ink-soft); max-width: 74ch; }
.vcs-article > *:first-child { margin-top: 0; }

.vcs-article h2 {
  font-size: clamp(21px, 2.5vw, 27px); line-height: 1.3; font-weight: 700;
  color: var(--ink); margin: 2.2em 0 .7em; padding-left: 16px;
  border-left: 4px solid var(--teal); scroll-margin-top: calc(var(--header-h) + 90px);
}
.vcs-article h3 {
  font-size: clamp(18px, 2vw, 21px); line-height: 1.4; font-weight: 600;
  color: var(--ink); margin: 1.8em 0 .55em;
  scroll-margin-top: calc(var(--header-h) + 90px);
}
.vcs-article p { margin: 0 0 1.15em; }
.vcs-article a { color: var(--teal); text-decoration: underline; text-underline-offset: 3px; }
.vcs-article a:hover { color: var(--teal-dark); }
.vcs-article strong { color: var(--ink); font-weight: 600; }

.vcs-article ul, .vcs-article ol { margin: 0 0 1.3em; padding-left: 0; list-style: none; display: grid; gap: 10px; }
.vcs-article ul li { position: relative; padding-left: 30px; }
.vcs-article ul li::before {
  content: ''; position: absolute; left: 4px; top: .62em;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--teal-mid); box-shadow: 0 0 0 4px rgba(78,155,155,.16);
}
.vcs-article ol { counter-reset: vcsol; }
.vcs-article ol li { position: relative; padding-left: 38px; counter-increment: vcsol; }
.vcs-article ol li::before {
  content: counter(vcsol); position: absolute; left: 0; top: .1em;
  width: 26px; height: 26px; display: grid; place-items: center;
  border-radius: 8px; background: var(--teal-light); color: var(--teal-dark);
  font-size: 13px; font-weight: 700;
}
.vcs-article li > ul, .vcs-article li > ol { margin: 10px 0 0; }

/* Bảng — trước đây bảng do AI viết ra không có viền, nhìn rất xấu */
.vcs-article table {
  width: 100%; border-collapse: separate; border-spacing: 0;
  margin: 1.6em 0; font-size: 15.5px;
  border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow);
}
.vcs-article thead th, .vcs-article tr:first-child th {
  background: var(--teal); color: var(--white);
  font-weight: 600; font-size: 15px; text-align: left;
  padding: 13px 16px; border: none;
}
.vcs-article td, .vcs-article th {
  padding: 13px 16px; border-top: 1px solid var(--border);
  vertical-align: top; line-height: 1.6;
}
.vcs-article tbody tr:nth-child(even) { background: rgba(246,241,232,.55); }
.vcs-article tbody tr:hover { background: var(--teal-light); }
.vcs-article tbody td:first-child { font-weight: 600; color: var(--ink); white-space: normal; }
.vcs-article .vcs-table-scroll { overflow-x: auto; margin: 1.6em 0; }
.vcs-article .vcs-table-scroll table { margin: 0; min-width: 560px; }

.vcs-article blockquote {
  margin: 1.6em 0; padding: 18px 22px;
  background: var(--cream); border-left: 4px solid var(--gold);
  border-radius: 0 var(--radius) var(--radius) 0; color: var(--ink);
}
.vcs-article blockquote p:last-child { margin-bottom: 0; }

.vcs-article__figure { margin: 1.9em 0; }
.vcs-article__figure img {
  width: 100%; height: auto; display: block;
  border-radius: var(--radius); box-shadow: var(--shadow);
}
.vcs-article__figure figcaption {
  margin-top: 10px; font-size: 13.5px; color: var(--ink-muted);
  text-align: center; font-style: italic;
}

/* ── Khối kêu gọi cuối bài ── */
.vcs-post-cta {
  margin-top: clamp(36px, 5vw, 52px);
  background: linear-gradient(135deg, var(--teal-dark) 0%, var(--teal) 100%);
  color: var(--white); border-radius: var(--radius-lg);
  padding: clamp(26px, 4vw, 38px);
  display: flex; flex-wrap: wrap; gap: 24px;
  align-items: center; justify-content: space-between;
}
.vcs-post-cta h2 {
  font-size: clamp(20px, 2.4vw, 25px); font-weight: 700;
  color: var(--white); margin: 0 0 8px; border: none; padding: 0;
}
.vcs-post-cta p { color: rgba(255,255,255,.9); margin: 0; font-size: 15.5px; line-height: 1.65; max-width: 52ch; }
.vcs-post-cta__act { display: flex; flex-wrap: wrap; gap: 12px; }
.vcs-post-cta .vcs-btn--primary { background: var(--white); color: var(--teal-dark); border-color: var(--white); }
.vcs-post-cta .vcs-btn--primary:hover { background: var(--cream); color: var(--teal-dark); }
.vcs-post-cta .vcs-btn--ghost { border-color: rgba(255,255,255,.55); color: var(--white); background: transparent; }
.vcs-post-cta .vcs-btn--ghost:hover { background: rgba(255,255,255,.14); }

/* ── Thẻ cột phụ ── */
.vcs-side-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow);
}
.vcs-side-card__eyebrow {
  font-size: 12px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--teal); margin-bottom: 6px;
}
.vcs-side-card__title { font-size: 18px; font-weight: 700; color: var(--ink); margin-bottom: 8px; line-height: 1.35; }
.vcs-side-card__desc { font-size: 14.5px; line-height: 1.6; color: var(--ink-soft); margin-bottom: 16px; }
.vcs-side-card__link {
  display: inline-block; margin-top: 12px; font-size: 14.5px;
  font-weight: 500; color: var(--teal); text-decoration: none;
}
.vcs-side-card__link:hover { text-decoration: underline; }
.vcs-btn--block { display: flex; width: 100%; justify-content: center; }

/* ── Bài liên quan ── */
.vcs-post-related { background: var(--cream); }

/* ── Màn hình nhỏ ── */
@media (max-width: 1000px) {
  .vcs-post-layout { grid-template-columns: 1fr; }
  .vcs-post-side { position: static; }
  .vcs-toc--desktop { display: none; }
  .vcs-toc--mobile { display: block; }
  .vcs-side-card { display: none; }
}
@media (max-width: 760px) {
  .vcs-article { font-size: 16.5px; }
  .vcs-post-cta { flex-direction: column; align-items: flex-start; }
  .vcs-post-cta__act { width: 100%; }
  .vcs-post-cta__act .vcs-btn { flex: 1 1 auto; justify-content: center; }
  .vcs-cat-bar { position: static; }
}

/* Khối dẫn từ bài blog khu vực sang trang khu vực tương ứng (10/09/2026) */
.vcs-post-inline-cta {
  margin-top: clamp(28px, 4vw, 40px);
  padding: 18px 22px;
  background: var(--cream);
  border-left: 4px solid var(--teal);
  border-radius: 0 var(--radius-md, 10px) var(--radius-md, 10px) 0;
}
.vcs-post-inline-cta p { margin: 0; font-size: 15.5px; line-height: 1.7; }
.vcs-post-inline-cta a { color: var(--teal-dark); font-weight: 600; text-decoration: underline; }

/* Ghi nguồn ảnh bìa (giấy phép Creative Commons) */
.vcs-post-cover__credit { margin-top: 6px; font-size: 12px; color: var(--ink-muted); text-align: right; }
.vcs-post-cover__credit a { color: inherit; text-decoration: underline; }

/* ── Hộp tóm tắt đầu bài khu vực (16/09/2026) ── */
.vcs-post-tomtat {
  margin: 0 0 28px;
  padding: 20px 22px;
  background: #F6F3EE;
  border: 1px solid var(--border, #DFD9D0);
  border-left: 4px solid var(--teal, #1A6E72);
  border-radius: 6px;
}
.vcs-post-tomtat h2 { margin: 0 0 12px; font-size: 18px; line-height: 1.35; }
.vcs-post-tomtat ul { margin: 0; padding-left: 20px; }
.vcs-post-tomtat li { margin: 6px 0; font-size: 15px; line-height: 1.6; }
