/*
Theme Name: BetVisaVN365 Flatsome Child
Theme URI: https://betvisavn365.com/
Description: Domain-specific Flatsome child theme for betvisavn365.com.
Author: BetVisaVN365
Template: flatsome
Version: 1.0.5
Text Domain: betvisavn365
*/

:root {
  --bv-black: #080706;
  --bv-charcoal: #15130f;
  --bv-gold: #f2c84b;
  --bv-gold-deep: #a7790f;
  --bv-gold-pale: #fff2a8;
  --bv-red: #b92824;
  --bv-green: #6d8f4a;
  --bv-text: #343434;
  --bv-muted: #737373;
  --bv-border: rgba(242, 200, 75, 0.72);
  --bv-shadow: 0 16px 48px rgba(17, 12, 3, 0.12);
  --bv-container: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body.bv365-site {
  margin: 0;
  overflow-x: hidden;
  background: #fff;
  color: var(--bv-text);
  font-family: Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

body.bv365-site.drawer-open {
  overflow: hidden;
}

.bv-container {
  width: min(calc(100% - 32px), var(--bv-container));
  margin-inline: auto;
}

.screen-reader-text,
.bv-skip-link {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.bv-skip-link:focus {
  z-index: 99999;
  top: 12px;
  left: 12px;
  width: auto;
  height: auto;
  clip: auto;
  padding: 10px 16px;
  background: #fff;
  color: #111;
  border-radius: 6px;
}

.bv-site-header {
  position: relative;
  z-index: 50;
  background: #fff;
}

.bv-header-main {
  min-height: 90px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 22px;
}

.bv-menu-toggle {
  display: none;
  appearance: none;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 50%;
  background: #fff;
  color: #1c1c1c;
  cursor: pointer;
}

.bv-menu-toggle span,
.bv-menu-toggle::before,
.bv-menu-toggle::after {
  display: block;
  width: 19px;
  height: 2px;
  margin: 4px auto;
  content: "";
  background: currentColor;
  border-radius: 2px;
}

.bv-brand {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #111;
  text-decoration: none;
}

.bv-brand img {
  width: 54px;
  height: 54px;
  object-fit: cover;
  border-radius: 50%;
}

.bv-brand-copy {
  display: flex;
  align-items: baseline;
  font-size: 34px;
  font-weight: 900;
  font-style: italic;
  letter-spacing: -1.5px;
  line-height: 1;
}

.bv-brand-copy strong {
  color: var(--bv-gold);
}

.bv-brand-copy small {
  margin-left: 5px;
  color: #5f5f5f;
  font-size: 12px;
  font-style: normal;
  letter-spacing: 1px;
}

.bv-header-spacer {
  min-width: 10px;
}

.bv-header-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 12px;
}

.bv-button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
  transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}

.bv-button:hover,
.bv-button:focus-visible {
  color: #fff;
  transform: translateY(-2px);
  filter: brightness(1.06);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.18);
}

.bv-button-register {
  background: var(--bv-green);
}

.bv-button-login {
  background: var(--bv-red);
}

.bv-button-gold {
  background: linear-gradient(135deg, var(--bv-gold-pale), var(--bv-gold));
  color: #17120a;
}

.bv-button-gold:hover,
.bv-button-gold:focus-visible {
  color: #17120a;
}

