:root {
  --body-bg-color: #f8fafc;
  --body-text-color: #222222;
  --heading-color: #222222;
  --hero-gradient1: #2c5294;
  --hero-gradient2: #559533;
  --footer-bg-color: #559533;
  --link-color: #2c5294;
  --header-bg-color: #ffffff;
  --font-family: system-ui;
  --nav-link-color: #141414;
  --footer-text-color: #ffffff;
  --header-text-color: #ffffffff;
}

html {
  overflow-x: hidden;
}

body {
  background-color: var(--body-bg-color);
  color: var(--body-text-color) !important;
  font-family: var(--font-family);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;

}


h1 {
  font-size: clamp(2rem, 4vw, 2.5rem) !important;
}

h2 {
  font-size: clamp(1.6rem, 3vw, 2rem) !important;
}

h3 {
  font-size: clamp(1.4rem, 3vw, 1.7rem) !important;
}

p {
  margin-bottom: 0.5rem !important;
}

section {
  padding: 30px 0;
  scroll-margin-top: 70px;
}

section img {
  outline: 5px var(--header-text-color) solid;
  box-shadow: rgba(50, 50, 93, 0.25) 0px 50px 100px -20px, rgba(0, 0, 0, 0.3) 0px 30px 60px -30px, rgba(10, 37, 64, 0.35) 0px -2px 6px 0px inset;
  border-radius: 25% 30% 30% 25% / 25% 50% 25% 50%;
}

section h2 {
  position: relative;
  margin-bottom: 1rem;
  padding: 0.6rem 1.2rem;
  color: var(--heading-color);
  font-family: var(--font-family);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0.03em;
  background:
    radial-gradient(circle at top left,
      rgba(44, 82, 148, 0.18),
      transparent 60%),
    radial-gradient(circle at bottom right,
      rgba(85, 149, 51, 0.18),
      transparent 60%);
  border-radius: 14px;
  isolation: isolate;
  text-align: center;
}

section h2::before {
  content: "";
  position: absolute;
  inset: -6px;
  background: linear-gradient(120deg,
      rgba(44, 82, 148, 0.25),
      rgba(85, 149, 51, 0.25));
  filter: blur(20px);
  opacity: 0.35;
  z-index: -1;
  border-radius: 18px;
}

section h2::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(45deg,
      rgba(255, 255, 255, 0.15),
      transparent 40%,
      transparent 60%,
      rgba(255, 255, 255, 0.12));
  opacity: 0.4;
  pointer-events: none;
  border-radius: 14px;
}

section h2 {
  text-rendering: optimizeLegibility;
  word-spacing: 0.06em;
}

section h3 {
  color: var(--heading-color);
  margin-bottom: 0.75rem;
  position: relative;
}

section h3::after {
  content: "";
  display: block;
  width: 48px;
  height: 4px;
  margin-top: 0.4rem;
  background: linear-gradient(90deg,
      var(--hero-gradient1),
      var(--hero-gradient2));
  border-radius: 2px;
}

.content-area a {
  color: var(--link-color) !important;
  text-decoration: underline wavy !important;
  text-underline-offset: 3px;
}

.content-area a:hover {
  color: var(--link-color) !important;
  opacity: 0.8;
}

.sidebar-page-list {
  padding: 0;
  margin: 0;
  margin-bottom: 17px;
  width: 279px;
}

.sidebar-page-list li {
  list-style-type: disc;
  list-style-position: inside;
  color: var(--heading-color);
}

.sidebar-page-list li::marker {
  color: var(--link-color);
  font-size: 1.2em;
}

.sidebar-page-list li:last-child {
  border-bottom: none;
}

.sidebar-page-list li a {
  padding: 12px 0;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
  color: var(--link-color);
}

.sidebar-page-list li a:hover {
  padding-left: 11px;
}

.error_page {
  min-height: 70vh;
}


