/* style/game-bai.css */

:root {
  --page-game-bai-primary-color: #F2C14E;
  --page-game-bai-secondary-color: #FFD36B;
  --page-game-bai-card-bg: #111111;
  --page-game-bai-bg: #0A0A0A;
  --page-game-bai-text-main: #FFF6D6;
  --page-game-bai-border-color: #3A2A12;
  --page-game-bai-glow-color: #FFD36B;
  --page-game-bai-button-gradient: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
  --page-game-bai-dark-text: #333333; /* For light backgrounds */
  --page-game-bai-light-text: #ffffff; /* For dark backgrounds */
}

.page-game-bai {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--page-game-bai-light-text); /* Default text color for dark body background */
  background-color: var(--page-game-bai-bg); /* Ensure consistency with body background */
}

/* General container and section styling */
.page-game-bai__container {
  max-width: 1170px;
  margin: 0 auto;
  padding: 20px 16px;
  box-sizing: border-box;
}

.page-game-bai__section-title {
  font-size: 2.5em;
  font-weight: bold;
  text-align: center;
  margin-bottom: 20px;
  color: var(--page-game-bai-text-main);
  line-height: 1.2;
}

.page-game-bai__section-subtitle {
  font-size: 1.2em;
  text-align: center;
  margin-bottom: 40px;
  color: var(--page-game-bai-light-text);
  opacity: 0.8;
}

.page-game-bai__text-block {
  margin-bottom: 20px;
  color: var(--page-game-bai-dark-text);
}

.page-game-bai__text-block p {
  margin-bottom: 1em;
  color: var(--page-game-bai-dark-text);
}

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

.page-game-bai__mt-large {
  margin-top: 40px;
}

/* Button styles */
.page-game-bai__btn-primary,
.page-game-bai__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
}

.page-game-bai__btn-primary {
  background: var(--page-game-bai-button-gradient);
  color: var(--page-game-bai-light-text);
  border: none;
}

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

.page-game-bai__btn-secondary {
  background: transparent;
  color: var(--page-game-bai-primary-color);
  border: 2px solid var(--page-game-bai-primary-color);
}

.page-game-bai__btn-secondary:hover {
  background: var(--page-game-bai-primary-color);
  color: var(--page-game-bai-light-text);
  transform: translateY(-2px);
}

.page-game-bai__btn-small {
  padding: 8px 18px;
  font-size: 0.9em;
}

.page-game-bai__btn-large {
  padding: 15px 30px;
  font-size: 1.1em;
}