.bv-nav-shell {
  position: sticky;
  top: 0;
  z-index: 60;
  background: linear-gradient(90deg, #050505 0%, #4b3a08 35%, #d7b63d 50%, #4b3a08 65%, #050505 100%);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
}

.bv-primary-nav .menu,
.bv-primary-nav ul {
  display: flex;
  min-height: 46px;
  align-items: stretch;
  justify-content: center;
  gap: 0;
  padding: 0;
  margin: 0;
  list-style: none;
}

.bv-primary-nav li {
  display: flex;
}

.bv-primary-nav a {
  display: flex;
  align-items: center;
  padding: 0 20px !important;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.025em;
  text-decoration: none;
  text-transform: uppercase;
  transition: background 160ms ease, color 160ms ease;
}

.bv-primary-nav a:hover,
.bv-primary-nav a:focus-visible,
.bv-primary-nav .current-menu-item > a {
  background: rgba(255, 255, 255, 0.12);
  color: var(--bv-gold-pale);
}

.bv-main {
  min-height: 52vh;
}

.bv-category-strip {
  padding: 12px 0 26px;
  background: #fff;
}

.bv-section-kicker {
  margin: 0 0 14px;
  color: #696969;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-align: center;
  text-transform: uppercase;
}

.bv-category-track {
  display: grid;
  grid-auto-columns: 120px;
  grid-auto-flow: column;
  justify-content: center;
  gap: 44px;
  overflow-x: auto;
  padding: 8px 2px 10px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: var(--bv-gold) transparent;
}

.bv-category-card {
  scroll-snap-align: start;
  min-width: 0;
  color: #252525;
  text-align: center;
  text-decoration: none;
}

.bv-category-card:hover,
.bv-category-card:focus-visible {
  color: var(--bv-gold-deep);
}

.bv-category-image {
  display: block;
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
  border: 2px solid rgba(242, 200, 75, 0.62);
  border-radius: 23px;
  background: #12100c;
  box-shadow: 0 9px 22px rgba(20, 15, 4, 0.14);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.bv-category-card:hover .bv-category-image,
.bv-category-card:focus-visible .bv-category-image {
  transform: translateY(-4px);
  box-shadow: 0 15px 28px rgba(20, 15, 4, 0.22);
}

.bv-category-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bv-category-label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.bv-hero {
  position: relative;
  overflow: hidden;
  min-height: 430px;
  background: #060606;
}

.bv-hero-media,
.bv-hero-media::after {
  position: absolute;
  inset: 0;
}

.bv-hero-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 64% center;
}

.bv-hero-media::after {
  content: "";
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.93) 0%, rgba(0, 0, 0, 0.69) 35%, rgba(0, 0, 0, 0.15) 66%, rgba(0, 0, 0, 0.08) 100%);
}

.bv-hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  min-height: 430px;
  max-width: 600px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding-block: 58px;
  color: #fff;
}

.bv-eyebrow {
  display: inline-flex;
  margin-bottom: 15px;
  padding: 7px 13px;
  border: 1px solid rgba(242, 200, 75, 0.55);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.34);
  color: var(--bv-gold-pale);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.bv-hero h1 {
  max-width: 590px;
  margin: 0;
  color: #fff;
  font-size: clamp(42px, 5.4vw, 72px);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 0.99;
  text-transform: uppercase;
}

.bv-hero h1 span {
  color: var(--bv-gold);
}

.bv-hero-subtitle {
  max-width: 520px;
  margin: 19px 0 26px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 19px;
  font-weight: 600;
}

.bv-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.bv-content-zone {
  padding: 52px 0 68px;
  background: linear-gradient(180deg, #fff 0%, #fffdf5 100%);
}

.bv-content-card {
  position: relative;
  overflow: hidden;
  min-height: 260px;
  padding: 40px;
  border: 3px solid var(--bv-border);
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--bv-shadow);
}

.bv-content-card::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 6px;
  content: "";
  background: linear-gradient(90deg, var(--bv-gold-deep), var(--bv-gold-pale), var(--bv-gold-deep));
}

.bv-content-card h2,
.bv-page-card h1 {
  margin: 0;
  color: #4d4d4d;
  font-size: clamp(27px, 3vw, 38px);
  text-align: center;
}

.bv-editorial-status {
  display: grid;
  max-width: 760px;
  min-height: 120px;
  place-items: center;
  margin: 28px auto 0;
  padding: 24px;
  border-left: 4px solid var(--bv-gold-deep);
  background: #fafafa;
  color: #777;
  font-size: 17px;
  text-align: center;
}

.bv-page-shell {
  padding: 48px 0 72px;
  background: #fffdf6;
}

