html {
  scroll-behavior: smooth;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 650ms ease, transform 650ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.access-grid {
  background-image:
    linear-gradient(rgba(39, 111, 191, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(39, 111, 191, 0.08) 1px, transparent 1px);
  background-size: 28px 28px;
}

.focus-ring:focus-visible {
  outline: 3px solid rgba(39, 111, 191, 0.45);
  outline-offset: 4px;
}

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

  .reveal {
    opacity: 1;
    transform: none;
  }
}


.hero-section {
  overflow: hidden;
}

.hero-image,
.content-image,
.card-image {
  display: block;
  width: 100%;
  object-fit: cover;
  background: #e2e8f0;
}

.hero-image {
  aspect-ratio: 1920 / 660;
  max-height: 660px;
  border-radius: 2rem;
  box-shadow: 0 26px 70px rgba(15, 23, 42, 0.18);
}

.content-section {
  padding: 5rem 0;
  text-align: center;
}

.content-section:nth-of-type(even) {
  background: rgba(255, 255, 255, 0.72);
}

.content-section > div > h2 {
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.05;
}

.section-banner {
  max-width: 850px;
  margin: 2rem auto 0;
}

.content-image {
  aspect-ratio: 850 / 450;
  border-radius: 1.5rem;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
}

.content-p,
.lead {
  max-width: 860px;
  margin: 1rem auto 0;
  color: #475569;
  font-size: 1.03rem;
  line-height: 1.85;
}

.content-h3 {
  max-width: 820px;
  margin: 2.2rem auto 0;
  color: #183059;
  font-size: 1.55rem;
  font-weight: 900;
  line-height: 1.2;
}

.content-h4 {
  max-width: 760px;
  margin: 1.6rem auto 0;
  color: #183059;
  font-size: 1.16rem;
  font-weight: 900;
}

.content-list {
  max-width: 840px;
  margin: 1.2rem auto 0;
  padding: 1.1rem 1.2rem 1.1rem 2.4rem;
  border: 1px solid #e2e8f0;
  border-radius: 1.25rem;
  background: #ffffff;
  color: #475569;
  line-height: 1.75;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.05);
  list-style: disc;
  text-align: left;
}

.content-list li + li {
  margin-top: 0.45rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  max-width: 1120px;
  margin: 2.2rem auto 0;
  align-items: stretch;
  text-align: left;
}

.content-card {
  position: relative;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  border-radius: 1.25rem;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  padding: 0.75rem 0.75rem 1.15rem;
  box-shadow: 0 18px 45px rgba(24, 48, 89, 0.11);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.content-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, #183059, #276fbf);
}

.content-card:hover {
  transform: translateY(-4px);
  border-color: rgba(39, 111, 191, 0.28);
  box-shadow: 0 24px 58px rgba(24, 48, 89, 0.16);
}

.card-image {
  aspect-ratio: 400 / 250;
  border-radius: 0.95rem;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.7);
}

.content-card h3 {
  margin-top: 1rem;
  padding: 0 0.35rem;
  color: #183059;
  font-size: 1.22rem;
  font-weight: 900;
  line-height: 1.2;
}

.content-card p {
  margin-top: 0.75rem;
  padding: 0 0.35rem;
  color: #475569;
  line-height: 1.7;
}

.feature-card {
  display: grid;
  grid-template-columns: minmax(240px, 400px) minmax(0, 1fr);
  gap: 1.5rem;
  align-items: center;
  max-width: 960px;
  margin: 2.2rem auto 0;
  padding: 1rem;
  border: 1px solid rgba(39, 111, 191, 0.18);
  border-radius: 1.5rem;
  background:
    linear-gradient(135deg, rgba(39, 111, 191, 0.10), rgba(255, 255, 255, 0) 34%),
    #ffffff;
  box-shadow: 0 22px 55px rgba(24, 48, 89, 0.13);
  text-align: left;
}

.feature-image {
  display: block;
  width: 100%;
  max-width: 400px;
  aspect-ratio: 400 / 250;
  border-radius: 1.1rem;
  object-fit: cover;
}

.feature-card h3 {
  color: #183059;
  font-size: 1.65rem;
  font-weight: 900;
  line-height: 1.18;
}

.feature-card p {
  margin-top: 0.8rem;
  color: #475569;
  line-height: 1.75;
}

.faq-item {
  max-width: 860px;
  margin: 1rem auto 0;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  background: #ffffff;
  padding: 1.1rem 1.25rem;
}

.faq-item button {
  display: flex;
  width: 100%;
  justify-content: space-between;
  gap: 1rem;
  text-align: left;
  color: #183059;
  font-weight: 900;
}

