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

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

.page-game-bai__section-title {
  font-size: 36px;
  font-weight: 700;
  color: #1F2D3D; /* Text Main */
  text-align: center;
  margin-bottom: 25px;
  line-height: 1.3;
}

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

.page-game-bai__section-subtitle {
  font-size: 18px;
  color: #555;
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-game-bai__section-subtitle--light {
  color: #f0f0f0;
}

.page-game-bai__btn-primary,
.page-game-bai__btn-secondary,
.page-game-bai__card-btn,
.page-game-bai__btn-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 8px;
  font-size: 17px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

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

.page-game-bai__btn-primary:hover {
  background: linear-gradient(180deg, #2F6BFF 0%, #4A8BFF 100%);
  box-shadow: 0 4px 15px rgba(47, 107, 255, 0.4);
}

.page-game-bai__btn-secondary {
  background: #ffffff;
  color: #2F6BFF;
  border: 2px solid #2F6BFF; /* Main Color */
}

.page-game-bai__btn-secondary:hover {
  background: #f0f0f0;
  color: #2F6BFF;
  border-color: #2F6BFF;
  box-shadow: 0 4px 15px rgba(47, 107, 255, 0.2);
}

.page-game-bai__card-btn {
  background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
  color: #ffffff;
  border: none;
  padding: 10px 20px;
  font-size: 15px;
  border-radius: 5px;
}

.page-game-bai__card-btn:hover {
  background: linear-gradient(180deg, #2F6BFF 0%, #4A8BFF 100%);
  box-shadow: 0 2px 10px rgba(47, 107, 255, 0.3);
}

.page-game-bai__btn-link {
  color: #2F6BFF;
  text-decoration: none;
  font-weight: 600;
  padding: 5px 0;
  border-bottom: 2px solid transparent;
  display: inline-block;
  font-size: 16px;
}

.page-game-bai__btn-link:hover {
  border-color: #2F6BFF;
}

/* Hero Section */
.page-game-bai__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px 0 60px; /* Adjusted padding-top */
  background-color: #F4F7FB;
  overflow: hidden;
}

.page-game-bai__hero-image-wrapper {
  width: 100%;
  max-height: 500px;
  overflow: hidden;
  margin-bottom: 40px;
}

.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;
  padding: 0 15px;
  z-index: 1;
}

.page-game-bai__main-title {
  font-size: 48px;
  font-weight: 800;
  color: #1F2D3D; /* Text Main */
  margin-bottom: 20px;
  line-height: 1.2;
  max-width: 100%;
}

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

.page-game-bai__hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

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

.page-game-bai__intro-grid {
  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: #1F2D3D;
}

.page-game-bai__intro-image-wrapper {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.page-game-bai__intro-image {
  width: 100%;
  height: auto;
  display: block;
}

/* Game Types Section */
.page-game-bai__types-section {
  padding: 80px 0;
  background-color: #2F6BFF;
}

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

.page-game-bai__game-card {
  background: #FFFFFF; /* Card BG */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  text-align: center;
  padding-bottom: 25px;
}

.page-game-bai__card-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  margin-bottom: 20px;
}

.page-game-bai__card-title {
  font-size: 24px;
  font-weight: 700;
  color: #1F2D3D;
  margin-bottom: 10px;
}

.page-game-bai__card-title a {
  color: #1F2D3D;
  text-decoration: none;
}

.page-game-bai__card-title a:hover {
  color: #2F6BFF;
}

.page-game-bai__card-description {
  font-size: 16px;
  color: #555;
  padding: 0 20px;
  margin-bottom: 25px;
}

/* Guide Section */
.page-game-bai__guide-section {
  padding: 80px 0;
}

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

.page-game-bai__step-item {
  background: #FFFFFF;
  border: 1px solid #D6E2FF; /* Border */
  border-radius: 10px;
  padding: 30px 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-game-bai__step-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.page-game-bai__step-icon-wrapper {
  width: 100%;
  max-width: 120px;
  height: 120px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #EBF2FF;
  border-radius: 50%;
}

.page-game-bai__step-icon {
  width: 80px;
  height: 80px;
  object-fit: contain;
}

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

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

/* Tips Section */
.page-game-bai__tips-section {
  padding: 80px 0;
  background-color: #2F6BFF;
}

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

.page-game-bai__tip-card {
  background: #FFFFFF;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.page-game-bai__tip-card:hover {
  transform: translateY(-5px);
}

.page-game-bai__tip-title {
  font-size: 22px;
  font-weight: 700;
  color: #1F2D3D;
  margin-bottom: 15px;
}

.page-game-bai__tip-description {
  font-size: 16px;
  color: #555;
}

.page-game-bai__tips-cta {
  text-align: center;
  margin-top: 50px;
}

/* Promo Section */
.page-game-bai__promo-section {
  padding: 80px 0;
}

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

.page-game-bai__promo-card {
  background: #FFFFFF;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  text-align: center;
  padding-bottom: 25px;
}

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

.page-game-bai__promo-cta {
  text-align: center;
  margin-top: 50px;
}

/* Features Section */
.page-game-bai__features-section {
  padding: 80px 0;
  background-color: #2F6BFF;
}

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

.page-game-bai__feature-item {
  background: #FFFFFF;
  border-radius: 10px;
  padding: 30px 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

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

.page-game-bai__feature-title {
  font-size: 22px;
  font-weight: 700;
  color: #1F2D3D;
  margin-bottom: 15px;
}

.page-game-bai__feature-description {
  font-size: 16px;
  color: #555;
}

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

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

details.page-game-bai__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid #D6E2FF; /* Border */
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

details.page-game-bai__faq-item summary.page-game-bai__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
  font-size: 18px;
  font-weight: 600;
  color: #1F2D3D;
}

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

.page-game-bai__faq-qtext {
  flex: 1;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #1F2D3D;
}

.page-game-bai__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #2F6BFF; /* Main 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 25px 20px;
  background: #f9f9f9;
  border-radius: 0 0 8px 8px;
  font-size: 16px;
  color: #555;
}

details.page-game-bai__faq-item .page-game-bai__faq-answer p {
  margin-bottom: 10px;
}

details.page-game-bai__faq-item .page-game-bai__faq-answer a {
  color: #2F6BFF;
  text-decoration: none;
  font-weight: 600;
}

details.page-game-bai__faq-item .page-game-bai__faq-answer a:hover {
  text-decoration: underline;
}

.page-game-bai__faq-cta {
  text-align: center;
  margin-top: 50px;
}

/* Conclusion Section */
.page-game-bai__conclusion-section {
  padding: 80px 0;
  background-color: #2F6BFF;
  text-align: center;
}

.page-game-bai__conclusion-text {
  font-size: 19px;
  color: #f0f0f0;
  max-width: 900px;
  margin: 0 auto 25px;
}

.page-game-bai__conclusion-text--light {
  color: #ffffff;
}

.page-game-bai__conclusion-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
  margin-top: 40px;
}

