/* ZOWIN (zowin.select) - theme WordPress zowinselect.
   Theo hướng trang tham khảo (docs/reference/REFERENCE.md, chỉ số đo, CSS viết riêng): khung 1170px nền đen giữa nền ngoài rượu vang,
   header 3 tầng (thanh liên hệ + hotline · logo giữa + nút đỏ bo góc · dải menu vàng ánh kim), H1 trang chủ trong khung neon xanh lơ,
   mở bài trích dẫn viền đỏ, chỉ số dạng thẻ, H2 có vạch vàng, bảng kẻ mảnh, link vàng, footer đỏ mận 5 cột (logo bên phải),
   banner CTA dính đáy bo góc. Font Roboto 400/700 tự host. */

/* Roboto biến thể wght (400-700) tự host: Vietnamese + Latin; fallback Arial chỉnh số đo cho gần Roboto (giảm xô chữ khi font về). */
@font-face {
  font-family: "Roboto";
  font-style: normal;
  font-weight: 400 700;
  font-stretch: 100%;
  font-display: swap;
  src: url(../fonts/roboto-vietnamese-1e5f06.woff2) format("woff2");
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: "Roboto";
  font-style: normal;
  font-weight: 400 700;
  font-stretch: 100%;
  font-display: swap;
  src: url(../fonts/roboto-latin-b7627e.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Roboto Fallback";
  src: local("Arial");
  size-adjust: 100.3%;
  ascent-override: 92.77%;
  descent-override: 24.41%;
  line-gap-override: 0%;
}

:root {
  color-scheme: dark;
  --outer: #2a0712;
  --bg: #000;
  --panel: #0e0c10;
  --text: #f1f1f1;
  --muted: #c4c4c4;
  --link: #f5dc2a;
  --link-hover: #ffb347;
  --menu: #f0b400;
  --menu-top: #ffcf3a;
  --red: #e0262f;
  --red-hover: #bd1a22;
  --red-line: #ff3040;
  --footer: #8e1f30;
  --copy: #221a1d;
  --radius: 8px;
  --rule: rgba(236, 236, 236, 0.55);
  --box: 1170px;
  --wrap: 1080px;
  --font: "Roboto", "Roboto Fallback", -apple-system, system-ui, "Segoe UI", Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 124px;
  background: var(--outer);
}
/* Khung boxed 1170px nền đen, hai bên lộ nền ngoài đỏ sẫm. */
body {
  max-width: var(--box);
  min-height: 100vh;
  margin: 0 auto;
  padding-bottom: 68px; /* chừa chỗ banner CTA dính đáy */
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}
body.cta-closed {
  padding-bottom: 0;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: var(--link);
  text-underline-offset: 3px;
}
a:hover {
  color: var(--link-hover);
}
h1,
h2,
h3,
h4 {
  line-height: 1.3;
  font-weight: 700;
  color: #fff;
}
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 15px;
}
.skip-link {
  position: absolute;
  left: -9999px;
}
.skip-link:focus {
  left: 12px;
  top: 12px;
  z-index: 300;
  background: #000;
  color: #fff;
  padding: 8px 12px;
}
.ico {
  width: 18px;
  height: 18px;
  flex: none;
}
:focus-visible {
  outline: 2px solid var(--link);
  outline-offset: 2px;
}

