/* style/game-bai.css */

:root {
  --page-game-bai-primary-color: #C91F17;
  --page-game-bai-secondary-color: #E53935;
  --page-game-bai-button-gradient: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%);
  --page-game-bai-card-bg: #D32F2F;
  --page-game-bai-main-text: #FFF5E1;
  --page-game-bai-border-color: #F2B544;
  --page-game-bai-glow-color: #FFCC66;
  --page-game-bai-gold-color: #F4D34D;
  --page-game-bai-deep-red: #7A0E0E;
  --page-game-bai-dark-bg-text: #ffffff;
  --page-game-bai-light-text: #FFF5E1; /* Main text color for dark body background */
  --page-game-bai-dark-text: #333333; /* For light backgrounds within dark body */
}

.page-game-bai {
  font-family: 'Arial', sans-serif;
  color: var(--page-game-bai-light-text); /* Ensure light text on dark body background */
  background-color: var(--page-game-bai-background-color, #B71C1C); /* Fallback, but should be from shared */
  line-height: 1.6;
}

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

/* Hero Section */
.page-game-bai__hero-section {
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 40px;
  background-color: var(--page-game-bai-deep-red);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-game-bai__hero-image-wrap {
  width: 100%;
  max-width: 100%;
  margin-bottom: 30px;
}

.page-game-bai__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

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

.page-game-bai__main-title {
  font-size: clamp(2em, 4vw, 3.2em); /* Responsive font size for H1 */
  color: var(--page-game-bai-gold-color);
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-game-bai__description {
  font-size: 1.1em;
  color: var(--page-game-bai-main-text);
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-game-bai__hero-cta-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

/* General Buttons */
.page-game-bai__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 30px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
  max-width: 100%;
}

.page-game-bai__btn-primary {
  background: var(--page-game-bai-button-gradient);
  color: var(--page-game-bai-dark-text); /* Ensure dark text on light gold button */
  border: 2px solid var(--page-game-bai-gold-color);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-game-bai__btn-primary:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-game-bai__btn-secondary {
  background: var(--page-game-bai-primary-color);
  color: var(--page-game-bai-main-text);
  border: 2px solid var(--page-game-bai-border-color);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-game-bai__btn-secondary:hover {
  background: var(--page-game-bai-secondary-color);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-game-bai__btn-play {
  background: var(--page-game-bai-button-gradient);
  color: var(--page-game-bai-dark-text);
  border: none;
  padding: 10px 20px;
  font-size: 1em;
  border-radius: 5px;
}

.page-game-bai__btn-play:hover {
  filter: brightness(1.1);
}

/* General Section Styles */
.page-game-bai__section {
  padding: 60px 0;
  background-color: var(--page-game-bai-background-color, #B71C1C);
}

.page-game-bai__section:nth-of-type(even) {
  background-color: var(--page-game-bai-deep-red);
}

.page-game-bai__section-title {
  font-size: clamp(1.8em, 3.5vw, 2.5em);
  color: var(--page-game-bai-gold-color);
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
  line-height: 1.3;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.page-game-bai__text-block {
  font-size: 1.05em;
  color: var(--page-game-bai-main-text);
  text-align: center;
  max-width: 900px;
  margin: 0 auto 50px auto;
  line-height: 1.7;
}

/* Feature Cards (Why Choose Section) */
.page-game-bai__features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.page-game-bai__feature-card {
  background: var(--page-game-bai-card-bg);
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--page-game-bai-border-color);
  color: var(--page-game-bai-main-text); /* Ensure light text on dark card background */
}

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

.page-game-bai__feature-card .page-game-bai__card-text {
  font-size: 1em;
  line-height: 1.6;
}

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

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

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

.page-game-bai__game-info {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

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

.page-game-bai__game-description {
  font-size: 0.95em;
  color: var(--page-game-bai-main-text);
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

/* How To Play Section (Steps) */
.page-game-bai__steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.page-game-bai__step-card {
  background: var(--page-game-bai-card-bg);
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--page-game-bai-border-color);
  color: var(--page-game-bai-main-text);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-game-bai__step-number {
  position: absolute;
  top: 15px;
  left: 15px;
  background: var(--page-game-bai-gold-color);
  color: var(--page-game-bai-dark-text);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5em;
  font-weight: bold;
  border: 2px solid var(--page-game-bai-border-color);
}

.page-game-bai__step-card .page-game-bai__card-title {
  color: var(--page-game-bai-gold-color);
  font-size: 1.4em;
  margin-top: 50px; /* Space for step number */
  margin-bottom: 15px;
  font-weight: bold;
}

.page-game-bai__step-card .page-game-bai__card-text {
  font-size: 1em;
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

/* Strategies Section */
.page-game-bai__strategy-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-game-bai__strategy-item {
  background: var(--page-game-bai-card-bg);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--page-game-bai-border-color);
  color: var(--page-game-bai-main-text);
}

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

.page-game-bai__strategy-text {
  font-size: 1em;
  line-height: 1.6;
  margin-bottom: 15px;
}

/* Promotions Section */
.page-game-bai__promo-card {
  background: var(--page-game-bai-card-bg);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--page-game-bai-border-color);
  color: var(--page-game-bai-main-text);
  margin-bottom: 30px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

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

.page-game-bai__promo-content {
  width: 50%;
  padding: 30px;
  box-sizing: border-box;
}

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

.page-game-bai__promo-description {
  font-size: 1em;
  line-height: 1.6;
  margin-bottom: 20px;
}

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

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

.page-game-bai__faq-item {
  background: var(--page-game-bai-card-bg);
  border: 1px solid var(--page-game-bai-border-color);
  border-radius: 8px;
  margin-bottom: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: var(--page-game-bai-main-text);
}

.page-game-bai__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.1em;
  font-weight: bold;
  cursor: pointer;
  color: var(--page-game-bai-gold-color);
  list-style: none;
  position: relative;
}

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

.page-game-bai__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 10px;
  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 20px 20px;
  font-size: 1em;
  line-height: 1.6;
  color: var(--page-game-bai-main-text);
}

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

.page-game-bai__faq-answer .page-game-bai__btn {
  margin-top: 10px;
}

/* Conclusion Section */
.page-game-bai__conclusion {
  text-align: center;
  padding-bottom: 80px;
  background-color: var(--page-game-bai-deep-red);
}

.page-game-bai__final-cta {
  margin-top: 40px;
}

/* --- Responsive Styles --- */

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

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

  .page-game-bai__main-title {
    font-size: 2.8em;
  }

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

  .page-game-bai__promo-image {
    width: 100%;
    height: 250px;
  }

  .page-game-bai__promo-content {
    width: 100%;
    padding: 25px;
  }
}

/* @media (max-width: 768px) - Mobile Specific Styles */
@media (max-width: 768px) {
  /* 1. Top Section (Hero) */
  .page-game-bai__hero-section {
    padding-top: 10px !important; /* Small top padding */
    padding-bottom: 30px;
  }

  .page-game-bai__main-title {
    font-size: 2em !important; /* Smaller H1 for mobile */
    margin-bottom: 15px;
  }

  .page-game-bai__description {
    font-size: 0.95em;
    margin-bottom: 25px;
  }

  .page-game-bai__hero-cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 10px;
    padding: 0 15px;
  }

  /* General Button Mobile Adaptations */
  .page-game-bai__btn,
  .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; /* Allow text to wrap */
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
    font-size: 1em;
  }

  .page-game-bai__hero-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;
  }

  /* 2. Single-column content wrap (General Sections) */
  .page-game-bai__container {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

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

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

  .page-game-bai__text-block {
    font-size: 0.95em;
    margin-bottom: 30px;
  }

  /* Feature Cards, Game Cards, Step Cards */
  .page-game-bai__features-grid,
  .page-game-bai__game-cards-grid,
  .page-game-bai__steps-grid,
  .page-game-bai__strategy-list {
    grid-template-columns: 1fr; /* Single column layout */
    gap: 20px;
  }

  .page-game-bai__feature-card,
  .page-game-bai__game-card,
  .page-game-bai__step-card,
  .page-game-bai__strategy-item {
    padding: 25px;
  }

  .page-game-bai__feature-card .page-game-bai__card-title,
  .page-game-bai__step-card .page-game-bai__card-title,
  .page-game-bai__game-title,
  .page-game-bai__strategy-title {
    font-size: 1.2em;
  }

  .page-game-bai__game-description,
  .page-game-bai__feature-card .page-game-bai__card-text,
  .page-game-bai__step-card .page-game-bai__card-text,
  .page-game-bai__strategy-text {
    font-size: 0.9em;
  }

  /* 3. Universal Images */
  .page-game-bai img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    object-fit: cover;
  }

  /* All containing elements for images */
  .page-game-bai__section,
  .page-game-bai__card,
  .page-game-bai__container,
  .page-game-bai__promo-card,
  .page-game-bai__hero-image-wrap {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden;
  }

  /* Promo Card Specifics */
  .page-game-bai__promo-image {
    width: 100% !important;
    height: 200px !important; /* Adjust height for mobile */
  }

  .page-game-bai__promo-content {
    width: 100% !important;
    padding: 20px !important;
  }

  .page-game-bai__promo-title {
    font-size: 1.4em !important;
  }

  .page-game-bai__promo-description {
    font-size: 0.9em !important;
  }

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

  .page-game-bai__faq-answer {
    font-size: 0.9em !important;
    padding: 0 15px 15px 15px !important;
  }

  .page-game-bai__faq-toggle {
    font-size: 1.2em !important;
  }

  /* Final CTA */
  .page-game-bai__final-cta {
    padding: 0 15px;
  }

}

/* Ensure light text on dark background for contrast */
.page-game-bai__dark-bg {
  background: var(--page-game-bai-card-bg);
  color: var(--page-game-bai-main-text);
}

.page-game-bai__light-bg {
  background: #ffffff;
  color: var(--page-game-bai-dark-text);
}

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

.page-game-bai__btn-secondary {
  background: var(--page-game-bai-primary-color);
  color: var(--page-game-bai-main-text);
}

.page-game-bai__faq-question {
  color: var(--page-game-bai-gold-color);
}