.page-game-bai {
  font-family: 'Arial', sans-serif;
  color: #1F2D3D; /* Text Main */
  line-height: 1.6;
  background-color: #F4F7FB; /* Background */
}

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

.page-game-bai__hero-image-wrapper {
  width: 100%;
  max-height: 500px; /* Limit height for desktop */
  overflow: hidden;
}

.page-game-bai__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover; /* Cover for desktop */
  aspect-ratio: 16/9;
}

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

.page-game-bai__main-title {
  font-size: clamp(2.2em, 4vw, 3.5em); /* H1 clamp for size control */
  color: #000000; /* Custom Color_1776249996415 */
  margin-bottom: 20px;
  font-weight: 700;
  line-height: 1.2;
}

.page-game-bai__description {
  font-size: 1.1em;
  color: #1F2D3D;
  margin-bottom: 30px;
}

.page-game-bai__cta-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap; /* Allow wrapping for buttons */
}

.page-game-bai__cta-buttons--center {
  margin-top: 40px;
}

.page-game-bai__btn-primary,
.page-game-bai__btn-secondary,
.page-game-bai__btn-card,
.page-game-bai__btn-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 8px;
  font-size: 1.05em;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  white-space: nowrap;
  box-sizing: border-box;
}

.page-game-bai__btn-primary {
  background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
  color: #FFFFFF;
  border: none;
  box-shadow: 0 4px 15px rgba(47, 107, 255, 0.3);
}

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

.page-game-bai__btn-secondary {
  background: #FFFFFF;
  color: #2F6BFF;
  border: 2px solid #2F6BFF;
  box-shadow: 0 2px 10px rgba(47, 107, 255, 0.1);
}

.page-game-bai__btn-secondary:hover {
  background: #F4F7FB;
  transform: translateY(-2px);
}

.page-game-bai__section {
  padding: 60px 0;
  background-color: #F4F7FB; /* Background */
}

.page-game-bai__dark-section {
  background: #2F6BFF; /* Main Color */
  color: #ffffff;
}

.page-game-bai__dark-section .page-game-bai__section-title,
.page-game-bai__dark-section .page-game-bai__text-block,
.page-game-bai__dark-section .page-game-bai__advantage-title,
.page-game-bai__dark-section .page-game-bai__advantage-text {
  color: #ffffff;
}

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

.page-game-bai__section-title {
  font-size: clamp(1.8em, 3.5vw, 2.5em);
  color: #000000; /* Custom Color_1776249996415 */
  text-align: center;
  margin-bottom: 40px;
  font-weight: 700;
  line-height: 1.3;
}

.page-game-bai__text-block {
  font-size: 1.05em;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 30px auto;
  color: #1F2D3D;
}

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

.page-game-bai__game-card {
  background: #FFFFFF; /* Card BG */
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #D6E2FF; /* Border */
}

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

.page-game-bai__card-title {
  font-size: 1.4em;
  font-weight: 600;
  color: #2F6BFF; /* Main Color */
  margin: 20px 20px 10px;
  text-align: center;
  line-height: 1.3;
}

.page-game-bai__card-text {
  font-size: 0.95em;
  color: #1F2D3D;
  padding: 0 20px;
  flex-grow: 1;
  text-align: center;
  margin-bottom: 20px;
}

.page-game-bai__btn-card {
  margin: 0 20px 20px;
  background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
  color: #FFFFFF;
  border: none;
  box-shadow: 0 4px 10px rgba(47, 107, 255, 0.2);
  border-radius: 6px;
  padding: 10px 20px;
  font-size: 1em;
  align-self: center;
  width: calc(100% - 40px);
}

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

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

.page-game-bai__advantage-item {
  background: rgba(255, 255, 255, 0.15); /* Slightly transparent white on dark background */
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  transition: background-color 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.page-game-bai__advantage-item:hover {
  background: rgba(255, 255, 255, 0.25);
}

.page-game-bai__advantage-title {
  font-size: 1.3em;
  font-weight: 600;
  margin-bottom: 15px;
  color: #FFFFFF;
}

.page-game-bai__advantage-text {
  font-size: 1em;
  color: #ffffff;
  opacity: 0.9;
}

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

.page-game-bai__step-item {
  background: #FFFFFF;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-bottom: 20px;
  border: 1px solid #D6E2FF; /* Border */
}

.page-game-bai__step-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  margin-bottom: 20px;
}

.page-game-bai__step-title {
  font-size: 1.3em;
  font-weight: 600;
  color: #2F6BFF;
  margin: 0 20px 10px;
}

.page-game-bai__step-text {
  font-size: 0.95em;
  color: #1F2D3D;
  padding: 0 20px;
  flex-grow: 1;
  margin-bottom: 20px;
}

.page-game-bai__btn-step {
  background: #6FA3FF; /* Auxiliary Color */
  color: #FFFFFF;
  border: none;
  border-radius: 6px;
  padding: 10px 20px;
  font-size: 0.95em;
  box-shadow: 0 3px 10px rgba(111, 163, 255, 0.3);
}

.page-game-bai__btn-step:hover {
  background: #4A8BFF;
  transform: translateY(-1px);
}

/* Winning Tips Section */
.page-game-bai__tips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-game-bai__tip-item {
  background: #FFFFFF;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  text-align: center;
  border: 1px solid #D6E2FF; /* Border */
}

.page-game-bai__tip-title {
  font-size: 1.3em;
  font-weight: 600;
  color: #2F6BFF;
  margin-bottom: 15px;
}

.page-game-bai__tip-text {
  font-size: 1em;
  color: #1F2D3D;
}

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

details.page-game-bai__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #D6E2FF; /* Border */
  overflow: hidden;
  background: #fff; /* Card BG */
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
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: #1F2D3D;
}
.page-game-bai__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #2F6BFF; /* Main Color */
  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;
  color: #1F2D3D;
}

.page-game-bai__faq-answer p {
    margin-bottom: 10px;
    text-align: left;
}
.page-game-bai__faq-answer p:last-child {
    margin-bottom: 0;
}

.page-game-bai__faq-app-download,
.page-game-bai__faq-promo-link,
.page-game-bai__faq-contact-link {
    margin-top: 15px;
    text-align: left;
}
.page-game-bai__faq-app-download .page-game-bai__btn-primary,
.page-game-bai__faq-promo-link .page-game-bai__btn-secondary,
.page-game-bai__faq-contact-link .page-game-bai__btn-secondary {
    display: inline-flex;
    padding: 10px 20px;
    font-size: 0.95em;
    border-radius: 6px;
    white-space: normal;
    word-wrap: break-word;
    max-width: 100%;
}


/* Conclusion Section */
.page-game-bai__conclusion-section {
  padding-bottom: 80px;
}

/* General image styling for content area */
.page-game-bai img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-game-bai__main-title {
    font-size: clamp(2em, 5vw, 3em);
  }
  .page-game-bai__section-title {
    font-size: clamp(1.6em, 4.5vw, 2.2em);
  }
  .page-game-bai__hero-image-wrapper {
    max-height: 400px;
  }
  .page-game-bai__game-grid,
  .page-game-bai__advantage-grid,
  .page-game-bai__steps-grid,
  .page-game-bai__tips-grid {
    gap: 20px;
  }
}

@media (max-width: 849px) { /* Specific breakpoint for hero image object-fit */
  .page-game-bai__hero-image {
    object-fit: contain !important; /* Prevent cropping on smaller screens */
    aspect-ratio: unset !important; /* Allow height to adjust naturally */
    max-height: 350px;
  }
}

@media (max-width: 768px) {
  .page-game-bai__cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 10px;
    padding: 0 15px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
}