/* style/game-bai.css */
.page-game-bai {
  font-family: 'Arial', sans-serif;
  color: #333333; /* Default text color for light body background */
  background-color: #FFFFFF; /* Explicitly set for clarity */
}

.page-game-bai__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 10px 0 40px 0; /* Small top padding, more bottom padding */
  background-color: #f5f5f5;
  position: relative;
  overflow: hidden;
}

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

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

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

.page-game-bai__main-title {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 700;
  line-height: 1.2;
  color: #017439;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

.page-game-bai__hero-description {
  font-size: 1.15rem;
  line-height: 1.6;
  color: #555555;
  margin-bottom: 30px;
}

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

.page-game-bai__btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

.page-game-bai__btn-primary {
  background: #C30808; /* Register/Login color */
  color: #FFFF00; /* Register/Login font color */
  border: 2px solid #C30808;
}

.page-game-bai__btn-primary:hover {
  background: #a30606;
  border-color: #a30606;
}

.page-game-bai__btn-secondary {
  background: #017439;
  color: #FFFFFF;
  border: 2px solid #017439;
}

.page-game-bai__btn-secondary:hover {
  background: #005f2e;
  border-color: #005f2e;
}

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

.page-game-bai__section-title {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 700;
  color: #017439;
  text-align: center;
  margin-bottom: 40px;
  padding: 0 15px;
}

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

.page-game-bai__text-block {
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 25px;
  color: #444444;
}

.page-game-bai__sub-title {
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  font-weight: 600;
  color: #017439;
  margin-top: 40px;
  margin-bottom: 20px;
}

.page-game-bai__figure {
  margin: 30px 0;
  text-align: center;
}

.page-game-bai__image {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  margin: 0 auto;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-game-bai__figcaption {
  font-size: 0.95rem;
  color: #777777;
  margin-top: 10px;
  font-style: italic;
}

.page-game-bai__list {
  list-style-type: disc;
  margin-left: 25px;
  margin-bottom: 25px;
  color: #444444;
}

.page-game-bai__list-item {
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 10px;
}

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

.page-game-bai__game-card, .page-game-bai__promo-card {
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  text-align: center;
  padding-bottom: 25px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-game-bai__game-card:hover, .page-game-bai__promo-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-game-bai__card-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
  margin-bottom: 15px;
}

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

.page-game-bai__card-description {
  font-size: 0.95rem;
  color: #666666;
  line-height: 1.5;
  margin-bottom: 20px;
  padding: 0 15px;
}

.page-game-bai__btn-small {
  display: inline-block;
  padding: 8px 20px;
  border-radius: 20px;
  background-color: #C30808; /* Register/Login color */
  color: #FFFF00; /* Register/Login font color */
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: background-color 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

.page-game-bai__btn-small:hover {
  background-color: #a30606;
}

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

.page-game-bai__dark-section .page-game-bai__section-title,
.page-game-bai__dark-section .page-game-bai__sub-title,
.page-game-bai__dark-section .page-game-bai__faq-question {
  color: #ffffff;
}

.page-game-bai__dark-section .page-game-bai__text-block,
.page-game-bai__dark-section .page-game-bai__list-item,
.page-game-bai__dark-section .page-game-bai__faq-answer p {
  color: #f0f0f0;
}

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

.page-game-bai__step-card {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.page-game-bai__step-card:hover {
  transform: translateY(-5px);
  background-color: rgba(255, 255, 255, 0.2);
}

.page-game-bai__step-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 20px;
}

.page-game-bai__step-image {
  height: 250px; /* Consistent height for step images */
  object-fit: cover;
  margin-bottom: 20px;
}

.page-game-bai__step-card p {
  font-size: 1rem;
  line-height: 1.6;
  color: #f0f0f0;
  margin-bottom: 25px;
}

.page-game-bai__btn-register, .page-game-bai__btn-deposit, .page-game-bai__btn-play, .page-game-bai__btn-withdraw {
  background: #C30808; /* Register/Login color */
  color: #FFFF00; /* Register/Login font color */
  border: 2px solid #C30808;
  padding: 12px 25px;
  font-size: 1rem;
  border-radius: 25px;
}

.page-game-bai__btn-register:hover, .page-game-bai__btn-deposit:hover, .page-game-bai__btn-play:hover, .page-game-bai__btn-withdraw:hover {
  background: #a30606;
  border-color: #a30606;
}

.page-game-bai__promo-section {
  background-color: #f9f9f9;
}

.page-game-bai__btn-promo {
  background: #C30808; /* Register/Login color */
  color: #FFFF00; /* Register/Login font color */
  border: 2px solid #C30808;
  padding: 12px 25px;
  font-size: 1rem;
  border-radius: 25px;
}

.page-game-bai__btn-promo:hover {
  background: #a30606;
  border-color: #a30606;
}

.page-game-bai__cta-center {
  text-align: center;
  margin-top: 50px;
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

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

.page-game-bai__faq-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-game-bai__faq-question {
  font-size: 1.25rem;
  font-weight: 600;
  color: #ffffff;
  padding: 20px 25px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color 0.3s ease;
  position: relative;
}

.page-game-bai__faq-question::after {
  content: '+';
  font-size: 1.5rem;
  transition: transform 0.3s ease;
}

.page-game-bai__faq-item.active .page-game-bai__faq-question::after {
  content: '-';
  transform: rotate(180deg);
}

.page-game-bai__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out;
}

.page-game-bai__faq-item.active .page-game-bai__faq-answer {
  max-height: 500px; /* Adjust as needed */
  transition: max-height 0.4s ease-in;
}

.page-game-bai__faq-answer p {
  padding: 0 25px 20px 25px;
  font-size: 1rem;
  line-height: 1.6;
  color: #f0f0f0;
}

.page-game-bai__conclusion-section {
  padding-bottom: 80px;
}

/* --- Responsive Styles --- */
@media (max-width: 1024px) {
  .page-game-bai__main-title {
    font-size: clamp(2rem, 4.5vw, 2.8rem);
  }
  .page-game-bai__section-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
  }
  .page-game-bai__sub-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
  }
  .page-game-bai__hero-description {
    font-size: 1.05rem;
  }
  .page-game-bai__game-grid, .page-game-bai__promo-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
  .page-game-bai__step-by-step {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
  .page-game-bai__hero-section {
    padding-top: 10px;
  }
}

@media (max-width: 768px) {
  /* 1. Top section title + dual CTA */
  .page-game-bai__hero-section {
    padding-top: 10px !important;
    padding-bottom: 30px;
  }
  .page-game-bai__main-title {
    font-size: clamp(1.8rem, 7vw, 2.5rem);
    margin-bottom: 15px;
  }
  .page-game-bai__hero-description {
    font-size: 1rem;
    margin-bottom: 25px;
    padding: 0 10px;
  }
  .page-game-bai__hero-cta-buttons {
    flex-direction: column;
    gap: 10px;
    padding: 0 15px;
  }
  .page-game-bai__btn {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 20px;
    font-size: 1rem;
  }

  /* 2. Single column long text containers */
  .page-game-bai__section {
    padding: 40px 0;
  }
  .page-game-bai__section-title {
    font-size: clamp(1.5rem, 6vw, 2.2rem);
    margin-bottom: 30px;
    padding: 0 10px;
  }
  .page-game-bai__article-wrap {
    padding: 0 15px;
  }
  .page-game-bai__text-block {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
  }
  .page-game-bai__sub-title {
    font-size: clamp(1.3rem, 5vw, 1.8rem);
    margin-top: 30px;
    margin-bottom: 15px;
  }
  .page-game-bai__list {
    margin-left: 20px;
    margin-bottom: 20px;
  }
  .page-game-bai__list-item {
    font-size: 0.95rem;
    margin-bottom: 8px;
  }

  /* 3. General images and figures */
  .page-game-bai img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block;
  }
  .page-game-bai__figure {
    margin: 20px 0;
  }
  .page-game-bai__figcaption {
    font-size: 0.85rem;
  }
  .page-game-bai__card-image {
    height: 180px; /* Adjust card image height for mobile */
  }

  /* 4. Buttons and button containers */
  .page-game-bai__game-grid, .page-game-bai__promo-grid, .page-game-bai__step-by-step {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 20px;
    margin-bottom: 30px;
  }
  .page-game-bai__game-card, .page-game-bai__promo-card, .page-game-bai__step-card {
    padding: 20px;
  }
  .page-game-bai__card-title {
    font-size: 1.2rem;
  }
  .page-game-bai__card-description {
    font-size: 0.9rem;
  }
  .page-game-bai__btn-small {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-game-bai__cta-center {
    flex-direction: column;
    gap: 10px;
    margin-top: 30px;
    padding: 0 15px;
  }

  /* 5. FAQ section (text readability) */
  .page-game-bai__faq-question {
    font-size: 1.1rem;
    padding: 15px 20px;
  }
  .page-game-bai__faq-answer p {
    font-size: 0.95rem;
    padding: 0 20px 15px 20px;
  }
  .page-game-bai__faq-item.active .page-game-bai__faq-answer {
    max-height: 800px; /* Adjust max-height for mobile if needed */
  }
}

/* Ensure images within content areas are always responsive and don't overflow */
.page-game-bai__article-wrap img, .page-game-bai__game-card img, .page-game-bai__promo-card img, .page-game-bai__step-card img {
  max-width: 100%;
  height: auto;
  box-sizing: border-box;
}

.page-game-bai__article-wrap, .page-game-bai__game-grid, .page-game-bai__promo-grid, .page-game-bai__step-by-step, .page-game-bai__faq-list {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}