.footer {
  background-image: radial-gradient(circle at top right,
      var(--hero-gradient2) 0%,
      var(--hero-gradient2) 4%,

      rgba(85, 149, 51, 0.95) 4%,
      rgba(85, 149, 51, 0.95) 8%,

      rgba(85, 149, 51, 0.85) 8%,
      rgba(85, 149, 51, 0.85) 12%,

      rgba(85, 149, 51, 0.75) 12%,
      rgba(85, 149, 51, 0.75) 16%,

      rgba(85, 149, 51, 0.65) 16%,
      rgba(85, 149, 51, 0.65) 20%,

      rgba(85, 149, 51, 0.55) 20%,
      rgba(85, 149, 51, 0.55) 24%,

      rgba(44, 82, 148, 0.35) 24%,
      rgba(44, 82, 148, 0.35) 28%,

      rgba(44, 82, 148, 0.2) 28%,
      rgba(44, 82, 148, 0.2) 100%);
  color: var(--body-text-color);
}

.footer a {
  text-decoration: none;
  color: var(--link-color) !important;
}

.footer a:hover {
  color: var(--link-color) !important;
  opacity: 0.8;
}


.navbar {
  background-color: var(--header-bg-color) !important;
  position: sticky;
  top: 0;
  z-index: 1020;
}

.hero-section {
  padding: 55px 0;
  position: relative;
  overflow: hidden;
  color: var(--body-text-color);
}

.hero-section.gradient-bg {
  background-image:
    radial-gradient(circle at top right,
      var(--hero-gradient1) 0%,
      var(--hero-gradient1) 4%,
      rgba(44, 82, 148, 0.85) 4%,
      rgba(44, 82, 148, 0.85) 8%,
      rgba(44, 82, 148, 0.7) 8%,
      rgba(44, 82, 148, 0.7) 12%,
      rgba(44, 82, 148, 0.55) 12%,
      rgba(44, 82, 148, 0.55) 16%,
      rgba(44, 82, 148, 0.4) 16%,
      rgba(44, 82, 148, 0.4) 20%,
      rgba(44, 82, 148, 0.25) 20%,
      rgba(44, 82, 148, 0.25) 24%,
      transparent 24%,
      transparent 100%),
    radial-gradient(circle at bottom left,
      var(--hero-gradient2) 0%,
      var(--hero-gradient2) 4%,
      rgba(85, 149, 51, 0.85) 4%,
      rgba(85, 149, 51, 0.85) 8%,
      rgba(85, 149, 51, 0.7) 8%,
      rgba(85, 149, 51, 0.7) 12%,
      rgba(85, 149, 51, 0.55) 12%,
      rgba(85, 149, 51, 0.55) 16%,
      rgba(85, 149, 51, 0.4) 16%,
      rgba(85, 149, 51, 0.4) 20%,
      rgba(85, 149, 51, 0.25) 20%,
      rgba(85, 149, 51, 0.25) 24%,
      rgba(85, 149, 51, 0.15) 24%,
      rgba(85, 149, 51, 0.15) 100%);
}

.hero-section .container {
  position: relative;
  z-index: 2;
}


@media (max-width: 768px) {
  .hero-section {
    padding: 60px 0;
  }

}