.faq-item p {
  padding-top: 1rem;
  color: #475569;
  line-height: 1.75;
}

table {
  width: 100%;
  max-width: 860px;
  margin: 1.5rem auto 0;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: 1rem;
  background: #ffffff;
  text-align: left;
}

th,
td {
  border: 1px solid #d9d9d9;
  padding: 0.85rem 1rem;
  vertical-align: middle;
}

th {
  background: #183059;
  color: #ffffff;
  font-weight: 900;
}

@media (max-width: 640px) {
  .hero-image,
  .content-image {
    border-radius: 1.25rem;
  }

  .content-section {
    padding: 3.5rem 0;
  }

  .content-section,
  .hero-section {
    text-align: left;
  }

  .hero-section .text-center {
    text-align: left;
  }

  .hero-section .justify-center {
    justify-content: stretch;
  }

  .content-p,
  .lead {
    font-size: 1rem;
    line-height: 1.75;
  }

  .content-h3 {
    font-size: 1.35rem;
  }

  .card-grid,
  .feature-card {
    grid-template-columns: 1fr;
  }

  .feature-card {
    padding: 0.75rem;
  }
}

/* Editorial redesign overrides */
.access-grid {
  background: #eef5ff !important;
  background-image: none !important;
}

.hero-section,
.content-section {
  text-align: left;
}

.hero-section,
.content-section {
  background: #eef5ff;
}

[id="what-makes-8xbet-different"],
[id="create-your-8xbet-account"],
[id="8xbet-bonuses-for-nigerian-players"],
[id="bet-on-sports-with-8xbet"],
[id="play-casino-games-on-8xbet"],
[id="seamless-8xbet-deposits-and-withdrawals"],
[id="8xbet-nigeria-faqs"],
[id="responsible-betting"] {
  background: #ffffff !important;
  border-block: 1px solid rgba(39, 111, 191, 0.08);
}

.hero-copy,
.content-p,
.lead {
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;
  text-align: justify;
  text-justify: inter-word;
}

.content-section > div > h2 {
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(39, 111, 191, 0.16);
  text-align: left;
}

.section-banner,
.content-list,
.faq-item,
table {
  margin-left: 0;
  margin-right: 0;
  max-width: 100%;
}

.content-h3,
.content-h4 {
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;
  text-align: left;
}

.option-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}

.option-panel {
  position: relative;
  min-height: 100%;
  padding: 1.45rem 1.45rem 1.55rem;
  border: 1px solid rgba(39, 111, 191, 0.16);
  border-radius: 1.1rem;
  background: #ffffff;
  box-shadow: 0 16px 38px rgba(24, 48, 89, 0.08);
}

.option-panel span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 999px;
  background: rgba(39, 111, 191, 0.1);
  color: #276fbf;
  font-size: 0.82rem;
  font-weight: 900;
}

.option-panel h3 {
  margin-top: 1rem;
  color: #183059;
  font-size: 1.35rem;
  font-weight: 900;
  line-height: 1.2;
}

.option-panel p {
  margin-top: 0.8rem;
  color: #475569;
  line-height: 1.78;
  text-align: justify;
  text-justify: inter-word;
}

@media (max-width: 760px) {
  .hero-copy,
  .content-p,
  .lead,
  .option-panel p {
    text-align: left;
  }

  .option-grid {
    grid-template-columns: 1fr;
  }
}
.scroll-top-fab { position: fixed; left: max(1rem, env(safe-area-inset-left)); bottom: max(1rem, env(safe-area-inset-bottom)); z-index: 70; width: 48px; height: 48px; border: 1px solid rgba(76,157,234,.28); border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; color: #fff; background: linear-gradient(135deg, #183059, #4c9dea); box-shadow: 0 16px 36px rgba(24,48,89,.22); opacity: 0; pointer-events: none; transform: translateY(12px) scale(.92); transition: opacity .22s ease, transform .22s ease, box-shadow .22s ease; }
.scroll-top-fab span { display: block; font-size: 1.35rem; line-height: 1; transform: translateY(-1px); }
.scroll-top-fab.is-visible { opacity: 1; pointer-events: auto; transform: translateY(0) scale(1); }
.scroll-top-fab:hover { transform: translateY(-4px) scale(1.04); box-shadow: 0 22px 44px rgba(76,157,234,.28); }
.scroll-top-fab:active { transform: translateY(-1px) scale(.96); }
@media (max-width: 760px) { .scroll-top-fab { width: 44px; height: 44px; } }
