/* Base styles for the Game Bài page */
.page-game-bai {
  font-family: 'Arial', sans-serif;
  color: #333333; /* Default dark text for light body background */
  line-height: 1.6;
}

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

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

.page-game-bai__section-title {
  font-size: 36px;
  font-weight: 700;
  color: #26A9E0; /* Brand primary color for titles */
  text-align: center;
  margin-bottom: 40px;
  line-height: 1.2;
}

.page-game-bai__section-title--light {
  color: #FFFFFF;
}

.page-game-bai__text-content {
  font-size: 17px;
  line-height: 1.7;
  margin-bottom: 20px;
  text-align: justify;
}

.page-game-bai__text-content--light {
  color: #f0f0f0;
}

/* Hero Section */
.page-game-bai__hero-section {
  position: relative;
  padding-top: 10px; /* Small top padding, assuming shared.css handles body padding-top */
  padding-bottom: 60px;
  overflow: hidden;
  background-color: #26A9E0; /* Fallback background color */
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-game-bai__hero-image-wrapper {
  width: 100%;
  max-height: 600px; /* Limit height for hero image */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-game-bai__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover; /* Ensure image covers the area */
  max-height: 600px;
}

.page-game-bai__hero-content {
  text-align: center;
  padding: 30px 20px 0;
  max-width: 900px;
  z-index: 1;
  color: #FFFFFF;
}

.page-game-bai__hero-title {
  font-size: clamp(32px, 4.5vw, 48px); /* Responsive font size for H1 */
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #FFFFFF;
}

.page-game-bai__hero-description {
  font-size: 19px;
  margin-bottom: 30px;
  color: #f0f0f0;
}

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

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

.page-game-bai__btn-primary {
  background-color: #EA7C07; /* Login color for primary action */
  color: #FFFFFF;
  border: 2px solid #EA7C07;
}

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

.page-game-bai__btn-secondary {
  background-color: #FFFFFF;
  color: #26A9E0; /* Brand primary color for secondary action */
  border: 2px solid #26A9E0;
}

.page-game-bai__btn-secondary:hover {
  background-color: #e0f2f7;
  color: #208cb7;
  border-color: #208cb7;
}

.page-game-bai__btn-small {
  padding: 10px 20px;
  font-size: 16px;
}

.page-game-bai__btn-large {
  padding: 18px 40px;
  font-size: 20px;
}

/* Intro Section */
.page-game-bai__intro-section {
  background: #FFFFFF;
}

/* Game Types Section */
.page-game-bai__game-types-section {
  background: #26A9E0;
}

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

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

.page-game-bai__game-card {
  background: #FFFFFF;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  color: #333333;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

.page-game-bai__game-card-title {
  font-size: 24px;
  font-weight: 700;
  color: #26A9E0;
  margin: 20px 20px 10px;
}

.page-game-bai__game-card-description {
  font-size: 16px;
  color: #555555;
  padding: 0 20px;
  flex-grow: 1;
  margin-bottom: 20px;
}

.page-game-bai__game-card .page-game-bai__btn-primary {
  align-self: flex-start;
  margin: 0 20px 20px;
}

/* Why Choose Section */
.page-game-bai__why-choose-content {
  display: flex;
  align-items: center;
  gap: 40px;
}

.page-game-bai__why-choose-text {
  flex: 1;
}

.page-game-bai__advantage-list {
  list-style: none;
  padding: 0;
  margin: 20px 0 30px;
}

.page-game-bai__advantage-list li {
  font-size: 17px;
  margin-bottom: 15px;
  position: relative;
  padding-left: 30px;
}

.page-game-bai__advantage-list li::before {
  content: '✔';
  color: #26A9E0;
  font-weight: bold;
  position: absolute;
  left: 0;
  top: 0;
}

.page-game-bai__why-choose-image-wrapper {
  flex-shrink: 0;
  width: 50%;
}

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

/* Promo Section */
.page-game-bai__promo-list {
  list-style: disc;
  margin: 30px 0 40px 20px;
  font-size: 17px;
}

.page-game-bai__promo-list li {
  margin-bottom: 10px;
}

.page-game-bai__promo-list--light li {
  color: #f0f0f0;
}

.page-game-bai__promo-content {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-top: 40px;
  flex-wrap: wrap-reverse;
}

.page-game-bai__promo-image-wrapper {
  flex-shrink: 0;
  width: 50%;
}

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

.page-game-bai__promo-cta {
  text-align: center;
  margin-top: 40px;
}

/* Get Started Section */
.page-game-bai__get-started-section {
  background: #FFFFFF;
}

.page-game-bai__steps-list {
  list-style: none;
  padding: 0;
  margin: 30px 0 40px;
  counter-reset: step-counter;
}

.page-game-bai__steps-list li {
  counter-increment: step-counter;
  font-size: 18px;
  margin-bottom: 20px;
  position: relative;
  padding-left: 50px;
}

.page-game-bai__steps-list li::before {
  content: counter(step-counter);
  background-color: #26A9E0;
  color: #FFFFFF;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  position: absolute;
  left: 0;
  top: 0;
}

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

/* FAQ Section */
.page-game-bai__faq-section {
  background: #f9f9f9;
}

details.page-game-bai__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  background: #fff;
  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 25px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
  font-size: 18px;
  font-weight: 600;
  color: #333333;
}
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: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
}
.page-game-bai__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: #26A9E0;
  flex-shrink: 0;
  margin-left: 20px;
  width: 32px;
  text-align: center;
  line-height: 1;
}
details.page-game-bai__faq-item .page-game-bai__faq-answer {
  padding: 0 25px 25px;
  background: #fcfcfc;
  border-top: 1px solid #eeeeee;
  border-radius: 0 0 8px 8px;
  font-size: 16px;
  color: #555555;
}
.page-game-bai__faq-answer p {
  margin-top: 15px;
  margin-bottom: 0;
}

