/* style/game-bai.css */
:root {
  --page-game-bai-primary-color: #C61F1F;
  --page-game-bai-secondary-color: #E53030;
  --page-game-bai-card-bg: #2A1212;
  --page-game-bai-background-color: #140C0C;
  --page-game-bai-text-main: #FFF1E8;
  --page-game-bai-border-color: #6A1E1E;
  --page-game-bai-gold-color: #F3C54D;
  --page-game-bai-deep-red-color: #7E0D0D;
  --page-game-bai-btn-gradient: linear-gradient(180deg, #FFB04A 0%, #D86A14 100%);
}

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

.page-game-bai__dark-bg {
  background-color: var(--page-game-bai-background-color);
  color: var(--page-game-bai-text-main);
}

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

.page-game-bai__hero-section {
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 60px;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
}

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

.page-game-bai__hero-content {
  flex: 1 1 45%;
  text-align: left;
}

.page-game-bai__main-title {
  font-size: 3.2em;
  font-weight: bold;
  margin-bottom: 20px;
  line-height: 1.2;
  color: var(--page-game-bai-gold-color);
}

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

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

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

.page-game-bai__hero-side-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.page-game-bai__btn-primary,
.page-game-bai__btn-secondary,
.page-game-bai__btn-tertiary {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text breaking */
  box-sizing: border-box;
  max-width: 100%;
}

.page-game-bai__btn-primary {
  background: var(--page-game-bai-btn-gradient);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 15px rgba(255, 176, 74, 0.4);
}

.page-game-bai__btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 176, 74, 0.6);
}

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

.page-game-bai__btn-secondary:hover {
  background: var(--page-game-bai-gold-color);
  color: var(--page-game-bai-background-color);
}

.page-game-bai__btn-tertiary {
  background: var(--page-game-bai-deep-red-color);
  color: #ffffff;
  border: none;
  font-size: 0.9em;
  padding: 10px 20px;
}

.page-game-bai__btn-tertiary:hover {
  background: var(--page-game-bai-primary-color);
}

.page-game-bai__btn-large {
    padding: 18px 36px;
    font-size: 1.2em;
}

.page-game-bai__content-area,
.page-game-bai__game-types-section,
.page-game-bai__rules-guide-section,
.page-game-bai__strategy-section,
.page-game-bai__promo-section,
.page-game-bai__why-choose-section,
.page-game-bai__faq-section,
.page-game-bai__cta-section {
  padding: 60px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.page-game-bai__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 30px;
  color: var(--page-game-bai-gold-color);
  font-weight: bold;
}

.page-game-bai__section-description {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 40px;
  color: var(--page-game-bai-text-main);
}

.page-game-bai__content-area p,
.page-game-bai__strategy-section p,
.page-game-bai__promo-section p,
.page-game-bai__why-choose-section p {
  font-size: 1.05em;
  margin-bottom: 1em;
  color: inherit;
}

.page-game-bai__content-area a,
.page-game-bai__rules-guide-section a,
.page-game-bai__promo-section a,
.page-game-bai__faq-section a {
  color: var(--page-game-bai-gold-color);
  text-decoration: underline;
}

.page-game-bai__content-area a:hover,
.page-game-bai__rules-guide-section a:hover,
.page-game-bai__promo-section a:hover,
.page-game-bai__faq-section a:hover {
  color: #ffffff;
}

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

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

.page-game-bai__card-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  margin-bottom: 20px;
}

.page-game-bai__card-title {
  font-size: 1.5em;
  font-weight: bold;
  margin-bottom: 10px;
  color: var(--page-game-bai-gold-color);
  padding: 0 15px;
}

.page-game-bai__card-text {
  font-size: 0.95em;
  margin-bottom: 20px;
  flex-grow: 1;
  padding: 0 15px;
}

.page-game-bai__container-grid {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

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

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

.page-game-bai__content-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.page-game-bai__strategy-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
  color: var(--page-game-bai-text-main);
}

.page-game-bai__strategy-list li {
  background-color: var(--page-game-bai-card-bg);
  margin-bottom: 15px;
  padding: 20px;
  border-radius: 8px;
  border-left: 5px solid var(--page-game-bai-gold-color);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  font-size: 1.05em;
}

