/* General Styles */
.page-game-bai {
  font-family: 'Arial', sans-serif;
  color: #333333; /* Matches Text Main for light body background */
  line-height: 1.6;
  background-color: #F5F7FA; /* Body background from shared.css */
}

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

.page-game-bai__section {
  padding: 40px 20px;
  margin-bottom: 20px;
}

.page-game-bai__section-title {
  font-size: 2.5em;
  font-weight: 700;
  color: #E53935;
  text-align: center;
  margin-bottom: 30px;
  line-height: 1.2;
}

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

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

.page-game-bai__text-block--light {
  color: #f0f0f0;
}

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

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

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

.page-game-bai__hero-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  aspect-ratio: 16/9;
}

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

.page-game-bai__hero-title {
  font-size: clamp(2.2em, 5vw, 3.8em); /* Responsive font size for H1 */
  font-weight: 800;
  color: #E53935;
  margin-bottom: 15px;
  line-height: 1.1;
}

.page-game-bai__hero-description {
  font-size: 1.2em;
  color: #333333;
  margin-bottom: 30px;
}

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

/* Buttons */
.page-game-bai__btn-primary,
.page-game-bai__btn-secondary,
.page-game-bai__btn-small {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 30px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

.page-game-bai__btn-primary {
  background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(229, 57, 53, 0.3);
}

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

.page-game-bai__btn-secondary {
  background: #ffffff;
  color: #E53935;
  border: 2px solid #E53935;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.page-game-bai__btn-secondary:hover {
  background: #E53935;
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(229, 57, 53, 0.3);
  transform: translateY(-2px);
}

.page-game-bai__btn-small {
  padding: 10px 20px;
  font-size: 0.95em;
}

/* Game Types Section */
.page-game-bai__game-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 40px;
}

.page-game-bai__game-card {
  background: #FFFFFF;
  border: 1px solid #E0E0E0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  color: #333333;
}

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

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

.page-game-bai__game-card .page-game-bai__card-title {
  font-size: 1.5em;
  font-weight: 700;
  color: #E53935;
  margin: 15px 15px 10px 15px;
}

.page-game-bai__game-card .page-game-bai__card-description {
  font-size: 0.95em;
  color: #555555;
  padding: 0 15px 15px 15px;
  flex-grow: 1;
}

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

/* Why Choose Section (Dark Background) */
.page-game-bai__dark-bg {
  background-color: #E53935;
  color: #ffffff;
}

.page-game-bai__feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 40px;
}

.page-game-bai__feature-card {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, background-color 0.3s ease;
  display: flex;
  flex-direction: column;
  color: #ffffff;
}

.page-game-bai__feature-card:hover {
  transform: translateY(-5px);
  background-color: rgba(255, 255, 255, 0.2);
}

.page-game-bai__feature-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.page-game-bai__feature-card .page-game-bai__card-title {
  font-size: 1.4em;
  font-weight: 700;
  color: #ffffff;
  margin: 15px 15px 10px 15px;
}

.page-game-bai__feature-card .page-game-bai__card-description {
  font-size: 0.95em;
  color: #f0f0f0;
  padding: 0 15px 15px 15px;
  flex-grow: 1;
}

/* Promotions Section */
.page-game-bai__promo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 40px;
}

.page-game-bai__promo-card {
  background: #FFFFFF;
  border: 1px solid #E0E0E0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  color: #333333;
}

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

.page-game-bai__promo-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.page-game-bai__promo-card .page-game-bai__card-title {
  font-size: 1.4em;
  font-weight: 700;
  color: #E53935;
  margin: 15px 15px 10px 15px;
}

.page-game-bai__promo-card .page-game-bai__card-description {
  font-size: 0.95em;
  color: #555555;
  padding: 0 15px 15px 15px;
  flex-grow: 1;
}

/* Guide Section */
.page-game-bai__steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-top: 40px;
}

.page-game-bai__step-card {
  background: #FFFFFF;
  border: 1px solid #E0E0E0;
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #333333;
}

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

.page-game-bai__step-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8em;
  font-weight: 700;
  margin-bottom: 20px;
  flex-shrink: 0;
}

