.page-game-bai {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #FFF6D6; /* Text Main */
  background-color: #0A0A0A; /* Background */
}

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

.page-game-bai__section-title {
  font-size: 2.5em;
  font-weight: bold;
  text-align: center;
  margin-bottom: 20px;
  color: #F2C14E; /* Main Color */
  letter-spacing: 1px;
}

.page-game-bai__section-description {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 40px;
  color: #FFF6D6;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-game-bai__text-block {
  margin-bottom: 1em;
  color: #FFF6D6;
  font-size: 1.05em;
}

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

.page-game-bai__center-actions {
  display: flex;
  justify-content: center;
  margin-top: 30px;
}

/* Buttons */
.page-game-bai__btn-primary,
.page-game-bai__btn-secondary,
.page-game-bai__btn-play,
.page-game-bai__btn-step {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  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%, #DDA11D 100%); /* Button Color */
  color: #111111;
  border: none;
  box-shadow: 0 4px 15px rgba(242, 193, 78, 0.4);
}

.page-game-bai__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(242, 193, 78, 0.6);
}

.page-game-bai__btn-secondary {
  background: transparent;
  color: #F2C14E;
  border: 2px solid #F2C14E; /* Main Color */
  margin-left: 15px;
}

.page-game-bai__btn-secondary:hover {
  background: #F2C14E;
  color: #111111;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(242, 193, 78, 0.3);
}

/* Hero Section */
.page-game-bai__hero-section {
  position: relative;
  padding-top: 10px; /* Small top padding */
  margin-bottom: 40px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-game-bai__hero-image-wrapper {
  width: 100%;
  max-height: 600px;
  overflow: hidden;
}

.page-game-bai__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  object-position: center;
}

.page-game-bai__hero-content {
  max-width: 900px;
  margin-top: 40px;
  padding: 0 20px;
  text-align: center;
}

.page-game-bai__main-title {
  font-size: clamp(2.2em, 4vw, 3.5em);
  font-weight: 900;
  color: #FFD36B; /* Glow */
  margin-bottom: 20px;
  line-height: 1.2;
  letter-spacing: 0.5px;
  text-shadow: 0 0 10px rgba(242, 193, 78, 0.7);
}

.page-game-bai__hero-description {
  font-size: 1.2em;
  color: #FFF6D6;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

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

/* Intro Section */
.page-game-bai__intro-section {
  padding: 60px 0;
  background-color: #111111; /* Card B G */
  border-top: 1px solid #3A2A12; /* Border */
  border-bottom: 1px solid #3A2A12; /* Border */
}

.page-game-bai__intro-section .page-game-bai__section-title {
  color: #F2C14E;
  margin-bottom: 30px;
}

.page-game-bai__intro-section .page-game-bai__text-block {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  font-size: 1.1em;
}

/* Games Showcase Section */
.page-game-bai__games-showcase {
  padding: 80px 0;
  background-color: #0A0A0A;
}

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

.page-game-bai__game-card {
  background-color: #111111; /* Card B G */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  text-align: center;
  padding-bottom: 20px;
  border: 1px solid #3A2A12; /* Border */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-game-bai__game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(242, 193, 78, 0.2);
}

.page-game-bai__game-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-bottom: 1px solid #3A2A12;
}

.page-game-bai__game-title {
  font-size: 1.5em;
  color: #F2C14E;
  margin: 20px 0 10px;
  font-weight: bold;
}

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

.page-game-bai__btn-play {
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
  color: #111111;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  font-size: 1em;
  margin-top: 10px;
}

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

/* Why Choose Section */
.page-game-bai__why-choose-section {
  padding: 80px 0;
  background-color: #111111; /* Card B G */
  border-top: 1px solid #3A2A12; /* Border */
  border-bottom: 1px solid #3A2A12; /* Border */
}

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

.page-game-bai__feature-card {
  background-color: #0A0A0A;
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid #3A2A12;
}

.page-game-bai__feature-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 20px;
}

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

.page-game-bai__feature-description {
  font-size: 0.95em;
  color: #FFF6D6;
}

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

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

.page-game-bai__step-card {
  background-color: #111111; /* Card B G */
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid #3A2A12;
  position: relative;
  overflow: hidden;
}

.page-game-bai__step-number {
  position: absolute;
  top: -15px;
  left: -15px;
  font-size: 4em;
  font-weight: bold;
  color: rgba(242, 193, 78, 0.1);
  z-index: 0;
  line-height: 1;
}

.page-game-bai__step-title {
  font-size: 1.8em;
  color: #F2C14E;
  margin-bottom: 15px;
  font-weight: bold;
  position: relative;
  z-index: 1;
}

.page-game-bai__step-description {
  font-size: 1em;
  color: #FFF6D6;
  margin-bottom: 25px;
  position: relative;
  z-index: 1;
}

.page-game-bai__btn-step {
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
  color: #111111;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  font-size: 1em;
  margin-top: 10px;
  position: relative;
  z-index: 1;
}

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

/* Tips Section */
.page-game-bai__tips-section {
  padding: 80px 0;
  background-color: #111111; /* Card B G */
  border-top: 1px solid #3A2A12; /* Border */
  border-bottom: 1px solid #3A2A12; /* Border */
}

.page-game-bai__tips-content {
  display: flex;
  gap: 40px;
  align-items: center;
  margin-top: 40px;
}

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