/* Image styles */
.page-game-bai img {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* Hero Section */
.page-game-bai__hero-section {
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 60px;
  background-color: var(--page-game-bai-bg);
  color: var(--page-game-bai-light-text);
}

.page-game-bai__hero-container {
  max-width: 1170px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
  padding: 40px 16px;
}

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

.page-game-bai__hero-title {
  font-size: clamp(2.5em, 5vw, 3.2em);
  font-weight: bold;
  margin-bottom: 20px;
  color: var(--page-game-bai-text-main);
  line-height: 1.2;
}

.page-game-bai__hero-description {
  font-size: 1.1em;
  margin-bottom: 30px;
  color: var(--page-game-bai-light-text);
  opacity: 0.9;
}

.page-game-bai__cta-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

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

.page-game-bai__hero-main-img {
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Content Area */
.page-game-bai__content-area {
  background-color: var(--page-game-bai-light-bg);
  color: var(--page-game-bai-dark-text);
  padding: 60px 16px;
}

.page-game-bai__content-area .page-game-bai__section-title {
  color: var(--page-game-bai-dark-text);
}

.page-game-bai__content-area .page-game-bai__content-img {
  margin: 30px auto;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Games List Section */
.page-game-bai__games-list-section {
  background-color: var(--page-game-bai-card-bg);
  padding: 60px 16px;
}

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

.page-game-bai__game-card {
  background-color: var(--page-game-bai-bg);
  border: 1px solid var(--page-game-bai-border-color);
  border-radius: 12px;
  overflow: hidden;
  text-align: center;
  padding-bottom: 20px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

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

.page-game-bai__game-card-title {
  font-size: 1.4em;
  color: var(--page-game-bai-text-main);
  margin-bottom: 10px;
  padding: 0 15px;
}

.page-game-bai__game-card-title a {
  color: var(--page-game-bai-text-main);
  text-decoration: none;
}

.page-game-bai__game-card-title a:hover {
  color: var(--page-game-bai-primary-color);
}

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

.page-game-bai__game-card .page-game-bai__btn-primary {
  margin-top: auto;
  align-self: center;
  width: calc(100% - 30px);
}

/* Benefits Section */
.page-game-bai__benefits-section {
  background-color: var(--page-game-bai-light-bg);
  color: var(--page-game-bai-dark-text);
  padding: 60px 16px;
}

.page-game-bai__benefits-section .page-game-bai__section-title {
  color: var(--page-game-bai-dark-text);
}

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

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

.page-game-bai__benefit-title {
  font-size: 1.5em;
  color: var(--page-game-bai-dark-text);
  margin-bottom: 15px;
}

.page-game-bai__benefit-description {
  font-size: 1em;
  color: #555;
}

.page-game-bai__benefits-section .page-game-bai__content-img {
  margin: 40px auto;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Promotions Section */
.page-game-bai__promotions-section {
  background-color: var(--page-game-bai-card-bg);
  padding: 60px 16px;
}

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

.page-game-bai__promo-card {
  background-color: var(--page-game-bai-bg);
  border: 1px solid var(--page-game-bai-border-color);
  border-radius: 12px;
  overflow: hidden;
  text-align: center;
  padding-bottom: 20px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-game-bai__promo-card-img {
  width: 100%;
  height: 220px; /* Consistent height for promo images */
  object-fit: cover;
  margin-bottom: 15px;
}

.page-game-bai__promo-card-title {
  font-size: 1.4em;
  color: var(--page-game-bai-text-main);
  margin-bottom: 10px;
  padding: 0 15px;
}

.page-game-bai__promo-card-title a {
  color: var(--page-game-bai-text-main);
  text-decoration: none;
}

.page-game-bai__promo-card-title a:hover {
  color: var(--page-game-bai-primary-color);
}

.page-game-bai__promo-card-description {
  font-size: 0.95em;
  color: var(--page-game-bai-light-text);
  opacity: 0.8;
  margin-bottom: 20px;
  flex-grow: 1;
  padding: 0 15px;
}

/* Guide Section */
.page-game-bai__guide-section {
  background-color: var(--page-game-bai-light-bg);
  color: var(--page-game-bai-dark-text);
  padding: 60px 16px;
}

.page-game-bai__guide-section .page-game-bai__section-title {
  color: var(--page-game-bai-dark-text);
}

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

.page-game-bai__guide-step {
  background-color: #f8f8f8;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
}

.page-game-bai__step-number {
  counter-increment: step-counter;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--page-game-bai-button-gradient);
  color: var(--page-game-bai-light-text);
  font-size: 1.8em;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.page-game-bai__step-title {
  font-size: 1.5em;
  color: var(--page-game-bai-dark-text);
  margin-bottom: 15px;
}

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

.page-game-bai__guide-section .page-game-bai__content-img {
  margin: 40px auto;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* FAQ Section */
.page-game-bai__faq-section {
  background-color: var(--page-game-bai-card-bg);
  padding: 60px 16px;
}

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

.page-game-bai__faq-item {
  background-color: var(--page-game-bai-bg);
  border: 1px solid var(--page-game-bai-border-color);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-game-bai__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: bold;
  color: var(--page-game-bai-text-main);
  cursor: pointer;
  background-color: var(--page-game-bai-card-bg);
  border-bottom: 1px solid var(--page-game-bai-border-color);
  list-style: none;
}

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

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

.page-game-bai__faq-toggle {
  font-size: 1.5em;
  font-weight: bold;
  color: var(--page-game-bai-primary-color);
  margin-left: 15px;
  pointer-events: none; /* Prevent click on toggle icon itself */
}

.page-game-bai__faq-item[open] .page-game-bai__faq-question {
  border-bottom: 1px solid var(--page-game-bai-border-color);
}

.page-game-bai__faq-answer {
  padding: 15px 25px 20px;
  font-size: 1em;
  color: var(--page-game-bai-light-text);
  background-color: var(--page-game-bai-bg);
}

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

.page-game-bai__faq-section .page-game-bai__content-img {
  margin: 40px auto;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Conclusion Section */
.page-game-bai__conclusion-section {
  background-color: var(--page-game-bai-light-bg);
  color: var(--page-game-bai-dark-text);
  padding: 60px 16px;
}

.page-game-bai__conclusion-section .page-game-bai__section-title {
  color: var(--page-game-bai-dark-text);
}

.page-game-bai__conclusion-section .page-game-bai__text-block {
  font-size: 1.1em;
  line-height: 1.8;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 40px;
  color: var(--page-game-bai-dark-text);
}

.page-game-bai__text-link {
  color: var(--page-game-bai-primary-color);
  text-decoration: underline;
}

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

/* Light background sections */
.page-game-bai__light-bg .page-game-bai__section-title,
.page-game-bai__light-bg .page-game-bai__section-subtitle,
.page-game-bai__light-bg .page-game-bai__text-block,
.page-game-bai__light-bg .page-game-bai__benefit-title,
.page-game-bai__light-bg .page-game-bai__benefit-description,
.page-game-bai__light-bg .page-game-bai__step-title,
.page-game-bai__light-bg .page-game-bai__step-description {
  color: var(--page-game-bai-dark-text);
}

/* Dark background sections */
.page-game-bai__dark-bg .page-game-bai__section-title,
.page-game-bai__dark-bg .page-game-bai__section-subtitle,
.page-game-bai__dark-bg .page-game-bai__text-block,
.page-game-bai__dark-bg .page-game-bai__game-card-title,
.page-game-bai__dark-bg .page-game-bai__game-card-description,
.page-game-bai__dark-bg .page-game-bai__promo-card-title,
.page-game-bai__dark-bg .page-game-bai__promo-card-description,
.page-game-bai__dark-bg .page-game-bai__faq-qtext,
.page-game-bai__dark-bg .page-game-bai__faq-answer {
  color: var(--page-game-bai-light-text);
}

/* 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%;
    max-width: 100%;
  }

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

@media (max-width: 768px) {
  /* General containers and images */
  .page-game-bai__container,
  .page-game-bai__hero-container {
    padding-left: 15px !important;
    padding-right: 15px !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

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

  /* HERO Section */
  .page-game-bai__hero-section {
    padding-top: 10px !important; /* Adhere to small top padding */
    padding-bottom: 40px !important;
  }

  .page-game-bai__hero-title {
    font-size: 2em !important;
  }

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

  .page-game-bai__cta-buttons {
    flex-direction: column !important;
    gap: 10px !important;
  }

  .page-game-bai__btn-primary,
  .page-game-bai__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  /* General Section Titles */
  .page-game-bai__section-title {
    font-size: 2em !important;
  }

  .page-game-bai__section-subtitle {
    font-size: 1em !important;
  }

  /* Games List Section */
  .page-game-bai__game-grid {
    grid-template-columns: 1fr !important;
  }

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

  /* Benefits Section */
  .page-game-bai__benefit-grid {
    grid-template-columns: 1fr !important;
  }

  /* Promotions Section */
  .page-game-bai__promo-grid {
    grid-template-columns: 1fr !important;
  }

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

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

  /* FAQ Section */
  .page-game-bai__faq-question {
    padding: 15px 20px !important;
    font-size: 1.1em !important;
  }

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