.page-game-bai {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light body background */
  background-color: #F5F7FA; /* Default background for the page content */
}

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

/* Hero Section */
.page-game-bai__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 10px; /* Small top padding, relying on body for header offset */
  padding-bottom: 60px;
  overflow: hidden;
  background-color: #E53935; /* Using main brand color */
}

.page-game-bai__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.page-game-bai__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6; /* Slightly dim the image for text readability */
}

.page-game-bai__hero-content {
  position: relative;
  z-index: 2;
  color: #ffffff;
  max-width: 900px;
  padding: 20px;
}

.page-game-bai__hero-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-game-bai__hero-description {
  font-size: clamp(1rem, 2vw, 1.25rem);
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-game-bai__hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

/* General Section Styling */
.page-game-bai__section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  color: #E53935;
  text-align: center;
  margin-bottom: 40px;
  padding-top: 40px;
}

.page-game-bai__section-description {
  text-align: center;
  font-size: 1.1rem;
  max-width: 800px;
  margin: -20px auto 40px auto;
  color: #333333;
}

.page-game-bai__text-block {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #333333;
  margin-bottom: 20px;
}

.page-game-bai__text-block p {
  margin-bottom: 15px;
}

.page-game-bai__image {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Buttons */
.page-game-bai__btn-primary,
.page-game-bai__btn-secondary,
.page-game-bai__btn-small,
.page-game-bai__btn-large {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 30px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
}

.page-game-bai__btn-primary {
  background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
  color: #ffffff;
  border: none;
}

.page-game-bai__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(229, 57, 53, 0.4);
}

.page-game-bai__btn-secondary {
  background: #ffffff;
  color: #E53935;
  border: 2px solid #E53935;
}

.page-game-bai__btn-secondary:hover {
  background: #f0f0f0;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(229, 57, 53, 0.2);
}

.page-game-bai__btn-small {
  padding: 10px 20px;
  font-size: 0.9rem;
  background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
  color: #ffffff;
  border: none;
  border-radius: 5px;
}

.page-game-bai__btn-small:hover {
  opacity: 0.9;
}

.page-game-bai__btn-large {
  padding: 18px 40px;
  font-size: 1.1rem;
}

/* Introduction Section */
.page-game-bai__introduction-section {
  background: #ffffff;
  padding: 60px 0;
  border-bottom: 1px solid #e0e0e0;
}

.page-game-bai__content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

/* Game Types Section */
.page-game-bai__game-types-section {
  padding: 60px 0;
  background: #F5F7FA;
}

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

.page-game-bai__game-card {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  text-align: center;
  padding-bottom: 25px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #333333;
}

.page-game-bai__card-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  margin-bottom: 20px;
}

.page-game-bai__card-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: #E53935;
  padding: 0 15px;
}

.page-game-bai__card-text {
  font-size: 1rem;
  color: #555555;
  margin-bottom: 20px;
  flex-grow: 1;
  padding: 0 15px;
}

/* Why Choose Section */
.page-game-bai__why-choose-section {
  padding: 60px 0;
  background: #E53935; /* Dark background */
  color: #ffffff;
}

.page-game-bai__why-choose-section .page-game-bai__section-title {
  color: #ffffff;
}

.page-game-bai__why-choose-section .page-game-bai__text-block,
.page-game-bai__why-choose-section p {
  color: #f0f0f0;
}

.page-game-bai__feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.page-game-bai__feature-item {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-game-bai__feature-item h3 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-top: 0;
  margin-bottom: 10px;
  color: #FFDDC1; /* Lighter color for sub-headings */
}

.page-game-bai__feature-item p {
  font-size: 1rem;
  line-height: 1.6;
  color: #f0f0f0;
}

/* Guide Section */
.page-game-bai__guide-section {
  padding: 60px 0;
  background: #ffffff;
}

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

