/* Base Styles for Game Bài Page */
.page-game-bai {
  font-family: Arial, sans-serif;
  color: var(--text-main, #FFF3E6); /* Using custom color variable */
  background-color: var(--background-color, #0D0E12); /* Using custom color variable */
  line-height: 1.6;
}

.page-game-bai__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.page-game-bai__section {
  padding: 60px 0;
}

.page-game-bai__dark-section {
  background-color: var(--background-color, #0D0E12);
  color: var(--text-main, #FFF3E6);
}

.page-game-bai__card {
  background-color: var(--card-bg, #17191F); /* Using custom color variable */
  border: 1px solid var(--border-color, #A84F0C); /* Using custom color variable */
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: var(--text-main, #FFF3E6);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.page-game-bai__section-title {
  font-size: 2.8em;
  color: #FF8C1A; /* Primary brand color */
  text-align: center;
  margin-bottom: 30px;
  font-weight: bold;
  line-height: 1.2;
}

.page-game-bai__section-intro,
.page-game-bai__text-block {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: var(--text-main, #FFF3E6);
}

.page-game-bai__sub-title,
.page-game-bai__card-title {
  font-size: 1.8em;
  color: #FFA53A; /* Auxiliary brand color */
  margin-bottom: 15px;
  font-weight: bold;
}

.page-game-bai__card-title a {
  color: #FFA53A;
  text-decoration: none;
}

.page-game-bai__card-title a:hover {
  text-decoration: underline;
}

.page-game-bai__btn-primary,
.page-game-bai__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  text-align: center;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
}

.page-game-bai__btn-primary {
  background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%); /* Custom button gradient */
  color: #ffffff;
  border: none;
}

.page-game-bai__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.page-game-bai__btn-secondary {
  background: none;
  color: #FF8C1A; /* Primary brand color */
  border: 2px solid #FF8C1A;
}

.page-game-bai__btn-secondary:hover {
  background: #FF8C1A;
  color: #ffffff;
}

.page-game-bai__btn-small {
  padding: 8px 15px;
  font-size: 0.9em;
}

.page-game-bai__btn-large {
  padding: 15px 30px;
  font-size: 1.2em;
}

.page-game-bai__btn-full-width {
  display: block;
  width: 100%;
  margin-top: 20px;
}

.page-game-bai__text-center {
  text-align: center;
}

.page-game-bai__mt-large {
  margin-top: 40px;
}

/* HERO Section */
.page-game-bai__hero-section {
  position: relative;
  padding-top: 10px; /* Small top padding, relying on body padding-top for header offset */
  padding-bottom: 60px;
  overflow: hidden;
}

.page-game-bai__hero-image-wrapper {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-bottom: 40px;
}

.page-game-bai__hero-image {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.page-game-bai__hero-content-wrapper {
  display: flex;
  justify-content: center;
  text-align: center;
}

.page-game-bai__hero-text-container {
  max-width: 900px;
  padding: 0 20px;
}

.page-game-bai__main-title {
  font-size: clamp(2.5em, 5vw, 3.5em); /* Responsive font size for H1 */
  color: #FFB04D; /* Glow color */
  margin-bottom: 20px;
  font-weight: 900;
  line-height: 1.2;
  text-shadow: 0 0 15px rgba(255, 176, 77, 0.5);
}

.page-game-bai__hero-description {
  font-size: 1.2em;
  color: #FFF3E6;
  margin-bottom: 30px;
}

.page-game-bai__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* Why Choose Us Section */
.page-game-bai__why-choose-us {
  background-color: #17191F;
  padding: 80px 0;
}

.page-game-bai__features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

/* How To Play Section */
.page-game-bai__how-to-play {
  padding: 80px 0;
}

.page-game-bai__guide-content {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

.page-game-bai__guide-text {
  flex: 1;
}

.page-game-bai__guide-image {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.page-game-bai__guide-image img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  display: block;
}

.page-game-bai__step-list {
  list-style-type: decimal;
  padding-left: 25px;
  margin-bottom: 30px;
  text-align: left;
  color: var(--text-main, #FFF3E6);
}

.page-game-bai__step-item {
  margin-bottom: 15px;
  font-size: 1.05em;
}

.page-game-bai__step-item strong {
  color: #FF8C1A;
}

/* Popular Games Section */
.page-game-bai__popular-games {
  background-color: #17191F;
  padding: 80px 0;
}

.page-game-bai__games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.page-game-bai__game-card .page-game-bai__game-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
}

.page-game-bai__game-card .page-game-bai__card-title {
  font-size: 1.5em;
  margin-top: 0;
  margin-bottom: 10px;
}

.page-game-bai__game-card .page-game-bai__card-text {
  text-align: left;
  font-size: 0.95em;
  flex-grow: 1;
  margin-bottom: 20px;
}

/* Tips Section */
.page-game-bai__tips-section {
  padding: 80px 0;
}

.page-game-bai__tips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.page-game-bai__tip-item .page-game-bai__card-title {
  font-size: 1.6em;
  margin-top: 0;
}

.page-game-bai__tip-item .page-game-bai__card-text {
  text-align: left;
}

/* FAQ Section */
.page-game-bai__faq-section {
  background-color: #17191F;
  padding: 80px 0;
}

.page-game-bai__faq-list {
  max-width: 900px;
  margin: 0 auto;
}

.page-game-bai__faq-item {
  margin-bottom: 15px;
  border-radius: 10px;
  overflow: hidden;
  color: var(--text-main, #FFF3E6);
}

.page-game-bai__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  background-color: #1A202C;
  border-bottom: 1px solid var(--border-color, #A84F0C);
  color: #FFA53A;
  list-style: none; /* For details/summary */
}

.page-game-bai__faq-question::-webkit-details-marker, /* Hide default marker for Webkit */
.page-game-bai__faq-question::marker {
  display: none;
}

.page-game-bai__faq-toggle {
  font-size: 1.5em;
  transition: transform 0.3s ease;
}

.page-game-bai__faq-item[open] .page-game-bai__faq-toggle {
  transform: rotate(45deg);
}

.page-game-bai__faq-answer {
  padding: 20px 25px;
  font-size: 1.05em;
  background-color: #17191F;
  color: var(--text-main, #FFF3E6);
}

/* Conclusion Section */
.page-game-bai__conclusion-section {
  padding: 80px 0;
}

.page-game-bai__conclusion-section .page-game-bai__text-block {
  margin-bottom: 50px;
}

/* Responsive Design */
/* Mobile specific styles (max-width: 768px) */
@media (max-width: 768px) {
  .page-game-bai {
    font-size: 15px;
    line-height: 1.5;
  }

  .page-game-bai__container {
    padding: 15px;
  }

  .page-game-bai__section {
    padding: 40px 0;
  }

  .page-game-bai__section-title {
    font-size: 2em;
    margin-bottom: 25px;
  }

  .page-game-bai__section-intro,
  .page-game-bai__text-block {
    font-size: 1em;
    margin-bottom: 30px;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* HERO Section */
  .page-game-bai__hero-section {
    padding-top: 10px; /* Small top padding */
    padding-bottom: 40px;
  }

  .page-game-bai__main-title {
    font-size: 2.2em; /* Adjusted for mobile */
    margin-bottom: 15px;
    padding: 0 10px;
  }

  .page-game-bai__hero-description {
    font-size: 1em;
    margin-bottom: 20px;
    padding: 0 15px;
  }

  .page-game-bai__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
  }

  .page-game-bai__btn-primary,
  .page-game-bai__btn-secondary,
  .page-game-bai a[class*="button"],
  .page-game-bai a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Generic image and container adaptation */
  .page-game-bai img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-game-bai__section,
  .page-game-bai__card,
  .page-game-bai__container,
  .page-game-bai__cta-buttons,
  .page-game-bai__button-group,
  .page-game-bai__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* How To Play Section (guide-content) */
  .page-game-bai__guide-content {
    flex-direction: column;
    gap: 30px;
  }

  .page-game-bai__guide-text,
  .page-game-bai__guide-image {
    flex: none;
    width: 100%;
  }

  .page-game-bai__step-list {
    padding-left: 20px;
    text-align: left;
  }

  .page-game-bai__sub-title {
    font-size: 1.5em;
    text-align: center;
  }

  /* Popular Games Section */
  .page-game-bai__games-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-game-bai__game-card .page-game-bai__game-image {
    height: 180px; /* Adjust height for mobile */
  }

  .page-game-bai__game-card .page-game-bai__card-title {
    font-size: 1.3em;
  }

  /* Tips Section */
  .page-game-bai__tips-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-game-bai__tip-item .page-game-bai__card-title {
    font-size: 1.4em;
  }

  /* FAQ Section */
  .page-game-bai__faq-question {
    font-size: 1.1em;
    padding: 15px 20px;
  }

  .page-game-bai__faq-answer {
    padding: 15px 20px;
    font-size: 1em;
  }
}

/* Placeholder for other required media queries if needed, e.g., 1024px */
@media (max-width: 1024px) {
  .page-game-bai__container {
    padding: 0 30px;
  }

  .page-game-bai__section-title {
    font-size: 2.5em;
  }

  .page-game-bai__hero-description {
    font-size: 1.1em;
  }

  .page-game-bai__features-grid,
  .page-game-bai__games-grid,
  .page-game-bai__tips-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
  }

  .page-game-bai__guide-content {
    gap: 30px;
  }
}

/* The following classes are part of the homepage modules, but are included here to satisfy the '必写清单' requirement, even if not directly used on this specific inner page. */
.page-game-bai__home-content { /* Placeholder for long text gold frame */
  border: 1px solid #A84F0C;
  border-radius: 10px;
  padding: 30px;
  margin: 40px auto;
  max-width: 1000px;
  overflow-y: auto;
  max-height: 600px;
  background-color: var(--card-bg, #17191F);
  color: var(--text-main, #FFF3E6);
}

.page-game-bai__row-games, .page-game-bai__row-sport, .page-game-bai__row-coop { /* Placeholder for game/sport/coop rows */
  background-color: #1A202C;
  padding: 40px 20px;
  max-width: 1330px;
  margin: 0 auto;
}

.page-game-bai__games-title, .page-game-bai__sport-title, .page-game-bai__coop-title { /* Placeholder for titles */
  color: #fff;
  text-align: center;
  font-size: 2.5em;
  margin-bottom: 30px;
}

.page-game-bai__slider-wrapper { /* Placeholder for game slider */
  overflow: hidden;
  margin-bottom: 30px;
}

.page-game-bai__slider-track { /* Placeholder for game slider track */
  display: flex;
  flex-wrap: nowrap;
  gap: 16px;
  padding-bottom: 10px; /* For scrollbar if needed */
}

.page-game-bai__game-slide { /* Placeholder for game slide item */
  flex: 0 0 200px;
  max-width: 200px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.page-game-bai__game-slide img {
  width: 100%;
  
  object-fit: cover;
  display: block;
}

.page-game-bai__banners-top-wrapper { /* Placeholder for partner grid */
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  max-width: 900px;
  margin: 0 auto 40px auto;
  align-items: center;
  justify-content: center;
}

.page-game-bai__banner-item img { /* Placeholder for partner images */
  
  
  object-fit: contain;
  margin: 0 auto;
  display: block;
}

.page-game-bai__blog-masonry { /* Placeholder for blog masonry grid */
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch; /* Ensure cards have same height */
}

.page-game-bai__blog-card-link { /* Placeholder for blog card link */
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

.page-game-bai__btn-outline { /* Placeholder for outline button */
  margin-top: auto;
  border: 1px solid #FF8C1A;
  color: #FF8C1A;
  background: transparent;
  padding: 8px 15px;
  border-radius: 5px;
  text-align: center;
  text-decoration: none;
  transition: all 0.3s ease;
}

.page-game-bai__btn-outline:hover {
  background: #FF8C1A;
  color: #ffffff;
}

.page-game-bai__blog-slider-track { /* Placeholder for blog slider track */
  display: flex;
  flex-wrap: nowrap;
  gap: 20px;
  padding-bottom: 10px;
}

.page-game-bai__blog-slide { /* Placeholder for blog slide item */
  flex: 0 0 calc(33.333% - 14px); /* Approx 3 items with gap */
  max-width: calc(33.333% - 14px);
  background-color: var(--card-bg, #17191F);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
  /* Placeholder for home-content mobile */
  .page-game-bai__home-content {
    max-height: none;
    overflow-y: visible;
    padding: 20px 15px;
    margin: 30px 0;
  }
  
  /* Placeholder for game slider mobile */
  .page-game-bai__slider-track {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    justify-content: flex-start;
  }
  .page-game-bai__game-slide {
    flex: 0 0 calc(50% - 8px); /* Two items per row */
    max-width: calc(50% - 8px);
    scroll-snap-align: start;
  }

  /* Placeholder for partner grid mobile */
  .page-game-bai__banners-top-wrapper {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    padding: 0 15px;
  }
  .page-game-bai__banner-item img {
    
    
  }

  /* Placeholder for blog masonry mobile */
  .page-game-bai__blog-masonry {
    grid-template-columns: 1fr; /* Single column */
    gap: 20px;
  }

  /* Placeholder for blog slider mobile */
  .page-game-bai__blog-slider-track {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    justify-content: flex-start;
  }
  .page-game-bai__blog-slide {
    flex: 0 0 90%; /* Almost full width, allowing for some peek of next slide */
    max-width: 90%;
    scroll-snap-align: start;
  }
  .page-game-bai__blog-slide img {
    max-width: 100% !important;
    height: auto !important;
  }

  /* Placeholder for generic images and containers mobile */
  .page-game-bai img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-game-bai__section,
  .page-game-bai__card,
  .page-game-bai__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Placeholder for buttons and button containers mobile */
  .page-game-bai__cta-button,
  .page-game-bai__btn-primary,
  .page-game-bai__btn-secondary,
  .page-game-bai a[class*="button"],
  .page-game-bai a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-game-bai__cta-buttons,
  .page-game-bai__button-group,
  .page-game-bai__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
    flex-direction: column; /* Ensure buttons stack */
  }
}