body,
h1,
h2,
h3,
h4 {
  color: var(--theme_font_color);
}
.logo,
.nav-links,
nav {
  display: flex;
}
.footer-links a:hover,
.logo i,
.nav-links a:hover,
.trust-card h3,
a:hover {
  color: var(--orange_accent);
}
.cta-button::before,
.hero::before,
.nav-links a::after {
  content: "";
  position: absolute;
}
.logo i,
.trust-card .icon {
  text-shadow: 0 0 10px var(--orange_glow);
}
.cta-button,
.footer-links a,
.hero,
.hero-content,
.nav-links a,
.section-title h2,
.trust-card {
  position: relative;
}
.category-card,
.cta-button,
.faq-item,
.hero,
.logos-slider,
.trust-card {
  overflow: hidden;
}
.category-card-footer,
.hero,
.provider-logos,
.section-title,
.trust-card,
footer {
  text-align: center;
}
.badge,
.cta-button,
.nav-links a,
.secondary-button,
.trust-card h3,
h1,
h2 {
  text-transform: uppercase;
}
:root {
  --unite_color: #fff;
  --side_menu_color: #0f0f0f;
  --hover_gradient_color_2: rgba(41, 41, 41, 0.28);
  --hover_gradient_color_1: #00ff85;
  --login_pg_background_color: #272e22;
  --theme_button_color: #00733c;
  --theme_gradient_color_2: #43b309;
  --theme_gradient_color_1: #68fd5f;
  --input_font_color: #e5e5e5;
  --theme_font_color: #fff;
  --sub_background_color: #131313;
  --main_background_color: #000;
  --input_background_color: #0d0b08;
  --special_menu_background_color: #1a1a1a;
  --important_font_color: #ff3b3b;
  --theme_icon_color: #fff;
  --input_outline_color: #0d0b08;
  --accent_color: #00ff85;
  --secondary_accent: #00c770;
  --dark_accent: #006b3d;
  --text_secondary: #b0b0b0;
  --card_background: #1a1a1a;
  --card_border: rgba(104, 253, 95, 0.2);
  --glow_color: rgba(104, 253, 95, 0.5);
  --orange_accent: #ff8c00;
  --orange_glow: rgba(255, 140, 0, 0.5);
  --orange_gradient_1: #ff8c00;
  --orange_gradient_2: #ffa500;
  --orange_border: rgba(255, 140, 0, 0.3);
}
@font-face {
  font-family: "Font Awesome 6 Free";
  font-display: swap;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: Inter, sans-serif;
  background-color: var(--main_background_color);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
}
h1,
h2,
h3 {
  font-family: Oswald, sans-serif;
}
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
h1,
h2,
h3,
h4 {
  font-weight: 700;
}
h1 {
  font-size: 3.5rem;
  letter-spacing: 1px;
}
#p-title {
  font-size: 1.5rem;
  letter-spacing: 1px;
}
.p-container {
  margin-top: 5px;
}
h2 {
  font-size: 2.5rem;
  margin-top: 3rem;
  margin-bottom: 1.5rem;
  letter-spacing: 0.5px;
}
h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}
p {
  color: var(--text_secondary);
}
a {
  color: var(--theme_gradient_color_1);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}
header {
  background-color: rgba(15, 15, 15, 0.9);
  backdrop-filter: blur(10px);
  padding: 0.75rem 0;
  position: sticky;
  top: 52px; /* Adjusted to sit below the responsible bar height (~52px) */
  z-index: 1000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}