/* ---------- Nút đỏ bo góc vừa (khác viên thuốc của bản tham khảo) ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 18px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
  transition: box-shadow 0.15s, background-color 0.15s;
}
.btn-join {
  background: linear-gradient(180deg, #f04049, var(--red) 55%, #c41c25);
  box-shadow: 0 2px 0 #7d0e14;
  color: #fff;
}
.btn-join:hover {
  color: #fff;
  background: var(--red-hover);
  box-shadow: inset 0 0 0 100px rgba(0, 0, 0, 0.08);
}

/* ---------- Header 3 tầng ---------- */
/* .site-header giữ chỗ đúng chiều cao header tĩnh; khi cuộn qua, .header-inner chuyển fixed (bản thu gọn) → bài không bị xô. */
.site-header {
  position: relative;
  z-index: 100;
  height: 187px;
}
.header-inner {
  position: relative;
  background: #000;
  box-shadow: 1px 1px 10px rgba(0, 0, 0, 0.15);
}
.topbar {
  height: 30px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.topbar-list {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.82);
}
.topbar-list li {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 14px;
}
.topbar-list li + li {
  border-left: 1px solid rgba(255, 255, 255, 0.22);
}
.topbar-list a,
.topbar-list li > span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: inherit;
  text-decoration: none;
}
.topbar-list a:hover {
  color: var(--link);
}
.topbar .ico {
  width: 15px;
  height: 15px;
}
.header-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 112px;
}
.brand {
  grid-column: 2;
  display: inline-flex;
}
.brand img {
  height: 104px;
  width: auto;
}
.btn-join {
  grid-column: 3;
  justify-self: end;
}
.navbar {
  background: linear-gradient(180deg, var(--menu-top), var(--menu) 60%, #d99e00);
  border-bottom: 2px solid #8a5a00;
}
.main-nav {
  display: flex;
  justify-content: center;
}
.menu,
.sub-menu {
  list-style: none;
  margin: 0;
  padding: 0;
}
.menu {
  display: flex;
  justify-content: center;
  align-items: stretch;
}
.menu-item {
  position: relative;
  display: flex;
  align-items: stretch;
  white-space: nowrap;
}
/* vạch chia mảnh giữa các mục */
.menu-item + .menu-item::before {
  content: "";
  align-self: center;
  width: 1px;
  height: 15px;
  background: rgba(0, 0, 0, 0.16);
}
.menu-item > a,
.dd-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 45px;
  margin: 0;
  padding: 0 16px;
  border: 0;
  background: none;
  -webkit-appearance: none;
  appearance: none;
  font-family: inherit;
  font-size: 14.4px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-decoration: none;
  color: #000;
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s;
}
.dd-toggle .ico {
  width: 14px;
  height: 14px;
  transition: transform 0.2s;
}
/* Mục đang xem / rê chuột: ô đen chữ vàng trên dải vàng (đủ tương phản, khác bản tham khảo chữ trắng). */
.menu-item > a:hover,
.dd-toggle:hover,
.has-dd.is-open > .dd-toggle,
.menu-item.is-current > a,
.menu-item.is-current > .dd-toggle {
  background: #000;
  color: var(--menu);
}
/* Dropdown hộp trắng, mũi tên trỏ lên */
.sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 20;
  width: 260px;
  margin-top: 8px;
  padding: 6px 0;
  background: #fff;
  border: 2px solid #ddd;
  border-radius: var(--radius);
  box-shadow: 1px 1px 15px rgba(0, 0, 0, 0.15);
  display: none;
}
.sub-menu::before,
.sub-menu::after {
  content: "";
  position: absolute;
  left: 22px;
  border: solid transparent;
}
.sub-menu::before {
  bottom: 100%;
  border-width: 0 10px 10px;
  border-bottom-color: #ddd;
}
.sub-menu::after {
  bottom: calc(100% - 3px);
  left: 24px;
  border-width: 0 8px 8px;
  border-bottom-color: #fff;
}
/* cầu nối vô hình qua khe 8px để rê chuột từ mục xuống hộp không bị tắt */
.has-dd > .sub-menu > li:first-child::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -12px;
  height: 12px;
}
.has-dd.is-open > .sub-menu {
  display: block;
}
.has-dd.is-open > .dd-toggle .ico {
  transform: rotate(180deg);
}
.sub-menu a {
  display: block;
  margin: 0 10px;
  padding: 10px 4px;
  border-bottom: 1px solid #ececec;
  color: #3a3a3a;
  font-size: 15.5px;
  line-height: 1.35;
  text-decoration: none;
}
.sub-menu li:last-child a {
  border-bottom: 0;
}
.sub-menu a:hover,
.sub-menu a[aria-current="page"] {
  color: #000;
  font-weight: 700;
}
.nav-toggle,
.nav-close {
  display: none;
  flex: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: none;
  color: #fff;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.nav-toggle .ico,
.nav-close .ico {
  width: 28px;
  height: 28px;
}
.nav-scrim {
  display: none;
}

@media (min-width: 960px) {
  @media (hover: hover) {
    .has-dd:hover > .sub-menu,
    .has-dd:focus-within > .sub-menu {
      display: block;
    }
  }
  /* Bản dính khi cuộn: ẩn thanh liên hệ, hàng logo 64px, dải menu giữ 45px. */
  .site-header.is-stuck .header-inner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    max-width: var(--box);
    margin: 0 auto;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.55);
    animation: header-in 0.3s ease-out;
  }
  .is-stuck .topbar {
    display: none;
  }
  .is-stuck .header-row {
    height: 64px;
  }
  .is-stuck .brand img {
    height: 58px;
  }
  .admin-bar .site-header.is-stuck .header-inner {
    top: 32px;
  }
}
@keyframes header-in {
  from {
    transform: translateY(-100%);
  }
}

