/*
 * Bổ sung cho bộ giao diện hitclubv (flatsome.css + hcv/css/custom.css): các phần riêng của betcio392
 * (sapo, ảnh bìa, khung bài, hàng nút traffic, DMCA, dải nội dung mẫu, 404) + thay phần JS Flatsome (header dính, nút lên đầu).
 * KHÔNG có luật ẩn ô traffic (chủ site 20/11/2026: hiện tự do, không :empty / :has).
 */

.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link:focus {
  position: fixed !important;
  z-index: 100000;
  top: 8px;
  left: 8px;
  width: auto;
  height: auto;
  clip: auto;
  padding: 8px 14px;
  background: #f0be43;
  color: #2a1603;
  font-weight: 700;
}

/* Header dính khi cuộn (thay flatsome.js) */
#header {
  position: sticky;
  top: 0;
  z-index: 30;
}

/* ---------- Trang chủ ---------- */
.bc-home-section {
  padding-top: 30px;
  padding-bottom: 30px;
}
.bc-home-section .section-title-main {
  text-transform: uppercase;
}
.bc-home-sapo {
  font-size: 0.9rem;
}
.bc-home-sapo blockquote p {
  text-align: justify;
}
.home-content > .col-inner {
  text-align: left;
}

/* ---------- Khung bài (chung) ---------- */
.bc-prose p,
.bc-prose li,
.bc-sapo {
  text-align: justify;
}
.bc-sapo {
  font-weight: 700;
}
.bc-page-title {
  text-align: center;
}
.bc-cover,
.bc-prose figure {
  margin: 0 auto 1.3em;
  text-align: center;
}
.bc-cover img,
.bc-prose img,
.entry-image img {
  height: auto;
  max-width: 100%;
}
.bc-prose figure img {
  display: block;
  margin: 0 auto;
}
.bc-prose figcaption {
  margin-top: 0.4em;
  color: #e9dcc0;
  font-size: 0.85em;
  font-style: italic;
  text-align: center;
}
.bc-prose table {
  width: 100%;
  margin-bottom: 1.3em;
}
.bc-prose table th,
.bc-prose table td {
  color: #fff;
  border-color: rgba(240, 190, 67, 0.35);
}
.bc-prose table th {
  color: #f0be43;
}
.bc-prose a:not(.button) {
  color: #f0be43;
}
.bc-prose a:not(.button):hover {
  color: #fff;
}
.bc-prose h2,
.bc-prose h3,
.bc-prose h4 {
  scroll-margin-top: 90px;
}
.entry-image .post-date {
  left: 0;
}

/* ---------- Footer ---------- */
.bc-footer-section {
  padding-top: 30px;
  padding-bottom: 30px;
  background-color: rgb(0, 0, 0);
}
.bc-footer-logo {
  width: 78%;
  margin: 0 auto 1em;
}
.bc-footer-ambassador {
  width: 80%;
  margin: 0 auto;
}
.bc-footer-title {
  font-size: 1.2rem;
}
.bc-dmca {
  margin: 8px 0 0;
}
.dmca-badge {
  display: inline-flex;
  line-height: 0;
}
.dmca-badge img {
  height: 24px;
  width: auto;
}

/* Hàng script traffic: một hàng ngang giữa, hiện tự do (không ẩn ô nào). */
.traffic-slots {
  display: flex;
  flex-flow: row wrap;
  justify-content: center;
  align-items: center;
  gap: 14px 22px;
  max-width: 1210px;
  margin: 0 auto;
  padding: 22px 15px;
  border-top: 1px solid rgba(240, 190, 67, 0.25);
  text-align: center;
}
.traffic-slot {
  display: flex;
  flex-flow: row wrap;
  justify-content: center;
  align-items: center;
  gap: 10px 14px;
  flex: 0 1 auto;
  max-width: 100%;
  color: #fff;
  font-size: 14.5px;
}
.traffic-slot > * {
  margin: 0 !important;
}
.traffic-slot a,
.traffic-slot button {
  max-width: 100%;
}
.traffic-slot img,
.traffic-slot iframe {
  max-width: 100%;
  height: auto;
}

/* Banner dính đáy: chừa chỗ để không che bản quyền / hàng nút; nút đóng là <button>. */
.absolute-footer {
  padding-bottom: 80px;
}
@media (max-width: 549px) {
  .absolute-footer {
    padding-bottom: 110px;
  }
}
#footer-banner-close {
  position: absolute;
  right: 0;
  top: -25px;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  line-height: 0;
  cursor: pointer;
}
#footer-banner-close svg {
  fill: #fff;
}
.footer-banner-gwd img {
  display: block;
  width: 100%;
  height: auto;
}
.gwd-banner-image.is-closed {
  display: none;
}
.back-to-top {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  bottom: 90px;
}

/* Dải báo nội dung mẫu tạm (trang có meta _bc_sample). */
.sample-note {
  margin: 0;
  padding: 6px 14px;
  background: #3a0d0d;
  border-bottom: 1px solid #ff6a4d;
  color: #ffd2c4;
  font-size: 13px;
  text-align: center;
}
.sample-note strong {
  color: #ff8a6d;
}

/* ---------- 404 ---------- */
.bc-404 {
  padding: 40px 0 60px;
  text-align: center;
}
.bc-404 .nf-code {
  margin: 0;
  color: #f0be43;
  font-size: 64px;
  font-weight: 800;
  line-height: 1;
}
