/* style/game-bai.css */
:root {
  --page-game-bai-primary-color: #2F6BFF;
  --page-game-bai-secondary-color: #6FA3FF;
  --page-game-bai-button-gradient: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
  --page-game-bai-card-bg: #FFFFFF;
  --page-game-bai-background: #F4F7FB;
  --page-game-bai-text-main: #1F2D3D;
  --page-game-bai-text-dark: #000000;
  --page-game-bai-border-color: #D6E2FF;
  --page-game-bai-glow-color: #A5C4FF;
}

.page-game-bai {
  font-family: 'Arial', sans-serif;
  color: var(--page-game-bai-text-main);
  background-color: var(--page-game-bai-background);
  line-height: 1.6;
}

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

.page-game-bai__section-title {
  font-size: 36px;
  font-weight: 700;
  color: var(--page-game-bai-text-dark);
  text-align: center;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.page-game-bai__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--page-game-bai-primary-color);
  border-radius: 2px;
}

.page-game-bai__section-description {
  font-size: 18px;
  color: var(--page-game-bai-text-main);
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-game-bai__text-block {
  font-size: 16px;
  margin-bottom: 15px;
  color: var(--page-game-bai-text-main);
}

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

.page-game-bai__btn-primary {
  background: var(--page-game-bai-button-gradient);
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(47, 107, 255, 0.3);
}

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

.page-game-bai__btn-secondary {
  background: #ffffff;
  color: var(--page-game-bai-primary-color);
  border: 2px solid var(--page-game-bai-primary-color);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.page-game-bai__btn-secondary:hover {
  background: var(--page-game-bai-primary-color);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.page-game-bai__btn-link {
  background: none;
  color: var(--page-game-bai-primary-color);
  text-decoration: underline;
  padding: 5px 10px;
  font-weight: 500;
}

.page-game-bai__btn-link:hover {
  color: var(--page-game-bai-secondary-color);
}

/* Hero Section */
.page-game-bai__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-color: var(--page-game-bai-background);
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 50px;
}

.page-game-bai__hero-image-wrapper {
  width: 100%;
  max-width: 1200px;
  margin-bottom: 30px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

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

.page-game-bai__hero-content-wrapper {
  max-width: 900px;
  padding: 0 15px;
}

.page-game-bai__main-title {
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 800;
  color: var(--page-game-bai-text-dark);
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-game-bai__hero-description {
  font-size: 18px;
  color: var(--page-game-bai-text-main);
  margin-bottom: 30px;
}

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

/* Intro Section */
.page-game-bai__intro-section {
  padding: 60px 0;
  background-color: var(--page-game-bai-background);
}

/* Game Types Section */
.page-game-bai__game-types-section {
  padding: 60px 0;
  background-color: var(--page-game-bai-primary-color);
  color: #ffffff;
}

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

.page-game-bai__game-types-section .page-game-bai__section-title::after {
  background: #ffffff;
}

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

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

.page-game-bai__game-tile {
  background-color: var(--page-game-bai-card-bg);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  padding-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-game-bai__game-image {
  width: 100%;
  height: 250px; /* Fixed height for consistent grid */
  object-fit: cover;
  display: block;
  margin-bottom: 15px;
}

.page-game-bai__game-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--page-game-bai-text-dark);
  margin-bottom: 10px;
  padding: 0 15px;
}

.page-game-bai__game-description {
  font-size: 15px;
  color: var(--page-game-bai-text-main);
  margin-bottom: 20px;
  flex-grow: 1;
  padding: 0 15px;
}

.page-game-bai__game-btn {
  background: var(--page-game-bai-button-gradient);
  color: #ffffff;
  padding: 10px 20px;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

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

/* How To Play Section */
.page-game-bai__how-to-play-section {
  padding: 60px 0;
  background-color: var(--page-game-bai-background);
}

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

.page-game-bai__step-item {
  background-color: var(--page-game-bai-card-bg);
  border-radius: 12px;
  padding: 30px 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

.page-game-bai__step-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--page-game-bai-text-dark);
  margin-bottom: 10px;
}

.page-game-bai__step-text {
  font-size: 15px;
  color: var(--page-game-bai-text-main);
  margin-bottom: 20px;
  flex-grow: 1;
}

/* Strategy Section */
.page-game-bai__strategy-section {
  padding: 60px 0;
  background-color: var(--page-game-bai-primary-color);
  color: #ffffff;
}

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

.page-game-bai__strategy-section .page-game-bai__section-title::after {
  background: #ffffff;
}

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

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

.page-game-bai__strategy-card {
  background-color: var(--page-game-bai-card-bg);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  text-align: center;
}

.page-game-bai__strategy-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.page-game-bai__strategy-card h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--page-game-bai-text-dark);
  margin: 20px 15px 10px 15px;
}

.page-game-bai__strategy-card p {
  font-size: 15px;
  color: var(--page-game-bai-text-main);
  padding: 0 15px 20px 15px;
}

/* Promo Section */
.page-game-bai__promo-section {
  padding: 60px 0;
  background-color: var(--page-game-bai-background);
}

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

.page-game-bai__promo-card {
  background-color: var(--page-game-bai-card-bg);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  text-align: center;
}

.page-game-bai__promo-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
}

