/* 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__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.page-game-bai__dark-section {
  background-color: #26A9E0; /* Primary brand color */
  color: #ffffff; /* White text for dark background */
  padding: 40px 0;
}

.page-game-bai__light-bg {
  background-color: #ffffff; /* Auxiliary brand color / default white */
  color: #333333;
  padding: 40px 0;
}

.page-game-bai__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
}

.page-game-bai__section-description {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Hero Section */
.page-game-bai__hero-section {
  padding-top: 10px; /* Small top padding, assuming body has header offset */
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  overflow: hidden;
  position: relative;
}

.page-game-bai__hero-image-wrapper {
  width: 100%;
  max-height: 600px; /* Limit height for hero image */
  overflow: hidden;
  margin-bottom: 20px;
}

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

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

.page-game-bai__main-title {
  font-size: 3em;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 20px;
  color: #ffffff;
}

.page-game-bai__description {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: #f0f0f0;
}

.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,
.page-game-bai__btn-outline {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 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 */
  color: #ffffff;
  border: 2px solid #EA7C07;
}

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

.page-game-bai__btn-secondary {
  background-color: #ffffff;
  color: #26A9E0;
  border: 2px solid #26A9E0;
}

.page-game-bai__btn-secondary:hover {
  background-color: #f0f0f0;
  color: #1a8ecb;
  border-color: #1a8ecb;
}

.page-game-bai__btn-outline {
  background-color: transparent;
  color: #26A9E0;
  border: 2px solid #26A9E0;
}

.page-game-bai__btn-outline:hover {
  background-color: #26A9E0;
  color: #ffffff;
}

.page-game-bai__cta-buttons--center {
  text-align: center;
}

/* Introduction Section */
.page-game-bai__introduction-section p {
  margin-bottom: 1em;
  font-size: 1.05em;
}

.page-game-bai__introduction-section strong {
  color: #26A9E0;
}

/* Game Types 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-color: #ffffff;
  color: #333333;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform 0.3s ease;
}

.page-game-bai__game-card:hover {
  transform: translateY(-5px);
}

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

.page-game-bai__game-card-title {
  font-size: 1.5em;
  font-weight: bold;
  margin: 15px 15px 10px;
  flex-grow: 0;
}

.page-game-bai__game-card-link {
  color: #26A9E0;
  text-decoration: none;
}

.page-game-bai__game-card-link:hover {
  text-decoration: underline;
}

.page-game-bai__game-card-description {
  font-size: 0.95em;
  margin: 0 15px 20px;
  flex-grow: 1;
}

.page-game-bai__btn-play {
  margin: 0 15px 15px;
  text-align: center;
}

/* Guide Section */
.page-game-bai__guide-list {
  list-style: decimal;
  padding-left: 25px;
  font-size: 1.05em;
}

.page-game-bai__guide-list li {
  margin-bottom: 15px;
}

.page-game-bai__guide-list strong {
  color: #26A9E0;
}

/* Strategy Section */
.page-game-bai__strategy-content {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

.page-game-bai__text-block {
  flex: 1;
}

.page-game-bai__image-block {
  flex: 1;
  min-width: 400px;
}

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

.page-game-bai__strategy-list {
  list-style: disc;
  padding-left: 20px;
  margin-bottom: 20px;
}

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

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

.page-game-bai__promo-card {
  background-color: #f8f8f8;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  height: 100%;
}

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

.page-game-bai__promo-card-title {
  font-size: 1.3em;
  font-weight: bold;
  margin: 15px 15px 10px;
  color: #26A9E0;
}

.page-game-bai__promo-card-description {
  font-size: 0.95em;
  margin: 0 15px 20px;
  flex-grow: 1;
}

.page-game-bai__promo-footer {
  text-align: center;
  margin-top: 40px;
  font-size: 1.05em;
  color: #333333;
}

.page-game-bai__promo-footer a {
  color: #26A9E0;
  text-decoration: none;
}

.page-game-bai__promo-footer a:hover {
  text-decoration: underline;
}

/* Why Choose Section */
.page-game-bai__reasons-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 20px;
}

.page-game-bai__reasons-list li {
  background-color: rgba(255, 255, 255, 0.1);
  border-left: 5px solid #EA7C07;
  padding: 20px;
  border-radius: 5px;
  font-size: 1.05em;
  color: #ffffff;
}

.page-game-bai__reasons-list strong {
  color: #EA7C07;
}

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

.page-game-bai__faq-item {
  background-color: #f8f8f8;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-game-bai__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  font-size: 1.1em;
  font-weight: bold;
  color: #26A9E0;
  cursor: pointer;
  list-style: none; /* Hide default marker */
}

.page-game-bai__faq-question::-webkit-details-marker {
  display: none; /* Hide default marker for webkit */
}

.page-game-bai__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  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 15px;
  font-size: 1em;
  color: #333333;
}

/* Conclusion Section */
.page-game-bai__conclusion-section .page-game-bai__description {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #f0f0f0;
}

/* General Image styles */
.page-game-bai img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

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

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

  .page-game-bai__strategy-content {
    flex-direction: column;
    align-items: center;
  }

  .page-game-bai__image-block {
    min-width: unset;
    width: 100%;
  }

  .page-game-bai__reasons-list {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-game-bai {
    font-size: 16px;
    line-height: 1.6;
  }

  /* HERO 主图区域 */
  .page-game-bai__hero-section {
    padding-top: 10px !important;
  }

  .page-game-bai__main-title {
    font-size: 2em !important;
    padding: 0 15px;
  }

  .page-game-bai__description {
    font-size: 1em !important;
    padding: 0 15px;
  }

  .page-game-bai__section-title {
    font-size: 1.8em !important;
    padding: 0 15px;
  }

  .page-game-bai__section-description {
    font-size: 0.95em !important;
    padding: 0 15px;
  }

  .page-game-bai__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
    width: 100%;
    box-sizing: border-box;
  }

  /* 按钮与按钮容器 */
  .page-game-bai__btn-primary,
  .page-game-bai__btn-secondary,
  .page-game-bai__btn-outline,
  .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__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;
  }

  /* 游戏卡片区 */
  .page-game-bai__game-cards-grid {
    grid-template-columns: 1fr;
    padding: 0 15px;
  }

  .page-game-bai__game-card {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  }

  /* 策略区 */
  .page-game-bai__strategy-content {
    flex-direction: column;
    gap: 20px;
    padding: 0 15px;
  }

  .page-game-bai__image-block {
    width: 100%;
  }

  .page-game-bai__strategy-image {
    border-radius: 8px;
  }

  /* 推广区 */
  .page-game-bai__promotion-grid {
    grid-template-columns: 1fr;
    padding: 0 15px;
  }

  .page-game-bai__promo-card {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  }

  /* Lý Do Chọn Section */
  .page-game-bai__reasons-list {
    grid-template-columns: 1fr;
    padding: 0 15px;
  }

  /* FAQ区 */
  .page-game-bai__faq-list {
    padding: 0 15px;
  }

  .page-game-bai__faq-item {
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  }

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

  /* Ensure no horizontal scroll */
  body {
    overflow-x: hidden;
  }
  .page-game-bai {
    overflow-x: hidden;
  }
}