.page-game-bai {
  font-family: 'Arial', sans-serif;
  color: #333333; /* Default text color for light backgrounds */
  line-height: 1.6;
}

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

.page-game-bai__dark-section {
  background-color: #252b38;
  color: #ffffff;
}

.page-game-bai__light-bg {
  background-color: #ffffff;
  color: #333333;
}

.page-game-bai__hero-section {
  padding-top: 10px; /* Small top padding to avoid double spacing with shared header */
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-game-bai__hero-image-wrapper {
  width: 100%;
  max-height: 675px; /* Limit height for hero image */
  overflow: hidden;
}

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

.page-game-bai__hero-content {
  padding: 60px 20px;
  max-width: 900px;
  z-index: 1;
}

.page-game-bai__main-title {
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #ffffff;
}

.page-game-bai__description {
  font-size: 1.15rem;
  margin-bottom: 30px;
  color: #f0f0f0;
}

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

.page-game-bai__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-game-bai__btn-primary {
  background-color: #26A9E0;
  color: #ffffff;
  border: 2px solid #26A9E0;
}

.page-game-bai__btn-primary:hover {
  background-color: #1a8cc2;
  transform: translateY(-2px);
}

.page-game-bai__btn-secondary {
  background-color: transparent;
  color: #26A9E0;
  border: 2px solid #26A9E0;
}

.page-game-bai__btn-secondary:hover {
  background-color: #26A9E0;
  color: #ffffff;
  transform: translateY(-2px);
}

.page-game-bai__section-title {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
  color: inherit;
}

.page-game-bai__subtitle {
  font-size: 1.1rem;
  text-align: center;
  margin-bottom: 40px;
  color: inherit;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-game-bai__text-block {
  font-size: 1.05rem;
  margin-bottom: 20px;
  text-align: justify;
}

.page-game-bai__games-showcase {
  padding: 80px 0;
}

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

.page-game-bai__game-card {
  background-color: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  padding-bottom: 20px;
  color: #333333;
}

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

.page-game-bai__game-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 10px;
  padding: 0 15px;
}

.page-game-bai__game-title a {
  color: #26A9E0;
  text-decoration: none;
}

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

.page-game-bai__game-description {
  font-size: 0.95rem;
  padding: 0 15px 15px;
  color: #555555;
}

.page-game-bai__card-button {
  margin-top: 10px;
}

.page-game-bai__advantages-section {
  padding: 80px 0;
}

.page-game-bai__advantages-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.page-game-bai__advantage-item {
  text-align: center;
  padding: 20px;
  background-color: #f8f8f8;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-game-bai__advantage-icon {
  width: 100%;
  max-width: 150px;
  height: auto;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-game-bai__advantage-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: #26A9E0;
}

.page-game-bai__advantage-description {
  font-size: 0.9rem;
  color: #555555;
}

.page-game-bai__promotions-section {
  padding: 80px 0;
}

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

.page-game-bai__promo-card {
  background-color: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  padding-bottom: 20px;
  color: #333333;
}

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

.page-game-bai__promo-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 10px;
  padding: 0 15px;
}

.page-game-bai__promo-title a {
  color: #26A9E0;
  text-decoration: none;
}

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

.page-game-bai__promo-description {
  font-size: 0.95rem;
  padding: 0 15px 15px;
  color: #555555;
}

.page-game-bai__faq-section {
  padding: 80px 0;
}

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

.page-game-bai__faq-item {
  background-color: #f8f8f8;
  border-radius: 8px;
  margin-bottom: 15px;
  box-shadow: 0 2px 8px 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: 1.15rem;
  font-weight: 600;
  color: #333333;
  cursor: pointer;
  background-color: #ffffff;
  border-bottom: 1px solid #eeeeee;
  list-style: none;
}

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

.page-game-bai__faq-question:hover {
  background-color: #f0f0f0;
}

.page-game-bai__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  transition: transform 0.3s ease;
  color: #26A9E0;
}

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

.page-game-bai__faq-answer {
  padding: 15px 25px 25px;
  font-size: 1rem;
  color: #555555;
  background-color: #f8f8f8;
}

.page-game-bai__faq-answer p {
  margin-bottom: 0;
}

.page-game-bai__faq-answer a {
  color: #26A9E0;
  text-decoration: none;
}

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

.page-game-bai__cta-bottom-section {
  padding: 80px 0;
  text-align: center;
}

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

.page-game-bai__cta-bottom-section .page-game-bai__subtitle {
  color: #f0f0f0;
}

/* General image styling for responsiveness */
.page-game-bai img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

  .page-game-bai__games-showcase,
  .page-game-bai__advantages-section,
  .page-game-bai__promotions-section,
  .page-game-bai__faq-section,
  .page-game-bai__cta-bottom-section {
    padding: 60px 0;
  }

  .page-game-bai__game-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .page-game-bai__advantages-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .page-game-bai__promo-grid {
    grid-template-columns: 1fr;
  }
}

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

  .page-game-bai__hero-section {
    padding-top: 10px !important;
  }

  .page-game-bai__hero-content {
    padding: 40px 15px;
  }

  .page-game-bai__main-title {
    font-size: 2.2rem;
  }

  .page-game-bai__description {
    font-size: 1rem;
  }

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

  .page-game-bai__cta-button,
  .page-game-bai__btn-primary,
  .page-game-bai__btn-secondary,
  .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;
  }

  .page-game-bai__section-title {
    font-size: 1.8rem;
  }

  .page-game-bai__subtitle {
    font-size: 1rem;
  }

  .page-game-bai__text-block {
    font-size: 0.95rem;
  }

  .page-game-bai__game-grid,
  .page-game-bai__advantages-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

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

  .page-game-bai__advantage-icon {
    max-width: 120px;
  }

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

  .page-game-bai__faq-question {
    font-size: 1rem;
    padding: 15px 20px;
  }

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

  .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 {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}

@media (max-width: 480px) {
  .page-game-bai__main-title {
    font-size: 1.8rem;
  }

  .page-game-bai__section-title {
    font-size: 1.5rem;
  }

  .page-game-bai__game-title {
    font-size: 1.2rem;
  }

  .page-game-bai__promo-title {
    font-size: 1.1rem;
  }
}