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

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

.page-game-bai__section-title {
  font-size: 32px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 25px;
  color: #F2C14E; /* Primary color */
  padding-top: 20px;
}

.page-game-bai__section-description {
  font-size: 18px;
  text-align: center;
  margin-bottom: 40px;
  color: #FFF6D6;
}

.page-game-bai__highlight {
  color: #FFD36B; /* Glow color */
  font-weight: bold;
}

.page-game-bai__inline-link {
  color: #FFD36B;
  text-decoration: underline;
}

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

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

.page-game-bai__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3; /* Subtle background */
}

.page-game-bai__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 20px;
  background: rgba(17, 17, 17, 0.7); /* Card BG with transparency */
  border-radius: 10px;
  border: 1px solid #3A2A12; /* Border */
}

.page-game-bai__hero-title {
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 700;
  color: #FFD36B; /* Glow */
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-game-bai__hero-description {
  font-size: 20px;
  color: #FFF6D6;
  margin-bottom: 30px;
}

.page-game-bai__hero-button {
  display: inline-block;
  padding: 15px 30px;
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%); /* Button gradient */
  color: #ffffff;
  font-size: 20px;
  font-weight: bold;
  border-radius: 8px;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: none;
  cursor: pointer;
}

.page-game-bai__hero-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 15px rgba(255, 211, 107, 0.4);
}

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

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

.page-game-bai__intro-text p {
  margin-bottom: 15px;
  font-size: 17px;
  color: #FFF6D6;
}

.page-game-bai__intro-image-wrapper {
  text-align: center;
}

.page-game-bai__intro-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  border: 1px solid #3A2A12;
}

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

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

.page-game-bai__game-card {
  background-color: #0A0A0A; /* Background */
  border: 1px solid #3A2A12;
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-game-bai__game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(255, 211, 107, 0.2);
}

.page-game-bai__game-card-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  border: 1px solid #3A2A12;
}

.page-game-bai__game-card-title {
  font-size: 22px;
  font-weight: 600;
  color: #F2C14E;
  margin-bottom: 15px;
}

.page-game-bai__game-card-text {
  font-size: 16px;
  color: #FFF6D6;
  margin-bottom: 20px;
}

.page-game-bai__game-card-button {
  display: inline-block;
  padding: 12px 25px;
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%); /* Button gradient */
  color: #ffffff;
  font-size: 16px;
  font-weight: bold;
  border-radius: 6px;
  text-decoration: none;
  transition: transform 0.3s ease;
  border: none;
  cursor: pointer;
}

.page-game-bai__game-card-button:hover {
  transform: translateY(-2px);
}

/* Benefits Section */
.page-game-bai__benefits-section {
  padding: 60px 0;
}

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

.page-game-bai__benefit-item {
  background-color: #111111; /* Card BG */
  border: 1px solid #3A2A12;
  border-radius: 10px;
  padding: 30px;
  text-align: center;
}

.page-game-bai__benefit-item:last-child {
  display: flex;
  justify-content: center;
  align-items: center;
  background: none;
  border: none;
  padding: 0;
}

.page-game-bai__benefit-title {
  font-size: 24px;
  font-weight: 600;
  color: #F2C14E;
  margin-bottom: 15px;
}

.page-game-bai__benefit-item p {
  font-size: 16px;
  color: #FFF6D6;
}

.page-game-bai__benefits-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  border: 1px solid #3A2A12;
}

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

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

.page-game-bai__step-card {
  background-color: #0A0A0A; /* Background */
  border: 1px solid #3A2A12;
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  position: relative;
  padding-top: 60px;
}

.page-game-bai__step-icon {
  position: absolute;
  top: -25px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%); /* Button gradient */
  color: #ffffff;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: bold;
  border: 3px solid #0A0A0A;
  box-shadow: 0 0 15px rgba(255, 211, 107, 0.6);
}

.page-game-bai__step-title {
  font-size: 22px;
  font-weight: 600;
  color: #F2C14E;
  margin-bottom: 15px;
}

.page-game-bai__step-text {
  font-size: 16px;
  color: #FFF6D6;
  margin-bottom: 20px;
}

.page-game-bai__step-button {
  display: inline-block;
  padding: 12px 25px;
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%); /* Button gradient */
  color: #ffffff;
  font-size: 16px;
  font-weight: bold;
  border-radius: 6px;
  text-decoration: none;
  transition: transform 0.3s ease;
  border: none;
  cursor: pointer;
}

.page-game-bai__step-button:hover {
  transform: translateY(-2px);
}

.page-game-bai__guide-image-wrapper {
  text-align: center;
}

