
/* 1. Thanh tiến độ đọc bài viết (mỏng, mượt, không che nội dung) */
#vs-read-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3.5px;
  background: linear-gradient(90deg, #dc2626 0%, #f59e0b 55%, #059669 100%);
  z-index: 999999;
  pointer-events: none;
  transition: width 80ms linear;
}
body.admin-bar #vs-read-progress { top: 32px; }

/* 2. Tinh chỉnh nút CTA #3 trong Hero 2026 & nút nổi CBT trên Desktop */
#vs-hero-2026 a[href="/dang-ky/"],
#vs-hero-2026 a[href*="/dang-ky/"] {
  background: #dc2626 !important;
  border: 1.5px solid #fca5a5 !important;
  color: #ffffff !important;
  box-shadow: 0 8px 20px rgba(220, 38, 38, 0.35) !important;
}
#vs-hero-2026 a[href="/dang-ky/"]:hover {
  background: #b91c1c !important;
}
@media (min-width: 850px) {
  #vscbt-float-wrap, .vscbt-float-wrap {
    bottom: 16px !important;
    left: 14px !important;
    transform: scale(0.88);
    transform-origin: bottom left;
    z-index: 9990 !important;
  }
  /* Nâng nút nổi CBT lên trên thanh dính đáy Zalo/Hotline để tuyệt đối không đè nhau ở iPad 1024px & Laptop */
  body.vipstudy-has-sticky-bar #vscbt-float-wrap,
  body.vipstudy-has-sticky-bar .vscbt-float-wrap {
    bottom: 70px !important;
  }
  /* Trang chủ đã có nút xanh lớn "Vào Phòng Thi CBT 2027" ngay trong Hero & Menu -> ẩn pill nổi góc trái để không che địa chỉ 3 cơ sở */
  body.home #vscbt-float-wrap,
  body.home .vscbt-float-wrap {
    display: none !important;
  }
}

/* 3. Auto TOC (Mục lục tự động cho bài viết dài) */
.vs-auto-toc {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-left: 4px solid #059669;
  border-radius: 12px;
  padding: 14px 18px;
  margin: 18px 0 22px;
  font-family: system-ui, -apple-system, sans-serif;
}
.vs-auto-toc summary {
  cursor: pointer;
  font-weight: 800;
  font-size: 15px;
  color: #0f172a;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.vs-auto-toc summary::-webkit-details-marker { display: none; }
.vs-auto-toc ol {
  margin: 10px 0 0;
  padding-left: 20px;
  font-size: 14.2px;
  line-height: 1.75;
}
.vs-auto-toc a {
  color: #1e3a8a;
  text-decoration: none;
  font-weight: 600;
}
.vs-auto-toc a:hover { color: #dc2626; text-decoration: underline; }

/* 4. Share bar & Next Action + Related Posts cuối bài */
.vs-post-retention-box {
  margin: 28px 0 16px;
  padding: 20px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  font-family: system-ui, -apple-system, sans-serif;
}
.vs-share-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 14px;
  margin-bottom: 16px;
  border-bottom: 1px dashed #cbd5e1;
}
.vs-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 13px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none !important;
  cursor: pointer;
  border: 1px solid #cbd5e1;
  background: #fff;
  color: #1e293b !important;
  margin: 0;
}
.vs-share-btn:hover { background: #f1f5f9; }
.vs-share-btn-zalo { background: #0068ff; color: #fff !important; border-color: #0068ff; }
.vs-share-btn-zalo:hover { background: #0052cc; }
.vs-practice-banner {
  background: linear-gradient(135deg, #07162b 0%, #0f294a 60%, #065f46 100%);
  color: #fff;
  border-radius: 12px;
  padding: 16px 18px;
  margin-bottom: 18px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.vs-related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
@media (max-width: 760px) { .vs-related-grid { grid-template-columns: 1fr; } }
.vs-rel-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none !important;
  transition: transform .16s, box-shadow .16s;
}
.vs-rel-card:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(15, 23, 42, .08); }
.vs-rel-card img { width: 100%; height: 130px; object-fit: cover; display: block; }
.vs-rel-card-body { padding: 11px 12px; }
.vs-rel-card-title { font-size: 13.8px; font-weight: 800; color: #0f172a; line-height: 1.4; margin: 0 0 6px; }
.vs-rel-card-meta { font-size: 12px; color: #059669; font-weight: 700; }

/* 5. Công cụ Chọn Lộ Trình 30 Giây (#vs-pathfinder-30s) */
#vs-pathfinder-30s {
  max-width: 1180px;
  margin: 22px auto 12px;
  padding: 22px 24px;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-top: 4px solid #059669;
  border-radius: 16px;
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.06);
  font-family: system-ui, -apple-system, sans-serif;
}
.vs-pf-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}
.vs-pf-row { margin-bottom: 12px; }
.vs-pf-lbl { font-size: 13px; font-weight: 800; color: #475569; margin-bottom: 6px; text-transform: uppercase; letter-spacing: .03em; }
.vs-pf-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.vs-pf-pill {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1.5px solid #cbd5e1;
  background: #f8fafc;
  color: #1e293b;
  font-weight: 700;
  font-size: 13.5px;
  cursor: pointer;
  margin: 0;
  transition: all .15s;
}
.vs-pf-pill:hover { border-color: #059669; color: #065f46; }
.vs-pf-pill.is-active {
  background: #0f294a;
  color: #ffffff;
  border-color: #0f294a;
  box-shadow: 0 4px 12px rgba(15, 41, 74, 0.22);
}
.vs-pf-out {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px dashed #cbd5e1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
@media (max-width: 820px) {
  #vs-pathfinder-30s { padding: 16px 14px; margin: 14px 10px; }
  .vs-pf-out { grid-template-columns: 1fr; }
}
.vs-pf-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 14px 15px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.vs-pf-card h4 { margin: 0 0 6px; font-size: 15px; font-weight: 800; color: #0f172a; line-height: 1.35; }
.vs-pf-card p { margin: 0 0 12px; font-size: 13.3px; color: #475569; line-height: 1.55; }
.vs-pf-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 13px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none !important;
  color: #fff !important;
}