/* ---------- Trang chủ: H1 khung neon → trích dẫn mở bài → chỉ số ---------- */
.site-main {
  min-height: 60vh;
}
.hero {
  padding-top: 16px;
}
.hero-banner {
  max-width: 800px;
  margin: 0 auto 16px;
}
.hero-banner img,
.post-cover img {
  width: 100%;
  border-radius: var(--radius);
}
.neon-title {
  margin: 0 0 30px;
  padding: 12px 22px;
  border: 2px solid transparent;
  border-radius: var(--radius);
  background: linear-gradient(rgba(8, 10, 24, 0.96), rgba(12, 12, 28, 0.96)) padding-box,
    linear-gradient(100deg, #00d4ff, #3d8bff 30%, #eaf4ff 50%, #00d4ff 72%, #3d8bff) border-box;
  box-shadow: 0 0 14px rgba(0, 200, 255, 0.16), inset 0 0 10px rgba(255, 255, 255, 0.03);
  text-align: center;
  font-size: 25.5px;
  line-height: 1.4;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 0 5px rgba(0, 255, 255, 0.7), 0 0 10px rgba(0, 255, 255, 0.45);
}
.hero-body {
  max-width: 970px;
  margin: 0 auto;
}
.lead-quote {
  margin: 0 0 24px;
  padding: 2px 0 2px 34px;
  border-left: 2px solid var(--red-line);
  font-style: italic;
  line-height: 1.5;
  color: #fff;
}
.lead-quote strong,
.prose blockquote strong {
  color: var(--link);
}
/* Chỉ số: 3 thẻ bo góc nền tối, vạch vàng trên (bản tham khảo: một dải kẻ ngang). */
.hero-stats {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.hero-stats li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 12px 8px;
  text-align: center;
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-top: 2px solid var(--menu);
  border-radius: var(--radius);
}
.hero-stats strong {
  font-size: 28px;
  line-height: 1.15;
  color: var(--link);
}
.hero-stats span {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--muted);
}
.byline {
  display: flex;
  flex-wrap: wrap;
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}
.byline span + span::before {
  content: "·";
  margin: 0 8px;
}
.byline span:first-child {
  color: #fff;
  font-weight: 700;
}
.hero .byline {
  margin-bottom: 22px;
}

/* ---------- Đầu trang con: breadcrumb vàng, H1 trắng in hoa giữa ---------- */
.page-head {
  padding-top: 16px;
  text-align: center;
}
.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-weight: 700;
  color: #fff;
  text-align: left;
}
.crumbs a {
  color: var(--link);
  text-decoration: none;
}
.crumbs a:hover {
  color: var(--link-hover);
}
.page-head h1 {
  margin: 28px 0 18px;
  font-size: 30px;
  text-transform: uppercase;
}
.page-head .lead {
  max-width: 900px;
  margin: 0 auto 8px;
  color: #e6e6e6;
}
.page-head .byline {
  justify-content: center;
  margin-bottom: 22px;
}

/* ---------- Mục lục thu gọn đầu bài ---------- */
.article {
  padding-bottom: 40px;
}
.article.is-home {
  max-width: 1000px; /* chữ bài 970px như mẫu */
}
.toc {
  margin: 0 0 26px;
  border: 1px solid #333;
  border-left: 4px solid var(--menu);
  border-radius: var(--radius);
  background: var(--panel);
  overflow: hidden;
}
.toc summary {
  display: flex;
  align-items: center;
  gap: 10px;
  list-style: none;
  cursor: pointer;
  padding: 11px 16px;
  font-weight: 700;
  text-transform: uppercase;
  color: #fff;
}
.toc summary::-webkit-details-marker {
  display: none;
}
.toc summary small {
  font-size: 13px;
  font-weight: 400;
  text-transform: none;
  color: var(--muted);
}
.toc summary .ico {
  margin-left: auto;
  color: var(--menu);
  transition: transform 0.2s;
}
.toc[open] summary {
  border-bottom: 1px solid #2a2a2a;
}
.toc[open] summary .ico {
  transform: rotate(180deg);
}
.toc ol {
  margin: 0;
  padding: 10px 16px 14px 38px;
  columns: 2;
  column-gap: 40px;
  font-size: 15px;
}
.toc li {
  break-inside: avoid;
  padding: 3px 0;
}
.toc li::marker {
  color: var(--menu);
}
.toc a {
  color: var(--text);
  text-decoration: none;
}
.toc a:hover {
  color: var(--link);
  text-decoration: underline;
}
.post {
  min-width: 0;
}
.post-cover {
  max-width: 800px;
  margin: 0 auto 24px;
}
.post-cover img {
  width: 100%;
}