nav {
  justify-content: center;
  align-items: center;
}
.logo {
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 2.2rem;
  font-weight: 800;
  background: linear-gradient(45deg, var(--theme_gradient_color_1), var(--orange_accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 15px var(--glow_color);
  gap: 10px;
}
.badge,
footer p {
  font-size: 0.8rem;
}
.logo i {
  font-size: 1.8rem;
}
.nav-links {
  list-style: none;
  gap: 2rem;
  align-items: center;
}
.nav-links a {
  color: var(--theme_font_color);
  font-weight: 600;
  font-size: 0.9rem;
  transition: 0.3s;
}
.nav-links a::after {
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    var(--theme_gradient_color_2),
    var(--orange_accent)
  );
  transition: width 0.3s;
}
.footer-links a:hover::after,
.nav-links a:hover::after {
  width: 100%;
}
.nav-links a:hover {
  text-shadow: 0 0 5px var(--orange_glow);
}
.cta-button {
  background: linear-gradient(
    45deg,
    var(--theme_gradient_color_2),
    var(--theme_gradient_color_1)
  );
  color: var(--main_background_color);
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  font-weight: 700;
  transition: 0.3s;
  box-shadow: 0 4px 15px rgba(104, 253, 95, 0.4);
  border: none;
  cursor: pointer;
}
.hero h1,
.hero p,
.secondary-button,
.section-title h2 {
  color: var(--theme_font_color);
}
.cta-button::before {
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s;
}
.cta-button:hover,
.secondary-button {
  background: linear-gradient(
    45deg,
    var(--orange_gradient_2),
    var(--orange_accent)
  );
}
.cta-button:hover::before {
  left: 100%;
}
.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(255, 140, 0, 0.6);
}
.secondary-button {
  padding: 0.6rem 1.5rem;
  border-radius: 50px;
  font-weight: 600;
  transition: 0.3s;
  box-shadow: 0 4px 15px rgba(255, 140, 0, 0.4);
  border: none;
  cursor: pointer;
  display: inline-block;
}
.secondary-button:hover {
  background: linear-gradient(
    45deg,
    var(--theme_gradient_color_2),
    var(--theme_gradient_color_1)
  );
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(104, 253, 95, 0.6);
}
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
}
.hamburger span {
  width: 25px;
  height: 3px;
  background-color: var(--theme_font_color);
  margin: 3px 0;
  transition: 0.3s;
}
.hero {
  padding: 8rem 0 5rem;
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.8)),
    url("https://picsum.photos/seed/casino/1920/1080.jpg") center center/cover
      no-repeat;
}
.category-card,
.provider-logos,
.trust-card {
  background-color: var(--card_background);
}
.hero::before {
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle at 50% 50%,
    rgba(104, 253, 95, 0.15) 0,
    rgba(255, 140, 0, 0.1) 50%,
    transparent 70%
  );
}
.section-title h2::after,
.trust-card::before {
  background: linear-gradient(
    90deg,
    var(--theme_gradient_color_2),
    var(--orange_accent)
  );
  content: "";
  position: absolute;
}
.hero-content {
  z-index: 1;
}
.hero h1 {
  margin-bottom: 1.5rem;
  text-shadow: 0 0 20px var(--glow_color);
  animation: 1s ease-out fadeInDown;
  letter-spacing: 2px;
}
.hero p {
  font-size: 1.3rem;
  max-width: 800px;
  margin: 0 auto 2.5rem;
  animation: 1s ease-out 0.5s both fadeInUp;
  line-height: 1.8;
}
.hero .cta-button {
  animation: 1s ease-out 1s both fadeInUp;
  font-size: 1.1rem;
  padding: 0.9rem 2rem;
}
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
section {
  padding: 5rem 0;
  background-color: var(--main_background_color);
}
.section-title {
  margin-bottom: 4rem;
}
.section-title h2 {
  display: inline-block;
}
.category-card-header h3,
.faq-item summary::before,
.highlight-text,
.social-icons a:hover,
.trust-card .icon {
  color: var(--orange_accent);
}
.section-title h2::after {
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 4px;
  border-radius: 2px;
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
}
.trust-card {
  border: 1px solid var(--card_border);
}
.trust-card::before {
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
}
.trust-card:hover {
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
  border-color: var(--orange_accent);
}
.trust-card .icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
}
.provider-logos {
  padding: 4rem 0;
  border-top: 1px solid var(--card_border);
  border-bottom: 1px solid var(--card_border);
}
.provider-logos-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 3rem;
  margin-top: 2.5rem;
}
.provider-logos-grid img {
  max-height: 50px;
  filter: grayscale(100%) brightness(1.5);
  opacity: 0.7;
  transition: 0.3s;
}
.logos-track img:hover,
.provider-logos-grid img:hover {
  filter: grayscale(0%) brightness(1.2);
  opacity: 1;
  transform: scale(1.1);
}
.game-categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2.5rem;
}
.category-card {
  border-radius: 15px;
  border: 1px solid var(--card_border);
  transition: 0.3s;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.category-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(255, 140, 0, 0.2);
  border-color: var(--orange_accent);
}
.category-card-header {
  padding: 1.5rem;
  text-align: center;
  background: linear-gradient(
    45deg,
    rgba(0, 115, 60, 0.3),
    rgba(255, 140, 0, 0.1)
  );
  position: relative;
  overflow: hidden;
}
.category-card-header::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(255, 140, 0, 0.1) 0,
    transparent 70%
  );
  opacity: 0;
  transition: opacity 0.3s;
}
.category-card:hover .category-card-header::before {
  opacity: 1;
}
.category-card-header h3 {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.category-card-header i {
  font-size: 1.5rem;
}
.category-card-body {
  padding: 1.5rem;
  flex-grow: 1;
}
.category-card-body p {
  font-size: 1rem;
  line-height: 1.7;
}
.category-card-footer {
  padding: 1.5rem;
}
.category-card-footer .cta-button {
  padding: 0.6rem 1.8rem;
  font-size: 0.9rem;
}
.faq-container {
  max-width: 800px;
  margin: 0 auto;
}
.faq-item {
  background-color: var(--card_background);
  border: 1px solid var(--card_border);
  margin-bottom: 1.5rem;
  border-radius: 10px;
  transition: 0.3s;
}
.footer-links,
.social-icons {
  margin-bottom: 2rem;
  display: flex;
}
.faq-item:hover {
  border-color: var(--orange_accent);
  box-shadow: 0 5px 15px rgba(255, 140, 0, 0.2);
}
.faq-item summary {
  padding: 1.5rem;
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color 0.3s;
}
.footer-links a,
.social-icons a {
  color: var(--text_secondary);
  transition: 0.3s;
}
.faq-item summary:hover {
  background-color: rgba(255, 140, 0, 0.1);
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item summary::before {
  content: "+";
  font-size: 1.5rem;
  margin-right: 1rem;
  transition: transform 0.3s;
}
.faq-item[open] summary::before {
  content: "-";
  transform: rotate(180deg);
}
.faq-item .faq-content {
  padding: 0 1.5rem 1.5rem 3.5rem;
}
.faq-item ul {
  list-style: disc;
  margin-left: 20px;
}
.faq-item li {
  margin-bottom: 0.8rem;
}
footer {
  background-color: var(--side_menu_color);
  padding: 3rem 0 2rem;
  border-top: 1px solid var(--card_border);
}
.footer-links {
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}
.footer-links a {
  font-size: 0.9rem;
}
.footer-links a::after {
  content: "";
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--orange_accent);
  transition: width 0.3s;
}
footer p {
  color: var(--text_secondary);
}
.social-icons {
  justify-content: center;
  gap: 1.5rem;
}
.social-icons a {
  font-size: 1.5rem;
}
.social-icons a:hover {
  transform: translateY(-3px);
}
@media (max-width: 992px) {
  h1 {
    font-size: 3rem;
  }
  h2 {
    font-size: 2.2rem;
  }
  .game-categories {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }
}
@media (max-width: 768px) {
  .hamburger,
  .nav-links.active {
    display: flex;
  }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--side_menu_color);
    flex-direction: column;
    align-items: center;
    padding: 1rem 0;
    border-top: 1px solid var(--card_border);
  }
  .hero {
    padding: 6rem 0 4rem;
  }
  h1 {
    font-size: 2.5rem;
  }
  h2 {
    font-size: 1.8rem;
  }
  section {
    padding: 4rem 0;
  }
  .game-categories,
  .trust-grid {
    grid-template-columns: 1fr;
  }
  .footer-links {
    flex-direction: column;
    gap: 1rem;
  }
}
.pulse {
  animation: 2s infinite pulse;
}
@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}
.glow {
  animation: 2s infinite alternate glow;
}
@keyframes glow {
  from {
    text-shadow: 0 0 10px var(--glow_color);
  }
  to {
    text-shadow: 0 0 20px var(--glow_color), 0 0 30px var(--glow_color);
  }
}
.orange-glow {
  animation: 2s infinite alternate orangeGlow;
}
@keyframes orangeGlow {
  from {
    text-shadow: 0 0 10px var(--orange_glow);
  }
  to {
    text-shadow: 0 0 20px var(--orange_glow), 0 0 30px var(--orange_glow);
  }
}
.highlight-text {
  font-weight: 700;
}
.border-orange {
  border-left: 4px solid var(--orange_accent);
  padding-left: 15px;
}
.badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background-color: var(--orange_accent);
  color: var(--theme_font_color);
  border-radius: 20px;
  font-weight: 600;
}
.logos-slider {
  padding: 30px 0;
  white-space: nowrap;
  position: relative;
}
.logos-track {
  display: inline-flex;
  gap: 3rem;
  display: inline-flex;
}
@keyframes scrollLeft {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}
.trust-card {
  background: linear-gradient(
    145deg,
    rgba(30, 30, 30, 0.9),
    rgba(15, 15, 15, 0.9)
  );
  border: 1px solid var(--card_border);
  padding: 2rem;
  border-radius: 15px;
  transition: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}
