/* BJ888 Home — SEO-first layout inspired by thesplit.tv structure (rebranded) */
@import url("https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:wght@400;500;600;700;800&family=Oswald:wght@500;600;700&display=swap");

:root {
  --bj-ink: #0b1220;
  --bj-header: #0c1929;
  --bj-surface: #132033;
  --bj-page: #eef1f5;
  --bj-card: #ffffff;
  --bj-text: #1c2430;
  --bj-muted: #5b677a;
  --bj-line: #d9e0ea;
  --bj-gold: #e8b84a;
  --bj-gold-deep: #c4922a;
  --bj-register: #e11d48;
  --bj-register-hover: #be123c;
  --bj-login: #f8fafc;
  --bj-radius: 14px;
  --bj-inner: 1120px;
  --bj-font: "Be Vietnam Pro", system-ui, sans-serif;
  --bj-display: "Oswald", "Be Vietnam Pro", sans-serif;
}

.bj-home {
  font-family: var(--bj-font);
  color: var(--bj-text);
  background: var(--bj-page);
}

.bj-inner {
  width: min(100% - 2rem, var(--bj-inner));
  margin-inline: auto;
}

/* ——— HERO (full-bleed, one composition) ——— */
.bj-hero {
  position: relative;
  min-height: clamp(420px, 72vh, 640px);
  display: grid;
  align-items: end;
  overflow: hidden;
  background: var(--bj-ink) center/cover no-repeat;
  color: #fff;
}

.bj-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(8, 14, 24, 0.78) 0%, rgba(8, 14, 24, 0.42) 42%, rgba(8, 14, 24, 0.12) 72%, rgba(8, 14, 24, 0.05) 100%),
    linear-gradient(180deg, rgba(8, 14, 24, 0.2) 0%, rgba(8, 14, 24, 0.35) 55%, rgba(8, 14, 24, 0.72) 100%);
  z-index: 1;
}

.bj-hero__content {
  position: relative;
  z-index: 2;
  padding: 3.5rem 0 3rem;
  max-width: 720px;
  animation: bj-rise 0.8s ease-out both;
}

.bj-brand {
  display: inline-flex;
  align-items: center;
  margin-bottom: 1.15rem;
  text-decoration: none;
  color: #fff;
}

.bj-brand img {
  width: clamp(168px, 28vw, 220px);
  height: auto;
  aspect-ratio: 350 / 106;
  object-fit: contain;
  filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.45));
}

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

.bj-hero h1,
.bj888-home-template .bj-hero h1,
.page-template-page-templatesbj888-home-php .bj-hero h1,
#main .bj-hero h1,
.row.row-main .bj-hero h1,
.entry-content .bj-hero h1 {
  margin: 0 0 0.95rem;
  font-family: var(--bj-display);
  font-size: clamp(1.95rem, 4.6vw, 3.15rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: 0.015em;
  text-wrap: balance;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  background: none !important;
  text-shadow:
    0 2px 18px rgba(0, 0, 0, 0.65),
    0 1px 2px rgba(0, 0, 0, 0.45),
    0 0 24px rgba(232, 184, 74, 0.22);
}

.bj-hero__lead {
  margin: 0 0 1.5rem;
  max-width: 36rem;
  font-size: 1.08rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.45);
}

.bj-hero__keyword {
  color: var(--bj-gold);
  font-weight: 800;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.bj-hero__keyword:hover {
  color: #ffe08a;
}

.bj-lobbies__head a {
  color: inherit;
  text-decoration: none;
}

.bj-lobbies__head a:hover {
  text-decoration: underline;
}

/* Header polish when on BJ888 home template */
.bj888-home-template .header-wrapper,
.bj888-home-template .header-main {
  background: rgba(12, 25, 41, 0.94) !important;
  backdrop-filter: blur(8px);
}

.bj888-home-template .header-main .nav > li > a {
  font-weight: 600;
  letter-spacing: 0.02em;
}

.bj888-home-template .header-button .button {
  border-radius: 999px !important;
  font-weight: 800 !important;
  min-height: 44px;
  padding-inline: 1.15rem !important;
}

/* Footer SEO strip consistency */
.bj-footer-seo {
  background: #00081e;
  color: rgba(255, 255, 255, 0.88);
  padding: 1.25rem 0 1.75rem;
  border-top: 1px solid rgba(232, 184, 74, 0.2);
}

.bj-footer-seo a {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  font-weight: 700;
  text-decoration: none;
}

.bj-footer-seo a:hover {
  color: #ffe08a !important;
  -webkit-text-fill-color: #ffe08a !important;
  text-decoration: underline;
}

.bj-footer-seo__anchors {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1rem;
  margin: 0.75rem 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.9rem;
}

.bj-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.bj-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0.75rem 1.55rem;
  border-radius: 999px;
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.bj-btn:hover {
  transform: translateY(-3px) scale(1.03);
}

.bj-btn--register {
  background: linear-gradient(135deg, var(--bj-register), #fb7185 50%, var(--bj-register));
  background-size: 200% 200%;
  color: #fff;
  box-shadow: 0 0 0 0 rgba(225, 29, 72, 0.45), 0 12px 32px rgba(225, 29, 72, 0.4);
  animation: bj-glow 2s ease-in-out infinite;
}

.bj-btn--register::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.35) 50%, transparent 65%);
  transform: translateX(-120%);
  animation: bj-header-shine 2.8s ease-in-out infinite;
  pointer-events: none;
}