/* ---------- Văn bài ---------- */
.prose > :first-child {
  margin-top: 0;
}
.prose p {
  margin: 0 0 1.3em;
}
/* H2: khối tiêu đề có vạch vàng bên trái + gạch mờ dưới (bản tham khảo: chữ trơn). */
.prose h2 {
  font-size: 24px;
  margin: 1.4em 0 0.6em;
  padding: 2px 0 8px 14px;
  border-left: 4px solid var(--menu);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.prose .faq h2 {
  border-left-color: var(--red-line);
}
.prose h3 {
  font-size: 20px;
  margin: 1.2em 0 0.5em;
}
.prose h4 {
  font-size: 17px;
  margin: 1.1em 0 0.4em;
}
/* Link nội bộ: vàng chanh, gạch chân (nhận ra là link khi không dựa vào màu). */
.prose a {
  color: var(--link);
  text-decoration: underline;
  text-decoration-thickness: 1px;
}
.prose a:hover {
  color: var(--link-hover);
}
.prose ul,
.prose ol {
  margin: 0 0 1.3em;
  padding-left: 1.3em;
}
.prose li {
  margin: 0.6em 0;
}
.prose li::marker {
  color: var(--text);
}
.prose strong {
  color: #fff;
}
.prose blockquote {
  margin: 0 0 1.5em;
  padding: 2px 0 2px 28px;
  border-left: 2px solid var(--red-line);
  font-style: italic;
  color: #fff;
}
.prose blockquote p:last-child {
  margin-bottom: 0;
}
.prose figure.img {
  max-width: 800px;
  margin: 0 auto 1.5em;
}
.prose figure.img img {
  width: 100%;
  border-radius: var(--radius) var(--radius) 0 0;
}
.prose figcaption {
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.06);
  font-size: 14.4px;
  font-style: italic;
  line-height: 1.45;
  color: #dcdcdc;
  text-align: center;
}
.prose img {
  height: auto;
}
/* Bảng kẻ ngang mảnh, không nền; khung cuộn ngang riêng (functions.php bọc .table-wrap) → trang không cuộn ngang. */
.table-wrap {
  margin: 0 0 1.4em;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.4px;
  line-height: 1.35;
}
.prose th,
.prose td {
  min-width: 120px;
  padding: 8px 10px 8px 0;
  border-bottom: 1px solid var(--rule);
  text-align: left;
  vertical-align: top;
  color: #fff;
}
.prose th {
  font-weight: 700;
}

/* FAQ accordion (details trong .faq của bài) */
.faq details {
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}
.faq details:first-of-type {
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}
.faq summary {
  position: relative;
  cursor: pointer;
  padding: 13px 40px 13px 0;
  font-weight: 700;
  color: #fff;
  list-style: none;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "+";
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 24px;
  line-height: 1;
  color: var(--menu);
}
.faq details[open] summary {
  color: var(--link);
}
.faq details[open] summary::after {
  content: "−";
}
.faq details p {
  margin: 0;
  padding: 0 0 14px;
}

