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

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

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

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

/* Hero Section */
.page-game-bai__hero-section {
  padding-top: 10px; /* Small top padding, not --header-offset */
  padding-bottom: 60px;
  background: linear-gradient(180deg, #17191F 0%, #0D0E12 100%); /* Card BG to Background */
}

.page-game-bai__hero-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 40px;
  padding-top: 40px;
  flex-direction: row-reverse; /* Image on right, content on left for desktop */
}

.page-game-bai__hero-content {
  flex: 1 1 500px;
  text-align: left;
}

.page-game-bai__main-title {
  font-size: 3.2em;
  font-weight: 900;
  color: #FFB04D; /* Glow */
  margin-bottom: 20px;
  line-height: 1.1;
  text-shadow: 0 0 10px rgba(255, 176, 77, 0.5);
}

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

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

.page-game-bai__btn-primary,
.page-game-bai__btn-secondary,
.page-game-bai__btn-link {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  text-align: center;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
}

.page-game-bai__btn-primary {
  background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%); /* Button color */
  color: #ffffff;
  border: none;
  box-shadow: 0 5px 15px rgba(255, 140, 26, 0.4);
}

.page-game-bai__btn-primary:hover {
  background: linear-gradient(180deg, #D96800 0%, #FFA53A 100%);
  box-shadow: 0 8px 20px rgba(255, 140, 26, 0.6);
}

.page-game-bai__btn-secondary {
  background: transparent;
  color: #FF8C1A; /* Main color */
  border: 2px solid #FF8C1A; /* Border */
}

.page-game-bai__btn-secondary:hover {
  background: #FF8C1A; /* Main color */
  color: #0D0E12; /* Background */
  border-color: #FF8C1A;
}

.page-game-bai__btn-link {
  background: #A84F0C; /* Border color for subtle link */
  color: #FFF3E6;
  border: none;
  padding: 10px 20px;
  font-size: 0.9em;
  border-radius: 5px;
}

.page-game-bai__btn-link:hover {
  background: #FF8C1A;
}

.page-game-bai__hero-image {
  flex: 1 1 500px;
  text-align: center;
}

.page-game-bai__hero-visual {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* Intro Section */
.page-game-bai__intro-section {
  padding: 60px 0;
  background-color: #0D0E12; /* Background */
}

/* Games Highlight Section */
.page-game-bai__games-highlight-section {
  padding: 60px 0;
  background-color: #17191F; /* Card BG */
}

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

.page-game-bai__game-card {
  background-color: #0D0E12; /* Background */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.page-game-bai__game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

.page-game-bai__game-card-media {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  overflow: hidden;
}

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

.page-game-bai__game-card-content {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-game-bai__game-card-title {
  font-size: 1.5em;
  color: #FFB04D; /* Glow */
  margin-bottom: 10px;
}

.page-game-bai__game-card-title a {
  color: inherit;
  text-decoration: none;
}

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

.page-game-bai__game-card-description {
  font-size: 0.95em;
  color: #FFF3E6; /* Text Main */
  margin-bottom: 15px;
}

/* Advantages Section */
.page-game-bai__advantages-section {
  padding: 60px 0;
  background-color: #0D0E12; /* Background */
}

.page-game-bai__advantage-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  text-align: center;
}

.page-game-bai__advantage-item {
  padding: 25px;
  background-color: #17191F; /* Card BG */
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-game-bai__advantage-icon {
  width: 120px;
  height: 120px;
  object-fit: contain;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-game-bai__advantage-title {
  font-size: 1.4em;
  color: #FF8C1A; /* Main color */
  margin-bottom: 10px;
}

.page-game-bai__advantage-description {
  font-size: 0.95em;
  color: #FFF3E6; /* Text Main */
}

/* Guide Section */
.page-game-bai__guide-section {
  padding: 60px 0;
  background-color: #17191F; /* Card BG */
}

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

.page-game-bai__guide-step {
  text-align: center;
  padding: 30px 20px;
  background-color: #0D0E12; /* Background */
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  position: relative;
}

.page-game-bai__guide-icon-wrapper {
  position: relative;
  width: 150px;
  height: 150px;
  margin: 0 auto 25px;
}

.page-game-bai__guide-step-number {
  position: absolute;
  top: -10px;
  left: -10px;
  background-color: #FF8C1A; /* Main color */
  color: #0D0E12; /* Background */
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5em;
  font-weight: bold;
  z-index: 1;
  border: 3px solid #0D0E12;
}

.page-game-bai__guide-icon {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%; /* Make icons circular for guide */
  border: 3px solid #FFA53A; /* Auxiliary color */
}

.page-game-bai__guide-title {
  font-size: 1.4em;
  color: #FFB04D; /* Glow */
  margin-bottom: 10px;
}

.page-game-bai__guide-description {
  font-size: 0.95em;
  color: #FFF3E6; /* Text Main */
  margin-bottom: 20px;
}

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

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

.page-game-bai__faq-item {
  background-color: #17191F; /* Card BG */
  border-radius: 8px;
  margin-bottom: 15px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
  overflow: hidden;
}

.page-game-bai__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.2em;
  font-weight: bold;
  color: #FF8C1A; /* Main color */
  cursor: pointer;
  list-style: none; /* For details/summary */
}

.page-game-bai__faq-question::-webkit-details-marker {
  display: none;
}

.page-game-bai__faq-qtext {
  flex-grow: 1;
}

.page-game-bai__faq-toggle {
  font-size: 1.5em;
  margin-left: 15px;
  color: #FFB04D; /* Glow */
}

.page-game-bai__faq-answer {
  padding: 0 20px 20px;
  font-size: 1em;
  color: #FFF3E6; /* Text Main */
  line-height: 1.7;
}

/* Final CTA Section */
.page-game-bai__cta-final-section {
  padding: 80px 0;
  text-align: center;
  background: linear-gradient(180deg, #17191F 0%, #0D0E12 100%); /* Card BG to Background */
}

.page-game-bai__cta-final-content {
  max-width: 900px;
}

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

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

/* Responsive styles */
@media (max-width: 1024px) {
  .page-game-bai__main-title {
    font-size: 2.8em;
  }
  .page-game-bai__section-title {
    font-size: 2em;
  }
  .page-game-bai__hero-container {
    flex-direction: column; /* Image on top, content below for smaller screens */
  }
  .page-game-bai__hero-content {
    text-align: center;
  }
  .page-game-bai__cta-buttons {
    justify-content: center;
  }
  .page-game-bai__advantage-grid,
  .page-game-bai__guide-steps {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
}

@media (max-width: 768px) {
  /* HERO Section */
  .page-game-bai__hero-section {
    padding-top: 10px !important; /* Small top padding, not --header-offset */
    padding-bottom: 30px;
  }
  .page-game-bai__hero-container {
    padding-top: 20px;
    gap: 20px;
  }
  .page-game-bai__main-title {
    font-size: 2.2em;
    margin-bottom: 15px;
  }
  .page-game-bai__hero-description {
    font-size: 1em;
    margin-bottom: 20px;
  }
  .page-game-bai__cta-buttons {
    flex-direction: column;
    gap: 10px;
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-game-bai__btn-primary,
  .page-game-bai__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
  }

  /* Section Titles */
  .page-game-bai__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }
  .page-game-bai__text-block {
    font-size: 0.95em;
    padding: 0 10px;
  }

  /* Games Highlight Section */
  .page-game-bai__games-highlight-section {
    padding: 40px 0;
  }
  .page-game-bai__game-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-game-bai__game-card-title {
    font-size: 1.3em;
  }
  .page-game-bai__game-card-description {
    font-size: 0.9em;
  }

  /* Advantages Section */
  .page-game-bai__advantages-section {
    padding: 40px 0;
  }
  .page-game-bai__advantage-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-game-bai__advantage-icon {
    width: 100px;
    height: 100px;
  }
  .page-game-bai__advantage-title {
    font-size: 1.2em;
  }

  /* Guide Section */
  .page-game-bai__guide-section {
    padding: 40px 0;
  }
  .page-game-bai__guide-steps {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-game-bai__guide-icon-wrapper {
    width: 120px;
    height: 120px;
    margin-bottom: 20px;
  }
  .page-game-bai__guide-step-number {
    width: 35px;
    height: 35px;
    font-size: 1.3em;
  }
  .page-game-bai__guide-title {
    font-size: 1.2em;
  }

  /* FAQ Section */
  .page-game-bai__faq-section {
    padding: 40px 0;
  }
  .page-game-bai__faq-question {
    font-size: 1.1em;
    padding: 15px;
  }
  .page-game-bai__faq-answer {
    font-size: 0.95em;
    padding: 0 15px 15px;
  }

  /* Final CTA Section */
  .page-game-bai__cta-final-section {
    padding: 50px 0;
  }
  .page-game-bai__btn-large {
    padding: 15px 30px;
    font-size: 1.1em;
  }

  /* Universal image and container responsiveness */
  .page-game-bai img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-game-bai__container,
  .page-game-bai__section,
  .page-game-bai__card,
  .page-game-bai__game-card,
  .page-game-bai__advantage-item,
  .page-game-bai__guide-step,
  .page-game-bai__faq-item,
  .page-game-bai__cta-final-content {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}