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

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

.page-game-bai__section {
  padding: 60px 0;
}

.page-game-bai__section-title {
  font-size: 2.5em;
  color: #1F2D3D; /* Text Main */
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

.page-game-bai__text-block {
  font-size: 1.1em;
  line-height: 1.8;
  margin-bottom: 20px;
  color: #1F2D3D;
}

.page-game-bai__sub-title {
  font-size: 1.8em;
  color: #1F2D3D;
  margin-top: 30px;
  margin-bottom: 15px;
}

.page-game-bai__ordered-list,
.page-game-bai__unordered-list {
  list-style-position: inside;
  margin-bottom: 20px;
  padding-left: 20px;
}

.page-game-bai__ordered-list li,
.page-game-bai__unordered-list li {
  margin-bottom: 10px;
  color: #1F2D3D;
}

/* Color Contrast Specifics */
.page-game-bai__dark-section {
  background: #2F6BFF;
  color: #ffffff;
}

.page-game-bai__dark-section .page-game-bai__section-title,
.page-game-bai__dark-section .page-game-bai__text-block,
.page-game-bai__dark-section .page-game-bai__sub-title,
.page-game-bai__dark-section .page-game-bai__ordered-list li,
.page-game-bai__dark-section .page-game-bai__unordered-list li {
  color: #ffffff;
}

.page-game-bai__light-bg {
  background: #FFFFFF; /* Card BG */
  color: #1F2D3D; /* Text Main */
}

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

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

.page-game-bai__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.page-game-bai__btn-secondary {
  background: #FFFFFF; /* Card BG */
  color: #2F6BFF; /* Primary color for text */
  border: 2px solid #2F6BFF;
}

.page-game-bai__btn-secondary:hover {
  background: #2F6BFF;
  color: #ffffff;
}

.page-game-bai__btn-outline {
  background: transparent;
  color: #2F6BFF;
  border: 1px solid #2F6BFF;
}

.page-game-bai__btn-outline:hover {
  background: #2F6BFF;
  color: #ffffff;
}

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

.page-game-bai__cta-buttons--inline {
  justify-content: flex-start;
}

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

/* Hero Section */
.page-game-bai__hero-section {
  position: relative;
  overflow: hidden;
  padding: 10px 0 60px 0; /* Small top padding, then section padding */
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-game-bai__hero-image-wrapper {
  width: 100%;
  max-height: 600px;
  overflow: hidden;
  margin-bottom: 40px; /* Space between image and content */
}

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

.page-game-bai__hero-content-wrapper {
  text-align: center;
  position: relative; /* Ensure it's in normal flow below image */
  z-index: 1;
}

.page-game-bai__main-title {
  font-size: clamp(2.5em, 5vw, 3.5em);
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.page-game-bai__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: #f0f0f0;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-game-bai__game-card {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  height: 100%;
  text-align: center;
  padding-bottom: 20px;
}

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

.page-game-bai__game-card-title {
  font-size: 1.5em;
  font-weight: bold;
  margin-bottom: 10px;
  color: #2F6BFF;
  padding: 0 15px;
}

.page-game-bai__game-card-description {
  font-size: 1em;
  color: #1F2D3D;
  margin-bottom: 20px;
  flex-grow: 1;
  padding: 0 15px;
}

.page-game-bai__game-card .page-game-bai__btn-outline {
  margin-top: auto; /* Push button to bottom */
  align-self: center;
}

/* Download & Registration Sections */
.page-game-bai__content-wrapper {
  display: flex;
  gap: 40px;
  align-items: center;
}

.page-game-bai__content-wrapper--reversed {
  flex-direction: row-reverse;
}

.page-game-bai__text-content {
  flex: 1;
}

.page-game-bai__image-content {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-game-bai__download-image,
.page-game-bai__registration-image,
.page-game-bai__strategy-image,
.page-game-bai__promotion-card-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

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

.page-game-bai__promotion-card {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  text-align: center;
  padding-bottom: 20px;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.page-game-bai__promotion-card-image {
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  margin-bottom: 15px;
}

.page-game-bai__promotion-card-title {
  font-size: 1.4em;
  font-weight: bold;
  margin-bottom: 10px;
  color: #2F6BFF;
  padding: 0 15px;
}

.page-game-bai__promotion-card-description {
  font-size: 1em;
  color: #1F2D3D;
  margin-bottom: 20px;
  flex-grow: 1;
  padding: 0 15px;
}

.page-game-bai__view-all-promotions {
  text-align: center;
  margin-top: 40px;
}

/* FAQ Section */
.page-game-bai__faq-list {
  max-width: 800px;
  margin: 0 auto;
}

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

.page-game-bai__dark-section .page-game-bai__faq-item {
  background: rgba(255, 255, 255, 0.1);
  box-shadow: none;
}

.page-game-bai__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  cursor: pointer;
  font-size: 1.1em;
  font-weight: bold;
  color: #2F6BFF;
  list-style: none; /* Hide default marker for details */
}

.page-game-bai__dark-section .page-game-bai__faq-question {
  color: #ffffff;
}

.page-game-bai__faq-question::-webkit-details-marker, /* Hide default marker for webkit */
.page-game-bai__faq-question::marker {
  display: none;
}

.page-game-bai__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
}

.page-game-bai__faq-item[open] .page-game-bai__faq-toggle {
  transform: rotate(45deg);
}

.page-game-bai__faq-answer {
  padding: 0 20px 15px 20px;
  font-size: 1em;
  color: #1F2D3D;
}

.page-game-bai__dark-section .page-game-bai__faq-answer {
  color: #f0f0f0;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-game-bai__container {
    padding: 20px 30px;
  }

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

  .page-game-bai__hero-image-wrapper {
    max-height: 500px;
  }

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

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

  .page-game-bai__content-wrapper {
    flex-direction: column;
    gap: 30px;
  }

  .page-game-bai__content-wrapper--reversed {
    flex-direction: column-reverse;
  }

  .page-game-bai__image-content {
    width: 100%;
  }

  .page-game-bai__download-image,
  .page-game-bai__registration-image,
  .page-game-bai__strategy-image,
  .page-game-bai__promotion-card-image {
    max-width: 80%;
    margin: 0 auto;
  }

  .page-game-bai__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-game-bai__cta-buttons .page-game-bai__btn-primary,
  .page-game-bai__cta-buttons .page-game-bai__btn-secondary {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .page-game-bai__container {
    padding: 15px;
  }

  .page-game-bai__section {
    padding: 40px 0;
  }

  .page-game-bai__hero-section {
    padding-top: 10px; /* Small top padding */
    padding-bottom: 40px;
  }

  .page-game-bai__hero-image-wrapper {
    max-height: 300px;
    margin-bottom: 30px;
  }

  .page-game-bai__hero-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

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

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

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

  .page-game-bai__text-block {
    font-size: 1em;
  }

  .page-game-bai__sub-title {
    font-size: 1.5em;
  }

  /* General Images and Containers */
  .page-game-bai img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block;
  }
  
  .page-game-bai__section,
  .page-game-bai__card,
  .page-game-bai__container,
  .page-game-bai__game-card,
  .page-game-bai__promotion-card,
  .page-game-bai__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Buttons and Button Containers */
  .page-game-bai__cta-button,
  .page-game-bai__btn-primary,
  .page-game-bai__btn-secondary,
  .page-game-bai__btn-outline,
  .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;
  }
  
  .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;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
    flex-direction: column; /* Ensure vertical stacking for buttons */
  }

  .page-game-bai__game-grid,
  .page-game-bai__promotion-grid {
    grid-template-columns: 1fr;
  }

  .page-game-bai__game-card-image {
    height: 200px; /* Adjust height for mobile */
  }

  .page-game-bai__download-image,
  .page-game-bai__registration-image,
  .page-game-bai__strategy-image {
    max-width: 90%;
  }
}