/* --- Responsive Styles --- */
@media (max-width: 1024px) {
  .page-game-bai__section-title {
    font-size: 32px;
  }
  .page-game-bai__main-title {
    font-size: 40px;
  }
  .page-game-bai__hero-description {
    font-size: 18px;
  }
  .page-game-bai__intro-grid {
    grid-template-columns: 1fr;
  }
  .page-game-bai__intro-image-wrapper {
    order: -1; /* Image appears above text on smaller screens */
  }
  .page-game-bai__game-cards-grid, .page-game-bai__guide-steps, .page-game-bai__tips-grid, .page-game-bai__promo-cards-grid, .page-game-bai__features-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  /* Top text / first content block padding */
  .page-game-bai__hero-section {
    padding-top: 10px !important;
    padding-bottom: 40px;
  }

  /* General content sections padding */
  .page-game-bai__intro-section,
  .page-game-bai__types-section,
  .page-game-bai__guide-section,
  .page-game-bai__tips-section,
  .page-game-bai__promo-section,
  .page-game-bai__features-section,
  .page-game-bai__faq-section,
  .page-game-bai__conclusion-section {
    padding: 50px 0 !important;
  }

  .page-game-bai__container {
    padding: 0 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-game-bai__section-title {
    font-size: 28px !important;
    margin-bottom: 20px !important;
  }
  .page-game-bai__section-subtitle {
    font-size: 16px !important;
    margin-bottom: 30px !important;
  }
  .page-game-bai__main-title {
    font-size: 36px !important;
  }
  .page-game-bai__hero-description {
    font-size: 16px !important;
  }

  /* Buttons responsive adaptation */
  .page-game-bai__btn-primary,
  .page-game-bai__btn-secondary,
  .page-game-bai__card-btn,
  .page-game-bai__btn-link {
    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__conclusion-buttons {
    flex-direction: column !important;
    gap: 15px !important;
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 15px !important;
    box-sizing: border-box !important;
  }

  /* Image responsive adaptation */
  .page-game-bai img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-game-bai__hero-image-wrapper,
  .page-game-bai__intro-image-wrapper,
  .page-game-bai__game-card,
  .page-game-bai__step-item,
  .page-game-bai__tip-card,
  .page-game-bai__promo-card,
  .page-game-bai__feature-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  /* Specific grid layouts stacking */
  .page-game-bai__intro-grid {
    grid-template-columns: 1fr !important;
  }
  .page-game-bai__game-cards-grid,
  .page-game-bai__guide-steps,
  .page-game-bai__tips-grid,
  .page-game-bai__promo-cards-grid,
  .page-game-bai__features-grid {
    grid-template-columns: 1fr !important;
  }

  .page-game-bai__card-image {
    height: 200px !important; /* Ensure min-height */
  }
  .page-game-bai__step-icon-wrapper {
    width: 100px !important;
    height: 100px !important;
  }
  .page-game-bai__step-icon {
    width: 70px !important;
    height: 70px !important;
  }
  .page-game-bai__feature-icon {
    width: 80px !important;
    height: 80px !important;
  }

  /* FAQ specific mobile styles */
  details.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;
  }
  details.page-game-bai__faq-item .page-game-bai__faq-answer {
    padding: 0 15px 15px !important;
  }
}