/* TBH Programs Grid
   Đổi màu ở đây (hoặc ghi đè trong Customizer > Additional CSS bằng cách gán lại các biến --tbh-*). */
.tbhp {
  --tbh-ink: #17233b;
  --tbh-muted: #5a6883;
  --tbh-line: #dce3ea;
  --tbh-soft: #f4f7f9;
  --tbh-card: #ffffff;
  --tbh-brand: #0e7c86;
  --tbh-brand-dark: #0a5a62;
  --tbh-accent: #ffc845;
  --tbh-new: #e8553d;
  --tbh-radius: 14px;
  --tbh-gap: 24px;

  color: var(--tbh-ink);
  font: inherit;
  line-height: 1.5;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 16px;
  box-sizing: border-box;
}
.tbhp *,
.tbhp *::before,
.tbhp *::after { box-sizing: border-box; }

.tbhp .screen-reader-text {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- Top bar ---------- */
.tbhp__top {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px;
  padding: 14px 0; margin-bottom: 20px;
  border-bottom: 1px solid var(--tbh-line);
}
.tbhp__count { margin: 0; color: var(--tbh-muted); flex: 1 1 auto; }
.tbhp__count strong { color: var(--tbh-ink); }
.tbhp__sort { display: inline-flex; align-items: center; gap: 8px; color: var(--tbh-muted); font-size: .95em; }
.tbhp__sort select {
  font: inherit; color: var(--tbh-ink); background: var(--tbh-card);
  border: 1px solid var(--tbh-line); border-radius: 10px; padding: 8px 32px 8px 12px;
}
.tbhp__toggle {
  display: none; align-items: center; gap: 8px; cursor: pointer;
  font: inherit; font-weight: 600; color: var(--tbh-ink);
  background: var(--tbh-card); border: 1px solid var(--tbh-line); border-radius: 10px; padding: 9px 14px;
}
.tbhp__badge {
  display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px;
  border-radius: 999px; background: var(--tbh-brand); color: #fff; font-size: 12px; font-weight: 700;
}

/* ---------- Layout ---------- */
.tbhp__layout { display: block; }
.tbhp__layout.has-panel { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 32px; align-items: start; }

/* ---------- Filter panel ---------- */
.tbhp__panel {
  background: var(--tbh-card); border: 1px solid var(--tbh-line); border-radius: var(--tbh-radius);
  padding: 8px 18px 16px; position: sticky; top: 24px;
}
.tbhp__group { border-bottom: 1px solid var(--tbh-line); padding: 12px 0; }
.tbhp__group:last-of-type { border-bottom: 0; }
.tbhp__group summary {
  cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; align-items: center;
}
.tbhp__group summary::-webkit-details-marker { display: none; }
.tbhp__group summary::after { content: "+"; font-weight: 400; color: var(--tbh-muted); font-size: 1.2em; line-height: 1; }
.tbhp__group[open] summary::after { content: "\2212"; }
.tbhp__group ul { list-style: none; margin: 10px 0 0; padding: 0; max-height: 260px; overflow: auto; }
.tbhp__group li { margin: 0; padding: 0; }
.tbhp__group label { display: flex; align-items: center; gap: 10px; padding: 6px 0; cursor: pointer; }
.tbhp__group input[type="checkbox"] { width: 18px; height: 18px; margin: 0; accent-color: var(--tbh-brand); flex: none; }
.tbhp__clear {
  display: inline-block; margin-top: 8px; color: var(--tbh-brand-dark); font-weight: 600; text-decoration: underline;
}
.tbhp__apply {
  width: 100%; margin-top: 12px; padding: 10px; font: inherit; font-weight: 700; cursor: pointer;
  border: 0; border-radius: 10px; background: var(--tbh-brand); color: #fff;
}

/* ---------- Active filter chips ---------- */
.tbhp__chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; padding: 0; }
.tbhp__chips li { margin: 0; }
.tbhp__chips a {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px;
  background: var(--tbh-soft); border: 1px solid var(--tbh-line); color: var(--tbh-ink); text-decoration: none; font-size: .92em;
}
.tbhp__chips a:hover { border-color: var(--tbh-brand); color: var(--tbh-brand-dark); }