.page-game-bai__tips-text p {
  margin-bottom: 15px;
  font-size: 1.05em;
  color: #FFF6D6;
}

.page-game-bai__tips-list {
  list-style: none;
  padding-left: 0;
  margin-bottom: 20px;
}

.page-game-bai__tips-list li {
  position: relative;
  padding-left: 25px;
  margin-bottom: 10px;
  color: #FFF6D6;
  font-size: 1.05em;
}

.page-game-bai__tips-list li::before {
  content: '✔️';
  position: absolute;
  left: 0;
  color: #F2C14E;
}

.page-game-bai__tips-image-wrapper {
  flex: 1;
  text-align: right;
}

.page-game-bai__tips-image {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid #3A2A12;
}

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

.page-game-bai__faq-list {
  margin-top: 40px;
}

.page-game-bai__faq-item {
  background-color: #111111; /* Card B G */
  border: 1px solid #3A2A12;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-game-bai__faq-question {
  font-size: 1.3em;
  color: #F2C14E;
  padding: 20px 25px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: bold;
  position: relative;
}

.page-game-bai__faq-question::after {
  content: '+';
  font-size: 1.5em;
  transition: transform 0.3s ease;
}

.page-game-bai__faq-item.is-active .page-game-bai__faq-question::after {
  content: '-';
  transform: rotate(180deg);
}

.page-game-bai__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out;
  color: #FFF6D6;
  padding: 0 25px;
}

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

/* CTA Section */
.page-game-bai__cta-section {
  padding: 60px 0;
  background-color: #111111; /* Card B G */
  text-align: center;
  border-top: 1px solid #3A2A12; /* Border */
}

.page-game-bai__cta-section .page-game-bai__section-title {
  color: #F2C14E;
  margin-bottom: 20px;
}

.page-game-bai__cta-section .page-game-bai__section-description {
  font-size: 1.1em;
  color: #FFF6D6;
  margin-bottom: 40px;
}

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

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

/* Media Queries */
@media (max-width: 1024px) {
  .page-game-bai__main-title {
    font-size: clamp(2em, 5vw, 3em);
  }
  .page-game-bai__hero-description {
    font-size: 1.1em;
  }
  .page-game-bai__games-grid,
  .page-game-bai__features-grid,
  .page-game-bai__steps-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
  .page-game-bai__tips-content {
    flex-direction: column;
  }
  .page-game-bai__tips-image-wrapper {
    text-align: center;
    margin-top: 30px;
  }
}

@media (max-width: 768px) {
  .page-game-bai {
    font-size: 16px;
    line-height: 1.6;
  }

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

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

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

  /* Hero Section */
  .page-game-bai__hero-section {
    padding-top: 10px !important;
  }

  .page-game-bai__hero-content {
    margin-top: 20px;
    padding: 0 15px;
  }

  .page-game-bai__main-title {
    font-size: clamp(1.8em, 7vw, 2.5em);
  }

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

  .page-game-bai__hero-actions {
    flex-direction: column;
    gap: 15px;
  }

  .page-game-bai__btn-primary,
  .page-game-bai__btn-secondary,
  .page-game-bai__btn-play,
  .page-game-bai__btn-step {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    margin-left: 0 !important; /* Reset margin for secondary button */
  }

  /* Intro Section */
  .page-game-bai__intro-section {
    padding: 40px 0;
  }

  /* Games Showcase Section */
  .page-game-bai__games-showcase {
    padding: 50px 0;
  }

  .page-game-bai__games-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-game-bai__game-image {
    height: 180px;
  }

  /* Why Choose Section */
  .page-game-bai__why-choose-section {
    padding: 50px 0;
  }

  .page-game-bai__features-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

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

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

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

  .page-game-bai__tips-content {
    flex-direction: column;
    gap: 20px;
  }

  .page-game-bai__tips-image-wrapper {
    text-align: center;
    margin-top: 20px;
  }

  .page-game-bai__tips-image {
    border-radius: 8px;
  }

  /* FAQ Section */
  .page-game-bai__faq-section {
    padding: 50px 0;
  }

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

  .page-game-bai__faq-answer p {
    padding-bottom: 15px;
  }

  /* CTA Section */
  .page-game-bai__cta-section {
    padding: 40px 0;
  }

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

  /* General image rules for mobile */
  .page-game-bai img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-game-bai__hero-image-wrapper,
  .page-game-bai__games-showcase,
  .page-game-bai__why-choose-section,
  .page-game-bai__how-to-play-section,
  .page-game-bai__tips-section,
  .page-game-bai__faq-section,
  .page-game-bai__cta-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0;
    padding-right: 0;
  }

  .page-game-bai__games-grid,
  .page-game-bai__features-grid,
  .page-game-bai__steps-grid,
  .page-game-bai__faq-list {
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-game-bai__hero-actions,
  .page-game-bai__center-actions,
  .page-game-bai__cta-buttons {
    padding-left: 15px;
    padding-right: 15px;
  }
}

/* Specific mobile rules from checklist */
/* This page does not use a hero carousel, guide box with 5 team cards, or home_content box as described in the general homepage rules. It uses a single hero image and standard sections. */
/* Blog Card Section (if applicable) */
.page-game-bai__blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* Example desktop */
  gap: 20px;
}

@media (max-width: 768px) {
  .page-game-bai__blog-grid {
    grid-template-columns: 1fr !important; /* 1 column for mobile */
  }
}