.navbar-light .navbar-nav .nav-link {
  color: var(--nav-link-color, #141414) !important;
}

.navbar-light .navbar-nav .nav-link.active {
  color: var(--link-color) !important;
  font-weight: bold;
}

/* Mobile nav */
@media (max-width: 1199.98px) {
  .navbar-collapse {
    position: fixed;
    top: 61px;
    left: 15px;
    right: 15px;
    background-color: color-mix(in srgb, var(--header-bg-color) 65%, transparent);
    backdrop-filter: blur(12px);
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    padding: 15px;
    margin: 0;
  }

  .navbar-nav {
    width: 100%;
  }

  .navbar-nav .nav-item {
    margin: 7px 0;
  }

  .navbar-nav .nav-item:hover {
    transform: translateY(-1px);
  }

  .navbar-nav .nav-link {
    font-size: 1.2rem;
    font-weight: 500;
    text-decoration: none;
    display: block;
    padding: 0;
  }

  .navbar-toggler {
    z-index: 10000;
    position: relative;
    border: var(--bs-border-width) solid var(--nav-link-color, #141414) !important;
  }
}

.custom-dropdown {
  border: 0;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  border-radius: 12px;
  padding: 0.5rem 0;
  margin-top: 0.5rem;
  min-width: 220px;
  background: color-mix(in srgb,
      var(--header-bg-color) 65%,
      transparent) !important;
  backdrop-filter: blur(12px);
}

.custom-dropdown .dropdown-item {
  padding: 0.75rem 1.5rem;
  transition: all 0.3s ease;
  color: var(--nav-link-color, #141414) !important;
  font-weight: 500;
  border-radius: 0;
  text-wrap: wrap;
}

.dropdown-menu {
  display: none;
}

.custom-dropdown .dropdown-item:hover {
  color: #fff;
  background: color-mix(in srgb,
      var(--header-bg-color) 95%,
      transparent) !important;
}

.nav-item.dropdown>.nav-link {
  display: flex;
  align-items: center;
}

.nav-item.dropdown>.nav-link .arrow {
  position: relative;
  margin-left: auto;
  border: solid var(--nav-link-color, #141414);
  border-width: 0 2px 2px 0;
  padding: 3px;
  transform: rotate(45deg);
  transition: transform 0.25s;
}

.dropdown.open .dropdown-menu {
  display: block;
}

@media (min-width: 1200px) {
  .nav-item.dropdown {
    position: relative;
  }

  .nav-item.dropdown>.nav-link .arrow {
    margin-left: 7px;
  }

  .custom-dropdown.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 0;
    z-index: 1000;
  }

  .nav-item.dropdown:hover>.nav-link .arrow {
    transform: rotate(-135deg);
  }

  .nav-item.dropdown:hover>.dropdown-menu {
    display: block !important;
  }
}

@media (max-width: 1199px) {
  .nav-item.dropdown>.nav-link .arrow {
    padding: 4px;
  }
}





.scroll-top {
  position: fixed;
  visibility: hidden;
  opacity: 0;
  right: 15px;
  bottom: -15px;
  z-index: 99999;
  background-color: var(--link-color);
  width: 44px;
  height: 44px;
  border-radius: 50px;
  transition: all 0.4s;
}

.scroll-top i {
  font-size: 24px;
  color: var(--body-bg-color) !important;
  line-height: 0;
}

.scroll-top:hover {
  background-color: color-mix(in srgb, var(--link-color), transparent 20%);
  color: var(--footer-bg-color);
}

.scroll-top.active {
  visibility: visible;
  opacity: 1;
  bottom: 15px;
}


.logo-m88 {
  background: url('/images/m88.svg');
}

.bg-m88 {
  background-color: #1a202c;
}

.logo-bc-game {
  background: url('/images/bc-game.svg');
}

.bg-bc-game {
  background-color: #292d2e;
}

[class*="logo-"] {
  display: block;
  text-indent: -9999px;
  text-align: left;
  background-size: 80%;
  background-position: center center !important;
  background-repeat: no-repeat;
}

[class*="brand-"][class*="bg-"] {
  margin: 0 auto;
  padding: 5px;
  border-radius: 4px;
  width: 150px;
  height: 100px;
}

.error-text {
  display: inline-block;
  font-family: var(--font-family);
  font-size: clamp(4rem, 15vw, 10rem);
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 1;
  color: var(--heading-color);
  text-shadow:
    6px 6px 0 var(--hero-gradient1),
    12px 12px 0 var(--hero-gradient2);
  user-select: none;
}

.box {
  position: relative;
  background: linear-gradient(145deg,
      var(--body-bg-color),
      #ffffff);
  color: var(--body-text-color);
  padding: 2rem;
  border-radius: 18px;
  border: 1px solid rgba(44, 82, 148, 0.12);
  box-shadow:
    0 10px 30px rgba(44, 82, 148, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  overflow: hidden;
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease,
    border-color 0.35s ease;

  height: 100%;
}

.box::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg,
      transparent 30%,
      rgba(85, 149, 51, 0.15),
      rgba(44, 82, 148, 0.15),
      transparent 70%);
  opacity: 0.5;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.box::after {
  content: "";
  position: absolute;
  top: -40%;
  right: -40%;
  width: 120%;
  height: 120%;
  background: radial-gradient(circle,
      rgba(44, 82, 148, 0.18),
      transparent 60%);
  opacity: 0.4;
  pointer-events: none;
}

.box:hover {
  transform: translateY(-6px);
  border-color: rgba(85, 149, 51, 0.45);
  box-shadow:
    0 18px 45px rgba(44, 82, 148, 0.18),
    0 6px 14px rgba(85, 149, 51, 0.15);
}

.box:hover::before {
  opacity: 1;
}

.box h3 {
  color: var(--heading-color);
  margin-bottom: 0.75rem;
  position: relative;
}

.box h3::after {
  content: "";
  display: block;
  width: 48px;
  height: 4px;
  margin-top: 0.4rem;
  background: linear-gradient(90deg,
      var(--hero-gradient1),
      var(--hero-gradient2));
  border-radius: 2px;
}

.box p {
  color: var(--body-text-color);
  opacity: 0.9;
}

.box img {
  border-radius: 15px;
}

.styled {
  background-image: linear-gradient(55deg, rgba(208, 208, 208, 0.03) 0%, rgba(208, 208, 208, 0.03) 20%, rgba(55, 55, 55, 0.03) 20%, rgba(55, 55, 55, 0.03) 40%, rgba(81, 81, 81, 0.03) 40%, rgba(81, 81, 81, 0.03) 60%, rgba(208, 208, 208, 0.03) 60%, rgba(208, 208, 208, 0.03) 80%, rgba(191, 191, 191, 0.03) 80%, rgba(191, 191, 191, 0.03) 100%), linear-gradient(291deg, rgba(190, 190, 190, 0.02) 0%, rgba(190, 190, 190, 0.02) 14.286%, rgba(105, 105, 105, 0.02) 14.286%, rgba(105, 105, 105, 0.02) 28.572%, rgba(230, 230, 230, 0.02) 28.572%, rgba(230, 230, 230, 0.02) 42.858%, rgba(216, 216, 216, 0.02) 42.858%, rgba(216, 216, 216, 0.02) 57.144%, rgba(181, 181, 181, 0.02) 57.144%, rgba(181, 181, 181, 0.02) 71.42999999999999%, rgba(129, 129, 129, 0.02) 71.43%, rgba(129, 129, 129, 0.02) 85.71600000000001%, rgba(75, 75, 75, 0.02) 85.716%, rgba(75, 75, 75, 0.02) 100.002%), linear-gradient(32deg, rgba(212, 212, 212, 0.03) 0%, rgba(212, 212, 212, 0.03) 12.5%, rgba(223, 223, 223, 0.03) 12.5%, rgba(223, 223, 223, 0.03) 25%, rgba(11, 11, 11, 0.03) 25%, rgba(11, 11, 11, 0.03) 37.5%, rgba(86, 86, 86, 0.03) 37.5%, rgba(86, 86, 86, 0.03) 50%, rgba(106, 106, 106, 0.03) 50%, rgba(106, 106, 106, 0.03) 62.5%, rgba(220, 220, 220, 0.03) 62.5%, rgba(220, 220, 220, 0.03) 75%, rgba(91, 91, 91, 0.03) 75%, rgba(91, 91, 91, 0.03) 87.5%, rgba(216, 216, 216, 0.03) 87.5%, rgba(216, 216, 216, 0.03) 100%), linear-gradient(312deg, rgba(113, 113, 113, 0.01) 0%, rgba(113, 113, 113, 0.01) 14.286%, rgba(54, 54, 54, 0.01) 14.286%, rgba(54, 54, 54, 0.01) 28.572%, rgba(166, 166, 166, 0.01) 28.572%, rgba(166, 166, 166, 0.01) 42.858%, rgba(226, 226, 226, 0.01) 42.858%, rgba(226, 226, 226, 0.01) 57.144%, rgba(109, 109, 109, 0.01) 57.144%, rgba(109, 109, 109, 0.01) 71.42999999999999%, rgba(239, 239, 239, 0.01) 71.43%, rgba(239, 239, 239, 0.01) 85.71600000000001%, rgba(54, 54, 54, 0.01) 85.716%, rgba(54, 54, 54, 0.01) 100.002%), linear-gradient(22deg, rgba(77, 77, 77, 0.03) 0%, rgba(77, 77, 77, 0.03) 20%, rgba(235, 235, 235, 0.03) 20%, rgba(235, 235, 235, 0.03) 40%, rgba(215, 215, 215, 0.03) 40%, rgba(215, 215, 215, 0.03) 60%, rgba(181, 181, 181, 0.03) 60%, rgba(181, 181, 181, 0.03) 80%, rgba(193, 193, 193, 0.03) 80%, rgba(193, 193, 193, 0.03) 100%), linear-gradient(80deg, rgba(139, 139, 139, 0.02) 0%, rgba(139, 139, 139, 0.02) 14.286%, rgba(114, 114, 114, 0.02) 14.286%, rgba(114, 114, 114, 0.02) 28.572%, rgba(240, 240, 240, 0.02) 28.572%, rgba(240, 240, 240, 0.02) 42.858%, rgba(221, 221, 221, 0.02) 42.858%, rgba(221, 221, 221, 0.02) 57.144%, rgba(74, 74, 74, 0.02) 57.144%, rgba(74, 74, 74, 0.02) 71.42999999999999%, rgba(201, 201, 201, 0.02) 71.43%, rgba(201, 201, 201, 0.02) 85.71600000000001%, rgba(187, 187, 187, 0.02) 85.716%, rgba(187, 187, 187, 0.02) 100.002%), linear-gradient(257deg, rgba(72, 72, 72, 0.03) 0%, rgba(72, 72, 72, 0.03) 16.667%, rgba(138, 138, 138, 0.03) 16.667%, rgba(138, 138, 138, 0.03) 33.334%, rgba(54, 54, 54, 0.03) 33.334%, rgba(54, 54, 54, 0.03) 50.001000000000005%, rgba(161, 161, 161, 0.03) 50.001%, rgba(161, 161, 161, 0.03) 66.668%, rgba(17, 17, 17, 0.03) 66.668%, rgba(17, 17, 17, 0.03) 83.33500000000001%, rgba(230, 230, 230, 0.03) 83.335%, rgba(230, 230, 230, 0.03) 100.002%), linear-gradient(47deg, rgba(191, 191, 191, 0.01) 0%, rgba(191, 191, 191, 0.01) 16.667%, rgba(27, 27, 27, 0.01) 16.667%, rgba(27, 27, 27, 0.01) 33.334%, rgba(66, 66, 66, 0.01) 33.334%, rgba(66, 66, 66, 0.01) 50.001000000000005%, rgba(36, 36, 36, 0.01) 50.001%, rgba(36, 36, 36, 0.01) 66.668%, rgba(230, 230, 230, 0.01) 66.668%, rgba(230, 230, 230, 0.01) 83.33500000000001%, rgba(93, 93, 93, 0.01) 83.335%, rgba(93, 93, 93, 0.01) 100.002%), linear-gradient(90deg, #ffffff, #ffffff);

}