.page-game-bai__step-card {
  background: #F5F7FA;
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-game-bai__step-number {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background: #E53935;
  color: #ffffff;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  font-weight: 700;
  border: 4px solid #ffffff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-game-bai__step-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin-top: 20px;
  margin-bottom: 10px;
  color: #E53935;
}

.page-game-bai__step-text {
  font-size: 1rem;
  color: #555555;
  line-height: 1.6;
}

.page-game-bai__step-text a {
  color: #FF5A4F;
  text-decoration: none;
  font-weight: 600;
}

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

.page-game-bai__cta-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  margin-top: 50px;
}

.page-game-bai__cta-wrapper .page-game-bai__image {
  max-width: 800px;
  width: 100%;
}

/* Promotions Section */
.page-game-bai__promotions-section {
  padding: 60px 0;
  background: #FF5A4F; /* Medium brightness background */
  color: #ffffff;
}

.page-game-bai__promotions-section .page-game-bai__section-title {
  color: #ffffff;
}

.page-game-bai__promotions-section .page-game-bai__section-description {
  color: #f0f0f0;
}

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

.page-game-bai__promo-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: center;
  padding-bottom: 25px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #333333;
}

.page-game-bai__promo-card .page-game-bai__card-image {
  height: 220px;
}

.page-game-bai__promo-card .page-game-bai__card-title {
  color: #E53935;
}

.page-game-bai__promo-card .page-game-bai__card-text {
  color: #555555;
}

.page-game-bai__view-all-promos {
  text-align: center;
  margin-top: 40px;
}

/* Tips Section */
.page-game-bai__tips-section {
  padding: 60px 0;
  background: #ffffff;
}

