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

.page-game-bai__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
  box-sizing: border-box;
}

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

.page-game-bai__dark-section {
  background: #E53935; /* Main brand color */
  color: #ffffff; /* White text for dark background */
}

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

.page-game-bai__card {
  background: #FFFFFF;
  color: #333333;
  border: 1px solid #E0E0E0;
  border-radius: 8px;
  padding: 25px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  box-sizing: border-box;
}

.page-game-bai__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.page-game-bai__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  text-align: center;
  color: #ffffff;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-game-bai__section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  text-align: center;
  color: inherit;
}

.page-game-bai__section-description {
  font-size: 1.1rem;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
  color: inherit;
}

.page-game-bai__description {
  font-size: 1.2rem;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 30px auto;
  color: #ffffff;
}

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

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

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

.page-game-bai__hero-image-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-game-bai__hero-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

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

.page-game-bai__btn-primary,
.page-game-bai__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  min-width: 180px;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

.page-game-bai__btn-primary {
  background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
  color: #ffffff;
  border: 2px solid transparent;
  box-shadow: 0 4px 15px rgba(229, 57, 53, 0.4);
}

.page-game-bai__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(229, 57, 53, 0.6);
}

.page-game-bai__btn-secondary {
  background: #ffffff;
  color: #E53935;
  border: 2px solid #E53935;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-game-bai__btn-secondary:hover {
  transform: translateY(-3px);
  background: #f0f0f0;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.page-game-bai__feature-title, .page-game-bai__game-title, .page-game-bai__step-title, .page-game-bai__promo-title, .page-game-bai__tip-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: #E53935;
  text-align: center;
}

.page-game-bai__feature-card p, .page-game-bai__game-text, .page-game-bai__step-item p, .page-game-bai__promo-text, .page-game-bai__tip-item p {
  font-size: 1rem;
  line-height: 1.7;
  color: #333333;
  text-align: center;
}

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

.page-game-bai__game-list {
    list-style: none;
    padding: 0;
    margin-top: 20px;
    text-align: center;
}

.page-game-bai__game-list li {
    background: #f0f0f0;
    border-radius: 5px;
    margin-bottom: 8px;
    padding: 10px 15px;
    font-size: 0.95rem;
    color: #333333;
}

.page-game-bai__feature-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-top: 20px;
}

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

.page-game-bai__game-card {
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-game-bai__game-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

.page-game-bai__game-btn {
    margin-top: auto; /* Push button to bottom */
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

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

.page-game-bai__step-item {
    text-align: center;
    position: relative;
    padding-top: 60px;
}

.page-game-bai__step-number {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
    color: #ffffff;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(229, 57, 53, 0.5);
}

.page-game-bai__step-item p {
    margin-bottom: 20px;
}

.page-game-bai__step-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-top: 20px;
}

.page-game-bai__step-btn {
    margin-top: auto;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

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

.page-game-bai__promo-card {
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-game-bai__promo-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

.page-game-bai__promo-btn {
    margin-top: auto;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

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

.page-game-bai__tip-item {
    text-align: center;
}

.page-game-bai__cta-bottom, .page-game-bai__cta-final {
    text-align: center;
    margin-top: 50px;
}

/* FAQ styles */
details.page-game-bai__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  background: #fff;
}
details.page-game-bai__faq-item summary.page-game-bai__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
}
details.page-game-bai__faq-item summary.page-game-bai__faq-question::-webkit-details-marker {
  display: none;
}
details.page-game-bai__faq-item summary.page-game-bai__faq-question:hover {
  background: #f5f5f5;
}
.page-game-bai__faq-qtext {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #333333; /* Ensure contrast on white background */
}
.page-game-bai__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #666;
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}
details.page-game-bai__faq-item .page-game-bai__faq-answer {
  padding: 0 20px 20px;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
}

.page-game-bai__faq-answer p {
    font-size: 1rem;
    line-height: 1.7;
    color: #333333;
    text-align: left;
}

.page-game-bai__copyright-info {
    text-align: center;
    padding: 30px 15px;
    background: #222;
    color: #ccc;
    font-size: 0.9rem;
}

.page-game-bai__copyright-info p {
    margin: 0;
}

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

/* Media Queries for Mobile */
@media (max-width: 1024px) {
    .page-game-bai__hero-section .page-game-bai__container {
        flex-direction: column;
        text-align: center;
    }
    .page-game-bai__hero-content {
        text-align: center;
    }
    .page-game-bai__main-title {
        font-size: 2.8rem;
    }
    .page-game-bai__section-title {
        font-size: 2rem;
    }
    .page-game-bai__description {
        font-size: 1.1rem;
    }
    .page-game-bai__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-game-bai__btn-primary, .page-game-bai__btn-secondary {
        width: 100%;
        max-width: 300px; /* Constrain width for better look */
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
  /* 1. Top section __top-text / __hero-section top padding */
  .page-game-bai__hero-section {
    padding-top: 10px; /* Small top padding for mobile */
    padding-bottom: 40px;
  }

  /* 2. Landing page two-column modules -> single column */
  .page-game-bai__features-grid,
  .page-game-bai__game-cards-grid,
  .page-game-bai__guide-steps,
  .page-game-bai__promo-cards-grid,
  .page-game-bai__tips-grid {
    grid-template-columns: 1fr; /* Single column for all grids */
    gap: 20px;
  }

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

  .page-game-bai__main-title {
    font-size: 2.2rem;
    margin-bottom: 15px;
  }

  .page-game-bai__description {
    font-size: 1rem;
    margin-bottom: 20px;
  }

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

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

  .page-game-bai__feature-title, .page-game-bai__game-title, .page-game-bai__step-title, .page-game-bai__promo-title, .page-game-bai__tip-title {
    font-size: 1.2rem;
    margin-bottom: 10px;
  }

  .page-game-bai__feature-card p, .page-game-bai__game-text, .page-game-bai__step-item p, .page-game-bai__promo-text, .page-game-bai__tip-item p {
    font-size: 0.9rem;
  }

  /* 3. General images and containers max-width: 100% */
  .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;
  }

  /* 4. Buttons: start-btn, reg-button (all buttons) */
  .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: 12px 20px; /* Adjust padding for mobile buttons */
    font-size: 1rem;
  }

  .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-direction: column !important; /* Stack buttons vertically */
    gap: 10px;
  }

  /* FAQ specific mobile styles */
  details.page-game-bai__faq-item summary.page-game-bai__faq-question { padding: 15px; }
  .page-game-bai__faq-qtext { font-size: 15px; }
  details.page-game-bai__faq-item .page-game-bai__faq-answer {
    padding: 0 15px 15px;
  }
}