.bj-btn--register:hover {
  background: var(--bj-register-hover);
  color: #fff;
  animation: none;
  box-shadow: 0 14px 36px rgba(225, 29, 72, 0.55);
}

.bj-btn--login {
  background: rgba(255, 255, 255, 0.08);
  color: #ffe08a;
  border: 2px solid rgba(232, 184, 74, 0.85);
  backdrop-filter: blur(6px);
  box-shadow: 0 0 0 0 rgba(232, 184, 74, 0.3), 0 8px 22px rgba(0, 0, 0, 0.25);
  animation: bj-login-glow 2.4s ease-in-out infinite;
}

.bj-btn--login:hover {
  background: rgba(232, 184, 74, 0.18);
  color: #fff;
  border-color: #e8b84a;
  animation: none;
}

/* ——— LOBBIES (interaction strip) ——— */
.bj-lobbies {
  background: linear-gradient(180deg, #0a1524 0%, #0c1929 100%);
  color: #fff;
  padding: 1.6rem 0 1.85rem;
  border-top: 1px solid rgba(232, 184, 74, 0.18);
}

.bj-lobbies__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.bj-lobbies__head h2 {
  margin: 0;
  font-family: var(--bj-display);
  font-size: clamp(1.2rem, 2.4vw, 1.45rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--bj-gold);
}

.bj-lobbies__track {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.75rem;
}

.bj-lobby {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 0.45rem;
  min-height: 0;
  padding: 1rem 0.95rem 1.05rem;
  border-radius: 14px;
  text-decoration: none;
  color: #fff;
  background:
    linear-gradient(165deg, rgba(232, 184, 74, 0.1) 0%, transparent 42%),
    linear-gradient(160deg, #1c314d 0%, #101c2e 100%);
  border: 1px solid rgba(232, 184, 74, 0.28);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.bj-lobby::before {
  content: "";
  display: block;
  width: 28px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--bj-gold), transparent);
  margin-bottom: 0.15rem;
}

.bj-lobby:hover {
  border-color: var(--bj-gold);
  transform: translateY(-4px);
  color: #fff;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.28);
}

.bj-lobby strong {
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.25;
  color: #fff;
}

.bj-lobby span {
  margin-top: 0;
  font-size: 0.82rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.78);
}

/* ——— PROMO ——— */
.bj-promo {
  padding: 1.75rem 0 0.5rem;
}

.bj-promo h2 {
  margin: 0 0 0.85rem;
  font-family: var(--bj-display);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--bj-ink);
}

.bj-promo__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
}

.bj-promo__item {
  display: block;
  overflow: hidden;
  border-radius: var(--bj-radius);
  background: var(--bj-card);
  box-shadow: 0 8px 24px rgba(12, 25, 41, 0.06);
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s ease;
}

.bj-promo__item:hover {
  transform: translateY(-4px);
}

.bj-promo__item img {
  display: block;
  width: 100%;
  height: 140px;
  object-fit: cover;
}

.bj-promo__item p {
  margin: 0;
  padding: 0.75rem 0.9rem 0.95rem;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.35;
}

/* ——— SEO CONTENT ——— */
.bj-seo {
  padding: 2rem 0 1rem;
}

.bj-seo__panel {
  background: var(--bj-card);
  border: 1px solid var(--bj-line);
  border-radius: calc(var(--bj-radius) + 2px);
  padding: clamp(1.25rem, 3vw, 2rem);
  box-shadow: 0 10px 30px rgba(12, 25, 41, 0.04);
}

.bj-seo__panel > h2:first-child {
  margin-top: 0;
  font-family: var(--bj-display);
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--bj-ink);
}

.bj-prose {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--bj-text);
}

.bj-prose h2,
.bj-prose h3 {
  color: var(--bj-ink);
  line-height: 1.3;
  margin: 1.6rem 0 0.7rem;
}

.bj-prose h2 {
  font-size: 1.35rem;
}

.bj-prose h3 {
  font-size: 1.12rem;
}

.bj-prose p {
  margin: 0 0 1rem;
}

.bj-prose a {
  color: #1d4ed8;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.bj-prose img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
}

.bj-prose ul,
.bj-prose ol {
  margin: 0 0 1rem 1.2rem;
}