.page-game-bai__tips-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-game-bai__tips-item {
  background: #F5F7FA;
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.page-game-bai__tips-item h3 {
  font-size: 1.4rem;
  font-weight: 600;
  color: #E53935;
  margin-top: 0;
  margin-bottom: 10px;
}

.page-game-bai__tips-item p {
  font-size: 1rem;
  line-height: 1.6;
  color: #555555;
}

.page-game-bai__cta-text-center {
  text-align: center;
  margin-top: 40px;
}

/* FAQ Section */
.page-game-bai__faq-section {
  padding: 60px 0;
  background: #F5F7FA; /* Light background */
  color: #333333;
}

.page-game-bai__faq-list {
  max-width: 900px;
  margin: 0 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: #666;
  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: #555555;
}
details.page-game-bai__faq-item .page-game-bai__faq-answer p {
  margin: 0;
}

/* Conclusion Section */
.page-game-bai__conclusion-section {
  padding: 60px 0;
  background: #ffffff;
  text-align: center;
}

.page-game-bai__conclusion-section .page-game-bai__text-block {
  max-width: 900px;
  margin: 0 auto 30px auto;
  font-size: 1.1rem;
}

.page-game-bai__conclusion-section .page-game-bai__text-block a {
  color: #E53935;
  text-decoration: none;
  font-weight: 600;
}

.page-game-bai__conclusion-section .page-game-bai__text-block a:hover {
  text-decoration: underline;
}

.page-game-bai__cta-center {
  margin-top: 30px;
}

/* --- Responsive Styles --- */

/* Mobile specific styles for all images and containers */
@media (max-width: 768px) {
  .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__hero-section,
  .page-game-bai__introduction-section,
  .page-game-bai__game-types-section,
  .page-game-bai__why-choose-section,
  .page-game-bai__guide-section,
  .page-game-bai__promotions-section,
  .page-game-bai__tips-section,
  .page-game-bai__faq-section,
  .page-game-bai__conclusion-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* HERO main image (object-fit: contain) */
  .page-game-bai__hero-image {
    object-fit: contain !important;
    aspect-ratio: unset !important;
    height: 300px !important; /* Adjust height for mobile if needed */
    position: relative !important;
    opacity: 1 !important; /* Ensure visibility if object-fit changes */
  }

  .page-game-bai__hero-image-wrapper {
    position: relative !important;
    height: auto !important;
    width: 100% !important;
  }

  .page-game-bai__hero-section {
    padding-top: 10px !important; /* Keep small top padding */
    padding-bottom: 40px !important;
    flex-direction: column;
  }

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

  .page-game-bai__hero-title {
    font-size: 2rem !important;
    margin-bottom: 15px !important;
  }

  .page-game-bai__hero-description {
    font-size: 1rem !important;
    margin-bottom: 25px !important;
  }

  /* Product display area (2 columns) */
  .page-game-bai__game-grid,
  .page-game-bai__promotions-grid,
  .page-game-bai__tips-list {
    grid-template-columns: 1fr 1fr !important; /* Two columns for cards */
    gap: 20px !important;
    overflow-x: hidden !important; /* Prevent horizontal scroll */
  }

  .page-game-bai__game-card,
  .page-game-bai__promo-card,
  .page-game-bai__tips-item {
    padding-bottom: 15px !important;
  }

  .page-game-bai__card-image {
    height: 150px !important;
    margin-bottom: 10px !important;
  }

  .page-game-bai__card-title {
    font-size: 1.2rem !important;
    margin-bottom: 5px !important;
  }

  .page-game-bai__card-text {
    font-size: 0.9rem !important;
    margin-bottom: 10px !important;
  }

  /* Decorative main title + long text SEO area */
  .page-game-bai__section-title {
    font-size: 1.8rem !important;
    margin-bottom: 30px !important;
    padding-top: 30px !important;
  }

  .page-game-bai__section-description {
    font-size: 1rem !important;
    margin-top: -15px !important;
    margin-bottom: 30px !important;
  }

  .page-game-bai__content-grid {
    grid-template-columns: 1fr !important;
    gap: 30px !important;
  }

  .page-game-bai__text-block {
    font-size: 1rem !important;
  }

  /* General images and containers */
  .page-game-bai__image-block {
    width: 100% !important;
  }

  .page-game-bai__image {
    max-width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
  }

  /* Buttons and button containers */
  .page-game-bai__btn-primary,
  .page-game-bai__btn-secondary,
  .page-game-bai__btn-small,
  .page-game-bai__btn-large,
  .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 !important;
    padding-right: 15px !important;
  }

  .page-game-bai__hero-buttons,
  .page-game-bai__cta-wrapper,
  .page-game-bai__view-all-promos,
  .page-game-bai__cta-text-center,
  .page-game-bai__cta-center {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-direction: column !important;
    gap: 15px !important;
  }

  .page-game-bai__steps-grid {
    grid-template-columns: 1fr !important;
    gap: 25px !important;
  }

  .page-game-bai__step-card {
    padding: 25px !important;
  }

  .page-game-bai__step-number {
    width: 40px !important;
    height: 40px !important;
    font-size: 1.5rem !important;
    top: -10px !important;
  }

  .page-game-bai__step-title {
    font-size: 1.3rem !important;
    margin-top: 15px !important;
  }

  .page-game-bai__faq-item summary.page-game-bai__faq-question { padding: 15px !important; }
  .page-game-bai__faq-qtext { font-size: 15px !important; }
  .page-game-bai__faq-toggle { font-size: 20px !important; width: 24px !important; height: 24px !important; margin-left: 10px !important; }
  .page-game-bai__faq-item .page-game-bai__faq-answer { padding: 0 15px 15px !important; }

  .page-game-bai__feature-item h3 {
    font-size: 1.2rem !important;
  }
  .page-game-bai__feature-item p {
    font-size: 0.95rem !important;
  }
}

/* Tablet specific styles (optional, but good practice) */
@media (min-width: 769px) and (max-width: 1024px) {
  .page-game-bai__container {
    padding-left: 30px;
    padding-right: 30px;
  }
  .page-game-bai__game-grid,
  .page-game-bai__promotions-grid,
  .page-game-bai__tips-list {
    grid-template-columns: repeat(2, 1fr);
  }
  .page-game-bai__content-grid {
    grid-template-columns: 1fr;
  }
  .page-game-bai__hero-title {
    font-size: 3rem;
  }
  .page-game-bai__hero-description {
    font-size: 1.1rem;
  }
}