.page-game-bai__guide-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  border: 1px solid #3A2A12;
}

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

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

.page-game-bai__tips-list {
  display: grid;
  gap: 25px;
}

.page-game-bai__tip-item {
  background-color: #111111; /* Card BG */
  border: 1px solid #3A2A12;
  border-radius: 10px;
  padding: 25px;
}

.page-game-bai__tip-title {
  font-size: 20px;
  font-weight: 600;
  color: #F2C14E;
  margin-bottom: 10px;
}

.page-game-bai__tip-item p {
  font-size: 16px;
  color: #FFF6D6;
}

.page-game-bai__tips-image-wrapper {
  text-align: center;
}

.page-game-bai__tips-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  border: 1px solid #3A2A12;
}

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

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

details.page-game-bai__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #3A2A12; /* Border */
  overflow: hidden;
  background: #0A0A0A; /* Background */
}

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: #1a1a1a;
}

.page-game-bai__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #F2C14E; /* Primary color */
}

.page-game-bai__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #FFD36B; /* Glow color */
  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: #0A0A0A;
  border-radius: 0 0 5px 5px;
  color: #FFF6D6;
  font-size: 16px;
}

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

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

.page-game-bai__cta-button {
  display: inline-block;
  padding: 15px 35px;
  font-size: 20px;
  font-weight: bold;
  border-radius: 8px;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  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 gradient */
  color: #ffffff;
  border: none;
}

.page-game-bai__btn-secondary {
  background: #0A0A0A; /* Background */
  color: #FFD36B; /* Glow color */
  border: 2px solid #F2C14E; /* Primary color */
}

.page-game-bai__cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 15px rgba(255, 211, 107, 0.4);
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-game-bai__section-title {
    font-size: 28px;
  }

  .page-game-bai__hero-title {
    font-size: clamp(2rem, 5vw, 3rem);
  }

  .page-game-bai__intro-content,
  .page-game-bai__tips-content {
    grid-template-columns: 1fr;
  }

  .page-game-bai__intro-image-wrapper,
  .page-game-bai__tips-image-wrapper {
    order: -1; /* Image above text on smaller screens */
    margin-bottom: 30px;
  }

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

  .page-game-bai__game-cards {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-game-bai__section-title {
    font-size: 24px;
    margin-bottom: 20px;
    padding-top: 15px;
  }

  .page-game-bai__section-description {
    font-size: 16px;
    margin-bottom: 30px;
  }

  .page-game-bai__hero-section {
    min-height: 400px;
    padding-bottom: 40px;
    padding-top: 10px; /* Ensure small top padding */
  }

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

  .page-game-bai__hero-title {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
    margin-bottom: 15px;
  }

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

  .page-game-bai__hero-button {
    padding: 12px 25px;
    font-size: 18px;
  }

  /* Top text / first content block */
  .page-game-bai__intro-section, 
  .page-game-bai__game-types-section, 
  .page-game-bai__benefits-section, 
  .page-game-bai__guide-section, 
  .page-game-bai__tips-section, 
  .page-game-bai__faq-section, 
  .page-game-bai__cta-section {
    padding: 40px 0;
  }

  .page-game-bai__intro-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .page-game-bai__intro-text p {
    font-size: 15px;
  }

  .page-game-bai__game-cards,
  .page-game-bai__benefits-grid,
  .page-game-bai__steps-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .page-game-bai__game-card-title,
  .page-game-bai__benefit-title,
  .page-game-bai__step-title {
    font-size: 20px;
  }

  .page-game-bai__game-card-text,
  .page-game-bai__benefit-item p,
  .page-game-bai__step-text {
    font-size: 15px;
  }

  .page-game-bai__tips-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .page-game-bai__tip-title {
    font-size: 18px;
  }

  .page-game-bai__tip-item p {
    font-size: 15px;
  }

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

  .page-game-bai__faq-qtext {
    font-size: 16px;
  }

  .page-game-bai__faq-toggle {
    font-size: 20px;
    width: 24px;
    height: 24px;
    margin-left: 10px;
  }

  details.page-game-bai__faq-item .page-game-bai__faq-answer {
    padding: 0 15px 15px;
    font-size: 15px;
  }

  .page-game-bai__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px; /* Add padding to container */
  }

  .page-game-bai__cta-button {
    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;
  }

  /* Mobile image adaptation */
  .page-game-bai img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-game-bai__hero-image-wrapper,
  .page-game-bai__intro-image-wrapper,
  .page-game-bai__game-card-image,
  .page-game-bai__benefits-image,
  .page-game-bai__guide-image-wrapper,
  .page-game-bai__tips-image-wrapper,
  .page-game-bai__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}