.page-game-bai {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #FFF5E1; /* Default text color for dark background sections */
  background: #B71C1C; /* Main background color */
}

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

.page-game-bai__section-title {
  font-size: 2.8em;
  font-weight: bold;
  text-align: center;
  margin-bottom: 40px;
  color: #FFF5E1; /* Default for dark sections */
  line-height: 1.2;
}

.page-game-bai__description {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-game-bai__text-block {
  font-size: 1em;
  margin-bottom: 20px;
  line-height: 1.7;
}

.page-game-bai__dark-section {
  background: #B71C1C;
  color: #FFF5E1;
  padding: 60px 0;
}

.page-game-bai__light-bg {
  background: #f5f5f5;
  color: #333333;
  padding: 60px 0;
}

.page-game-bai__text-contrast-fix {
  color: #FFF5E1;
}

/* Hero Section */
.page-game-bai__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding-top: 10px; /* Small top padding as body handles header offset */
}

.page-game-bai__hero-image-wrap {
  width: 100%;
  height: 100%;
  position: relative;
  z-index: 0;
}

.page-game-bai__hero-image {
  width: 100%;
  height: 675px;
  object-fit: cover;
  display: block;
  filter: brightness(0.7);
}

.page-game-bai__hero-content {
  position: relative;
  z-index: 1;
  padding: 40px 20px;
  background: rgba(0, 0, 0, 0.4);
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.page-game-bai__main-title {
  font-size: clamp(2.5em, 5vw, 3.5em);
  font-weight: 900;
  color: #FFD86A; /* Gold color for main title */
  margin-bottom: 20px;
  line-height: 1.1;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-game-bai__hero-content .page-game-bai__description {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: #FFF5E1;
  max-width: 900px;
}

.page-game-bai__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  margin: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-game-bai__btn-primary {
  background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%);
  color: #7A0E0E; /* Deep Red text for gold button */
  border: none;
}

.page-game-bai__btn-primary:hover {
  background: linear-gradient(180deg, #E6B800 0%, #FFD86A 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.page-game-bai__btn-secondary {
  background: #7A0E0E; /* Deep Red background */
  color: #FFF5E1; /* Text Main color */
  border: 2px solid #F4D34D; /* Gold border */
}

.page-game-bai__btn-secondary:hover {
  background: #5a0a0a;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

/* Intro Section */
.page-game-bai__intro-section .page-game-bai__section-title {
  color: #C91F17;
}
.page-game-bai__intro-section .page-game-bai__description,
.page-game-bai__intro-section .page-game-bai__text-block {
  color: #333333;
}

/* Games Section */
.page-game-bai__games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-game-bai__game-card {
  background: #D32F2F; /* Card BG */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  text-align: center;
  padding-bottom: 20px;
  border: 1px solid #F2B544; /* Border color */
}

.page-game-bai__game-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  margin-bottom: 15px;
}

.page-game-bai__game-title {
  font-size: 1.8em;
  color: #FFD86A; /* Gold */
  margin-bottom: 10px;
}

.page-game-bai__game-title .page-game-bai__card-link {
  color: #FFD86A;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-game-bai__game-title .page-game-bai__card-link:hover {
  color: #FFF5E1;
}

.page-game-bai__game-desc {
  font-size: 0.95em;
  color: #FFF5E1;
  padding: 0 15px;
  margin-bottom: 20px;
}

.page-game-bai__game-button {
  padding: 10px 20px;
  font-size: 1em;
}

/* Why Choose Us Section */
.page-game-bai__why-choose-us .page-game-bai__section-title {
  color: #C91F17;
}

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

.page-game-bai__feature-item {
  background: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  border: 1px solid #e0e0e0;
}

.page-game-bai__feature-title {
  font-size: 1.6em;
  color: #C91F17;
  margin-bottom: 15px;
}

.page-game-bai__feature-desc {
  color: #333333;
  font-size: 0.95em;
}

/* Promotions Section */
.page-game-bai__promo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-game-bai__promo-card {
  background: #D32F2F; /* Card BG */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  text-align: center;
  padding-bottom: 20px;
  border: 1px solid #F2B544; /* Border color */
}

.page-game-bai__promo-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  margin-bottom: 15px;
}

.page-game-bai__promo-title {
  font-size: 1.8em;
  color: #FFD86A; /* Gold */
  margin-bottom: 10px;
}

.page-game-bai__promo-desc {
  font-size: 0.95em;
  color: #FFF5E1;
  padding: 0 15px;
  margin-bottom: 20px;
}

.page-game-bai__promo-button {
  padding: 10px 20px;
  font-size: 1em;
}

/* How to Start Section */
.page-game-bai__how-to-start .page-game-bai__section-title {
  color: #C91F17;
}

.page-game-bai__steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-game-bai__step-card {
  background: #ffffff;
  padding: 30px 20px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  border: 1px solid #e0e0e0;
}

.page-game-bai__step-icon {
  font-size: 2.5em;
  font-weight: bold;
  color: #FFD86A; /* Gold */
  background: #C91F17;
  border-radius: 50%;
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  border: 3px solid #F2B544;
}

.page-game-bai__step-title {
  font-size: 1.5em;
  color: #C91F17;
  margin-bottom: 15px;
}

.page-game-bai__step-desc {
  color: #333333;
  font-size: 0.95em;
  margin-bottom: 20px;
}

.page-game-bai__step-button {
  padding: 8px 18px;
  font-size: 0.95em;
}

/* Tips Section */
.page-game-bai__tips-section .page-game-bai__section-title {
  color: #FFF5E1;
}

.page-game-bai__tips-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-game-bai__tips-list li {
  background: #D32F2F;
  margin-bottom: 15px;
  padding: 15px 20px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  font-size: 1.1em;
  color: #FFF5E1;
  border-left: 5px solid #F4D34D;
}

.page-game-bai__tips-list li strong {
  color: #FFD86A;
}

/* FAQ Section */
.page-game-bai__faq-section .page-game-bai__section-title {
  color: #C91F17;
}

.page-game-bai__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

details.page-game-bai__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  background: #fff;
}
details.page-game-bai__faq-item summary.page-game-bai__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
}
details.page-game-bai__faq-item summary.page-game-bai__faq-question::-webkit-details-marker {
  display: none;
}
details.page-game-bai__faq-item summary.page-game-bai__faq-question:hover {
  background: #f5f5f5;
}
.page-game-bai__faq-qtext {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #333333;
}
.page-game-bai__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #C91F17;
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}
details.page-game-bai__faq-item .page-game-bai__faq-answer {
  padding: 0 20px 20px;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
  color: #333333;
}