.bv-page-card {
  min-height: 320px;
  padding: 42px;
  border: 2px solid var(--bv-border);
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--bv-shadow);
}

.bv-page-content {
  max-width: 860px;
  margin: 28px auto 0;
}

.bv-page-content:empty::before {
  display: block;
  padding: 30px;
  border-left: 4px solid var(--bv-gold-deep);
  background: #f8f8f8;
  color: #777;
  content: "Nội dung sẽ được đội ngũ biên tập cập nhật.";
  text-align: center;
}

.bv-post-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-top: 30px;
}

.bv-post-teaser {
  padding: 24px;
  border: 1px solid #eee2b2;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 9px 22px rgba(0, 0, 0, 0.06);
}

.bv-post-teaser h2 {
  margin: 0 0 12px;
  font-size: 21px;
  text-align: left;
}

.bv-post-teaser a {
  color: #2c2c2c;
  text-decoration: none;
}

.bv-site-footer {
  border-top: 1px solid #f1e5b2;
  background: #fff;
}

.bv-footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 44px;
  padding-block: 58px 72px;
}

.bv-footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #111;
  text-decoration: none;
}

.bv-footer-brand img {
  width: 58px;
  height: 58px;
  border-radius: 50%;
}

.bv-footer-brand strong {
  font-size: 24px;
  font-style: italic;
  font-weight: 900;
}

.bv-footer-brand strong span {
  color: var(--bv-gold);
}

.bv-footer-note {
  margin: 20px 0 0;
  color: #626262;
  font-size: 14px;
}

.bv-footer-column h2 {
  margin: 0 0 18px;
  color: #d66d31;
  font-size: 20px;
}

.bv-footer-links {
  padding: 0;
  margin: 0;
  list-style: none;
}

.bv-footer-links li + li {
  margin-top: 10px;
}