.bj-prose.is-collapsed {
  max-height: 28rem;
  overflow: hidden;
  mask-image: linear-gradient(#000 70%, transparent);
  -webkit-mask-image: linear-gradient(#000 70%, transparent);
}

.bj-seo__more {
  display: inline-flex;
  margin-top: 1rem;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  border: 1px solid var(--bj-line);
  background: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.bj-seo__more:hover {
  border-color: var(--bj-gold-deep);
  color: var(--bj-gold-deep);
}

/* ——— NEWS ——— */
.bj-news {
  padding: 1.5rem 0 0.5rem;
}

.bj-news__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.85rem;
}

.bj-news__head h2 {
  margin: 0;
  font-family: var(--bj-display);
  font-size: 1.35rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.bj-news__head a {
  font-size: 0.9rem;
  font-weight: 600;
  color: #1d4ed8;
  text-decoration: none;
}

.bj-news__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
}

.bj-news__item {
  display: flex;
  flex-direction: column;
  background: var(--bj-card);
  border: 1px solid var(--bj-line);
  border-radius: var(--bj-radius);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease;
}

.bj-news__item:hover {
  transform: translateY(-3px);
}

.bj-news__item img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  background: #dde3ec;
}

.bj-news__item h3 {
  margin: 0;
  padding: 0.85rem 0.9rem 0.35rem;
  font-size: 0.98rem;
  line-height: 1.4;
}

.bj-news__item time {
  display: block;
  padding: 0 0.9rem 0.95rem;
  font-size: 0.78rem;
  color: var(--bj-muted);
}

/* ——— TRUST ——— */
.bj-trust {
  padding: 2rem 0 3rem;
}

.bj-trust__panel {
  background: var(--bj-card);
  border: 1px solid var(--bj-line);
  border-radius: calc(var(--bj-radius) + 2px);
  padding: clamp(1.25rem, 3vw, 1.75rem);
}

.bj-trust__panel > h2 {
  margin: 0 0 0.5rem;
  font-family: var(--bj-display);
  font-size: 1.35rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.bj-trust__meta {
  color: var(--bj-muted);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.bj-trust__verified {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
  padding: 0.55rem 0.85rem;
  border-radius: 10px;
  background: #ecfdf5;
  color: #047857;
  font-size: 0.88rem;
  font-weight: 600;
}

.bj-trust__score-wrap {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
  align-items: center;
}

.bj-trust__score {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: conic-gradient(var(--bj-gold) 0 92%, #e6ebf2 0);
  position: relative;
}

.bj-trust__score::before {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 50%;
  background: #fff;
}

.bj-trust__score strong {
  position: relative;
  z-index: 1;
  font-family: var(--bj-display);
  font-size: 1.6rem;
  color: var(--bj-ink);
}

.bj-trust__checks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.35rem 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.9rem;
}

.bj-trust__checks li::before {
  content: "✓ ";
  color: #059669;
  font-weight: 700;
}

.bj-trust__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
}

.bj-trust__card {
  border: 1px solid var(--bj-line);
  border-radius: 12px;
  padding: 1rem;
  background: #fbfcfe;
}

.bj-trust__card .label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--bj-muted);
  text-transform: uppercase;
}

.bj-trust__card .name {
  display: block;
  margin-top: 0.25rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: #1d4ed8;
  text-decoration: none;
}

.bj-trust__card .role {
  margin: 0.45rem 0 0.25rem;
  font-weight: 600;
  font-size: 0.92rem;
}

.bj-trust__card .bio {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.55;
  color: var(--bj-muted);
}

.bj-trust__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.7rem;
}

.bj-trust__tags span {
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: #e8f1ff;
  color: #1a6fd4;
  font-size: 0.72rem;
  font-weight: 600;
}

@keyframes bj-rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bj-glow {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(225, 29, 72, 0.42), 0 12px 32px rgba(225, 29, 72, 0.38);
    background-position: 0% 50%;
  }
  50% {
    box-shadow: 0 0 0 10px rgba(225, 29, 72, 0), 0 14px 36px rgba(225, 29, 72, 0.55);
    background-position: 100% 50%;
  }
}

@keyframes bj-login-glow {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(232, 184, 74, 0.28), 0 8px 22px rgba(0, 0, 0, 0.25);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(232, 184, 74, 0), 0 10px 26px rgba(232, 184, 74, 0.28);
  }
}

@keyframes bj-header-shine {
  0%,
  55% {
    transform: translateX(-120%);
  }
  75%,
  100% {
    transform: translateX(120%);
  }
}

@media (max-width: 900px) {
  .bj-promo__grid,
  .bj-news__grid,
  .bj-trust__grid {
    grid-template-columns: 1fr;
  }

  .bj-trust__score-wrap {
    grid-template-columns: 1fr;
    justify-items: start;
  }

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

  .bj-hero {
    align-items: center;
    min-height: 520px;
  }

  .bj-hero__content {
    padding: 5.5rem 0 2.25rem;
    max-width: none;
  }
}

@media (max-width: 560px) {
  .bj-lobbies__track {
    grid-template-columns: 1fr;
  }
}

/* Reduce Flatsome chrome conflict on this template */
.page-template-bj888-home .page-wrapper,
.page-template-page-templatesbj888-home-php .page-wrapper {
  padding: 0;
}

.page-template-bj888-home #content > .blog-wrapper,
.page-template-bj888-home .page-title-wrapper,
.page-template-page-templatesbj888-home-php .page-title-wrapper {
  display: none !important;
}