.page-game-bai__strategy-list li strong {
  color: var(--page-game-bai-gold-color);
}

.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 {
  background-color: var(--page-game-bai-card-bg);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  text-align: center;
  border: 1px solid var(--page-game-bai-border-color);
  color: var(--page-game-bai-text-main);
}

.page-game-bai__feature-title {
  font-size: 1.4em;
  font-weight: bold;
  margin-bottom: 15px;
  color: var(--page-game-bai-gold-color);
}

.page-game-bai__faq-list {
  margin-top: 40px;
}

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

.page-game-bai__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  color: var(--page-game-bai-deep-red-color);
  list-style: none; /* For details/summary */
}

.page-game-bai__faq-item[open] > .page-game-bai__faq-question {
  border-bottom: 1px solid #e0e0e0;
}

.page-game-bai__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: var(--page-game-bai-gold-color);
}

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

.page-game-bai__faq-answer {
  padding: 15px 25px 20px 25px;
  font-size: 1.05em;
  line-height: 1.6;
  color: #555555;
}

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

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

.page-game-bai__cta-container {
  max-width: 800px;
  margin: 0 auto;
}

.page-game-bai__cta-section .page-game-bai__section-title {
  font-size: 2.8em;
  margin-bottom: 25px;
}

.page-game-bai__cta-section .page-game-bai__section-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  color: var(--page-game-bai-text-main);
}

.page-game-bai__cta-section .page-game-bai__btn-primary {
  margin-top: 20px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-game-bai__main-title {
    font-size: 2.8em;
  }

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

  .page-game-bai__hero-container {
    flex-direction: column;
    text-align: center;
  }

  .page-game-bai__hero-content {
    flex: 1 1 100%;
    text-align: center;
  }

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

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

  .page-game-bai__container-grid {
    flex-direction: column;
  }

  .page-game-bai__text-content,
  .page-game-bai__image-content {
    flex: 1 1 100%;
    min-width: unset;
  }
}

@media (max-width: 768px) {
  /* General mobile text and padding */
  .page-game-bai {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-game-bai__hero-section {
    padding-top: 10px !important; /* Small top padding, body handles header offset */
    padding-bottom: 40px;
  }

  .page-game-bai__hero-container,
  .page-game-bai__content-area,
  .page-game-bai__game-types-section,
  .page-game-bai__rules-guide-section,
  .page-game-bai__strategy-section,
  .page-game-bai__promo-section,
  .page-game-bai__why-choose-section,
  .page-game-bai__faq-section,
  .page-game-bai__cta-section,
  .page-game-bai__cta-container {
    padding-left: 15px !important;
    padding-right: 15px !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-game-bai__main-title {
    font-size: clamp(2em, 8vw, 2.5em);
    margin-bottom: 15px;
  }

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

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

  .page-game-bai__btn-primary,
  .page-game-bai__btn-secondary,
  .page-game-bai__btn-tertiary {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 12px 20px;
    font-size: 1em;
  }

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

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

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

  /* Game list - single column */
  .page-game-bai__game-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }

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

  .page-game-bai__card-title {
    font-size: 1.3em;
  }

  .page-game-bai__card-text {
    font-size: 0.9em;
  }

  /* Content Grid - stack columns */
  .page-game-bai__container-grid {
    flex-direction: column;
    gap: 30px;
  }

  /* Images in content areas */
  .page-game-bai img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* Strategy list */
  .page-game-bai__strategy-list li {
    padding: 15px;
    font-size: 1em;
  }

  /* Features grid - single column */
  .page-game-bai__features-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-game-bai__feature-item {
    padding: 25px;
  }

  .page-game-bai__feature-title {
    font-size: 1.2em;
  }

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

  .page-game-bai__faq-answer {
    font-size: 1em;
    padding: 10px 20px 15px 20px;
  }

  /* CTA Section */
  .page-game-bai__cta-section .page-game-bai__section-title {
    font-size: 2em;
  }

  .page-game-bai__cta-section .page-game-bai__section-description {
    font-size: 1.1em;
  }
}