.page-game-bai {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #F3F8FF; /* Default text color for dark background */
  background-color: var(--deep-navy); /* Body background from shared.css */
}

.page-game-bai__container {
  max-width: 1170px;
  margin: 0 auto;
  padding: 40px 16px;
  box-sizing: border-box;
}

.page-game-bai__section-title {
  font-size: 2.5em;
  font-weight: bold;
  text-align: center;
  margin-bottom: 20px;
  color: #F2C14E; /* Gold for titles */
  line-height: 1.2;
}

.page-game-bai__section-description {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 40px;
  color: #AFC4E8;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* HERO Section */
.page-game-bai__hero-section {
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 60px;
  background: linear-gradient(180deg, #113B7A 0%, #08162B 100%); /* Deep Navy gradient */
  color: #F3F8FF;
}

.page-game-bai__hero-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.page-game-bai__hero-content {
  flex: 1 1 50%;
  min-width: 300px;
}

.page-game-bai__main-title {
  font-size: clamp(2.2em, 4vw, 3.5em); /* Responsive H1 font size */
  font-weight: 700;
  margin-bottom: 20px;
  color: #F2C14E; /* Gold for H1 */
  line-height: 1.1;
}

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

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

.page-game-bai__btn-primary,
.page-game-bai__btn-secondary {
  display: inline-block;
  padding: 14px 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;
  max-width: 100%;
}

.page-game-bai__btn-primary {
  background: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%);
  color: #F3F8FF;
  border: 2px solid transparent;
}

.page-game-bai__btn-primary:hover {
  background: linear-gradient(180deg, #1144A6 0%, #2B73F6 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-game-bai__btn-secondary {
  background: #10233F;
  color: #F2C14E;
  border: 2px solid #244D84;
}

.page-game-bai__btn-secondary:hover {
  background: #244D84;
  color: #F3F8FF;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-game-bai__hero-image {
  flex: 1 1 40%;
  text-align: center;
  min-width: 300px;
}

.page-game-bai__hero-main-img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  display: block;
  margin: 0 auto;
}

/* Intro Section */
.page-game-bai__intro-section {
  background-color: #ffffff; /* Light background for contrast */
  color: #333333;
  padding-top: 60px;
  padding-bottom: 60px;
}

.page-game-bai__intro-section .page-game-bai__section-title {
  color: #113B7A;
}

.page-game-bai__intro-section .page-game-bai__section-description {
  color: #555555;
}

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

.page-game-bai__feature-item {
  text-align: center;
  padding: 25px;
  background-color: #f9f9f9;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
}

.page-game-bai__feature-item:hover {
  transform: translateY(-8px);
}

.page-game-bai__icon-box-media {
  width: 180px;
  height: 180px;
  margin: 0 auto 20px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid #1D5FD1;
  box-shadow: 0 0 0 8px rgba(29, 95, 209, 0.2);
}

.page-game-bai__icon-box-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.page-game-bai__feature-title {
  font-size: 1.5em;
  color: #113B7A;
  margin-bottom: 15px;
}

.page-game-bai__feature-text {
  font-size: 1em;
  color: #666666;
}

/* Games Overview Section */
.page-game-bai__games-overview-section {
  padding-top: 60px;
  padding-bottom: 60px;
  background-color: #08162B;
  color: #F3F8FF;
}

.page-game-bai__games-overview-section .page-game-bai__section-title {
  color: #F2C14E;
}

.page-game-bai__games-overview-section .page-game-bai__section-description {
  color: #AFC4E8;
}

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

.page-game-bai__game-card {
  background-color: #10233F;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.page-game-bai__game-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.page-game-bai__game-card-img {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
}

.page-game-bai__game-card-title {
  font-size: 1.4em;
  color: #F2C14E;
  padding: 15px 20px 0;
  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-text {
  font-size: 0.95em;
  color: #AFC4E8;
  padding: 0 20px 15px;
  flex-grow: 1;
}

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

/* Guide Section */
.page-game-bai__guide-section {
  background-color: #ffffff;
  color: #333333;
  padding-top: 60px;
  padding-bottom: 60px;
}

.page-game-bai__guide-section .page-game-bai__section-title {
  color: #113B7A;
}

.page-game-bai__guide-section .page-game-bai__section-description {
  color: #555555;
}

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

.page-game-bai__step-item {
  text-align: center;
  background-color: #f9f9f9;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.page-game-bai__step-icon-wrapper {
  width: 150px;
  height: 150px;
  margin: 0 auto 20px;
  overflow: hidden;
  border-radius: 50%;
  border: 3px solid #1D5FD1;
  box-shadow: 0 0 0 6px rgba(29, 95, 209, 0.15);
}

.page-game-bai__step-icon {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.page-game-bai__step-title {
  font-size: 1.4em;
  color: #113B7A;
  margin-bottom: 15px;
}

.page-game-bai__step-text {
  font-size: 0.95em;
  color: #666666;
}

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

/* Promo Section */
.page-game-bai__promo-section {
  padding-top: 60px;
  padding-bottom: 60px;
  background-color: #08162B;
  color: #F3F8FF;
}

.page-game-bai__promo-section .page-game-bai__section-title {
  color: #F2C14E;
}

.page-game-bai__promo-section .page-game-bai__section-description {
  color: #AFC4E8;
}

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

.page-game-bai__promo-card {
  background-color: #10233F;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.page-game-bai__promo-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.page-game-bai__promo-card-img {
  width: 100%;
  height: 220px; /* Fixed height for promo images */
  object-fit: cover;
  display: block;
}

.page-game-bai__promo-card-title {
  font-size: 1.4em;
  color: #F2C14E;
  padding: 15px 20px 0;
  margin-bottom: 10px;
}

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

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

.page-game-bai__promo-card-text {
  font-size: 0.95em;
  color: #AFC4E8;
  padding: 0 20px 15px;
  flex-grow: 1;
}

/* FAQ Section */
.page-game-bai__faq-section {
  background-color: #ffffff;
  color: #333333;
  padding-top: 60px;
  padding-bottom: 60px;
}

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

.page-game-bai__faq-section .page-game-bai__section-description {
  color: #555555;
}

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

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

.page-game-bai__faq-item summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.15em;
  font-weight: bold;
  color: #113B7A;
  cursor: pointer;
  outline: none;
  background-color: #e8f0fe;
  border-bottom: 1px solid #d0e0ff;
}

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

.page-game-bai__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

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

.page-game-bai__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: #1D5FD1;
}

.page-game-bai__faq-item[open] .page-game-bai__faq-toggle {
  content: '−';
}

.page-game-bai__faq-answer {
  padding: 20px 25px;
  font-size: 1em;
  color: #555555;
  background-color: #fcfcfc;
  border-top: 1px solid #eeeeee;
}

/* Blog Promo Section */
.page-game-bai__blog-promo-section {
  padding-top: 60px;
  padding-bottom: 60px;
  background-color: #08162B;
  color: #F3F8FF;
}

.page-game-bai__blog-promo-section .page-game-bai__section-title {
  color: #F2C14E;
}

.page-game-bai__blog-promo-section .page-game-bai__section-description {
  color: #AFC4E8;
}

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

.page-game-bai__blog-card {
  background-color: #10233F;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.page-game-bai__blog-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.page-game-bai__blog-card-img {
  width: 100%;
  height: 220px; /* Fixed height for blog images */
  object-fit: cover;
  display: block;
}

.page-game-bai__blog-card-title {
  font-size: 1.4em;
  color: #F2C14E;
  padding: 15px 20px 0;
  margin-bottom: 10px;
}

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

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

.page-game-bai__blog-card-text {
  font-size: 0.95em;
  color: #AFC4E8;
  padding: 0 20px 15px;
  flex-grow: 1;
}


/* Responsive Styles */
@media (max-width: 1024px) {
  .page-game-bai__hero-container {
    flex-direction: column;
    text-align: center;
  }

  .page-game-bai__hero-content,
  .page-game-bai__hero-image {
    flex: 1 1 100%;
  }

  .page-game-bai__cta-buttons {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .page-game-bai__hero-section {
    padding-top: 10px !important;
    padding-bottom: 40px;
  }

  .page-game-bai__container,
  .page-game-bai__hero-container {
    padding: 20px 15px;
  }

  .page-game-bai__section-title {
    font-size: 2em;
    margin-bottom: 15px;
  }

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

  /* HERO Section specific */
  .page-game-bai__main-title {
    font-size: clamp(1.8em, 7vw, 2.5em);
  }

  .page-game-bai__hero-description {
    font-size: 1em;
  }

  .page-game-bai__cta-buttons {
    flex-direction: column !important;
    gap: 15px !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-game-bai__btn-primary,
  .page-game-bai__btn-secondary,
  .page-game-bai__btn-small,
  .page-game-bai a[class*="button"],
  .page-game-bai a[class*="btn"] {
    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;
  }

  /* Module 1 (Intro Section) */
  .page-game-bai__features-grid {
    grid-template-columns: 1fr;
  }

  .page-game-bai__icon-box-media {
    width: 150px;
    height: 150px;
    border: 3px solid #1D5FD1;
    box-shadow: 0 0 0 6px rgba(29, 95, 209, 0.15);
  }

  /* Games Overview Section */
  .page-game-bai__game-cards-grid {
    grid-template-columns: 1fr;
  }

  .page-game-bai__game-card-img {
    
  }

  /* Guide Section */
  .page-game-bai__guide-steps {
    grid-template-columns: 1fr;
  }

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

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

  .page-game-bai__promo-card-img {
    
  }

  /* FAQ Section */
  .page-game-bai__faq-item summary {
    padding: 15px 20px;
    font-size: 1em;
  }

  .page-game-bai__faq-answer {
    padding: 15px 20px;
  }

  /* Blog Promo Section */
  .page-game-bai__blog-cards-grid {
    grid-template-columns: 1fr;
  }

  .page-game-bai__blog-card-img {
    
  }

  /* General image responsiveness */
  .page-game-bai img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  /* Exception for circular images */
  .page-game-bai__icon-box-media img,
  .page-game-bai__step-icon {
    height: 100% !important; /* Keep height 100% for object-fit:cover */
  }

  .page-game-bai__section,
  .page-game-bai__card,
  .page-game-bai__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}