/* Final CTA Section */
.page-game-bai__cta-final-section {
  background: #26A9E0;
}

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

/* Global image settings for the page content */
.page-game-bai img {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover; /* Default object-fit */
}

/* Responsive styles */
@media (max-width: 1024px) {
  .page-game-bai__section-title {
    font-size: 32px;
  }

  .page-game-bai__hero-title {
    font-size: clamp(28px, 4vw, 42px);
  }

  .page-game-bai__hero-description {
    font-size: 18px;
  }

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

  .page-game-bai__why-choose-content {
    flex-direction: column;
    gap: 30px;
  }

  .page-game-bai__why-choose-image-wrapper,
  .page-game-bai__promo-image-wrapper {
    width: 80%;
  }

  .page-game-bai__promo-content {
    flex-direction: column;
    gap: 30px;
  }

  .page-game-bai__game-card-image {
    height: 200px;
  }
}

@media (max-width: 768px) {
  /* HERO 主图区域 */
  .page-game-bai__hero-section {
    padding-top: 10px; /* Small top padding, body handles header offset */
    padding-bottom: 40px;
  }
  .page-game-bai__hero-image-wrapper {
    max-height: 300px; /* Adjust hero image height for mobile */
  }
  .page-game-bai__hero-image {
    object-fit: contain !important; /* Mobile: ensure image is fully visible, no cropping */
    aspect-ratio: unset !important;
    max-height: 300px;
  }
  .page-game-bai__hero-content {
    padding: 20px 15px 0;
  }
  .page-game-bai__hero-title {
    font-size: clamp(28px, 8vw, 36px); /* More aggressive clamp for mobile H1 */
    margin-bottom: 15px;
  }
  .page-game-bai__hero-description {
    font-size: 16px;
    margin-bottom: 25px;
  }
  .page-game-bai__hero-cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  /* 产品展示图区域 (Game Cards Grid) */
  .page-game-bai__game-cards-grid {
    grid-template-columns: 1fr; /* Single column on mobile */
    gap: 20px;
    margin-top: 30px;
  }
  .page-game-bai__game-card {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  }
  .page-game-bai__game-card-image {
    height: 180px;
  }
  .page-game-bai__game-card-title {
    font-size: 20px;
    margin: 15px 15px 8px;
  }
  .page-game-bai__game-card-description {
    font-size: 15px;
    padding: 0 15px;
  }
  .page-game-bai__game-card .page-game-bai__btn-primary {
    margin: 0 15px 15px;
    width: calc(100% - 30px); /* Full width minus padding */
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-game-bai__game-types-section {
    overflow-x: hidden; /* Prevent horizontal scroll */
  }

  /* 装饰主标题 + 长文 SEO 区 (General sections and text) */
  .page-game-bai__section-title {
    font-size: 28px;
    margin-bottom: 30px;
    padding: 0 15px;
    text-align: center;
    max-width: 100%;
    box-sizing: border-box;
  }
  .page-game-bai__text-content {
    font-size: 16px;
    padding: 0 15px;
    text-align: left; /* Align left for better readability on mobile */
    max-width: 100%;
    box-sizing: border-box;
  }
  .page-game-bai__container {
    padding: 0;
  }
  .page-game-bai__section-padding {
    padding: 40px 0;
  }
  .page-game-bai__advantage-list {
    padding: 0 15px;
  }
  .page-game-bai__advantage-list li {
    font-size: 16px;
    padding-left: 25px;
  }
  .page-game-bai__why-choose-image-wrapper,
  .page-game-bai__promo-image-wrapper {
    width: 100%;
    padding: 0 15px;
    box-sizing: border-box;
  }
  .page-game-bai__why-choose-image,
  .page-game-bai__promo-image {
    max-width: 100% !important;
    height: auto !important;
  }

  /* 通用图片与容器 */
  .page-game-bai img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box;
  }
  .page-game-bai__section,
  .page-game-bai__card,
  .page-game-bai__container, 
  .page-game-bai__why-choose-content, 
  .page-game-bai__promo-content {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* 按钮与按钮容器 */
  .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-left: 15px;
    padding-right: 15px;
  }
  .page-game-bai__hero-cta-buttons,
  .page-game-bai__get-started-cta-buttons,
  .page-game-bai__cta-final-buttons {
    flex-direction: column !important;
    gap: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-game-bai__promo-cta .page-game-bai__btn-primary {
    width: calc(100% - 30px);
    margin: 0 auto;
  }

  /* FAQ Section */
  details.page-game-bai__faq-item summary.page-game-bai__faq-question {
    padding: 15px 20px;
    font-size: 16px;
  }
  .page-game-bai__faq-qtext {
    font-size: 16px;
  }
  .page-game-bai__faq-toggle {
    font-size: 24px;
    margin-left: 15px;
    width: 28px;
  }
  details.page-game-bai__faq-item .page-game-bai__faq-answer {
    padding: 0 20px 20px;
  }
  .page-game-bai__faq-answer p {
    font-size: 15px;
  }

  .page-game-bai__steps-list {
    padding: 0 15px;
  }
  .page-game-bai__steps-list li {
    font-size: 16px;
    padding-left: 45px;
  }
  .page-game-bai__steps-list li::before {
    width: 30px;
    height: 30px;
    font-size: 16px;
  }
}