/* ---------- Grid ---------- */
.tbhp__grid {
  display: grid; gap: var(--tbh-gap);
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}

/* ---------- Card ---------- */
.tbhp-card {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  background: var(--tbh-card); border: 1px solid var(--tbh-line); border-radius: var(--tbh-radius);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.tbhp-card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(23, 35, 59, .12); border-color: #c5d0db; }
.tbhp-card:focus-within { outline: 3px solid var(--tbh-accent); outline-offset: 2px; }

.tbhp-card__media { position: relative; aspect-ratio: 4 / 3; background: var(--tbh-soft); overflow: hidden; }
.tbhp-card__img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.tbhp-card:hover .tbhp-card__img { transform: scale(1.04); }
.tbhp-card__placeholder {
  display: block; width: 100%; height: 100%;
  background: repeating-linear-gradient(135deg, var(--tbh-soft) 0 14px, #eaf0f4 14px 28px);
}
.tbhp-card__new {
  position: absolute; top: 12px; right: 12px; padding: 4px 10px; border-radius: 999px;
  background: var(--tbh-new); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .02em;
}
.tbhp-card__dest {
  position: absolute; left: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 10px 4px 8px; border-radius: 999px; background: rgba(255, 255, 255, .94);
  color: var(--tbh-ink); font-size: 13px; font-weight: 600;
}
.tbhp-card__dest svg { color: var(--tbh-brand); }

.tbhp-card__body { display: flex; flex-direction: column; gap: 8px; padding: 16px 18px 18px; flex: 1; }
.tbhp-card__title { margin: 0; font-size: 1.12em; line-height: 1.3; }
.tbhp-card__title a { color: var(--tbh-ink); text-decoration: none; }
.tbhp-card__title a::after { content: ""; position: absolute; inset: 0; } /* whole card is clickable */
.tbhp-card__title a:hover { color: var(--tbh-brand-dark); }
.tbhp-card__tagline { margin: 0; color: var(--tbh-muted); font-size: .94em; }
.tbhp-card__meta {
  list-style: none; display: flex; flex-wrap: wrap; gap: 6px 16px; margin: auto 0 0; padding: 12px 0 0;
  border-top: 2px dashed var(--tbh-line); color: var(--tbh-ink); font-size: .9em;
}
.tbhp-card__meta li { display: inline-flex; align-items: center; gap: 6px; margin: 0; padding: 0; }
.tbhp-card__meta svg { color: var(--tbh-brand); }

/* ---------- Empty ---------- */
.tbhp__empty {
  padding: 40px 24px; text-align: center; background: var(--tbh-soft);
  border: 1px dashed var(--tbh-line); border-radius: var(--tbh-radius);
}
.tbhp__empty p { margin: 0 0 6px; }
.tbhp__empty a { color: var(--tbh-brand-dark); font-weight: 600; }

/* ---------- Pagination ---------- */
.tbhp__pagination { margin-top: 36px; }
.tbhp__pagination ul { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0; padding: 0; }
.tbhp__pagination li { margin: 0; padding: 0; }
.tbhp__pg {
  display: inline-flex; align-items: center; justify-content: center; min-width: 42px; height: 42px; padding: 0 14px;
  border-radius: 999px; border: 1px solid var(--tbh-line); background: var(--tbh-card);
  color: var(--tbh-ink); text-decoration: none; font-weight: 600;
}
a.tbhp__pg:hover { border-color: var(--tbh-brand); color: var(--tbh-brand-dark); }
.tbhp__pg.is-current { background: var(--tbh-brand); border-color: var(--tbh-brand); color: #fff; }
.tbhp__pg--dots { border-color: transparent; background: transparent; }

/* ---------- Loading ---------- */
.tbhp.is-loading .tbhp__results { opacity: .5; pointer-events: none; transition: opacity .2s; }

/* ---------- Tablet / mobile ---------- */
@media (max-width: 900px) {
  .tbhp__layout.has-panel { grid-template-columns: 1fr; gap: 20px; }
  .tbhp__panel { position: static; }

  /* Bảng lọc thu gọn trên điện thoại (chỉ khi JS chạy được) */
  .tbhp.is-js .tbhp__toggle { display: inline-flex; }
  .tbhp.is-js .tbhp__panel { display: none; }
  .tbhp.is-js.is-open .tbhp__panel { display: block; }
  .tbhp__count { order: 3; flex-basis: 100%; }
}
@media (max-width: 520px) {
  .tbhp__grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .tbhp-card, .tbhp-card__img { transition: none; }
  .tbhp-card:hover { transform: none; }
  .tbhp-card:hover .tbhp-card__img { transform: none; }
}

/* =====================================================================
   Trang chi tiết chương trình
   ===================================================================== */
.tbhp-single { max-width: none; padding: 0; margin: 0 0 24px; }
.tbhp-single h2 { margin: 0 0 16px; font-size: 1.6em; line-height: 1.25; color: var(--tbh-ink); }
.tbhp-single h3 { color: var(--tbh-ink); }
.tbhp-section { margin: 48px 0; }

/* Nút */
.tbhp-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 24px;
  border-radius: 999px; background: var(--tbh-brand); color: #fff; font-weight: 700; text-decoration: none;
  border: 2px solid var(--tbh-brand); transition: background .2s, color .2s, transform .2s; white-space: nowrap;
}
.tbhp-btn:hover { background: var(--tbh-brand-dark); border-color: var(--tbh-brand-dark); color: #fff; }
.tbhp-btn--light { background: var(--tbh-accent); border-color: var(--tbh-accent); color: var(--tbh-ink); }
.tbhp-btn--light:hover { background: #ffd66e; border-color: #ffd66e; color: var(--tbh-ink); }
.tbhp-btn--ghost { background: transparent; border-color: rgba(255, 255, 255, .7); color: #fff; }
.tbhp-btn--ghost:hover { background: rgba(255, 255, 255, .12); border-color: #fff; color: #fff; }

/* Thanh thông tin nhanh */
.tbhp-facts {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 28px;
  padding: 20px 24px; margin: 0 0 8px; background: var(--tbh-soft);
  border: 1px solid var(--tbh-line); border-radius: var(--tbh-radius);
}
.tbhp-facts__list { display: flex; flex-wrap: wrap; gap: 16px 36px; margin: 0; padding: 0; flex: 1 1 auto; }
.tbhp-facts__item { margin: 0; }
.tbhp-facts dt { margin: 0 0 2px; font-size: .82em; color: var(--tbh-muted); }
.tbhp-facts dd { margin: 0; font-weight: 700; color: var(--tbh-ink); }

/* Điểm nổi bật */
.tbhp-checks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px 28px; }
.tbhp-checks li { display: flex; gap: 12px; align-items: flex-start; margin: 0; padding: 0; }
.tbhp-checks__icon {
  flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  background: rgba(14, 124, 134, .12);
  background: color-mix(in srgb, var(--tbh-brand) 14%, white);
  color: var(--tbh-brand-dark);
}
.tbhp-checks__icon svg { width: 16px; height: 16px; }

/* Lịch trình */
.tbhp-steps { list-style: none; margin: 0; padding: 0; position: relative; }
.tbhp-steps li { display: flex; align-items: flex-start; gap: 14px; margin: 0; padding: 0 0 14px; position: relative; }
.tbhp-steps li:not(:last-child)::before {
  content: ""; position: absolute; left: 15px; top: 32px; bottom: 2px; border-left: 2px dashed var(--tbh-line);
}
.tbhp-steps__n {
  flex: none; display: grid; place-items: center; width: 32px; height: 32px; margin-top: 2px; border-radius: 50%;
  background: var(--tbh-accent); color: var(--tbh-ink); font-weight: 700; font-size: .85em; z-index: 1;
}
.tbhp-steps__body { padding-top: 4px; }
.tbhp-steps__body h3 { margin: 0; font-size: 1em; font-weight: 700; line-height: 1.4; color: var(--tbh-ink); }
.tbhp-steps__body p { margin: 4px 0 0; color: var(--tbh-muted); font-size: .92em; line-height: 1.5; }

/* Bao gồm / không bao gồm */
.tbhp-incl { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.tbhp-incl__col { padding: 22px 24px; border: 1px solid var(--tbh-line); border-radius: var(--tbh-radius); background: var(--tbh-card); }
.tbhp-incl__col h3 { margin: 0 0 12px; font-size: 1.05em; }
.tbhp-incl__col ul { list-style: none; margin: 0; padding: 0; }
.tbhp-incl__col li { display: flex; gap: 10px; align-items: flex-start; margin: 0; padding: 6px 0; }
.tbhp-incl__col li svg { flex: none; margin-top: 3px; }
.tbhp-incl__col--yes li svg { color: var(--tbh-brand); }
.tbhp-incl__col--no li svg { color: var(--tbh-new); }

/* FAQ */
.tbhp-faq details { border-bottom: 1px solid var(--tbh-line); padding: 4px 0; }
.tbhp-faq details:first-child { border-top: 1px solid var(--tbh-line); }
.tbhp-faq summary {
  cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 16px 0; font-weight: 700; color: var(--tbh-ink);
}
.tbhp-faq summary::-webkit-details-marker { display: none; }
.tbhp-faq summary::after { content: "+"; font-size: 1.4em; font-weight: 400; color: var(--tbh-brand); line-height: 1; }
.tbhp-faq details[open] summary::after { content: "\2212"; }
.tbhp-faq__answer { padding: 0 0 12px; color: var(--tbh-muted); }
.tbhp-faq__answer p { margin: 0 0 8px; }

/* Kêu gọi hành động */
.tbhp-cta {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 32px;
  margin: 56px 0; padding: 36px 40px; border-radius: 20px; color: #fff;
  background:
    radial-gradient(circle at 92% 12%, rgba(255, 200, 69, .28) 0 90px, transparent 91px),
    linear-gradient(135deg, var(--tbh-brand-dark), var(--tbh-brand));
}
.tbhp-cta h2 { margin: 0 0 8px; color: #fff; }
.tbhp-cta p { margin: 0; max-width: 46ch; color: rgba(255, 255, 255, .92); }
.tbhp-cta__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Chương trình liên quan */
.tbhp-related__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 20px; margin-bottom: 20px; }
.tbhp-related__head h2 { margin: 0; }
.tbhp-related__head a { color: var(--tbh-brand-dark); font-weight: 700; }

@media (max-width: 600px) {
  .tbhp-facts { padding: 18px; }
  .tbhp-facts .tbhp-btn { width: 100%; }
  .tbhp-cta { padding: 28px 22px; }
  .tbhp-cta__actions, .tbhp-cta .tbhp-btn { width: 100%; }
}

/* =====================================================================
   Trang chi tiết v1.2: dòng phụ đề, thông tin nhanh, khung báo giá, About, liên hệ
   ===================================================================== */
.tbhp-lead { margin: 0 0 20px; font-size: 1.2em; line-height: 1.5; color: var(--tbh-muted); max-width: 62ch; }

/* Khối đầu trang: chữ (tagline + thông tin nhanh) bên trái, logo bên phải cùng độ rộng với cột nút báo giá */
.tbhp-intro {
  display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); align-items: start; gap: 24px;
  margin: 0 0 32px; padding: 0 0 24px; border-bottom: 1px solid var(--tbh-line);
}
.tbhp-intro__text { min-width: 0; }
.tbhp-title { margin: 0 0 14px; font-size: 2em; line-height: 1.2; font-weight: 800; color: var(--tbh-ink); }
.tbhp-intro__text .tbhp-lead { margin-bottom: 20px; }
.tbhp-intro__text .tbhp-meta { margin: 0; padding: 0; border: 0; }
.tbhp-intro__logo { justify-self: stretch; }
.tbhp-intro__logo img { display: block; width: 100%; height: auto; max-height: 220px; object-fit: contain; margin-left: auto; }
@media (max-width: 700px) {
  .tbhp-title { font-size: 1.6em; }
  .tbhp-intro { grid-template-columns: 1fr; }
  .tbhp-intro__logo { order: -1; justify-self: center; margin-bottom: 4px; }
  .tbhp-intro__logo img { width: auto; max-width: min(70%, 320px); max-height: 160px; margin: 0 auto; }
}

/* Dòng thông tin nhanh */
.tbhp-meta { list-style: none; display: flex; flex-wrap: wrap; gap: 14px 32px; margin: 0 0 32px; padding: 0 0 24px; border-bottom: 1px solid var(--tbh-line); }
.tbhp-meta li { display: flex; align-items: center; gap: 12px; margin: 0; padding: 0; }
.tbhp-meta__icon {
  flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  background: rgba(14, 124, 134, .12);
  background: color-mix(in srgb, var(--tbh-brand) 14%, white);
  color: var(--tbh-brand-dark);
}
.tbhp-meta__text { display: flex; flex-direction: column; line-height: 1.3; }
.tbhp-meta__label { font-size: .78em; color: var(--tbh-muted); }
.tbhp-meta__value { font-weight: 700; color: var(--tbh-ink); }

/* Ảnh gallery + khung báo giá */
.tbhp-top { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 28px; align-items: start; margin: 0 0 8px; }
.tbhp-top--novideo { grid-template-columns: 1fr; }
.tbhp-quotebox {
  display: flex; flex-direction: column; gap: 20px; padding: 24px; text-align: center;
  background: var(--tbh-soft); border: 1px solid var(--tbh-line); border-radius: var(--tbh-radius);
}
.tbhp-quotebox .tbhp-btn { width: 100%; }
.tbhp-quotebox__outcomes h3 { margin: 0 0 12px; font-size: 1em; color: var(--tbh-ink); font-weight: 800; }
.tbhp-quotebox__outcomes ul { list-style: none; margin: 0; padding: 0; text-align: center; }
.tbhp-quotebox__outcomes li {
  display: inline-block; margin: 4px; padding: 6px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--tbh-line);
  color: var(--tbh-ink); font-weight: 600; font-size: .92em;
}
/* Không có video: khung báo giá nằm ngang */
.tbhp-top--novideo .tbhp-quotebox { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; text-align: left; }
.tbhp-top--novideo .tbhp-quotebox .tbhp-btn { width: auto; }
.tbhp-top--novideo .tbhp-quotebox__outcomes { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.tbhp-top--novideo .tbhp-quotebox__outcomes h3 { margin: 0; }
.tbhp-top--novideo .tbhp-quotebox__outcomes ul { text-align: left; }

/* About + Learning outcomes */
.tbhp-about__col > :last-child { margin-bottom: 0; }
.tbhp-about--cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; }
.tbhp-about:not(.tbhp-about--cols) .tbhp-about__col + .tbhp-about__col {
  margin-top: 32px; padding: 24px 28px; background: var(--tbh-soft); border-radius: var(--tbh-radius); border: 1px solid var(--tbh-line);
}
.tbhp-about .wp-block-gallery { margin: 24px 0; }
.tbhp-about .wp-block-gallery img { border-radius: 12px; }

/* Lời nhận xét */
.tbhp-testimonials { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; margin: 48px 0; }
.tbhp-testimonial { margin: 0; padding: 24px 26px; border-left: 5px solid var(--tbh-accent); background: var(--tbh-soft); border-radius: 0 var(--tbh-radius) var(--tbh-radius) 0; }
.tbhp-testimonial blockquote { margin: 0; padding: 0; border: 0; font-size: 1.08em; line-height: 1.55; color: var(--tbh-ink); font-style: normal; }
.tbhp-testimonial figcaption { margin-top: 12px; font-weight: 700; color: var(--tbh-muted); font-size: .92em; }

/* Liên hệ cuối trang */
.tbhp-contact {
  margin: 56px 0 8px; padding: 40px; border-radius: 20px; color: #fff;
  background:
    radial-gradient(circle at 94% 8%, rgba(255, 200, 69, .26) 0 90px, transparent 91px),
    linear-gradient(135deg, var(--tbh-brand-dark), var(--tbh-brand));
  scroll-margin-top: 90px;
}
.tbhp-contact h2 { margin: 0 0 8px; color: #fff; }
.tbhp-contact__inner > p { margin: 0 0 20px; max-width: 56ch; color: rgba(255, 255, 255, .92); }
.tbhp-contact__form { padding: 24px; background: #fff; color: var(--tbh-ink); border-radius: var(--tbh-radius); }
.tbhp-contact__quick { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }

@media (max-width: 820px) {
  .tbhp-top { grid-template-columns: 1fr; }
  .tbhp-about--cols { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 600px) {
  .tbhp-meta { gap: 14px 20px; }
  .tbhp-contact { padding: 28px 20px; }
  .tbhp-contact__form { padding: 16px; }
  .tbhp-top--novideo .tbhp-quotebox .tbhp-btn { width: 100%; }
}

/* =====================================================================
   Thư viện ảnh ở đầu trang chi tiết
   ===================================================================== */
.tbhp-gal { min-width: 0; }
.tbhp-gal__stage { position: relative; aspect-ratio: 16 / 9; border-radius: var(--tbh-radius); overflow: hidden; background: var(--tbh-soft); }
.tbhp-gal__slide { position: absolute; inset: 0; margin: 0; opacity: 0; visibility: hidden; transition: opacity .3s ease; }
.tbhp-gal__slide.is-active { opacity: 1; visibility: visible; }
.tbhp-gal__zoom { display: block; width: 100%; height: 100%; cursor: zoom-in; }
.tbhp-gal__img { width: 100%; height: 100%; object-fit: contain; display: block; background: var(--tbh-soft); }
.tbhp-gal__nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 44px; height: 44px; padding: 0;
  display: grid; place-items: center; border: 0; border-radius: 50%; cursor: pointer;
  background: rgba(255, 255, 255, .92); color: var(--tbh-ink); font-size: 28px; line-height: 1;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .2); transition: background .2s;
}
.tbhp-gal__nav:hover { background: #fff; }
.tbhp-gal__nav--prev { left: 12px; }
.tbhp-gal__nav--next { right: 12px; }
.tbhp-gal__count {
  position: absolute; right: 12px; bottom: 12px; z-index: 2; padding: 4px 10px; border-radius: 999px;
  background: rgba(23, 35, 59, .78); color: #fff; font-size: 13px; font-weight: 600;
}
.tbhp-gal__nav:focus-visible, .tbhp-gal__zoom:focus-visible { outline: 3px solid var(--tbh-accent); outline-offset: 2px; }

/* Xem ảnh toàn màn hình */
.tbhp-lightbox {
  position: fixed; inset: 0; z-index: 99999; display: none; align-items: center; justify-content: center;
  background: rgba(10, 16, 28, .94); padding: 24px;
}
.tbhp-lightbox.is-open { display: flex; }
.tbhp-lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 6px; }
.tbhp-lightbox__close, .tbhp-lightbox__nav {
  position: absolute; display: grid; place-items: center; width: 48px; height: 48px; padding: 0; border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, .16); color: #fff; font-size: 30px; line-height: 1; cursor: pointer;
}
.tbhp-lightbox__close:hover, .tbhp-lightbox__nav:hover { background: rgba(255, 255, 255, .3); }
.tbhp-lightbox__close { top: 16px; right: 16px; }
.tbhp-lightbox__nav { top: 50%; transform: translateY(-50%); }
.tbhp-lightbox__nav--prev { left: 16px; }
.tbhp-lightbox__nav--next { right: 16px; }
html.tbhp-noscroll { overflow: hidden; }

@media (max-width: 600px) {
  .tbhp-gal__nav { width: 38px; height: 38px; font-size: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .tbhp-gal__slide { transition: none; }
}