.page-game-bai__step-card .page-game-bai__card-title {
  font-size: 1.3em;
  font-weight: 700;
  color: #E53935;
  margin-bottom: 10px;
}

.page-game-bai__step-card .page-game-bai__card-description {
  font-size: 0.95em;
  color: #555555;
  flex-grow: 1;
  margin-bottom: 20px;
}

/* FAQ Section */
details.page-game-bai__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  background: #fff;
  color: #333333;
}
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: #f5f5f5;
}
.page-game-bai__faq-qtext {
  flex: 1;
  font-size: 1.1em;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #333333;
}
details.page-game-bai__faq-item[open] .page-game-bai__faq-qtext {
  color: #E53935;
}
.page-game-bai__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #666;
  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: #f9f9f9;
  border-radius: 0 0 5px 5px;
}
.page-game-bai__faq-answer p {
  margin: 0;
  font-size: 1em;
  color: #555555;
}

/* Final CTA Section (Dark Background) */
.page-game-bai__cta-final-section {
  padding: 60px 20px;
}

/* Responsive Styles */

@media (max-width: 1024px) {
  .page-game-bai__game-grid,
  .page-game-bai__feature-grid,
  .page-game-bai__promo-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
  }

  .page-game-bai__steps-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
  }

  .page-game-bai__section-title {
    font-size: 2em;
  }

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

@media (max-width: 849px) {
  .page-game-bai__hero-image img {
    object-fit: contain !important;
    aspect-ratio: unset !important;
  }
}

@media (max-width: 768px) {
  /* General */
  .page-game-bai {
    font-size: 15px;
    line-height: 1.5;
  }
  .page-game-bai__container {
    padding: 0 15px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  .page-game-bai__section {
    padding: 30px 0;
  }
  .page-game-bai__section-title {
    font-size: 1.8em;
    margin-bottom: 20px;
  }
  .page-game-bai__text-block {
    font-size: 1em;
    text-align: left;
    padding: 0 15px;
  }

  /* HERO Section */
  .page-game-bai__hero-section {
    padding: 10px 0 30px 0;
  }
  .page-game-bai__hero-image {
    margin-bottom: 15px;
  }
  .page-game-bai__hero-image img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-game-bai__hero-content {
    padding: 0 15px;
  }
  .page-game-bai__hero-title {
    font-size: clamp(1.8em, 6vw, 2.5em);
    margin-bottom: 10px;
  }
  .page-game-bai__hero-description {
    font-size: 1em;
    margin-bottom: 20px;
  }
  .page-game-bai__cta-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
  }

  /* Buttons */
  .page-game-bai__btn-primary,
  .page-game-bai__btn-secondary,
  .page-game-bai__btn-small {
    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;
  }
  .page-game-bai__cta-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }

  /* Product/Game Grid */
  .page-game-bai__game-grid,
  .page-game-bai__feature-grid,
  .page-game-bai__promo-grid {
    grid-template-columns: 1fr; /* Single column for mobile */
    gap: 20px;
    margin-top: 20px;
    padding: 0 15px;
  }
  .page-game-bai__game-card,
  .page-game-bai__feature-card,
  .page-game-bai__promo-card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-game-bai__game-card img,
  .page-game-bai__feature-card img,
  .page-game-bai__promo-card img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    min-height: 200px; /* Ensure images are not too small */
  }
  .page-game-bai__game-card .page-game-bai__card-title,
  .page-game-bai__feature-card .page-game-bai__card-title,
  .page-game-bai__promo-card .page-game-bai__card-title {
    font-size: 1.3em;
  }
  .page-game-bai__game-card .page-game-bai__card-description,
  .page-game-bai__feature-card .page-game-bai__card-description,
  .page-game-bai__promo-card .page-game-bai__card-description {
    font-size: 0.9em;
  }

  /* Guide Steps Grid */
  .page-game-bai__steps-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 20px;
    padding: 0 15px;
  }

  /* FAQ Section */
  details.page-game-bai__faq-item summary.page-game-bai__faq-question { padding: 15px; }
  .page-game-bai__faq-qtext { font-size: 1em; }
  details.page-game-bai__faq-item .page-game-bai__faq-answer { padding: 0 15px 15px; }
}