/* CTA Section */
.page-game-bai__cta-section {
  padding: 80px 0;
  text-align: center;
}

.page-game-bai__cta-section .page-game-bai__cta-button {
  margin-top: 30px;
  font-size: 1.2em;
  padding: 18px 35px;
}

.page-game-bai__cta-section .page-game-bai__cta-button:first-of-type {
  margin-right: 20px;
}

.page-game-bai__cta-section .page-game-bai__cta-button:last-of-type {
  margin-left: 20px;
}

/* General Image Responsiveness */
.page-game-bai img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-game-bai__hero-image {
    height: 500px;
  }
  .page-game-bai__main-title {
    font-size: 3em;
  }
  .page-game-bai__section-title {
    font-size: 2.2em;
  }
  .page-game-bai__cta-section .page-game-bai__cta-button {
    font-size: 1.1em;
    padding: 15px 30px;
  }
}

@media (max-width: 768px) {
  .page-game-bai__container {
    padding: 15px;
  }

  .page-game-bai__hero-section {
    padding-top: 10px;
  }

  .page-game-bai__hero-image {
    height: auto !important;
    object-fit: contain !important; /* HERO: mobile object-fit:contain */
    aspect-ratio: unset !important; /* HERO: aspect-ratio:unset */
    filter: brightness(0.8) !important;
  }

  .page-game-bai__hero-content {
    padding: 30px 15px;
  }

  .page-game-bai__main-title {
    font-size: clamp(2em, 8vw, 2.5em) !important;
    margin-bottom: 15px;
  }

  .page-game-bai__description {
    font-size: 1em;
    margin-bottom: 20px;
  }

  .page-game-bai__section-title {
    font-size: 1.8em !important;
    margin-bottom: 30px;
  }

  .page-game-bai__games-grid,
  .page-game-bai__promo-grid,
  .page-game-bai__features-grid,
  .page-game-bai__steps-grid {
    grid-template-columns: 1fr 1fr; /* Product grid 2 columns */
    gap: 20px;
    overflow-x: hidden;
  }
  
  .page-game-bai__games-section,
  .page-game-bai__promotions-section,
  .page-game-bai__why-choose-us,
  .page-game-bai__how-to-start,
  .page-game-bai__tips-section,
  .page-game-bai__faq-section,
  .page-game-bai__cta-section {
    padding: 40px 0;
  }

  .page-game-bai__game-image,
  .page-game-bai__promo-image {
    height: 150px;
  }

  .page-game-bai__game-title,
  .page-game-bai__promo-title {
    font-size: 1.4em;
  }

  .page-game-bai__step-icon {
    width: 60px;
    height: 60px;
    font-size: 2em;
  }

  .page-game-bai__step-title {
    font-size: 1.3em;
  }

  .page-game-bai__tips-list li {
    font-size: 1em;
    padding: 12px 15px;
  }

  details.page-game-bai__faq-item summary.page-game-bai__faq-question { padding: 15px; }
  .page-game-bai__faq-qtext { font-size: 15px; }

  .page-game-bai__cta-section .page-game-bai__cta-button {
    font-size: 1em !important;
    padding: 15px 20px !important;
    margin: 10px 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-game-bai__cta-section .page-game-bai__cta-button:first-of-type,
  .page-game-bai__cta-section .page-game-bai__cta-button:last-of-type {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .page-game-bai__cta-section .page-game-bai__container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding-left: 15px !important;
    padding-right: 15px !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-game-bai img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-game-bai__intro-section .page-game-bai__container,
  .page-game-bai__games-section .page-game-bai__container,
  .page-game-bai__why-choose-us .page-game-bai__container,
  .page-game-bai__promotions-section .page-game-bai__container,
  .page-game-bai__how-to-start .page-game-bai__container,
  .page-game-bai__tips-section .page-game-bai__container,
  .page-game-bai__faq-section .page-game-bai__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}

@media (max-width: 480px) {
  .page-game-bai__games-grid,
  .page-game-bai__promo-grid,
  .page-game-bai__features-grid,
  .page-game-bai__steps-grid {
    grid-template-columns: 1fr;
  }
  .page-game-bai__step-card {
    padding: 25px 15px;
  }
}