.trust-card:hover {
  transform: translateY(-10px);
  border-color: var(--theme_gradient_color_1);
  box-shadow: 0 10px 30px rgba(0, 255, 133, 0.2);
}
.trust-card img {
  margin-bottom: 1.5rem;
  filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.2));
}
.trust-card h3 {
  color: var(--theme_gradient_color_1);
  font-size: 1.3rem;
  margin-bottom: 1rem;
}
.trust-card p {
  line-height: 1.5;
  font-size: 0.9rem;
  color: var(--text_secondary);
}
@font-face {
  font-family: "Font Awesome 6 Free";
  font-display: swap;
  src: local("Font Awesome 6 Free");
}
.logos-track {
  display: inline-flex;
  gap: 4rem;
  animation: 60s linear infinite scrollLeft;
  will-change: transform;
}
.logos-track img {
  flex-shrink: 0;
  max-height: 60px;
  width: auto;
  filter: grayscale(100%) brightness(1.5);
  opacity: 0.7;
  flex-shrink: 0;
  transition: transform 0.3s;
}
/* --- THIẾT KẾ BANNER KHUYẾN MÃI MỚI --- */
.promotions-banner {
  width: 100%;
  overflow: hidden;
  background: #000;
  padding: 40px 0;
  border-top: 1px solid var(--orange_border);
}