.bv-footer-links a {
  color: #3d4652;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.bv-footer-links a:hover,
.bv-footer-links a:focus-visible {
  color: var(--bv-gold-deep);
}

.bv-footer-bottom {
  padding: 14px 16px 76px;
  background: #111;
  color: #d7d7d7;
  font-size: 13px;
  text-align: center;
}

.bv-promo-bar {
  position: fixed;
  z-index: 80;
  right: 0;
  bottom: 0;
  left: 0;
  background: linear-gradient(90deg, #080808 0%, #241b06 42%, #997110 75%, #0b0a08 100%);
  color: #fff;
  box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.22);
}

.bv-promo-inner {
  display: flex;
  min-height: 58px;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 8px 46px 8px 16px;
}

.bv-promo-copy {
  color: var(--bv-gold-pale);
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.bv-promo-bar .bv-button {
  min-height: 36px;
  padding: 8px 18px;
  font-size: 12px;
}

.bv-promo-close {
  position: absolute;
  top: 50%;
  right: 14px;
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  transform: translateY(-50%);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 50%;
  background: #fff;
  color: #111;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.bv-promo-bar[hidden] {
  display: none;
}

.bv-mobile-drawer,
.bv-drawer-backdrop {
  display: none;
}

@media (max-width: 960px) {
  .bv-category-track {
    justify-content: start;
  }

  .bv-header-main {
    grid-template-columns: auto 1fr auto;
  }

  .bv-menu-toggle {
    display: block;
  }

  .bv-header-spacer,
  .bv-primary-nav {
    display: none;
  }

  .bv-brand {
    justify-self: center;
  }

  .bv-brand-copy {
    font-size: 29px;
  }

  .bv-header-actions {
    justify-self: end;
  }

  .bv-button {
    padding-inline: 17px;
  }

  .bv-mobile-drawer {
    position: fixed;
    z-index: 101;
    top: 0;
    bottom: 0;
    left: 0;
    display: block;
    width: min(82vw, 330px);
    padding: 72px 0 24px;
    transform: translateX(-104%);
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 18px 0 45px rgba(0, 0, 0, 0.25);
    transition: transform 220ms ease;
  }

  .bv-mobile-drawer.is-open {
    transform: translateX(0);
  }

  .bv-drawer-backdrop {
    position: fixed;
    z-index: 100;
    inset: 0;
    display: block;
    visibility: hidden;
    opacity: 0;
    background: rgba(0, 0, 0, 0.63);
    transition: opacity 220ms ease, visibility 220ms ease;
  }

  .bv-drawer-backdrop.is-open {
    visibility: visible;
    opacity: 1;
  }

  .bv-drawer-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 38px;
    height: 38px;
    border: 0;
    background: transparent;
    color: #555;
    font-size: 30px;
    cursor: pointer;
  }

  .bv-mobile-menu {
    padding: 0;
    margin: 0;
    list-style: none;
  }

  .bv-mobile-menu a {
    display: block;
    padding: 15px 22px;
    border-bottom: 1px solid #eee;
    color: #4a4a4a;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
    text-transform: uppercase;
  }

  .bv-footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .bv-container {
    width: min(calc(100% - 24px), var(--bv-container));
  }

  .bv-header-main {
    min-height: 70px;
    gap: 8px;
  }

  .bv-brand {
    gap: 7px;
  }

  .bv-brand img {
    width: 36px;
    height: 36px;
  }

  .bv-brand-copy {
    font-size: 21px;
    letter-spacing: -0.8px;
  }

  .bv-brand-copy small {
    display: none;
  }

  .bv-menu-toggle {
    width: 38px;
    height: 38px;
  }

  .bv-header-actions {
    position: absolute;
    top: 70px;
    right: 0;
    left: 0;
    z-index: 70;
    justify-self: stretch;
    justify-content: center;
    gap: 10px;
    min-height: 46px;
    padding: 5px 12px;
    background: linear-gradient(90deg, #090909, #6c5516, #090909);
  }

  .bv-header-actions .bv-button {
    min-height: 34px;
    padding: 7px 17px;
    font-size: 11px;
  }

  .bv-nav-shell {
    height: 46px;
    background: #111;
  }

  .bv-category-strip {
    padding-top: 10px;
  }

  .bv-section-kicker {
    font-size: 15px;
  }

  .bv-category-track {
    grid-auto-columns: 112px;
    gap: 13px;
  }

  .bv-category-image {
    border-radius: 17px;
  }

  .bv-hero,
  .bv-hero-content {
    min-height: 340px;
  }

  .bv-hero-media img {
    object-position: 67% center;
  }

  .bv-hero-media::after {
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.94) 0%, rgba(0, 0, 0, 0.74) 55%, rgba(0, 0, 0, 0.16) 100%);
  }

  .bv-hero-content {
    max-width: 78%;
    padding-block: 40px;
  }

  .bv-hero h1 {
    font-size: 38px;
  }

  .bv-hero-subtitle {
    margin-block: 14px 20px;
    font-size: 15px;
  }

  .bv-content-zone {
    padding: 34px 0 48px;
  }

  .bv-content-card,
  .bv-page-card {
    padding: 26px 20px;
    border-radius: 17px;
  }

  .bv-content-card {
    min-height: 230px;
  }

  .bv-editorial-status {
    font-size: 15px;
  }

  .bv-post-list,
  .bv-footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 22px;
  }

  .bv-footer-grid {
    padding-block: 42px 78px;
  }

  .bv-footer-brand img {
    width: 48px;
    height: 48px;
  }

  .bv-footer-brand strong {
    font-size: 19px;
  }

  .bv-promo-inner {
    min-height: 54px;
    gap: 9px;
  }

  .bv-promo-copy {
    font-size: 12px;
  }
}

@media (max-width: 430px) {
  .bv-category-track {
    grid-auto-columns: 105px;
  }

  .bv-hero-content {
    max-width: 88%;
  }

  .bv-post-list,
  .bv-footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .bv-footer-grid > :first-child {
    grid-column: 1 / -1;
  }

  .bv-promo-copy {
    max-width: 180px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