/* ---------- Footer đỏ mận: 4 cột link, cột logo + giới thiệu bên phải ---------- */
.site-footer {
  background: linear-gradient(180deg, #a02436, var(--footer) 40%);
  border-top: 3px solid var(--menu);
  color: #fff;
  font-size: 15px;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) 1.35fr;
  gap: 26px;
  padding-top: 32px;
  padding-bottom: 30px;
}
.brand-footer {
  display: flex;
  justify-content: center;
}
.brand-footer img {
  height: 118px;
  width: auto;
}
.footer-about {
  margin: 14px 0 10px;
  line-height: 1.45;
}
.footer-about strong {
  color: var(--link);
}
.footer-contact {
  margin: 0;
  padding-left: 18px;
  line-height: 1.45;
}
.footer-contact li {
  margin: 0 0 6px;
}
.footer-contact span {
  font-weight: 700;
}
.footer-title {
  position: relative;
  margin: 0 0 8px;
  padding-bottom: 8px;
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  color: #fff;
}
.footer-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 34px;
  height: 3px;
  border-radius: 2px;
  background: var(--menu);
}
.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-col li {
  border-bottom: 1px dashed rgba(236, 236, 236, 0.45);
}
.footer-col a {
  display: flex;
  gap: 8px;
  padding: 8px 0;
  line-height: 1.35;
}
.footer-col a::before {
  content: "▸";
  flex: none;
  color: var(--menu-top);
}
.site-footer a {
  color: #fff;
  text-decoration: none;
}
.site-footer a:hover {
  color: var(--link);
}
.footer-bottom {
  background: var(--copy);
  padding: 12px 0 12px;
  font-size: 14px;
  text-align: center;
  color: #a8a8a8;
}
.footer-bottom p {
  margin: 0 0 4px;
}
.footer-copy {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 4px 16px;
  font-size: 15px;
}
.footer-copy strong {
  color: #e6e6e6;
}
.footer-bottom a {
  color: #e6e6e6;
  text-decoration: underline;
}
.badge-18 {
  display: inline-block;
  padding: 0 6px;
  border-radius: 4px;
  border: 1px solid #ff8a6d;
  color: #ff8a6d;
  font-weight: 700;
  font-size: 12px;
  line-height: 18px;
}
.dmca-badge {
  display: inline-flex;
  line-height: 0;
}
.dmca-badge img {
  height: 24px;
  width: auto;
}

/* Hàng script traffic: một hàng ngang, khoảng cách trên = dưới. */
.traffic-slots {
  display: flex;
  flex-flow: row wrap;
  justify-content: center;
  align-items: center;
  gap: 14px 22px;
  text-align: center;
}
.traffic-slots {
  padding-top: 22px;
  padding-bottom: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
}
.traffic-slot {
  display: flex;
  flex-flow: row wrap;
  justify-content: center;
  align-items: center;
  gap: 10px 14px;
  max-width: 100%;
}
.traffic-slot > * {
  margin: 0 !important;
}
.traffic-slot img,
.traffic-slot iframe {
  max-width: 100%;
  height: auto;
}

/* ---------- Banner CTA dính đáy (của ZOWIN, có nút đóng) ---------- */
.cta-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 4px;
  z-index: 90;
  max-width: 1140px;
  margin: 0 auto;
}
.cta-bar[hidden] {
  display: none;
}
.cta-bar-link {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 60px;
  padding: 0 16px 0 10px;
  border: 2px solid var(--menu);
  border-radius: 12px;
  background: linear-gradient(90deg, #1a0309, #6a0d1e 40%, #8a1226 60%, #1a0309);
  color: #fff;
  text-decoration: none;
  overflow: hidden;
}
.cta-bar-link:hover {
  color: #fff;
}
.cta-bar-link img {
  height: 54px;
  width: auto;
  flex: none;
}
.cta-bar-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.2;
}
.cta-bar-text strong {
  font-size: 22px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--link);
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.5);
}
.cta-bar-text small {
  font-size: 14px;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cta-bar-btn {
  margin-left: auto;
  flex: none;
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 22px;
  border-radius: 6px;
  background: var(--red);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.2);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #fff;
}
.cta-bar-link:hover .cta-bar-btn {
  background: var(--red-hover);
}
.cta-bar-close {
  position: absolute;
  top: -10px;
  right: -8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 1px solid #9a9a9a;
  border-radius: 50%;
  background: #000;
  color: #fff;
  cursor: pointer;
}
.cta-bar-close .ico {
  width: 14px;
  height: 14px;
}

/* ---------- 404 ---------- */
.not-found {
  padding-top: 60px;
  padding-bottom: 70px;
}
.nf-code {
  margin: 0;
  font-size: 72px;
  font-weight: 700;
  line-height: 1;
  color: var(--link);
}
.not-found h1 {
  margin-top: 14px;
}