.page-game-bai__promo-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--page-game-bai-text-dark);
  margin: 20px 15px 10px 15px;
}

.page-game-bai__promo-text {
  font-size: 15px;
  color: var(--page-game-bai-text-main);
  padding: 0 15px 20px 15px;
  flex-grow: 1;
}

.page-game-bai__promo-card .page-game-bai__btn-primary {
  margin: 0 15px 20px 15px;
}

.page-game-bai__full-promo-cta {
  text-align: center;
  margin-top: 40px;
}

/* FAQ Section */
.page-game-bai__faq-section {
  padding: 60px 0;
  background-color: var(--page-game-bai-primary-color);
  color: #ffffff;
}

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

.page-game-bai__faq-section .page-game-bai__section-title::after {
  background: #ffffff;
}

.page-game-bai__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-game-bai__faq-item {
  background-color: var(--page-game-bai-card-bg);
  border-radius: 8px;
  margin-bottom: 15px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.page-game-bai__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 18px;
  font-weight: 600;
  color: var(--page-game-bai-text-dark);
  cursor: pointer;
  background-color: #ffffff;
  border-bottom: 1px solid var(--page-game-bai-border-color);
  list-style: none; /* For details/summary */
}

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

.page-game-bai__faq-item[open] .page-game-bai__faq-question {
  border-bottom: none;
}

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

.page-game-bai__faq-toggle {
  font-size: 24px;
  font-weight: 700;
  margin-left: 15px;
  color: var(--page-game-bai-primary-color);
}

.page-game-bai__faq-answer {
  padding: 15px 25px 20px 25px;
  font-size: 16px;
  color: var(--page-game-bai-text-main);
  background-color: #f9f9f9;
  line-height: 1.6;
}

/* Why Choose Us Section */
.page-game-bai__why-choose-us {
  padding: 60px 0;
  background-color: var(--page-game-bai-background);
}

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

.page-game-bai__reason-card {
  background-color: var(--page-game-bai-card-bg);
  border-radius: 12px;
  padding: 30px 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

.page-game-bai__reason-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--page-game-bai-text-dark);
  margin-bottom: 10px;
}

.page-game-bai__reason-text {
  font-size: 15px;
  color: var(--page-game-bai-text-main);
  flex-grow: 1;
}

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

/* Global image and button responsive rules (desktop first) */
.page-game-bai img {
  max-width: 100%;
  height: auto;
  display: block;
}

.page-game-bai__section,
.page-game-bai__card,
.page-game-bai__container,
.page-game-bai__cta-buttons,
.page-game-bai__button-group,
.page-game-bai__btn-container {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

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

  .page-game-bai__container {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  .page-game-bai__section-title {
    font-size: 28px;
  }

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

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

  .page-game-bai__hero-image-wrapper {
    border-radius: 0;
    margin-bottom: 20px;
  }

  .page-game-bai__hero-image {
    object-fit: contain !important; /* Contain for mobile hero */
    aspect-ratio: unset !important;
    max-height: none !important;
  }

  .page-game-bai__main-title {
    font-size: 30px;
  }

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

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

  .page-game-bai__btn-primary,
  .page-game-bai__btn-secondary,
  .page-game-bai__game-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;
    padding-right: 15px;
  }

  /* Game Grid Mobile */
  .page-game-bai__game-grid {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

  .page-game-bai__game-image {
    height: 150px; /* Adjust height for mobile */
    object-fit: cover;
  }

  .page-game-bai__game-tile {
    padding-bottom: 15px;
  }

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

  .page-game-bai__game-description {
    font-size: 14px;
  }

  /* How To Play Steps Mobile */
  .page-game-bai__steps-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-game-bai__step-item {
    padding: 20px;
  }

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

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

  .page-game-bai__step-text {
    font-size: 14px;
  }

  /* Strategy Section Mobile */
  .page-game-bai__strategy-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

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

  /* Promo Section Mobile */
  .page-game-bai__promo-cards {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-game-bai__promo-image {
    height: 200px;
  }

  /* FAQ Section Mobile */
  .page-game-bai__faq-question {
    padding: 15px 20px;
    font-size: 16px;
  }

  .page-game-bai__faq-toggle {
    font-size: 20px;
  }

  .page-game-bai__faq-answer {
    padding: 10px 20px 15px 20px;
    font-size: 14px;
  }

  /* Why Choose Us Section Mobile */
  .page-game-bai__reasons-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-game-bai__reason-icon {
    width: 100px;
    height: 100px;
  }

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

  .page-game-bai__reason-text {
    font-size: 14px;
  }

  /* Generic image and container rules for mobile */
  .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__cta-buttons,
  .page-game-bai__button-group,
  .page-game-bai__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
}