.promo-track {
  display: flex;
  width: max-content;
  animation: scrollLeft 40s linear infinite; /* Chạy từ Trái sang Phải */
  will-change: transform; /* Sửa lỗi Long Task Lighthouse */
}

.promo-item {
  position: relative;
  margin: 0 15px;
  overflow: hidden;
  border-radius: 15px;
  border: 2px solid rgba(255, 140, 0, 0.3);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
}

.promo-item img {
  width: 600px; /* Desktop */
  height: auto;
  display: block;
  transition: transform 0.5s ease;
  filter: brightness(0.9) contrast(1.1); /* Làm ảnh rõ nét và sâu hơn */
}

/* Hiệu ứng hiện tên nổi trên ảnh */
.promo-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 20px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
  text-align: left;
}

.promo-title {
  color: #fff;
  font-size: 1.4rem;
  font-weight: 800;
  text-transform: uppercase;
  margin: 5px 0 0;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.promo-badge {
  background: var(--orange_accent);
  color: #000;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 900;
}

/* Hover effect */
.promo-item:hover img {
  transform: scale(1.08);
  filter: brightness(1.1);
}

/* Animation chạy từ Trái sang Phải */
@keyframes scrollLeft {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* --- TỐI ƯU CHO MOBILE --- */
@media (max-width: 768px) {
  .promo-item img {
    width: 300px;
  }
  .promo-title {
    font-size: 1rem;
  }
}
/* --- CRICKET EXCLUSIVE SECTION --- */
#cricket-exclusive {
  padding: 60px 0;
  background: radial-gradient(
    circle at top,
    rgba(0, 255, 133, 0.05),
    transparent
  );
}

.cricket-rewards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 4rem;
  padding: 30px;
  background: linear-gradient(145deg, #111, #050505);
  border: 1px solid var(--orange_border);
  border-radius: 20px;
  text-align: center;
}

.reward-item .highlight-text {
  display: block;
  font-size: 1.4rem;
  color: var(--orange_accent);
  margin-bottom: 10px;
  text-transform: uppercase;
}

.reward-item p {
  font-size: 0.9rem;
  opacity: 0.8;
}

/* Fix Lighthouse "Avoid long main-thread tasks" */
.trust-card,
.reward-item {
  will-change: transform;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .reward-item .highlight-text {
    font-size: 1.1rem;
  }
  /* Ensure the Responsible Bar is at the very top */
  .responsible-header {
    position: sticky !important;
    top: 0 !important;
    z-index: 1100 !important;
    height: 45px; /* Define a fixed height for easier calculation */
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* Center content inside the bar */
  .responsible-content {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
    gap: 8px !important;
  }

  /* Make Main Header stick BELOW the responsible bar */
  header {
    position: sticky !important;
    top: 65px !important; /* This matches the height of the responsible-header */
    z-index: 1000 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
  }

  /* Center the Logo inside the now-centered header */
  nav.container {
    justify-content: center !important;
    display: flex !important;
    width: 100% !important;
  }

  .logo {
    margin: 0 auto !important;
  }

  /* Ensure navigation links don't push the logo to the side */
  .nav-links {
    display: none !important;
  }
}
/* Ensure the Responsible Gaming content is always centered */
.responsible-content {
  display: flex;
  align-items: center;
  justify-content: center; /* Forces horizontal centering */
  gap: 12px;
  width: 100%;
  text-align: center;
}