/* ---------- Điện thoại / máy tính bảng (< 960px) ---------- */
@media (max-width: 959px) {
  html {
    scroll-padding-top: 76px;
  }
  /* Header dính bằng sticky (cao không đổi): [☰ | logo giữa | nút]. */
  .site-header {
    position: sticky;
    top: 0;
    height: auto;
  }
  .admin-bar .site-header {
    top: 46px;
  }
  .topbar {
    display: none;
  }
  .header-row {
    height: 64px;
    padding: 0 10px;
  }
  .nav-toggle {
    display: inline-flex;
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
  }
  .brand {
    grid-row: 1;
  }
  .brand img {
    height: 56px;
  }
  .btn-join {
    grid-row: 1;
    min-height: 34px;
    padding: 0 13px;
    font-size: 12.5px;
  }
  .navbar {
    background: none;
    border-bottom: 0;
  }
  /* Ngăn kéo đen trượt từ trái + lớp phủ */
  .main-nav {
    display: block;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 150;
    width: min(300px, 86vw);
    padding: 54px 0 30px;
    overflow-y: auto;
    background: #000;
    transform: translateX(-100%);
    visibility: hidden;
    transition: transform 0.25s, visibility 0.25s;
  }
  .main-nav.is-open {
    transform: none;
    visibility: visible;
  }
  .nav-close {
    display: inline-flex;
    position: absolute;
    top: 6px;
    right: 6px;
  }
  body.nav-open .nav-scrim {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 140;
    background: rgba(11, 11, 11, 0.7);
  }
  body.nav-open {
    overflow: hidden;
  }
  .menu {
    flex-direction: column;
  }
  .menu-item {
    flex-direction: column;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
  }
  .menu-item + .menu-item::before {
    display: none;
  }
  .menu-item > a,
  .dd-toggle {
    width: 100%;
    height: auto;
    justify-content: space-between;
    padding: 15px 20px;
    color: rgba(255, 255, 255, 0.9);
  }
  .dd-toggle .ico {
    width: 18px;
    height: 18px;
  }
  .menu-item > a:hover,
  .dd-toggle:hover,
  .has-dd.is-open > .dd-toggle,
  .menu-item.is-current > a,
  .menu-item.is-current > .dd-toggle {
    background: none;
    color: var(--link);
  }
  .sub-menu {
    position: static;
    width: auto;
    margin: 0;
    padding: 0 0 10px 20px;
    border: 0;
    background: none;
    box-shadow: none;
  }
  .sub-menu::before,
  .sub-menu::after,
  .has-dd > .sub-menu > li:first-child::before {
    display: none;
  }
  .sub-menu a {
    margin: 0;
    padding: 8px 20px 8px 0;
    border: 0;
    font-size: 16px;
    color: #e6e6e6;
  }
  .sub-menu a:hover,
  .sub-menu a[aria-current="page"] {
    color: var(--link);
    font-weight: 400;
  }
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px 24px;
  }
  .footer-brand {
    order: -1;
    grid-column: 1 / -1;
    max-width: 560px;
    justify-self: center;
  }
}
@media (max-width: 640px) {
  .neon-title {
    padding: 12px 14px;
    font-size: 21px;
  }
  .page-head h1 {
    font-size: 24px;
  }
  .prose h2 {
    font-size: 22px;
  }
  .prose h3 {
    font-size: 19px;
  }
  .lead-quote {
    padding-left: 18px;
  }
  .prose blockquote {
    padding-left: 18px;
  }
  .hero-stats strong {
    font-size: 22px;
  }
  .hero-stats span {
    font-size: 11.5px;
  }
  .hero-stats li {
    padding: 10px 4px;
  }
  .toc ol {
    columns: 1;
  }
  .footer-grid {
    gap: 20px 16px;
  }
  .footer-title {
    font-size: 15px;
  }
  .footer-col a {
    font-size: 14.5px;
  }
  body {
    padding-bottom: 58px;
  }
  .cta-bar {
    bottom: 0;
  }
  .cta-bar-link {
    height: 58px;
    gap: 10px;
    padding: 0 10px 0 6px;
    border-width: 2px 0 0;
    border-radius: 12px 12px 0 0;
  }
  .cta-bar-link img {
    height: 48px;
  }
  .cta-bar-text strong {
    font-size: 15px;
    white-space: nowrap;
  }
  .cta-bar-text small {
    font-size: 12px;
  }
  .cta-bar-btn {
    min-height: 34px;
    padding: 0 13px;
    font-size: 12.5px;
  }
  .cta-bar-close {
    top: -12px;
    right: 6px;
  }
}
@media (max-width: 359px) {
  .cta-bar-text small {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .site-header.is-stuck .header-inner {
    animation: none;
  }
}

/* ---------- Thêm cho WordPress ---------- */
/* 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;
}
.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
}
