.page-game-bai { font-family: 'Arial', sans-serif; color: #333333; background-color: #ffffff; }
.page-game-bai__container { max-width: 1170px; margin: 0 auto; padding: 0 16px; box-sizing: border-box; }
.page-game-bai__dark-section { background-color: #26A9E0; color: #ffffff; }
.page-game-bai__light-bg { background-color: #f8f8f8; color: #333333; }

/* Hero Section */
.page-game-bai__hero-section { padding-top: 10px; padding-bottom: 60px; background: linear-gradient(135deg, #26A9E0, #4AD9F5); }
.page-game-bai__hero-container { display: flex; align-items: center; gap: 40px; padding: 60px 16px; flex-wrap: wrap; }
.page-game-bai__hero-content { flex: 1; min-width: 300px; color: #ffffff; }
.page-game-bai__main-title { font-size: clamp(2.5rem, 5vw, 3.5rem); font-weight: 700; line-height: 1.2; margin-bottom: 20px; color: #ffffff; }
.page-game-bai__hero-description { font-size: 1.15rem; line-height: 1.6; margin-bottom: 30px; }
.page-game-bai__cta-buttons { display: flex; gap: 20px; flex-wrap: wrap; }
.page-game-bai__hero-image { flex: 1 1 45%; text-align: center; min-width: 250px; }
.page-game-bai__hero-side-image { max-width: 600px; width: 100%; height: auto; border-radius: 8px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2); display: block; margin: 0 auto; }

/* General Buttons */
.page-game-bai__btn-primary, .page-game-bai__btn-secondary, .page-game-bai__game-card-btn, .page-game-bai__promo-card-btn, .page-game-bai__blog-card-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  box-sizing: border-box;
  text-align: center;
  white-space: normal;
  word-wrap: break-word;
}
.page-game-bai__btn-primary {
  background-color: #EA7C07; /* Login color for primary CTA */
  color: #ffffff;
  border: 2px solid #EA7C07;
}
.page-game-bai__btn-primary:hover { background-color: #D36C06; border-color: #D36C06; }
.page-game-bai__btn-secondary {
  background-color: #ffffff;
  color: #26A9E0;
  border: 2px solid #26A9E0;
}
.page-game-bai__btn-secondary:hover { background-color: #e0f7fa; border-color: #1a8fb3; }

/* Section Titles and Descriptions */
.page-game-bai__section-title { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 700; text-align: center; margin-bottom: 20px; line-height: 1.3; }
.page-game-bai__section-description { font-size: 1.1rem; text-align: center; max-width: 800px; margin: 0 auto 50px; line-height: 1.6; }
.page-game-bai__dark-section .page-game-bai__section-title, .page-game-bai__dark-section .page-game-bai__section-description { color: #ffffff; }

/* Intro Section (Module 1 - 3-column round images) */
.page-game-bai__intro-section { padding: 80px 0; }
.page-game-bai__intro-grid { display: flex; gap: 30px; flex-wrap: wrap; justify-content: center; }
.page-game-bai__intro-item { flex: 1 1 30%; min-width: 280px; text-align: center; padding: 20px; border-radius: 12px; }
.page-game-bai__icon-box-media { width: 240px; height: 240px; aspect-ratio: 1/1; margin: 0 auto 25px; border-radius: 50%; overflow: hidden; border: 4px solid #ffffff; box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1); }
.page-game-bai__icon-box-media img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }
.page-game-bai__intro-item-title { font-size: 1.5rem; font-weight: 600; margin-bottom: 15px; color: #ffffff; }
.page-game-bai__intro-item-text { font-size: 1rem; line-height: 1.6; color: #f0f0f0; }

/* Game Tabs Section */
.page-game-bai__game-tabs { padding: 80px 0; }
.page-game-bai__tab-nav { display: flex; justify-content: center; gap: 15px; margin-bottom: 40px; flex-wrap: wrap; }
.page-game-bai__tab-button {
  background-color: #f0f0f0;
  color: #333333;
  padding: 12px 25px;
  border: none;
  border-radius: 25px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}
.page-game-bai__tab-button.is-active, .page-game-bai__tab-button:hover { background-color: #26A9E0; color: #ffffff; }
.page-game-bai__game-panel { display: none; flex-wrap: wrap; gap: 30px; justify-content: center; }
.page-game-bai__game-panel.is-active { display: flex; }
.page-game-bai__game-card { background-color: #ffffff; border-radius: 12px; box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1); overflow: hidden; flex: 1 1 300px; max-width: 400px; text-align: center; }
.page-game-bai__game-card img { width: 100%; height: 220px; object-fit: cover; display: block; }
.page-game-bai__game-card-title { font-size: 1.4rem; font-weight: 600; margin: 20px 15px 10px; color: #26A9E0; }
.page-game-bai__game-card-text { font-size: 1rem; line-height: 1.6; margin: 0 15px 20px; }
.page-game-bai__game-card-btn { background-color: #26A9E0; color: #ffffff; padding: 10px 20px; margin-bottom: 20px; }
.page-game-bai__game-card-btn:hover { background-color: #1a8fb3; }

/* Guide Section */
.page-game-bai__guide-section { padding: 80px 0; background-color: #f0f8ff; }
.page-game-bai__guide-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; margin-bottom: 50px; }
.page-game-bai__guide-item { text-align: center; padding: 30px; background-color: #ffffff; border-radius: 12px; box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08); }
.page-game-bai__guide-icon { font-size: 2.5rem; font-weight: 700; color: #26A9E0; margin-bottom: 15px; display: inline-flex; align-items: center; justify-content: center; width: 60px; height: 60px; border-radius: 50%; border: 3px solid #26A9E0; background-color: #e0f7fa; }
.page-game-bai__guide-title { font-size: 1.5rem; font-weight: 600; margin-bottom: 10px; color: #333333; }
.page-game-bai__guide-text { font-size: 1rem; line-height: 1.6; color: #555555; }
.page-game-bai__guide-cta { text-align: center; }

/* Promo Section */
.page-game-bai__promo-section { padding: 80px 0; }
.page-game-bai__promo-grid { display: flex; flex-wrap: wrap; gap: 30px; justify-content: center; margin-bottom: 50px; }
.page-game-bai__promo-card { background-color: rgba(255, 255, 255, 0.1); border-radius: 12px; overflow: hidden; flex: 1 1 350px; max-width: 500px; text-align: center; color: #ffffff; box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15); }
.page-game-bai__promo-card img { width: 100%; height: 250px; object-fit: cover; display: block; }
.page-game-bai__promo-card-title { font-size: 1.4rem; font-weight: 600; margin: 20px 15px 10px; color: #ffffff; }
.page-game-bai__promo-card-text { font-size: 1rem; line-height: 1.6; margin: 0 15px 20px; color: #f0f0f0; }
.page-game-bai__promo-card-btn { background-color: #ffffff; color: #26A9E0; padding: 10px 20px; margin-bottom: 20px; }
.page-game-bai__promo-card-btn:hover { background-color: #e0f7fa; }
.page-game-bai__promo-cta { text-align: center; }

/* Trust Section */
.page-game-bai__trust-section { padding: 80px 0; }
.page-game-bai__trust-features { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; margin-bottom: 50px; }
.page-game-bai__trust-item { text-align: center; padding: 30px; background-color: #ffffff; border-radius: 12px; box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08); }
.page-game-bai__trust-title { font-size: 1.5rem; font-weight: 600; margin-bottom: 10px; color: #26A9E0; }
.page-game-bai__trust-text { font-size: 1rem; line-height: 1.6; color: #555555; }
.page-game-bai__trust-cta { text-align: center; }

/* FAQ Section */
.page-game-bai__faq-section { padding: 80px 0; }
.page-game-bai__faq-list { max-width: 800px; margin: 0 auto; }
.page-game-bai__faq-item { background-color: #ffffff; 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: 18px 25px; font-size: 1.15rem; font-weight: 600; color: #333333; cursor: pointer; background-color: #f9f9f9; list-style: none; }
.page-game-bai__faq-question::-webkit-details-marker { display: none; }
.page-game-bai__faq-toggle { font-size: 1.5rem; font-weight: 700; color: #26A9E0; margin-left: 15px; 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 25px 20px; font-size: 1rem; line-height: 1.6; color: #555555; border-top: 1px solid #e0e0e0; }
.page-game-bai__faq-answer p { margin: 0; }

/* Blog Section */
.page-game-bai__blog-section { padding: 80px 0; }
.page-game-bai__blog-grid { display: flex; flex-wrap: wrap; gap: 30px; justify-content: center; margin-bottom: 50px; }
.page-game-bai__blog-card { background-color: rgba(255, 255, 255, 0.1); border-radius: 12px; overflow: hidden; flex: 1 1 300px; max-width: 380px; box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15); }
.page-game-bai__blog-card img { width: 100%; height: 220px; object-fit: cover; display: block; }
.page-game-bai__blog-card-content { padding: 20px; color: #ffffff; }
.page-game-bai__blog-card-title { font-size: 1.3rem; font-weight: 600; margin-bottom: 10px; line-height: 1.4; }
.page-game-bai__blog-card-title a { color: #ffffff; text-decoration: none; transition: color 0.3s ease; }
.page-game-bai__blog-card-title a:hover { color: #f0f0f0; }
.page-game-bai__blog-card-date { font-size: 0.9rem; color: #ccc; margin-bottom: 15px; }
.page-game-bai__blog-card-excerpt { font-size: 1rem; line-height: 1.6; color: #f0f0f0; margin-bottom: 20px; }
.page-game-bai__blog-card-link { background-color: #ffffff; color: #26A9E0; padding: 10px 20px; }
.page-game-bai__blog-card-link:hover { background-color: #e0f7fa; }
.page-game-bai__blog-cta { text-align: center; }

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-game-bai__hero-container { gap: 30px; padding: 50px 16px; }
  .page-game-bai__main-title { font-size: clamp(2.2rem, 4.5vw, 3rem); }
  .page-game-bai__hero-description { font-size: 1rem; }
  .page-game-bai__section-title { font-size: clamp(1.6rem, 3.5vw, 2.5rem); }
}

@media (max-width: 768px) {
  /* General containers and images */
  .page-game-bai__container, .page-game-bai__section, .page-game-bai__card, .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;
  }
  .page-game-bai img:not(.page-game-bai__icon-box-media img) {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block;
  }

  /* HERO Section */
  .page-game-bai__hero-section { padding-top: 10px !important; padding-bottom: 40px; }
  .page-game-bai__hero-container { flex-direction: column; text-align: center; padding: 40px 15px; }
  .page-game-bai__hero-content { width: 100%; }
  .page-game-bai__hero-image { order: -1; margin-bottom: 30px; width: 100%; }
  .page-game-bai__main-title { font-size: 2.2rem; margin-bottom: 15px; }
  .page-game-bai__hero-description { font-size: 1rem; margin-bottom: 25px; }
  .page-game-bai__cta-buttons { flex-direction: column; gap: 10px; width: 100%; }
  .page-game-bai__btn-primary, .page-game-bai__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    padding: 12px 20px;
    font-size: 0.95rem;
  }

  /* Section Titles and Descriptions */
  .page-game-bai__section-title { font-size: 2rem; margin-bottom: 15px; }
  .page-game-bai__section-description { font-size: 0.95rem; margin-bottom: 30px; }

  /* Intro Section (Module 1 - 3-column round images) */
  .page-game-bai__intro-grid { flex-direction: column; gap: 20px; }
  .page-game-bai__intro-item { min-width: unset; width: 100%; }
  .page-game-bai__icon-box-media { width: 180px; height: 180px; margin-bottom: 20px; border-width: 3px; }
  .page-game-bai__icon-box-media img { width: 100%; height: 100%; object-fit: cover; }
  .page-game-bai__intro-item-title { font-size: 1.3rem; }
  .page-game-bai__intro-item-text { font-size: 0.9rem; }

  /* Game Tabs Section */
  .page-game-bai__game-tabs { padding: 60px 0; }
  .page-game-bai__tab-nav { flex-wrap: wrap; gap: 10px; margin-bottom: 30px; }
  .page-game-bai__tab-button { padding: 10px 20px; font-size: 0.9rem; }
  .page-game-bai__game-panel { flex-direction: column; gap: 20px; }
  .page-game-bai__game-card { max-width: 100%; width: 100%; }
  .page-game-bai__game-card img {  }
  .page-game-bai__game-card-title { font-size: 1.2rem; margin: 15px 15px 8px; }
  .page-game-bai__game-card-text { font-size: 0.9rem; margin: 0 15px 15px; }
  .page-game-bai__game-card-btn { padding: 8px 15px; font-size: 0.9rem; }

  /* Guide Section */
  .page-game-bai__guide-section { padding: 60px 0; }
  .page-game-bai__guide-steps { grid-template-columns: 1fr; gap: 20px; margin-bottom: 40px; }
  .page-game-bai__guide-item { padding: 20px; }
  .page-game-bai__guide-icon { font-size: 2rem; width: 50px; height: 50px; border-width: 2px; }
  .page-game-bai__guide-title { font-size: 1.3rem; }
  .page-game-bai__guide-text { font-size: 0.9rem; }

  /* Promo Section */
  .page-game-bai__promo-section { padding: 60px 0; }
  .page-game-bai__promo-grid { flex-direction: column; gap: 20px; margin-bottom: 40px; }
  .page-game-bai__promo-card { max-width: 100%; width: 100%; }
  .page-game-bai__promo-card img { height: 200px; }
  .page-game-bai__promo-card-title { font-size: 1.2rem; margin: 15px 15px 8px; }
  .page-game-bai__promo-card-text { font-size: 0.9rem; margin: 0 15px 15px; }
  .page-game-bai__promo-card-btn { padding: 8px 15px; font-size: 0.9rem; }

  /* Trust Section */
  .page-game-bai__trust-section { padding: 60px 0; }
  .page-game-bai__trust-features { grid-template-columns: 1fr; gap: 20px; margin-bottom: 40px; }
  .page-game-bai__trust-item { padding: 20px; }
  .page-game-bai__trust-title { font-size: 1.3rem; }
  .page-game-bai__trust-text { font-size: 0.9rem; }

  /* FAQ Section */
  .page-game-bai__faq-section { padding: 60px 0; }
  .page-game-bai__faq-question { padding: 15px 20px; font-size: 1rem; }
  .page-game-bai__faq-answer { padding: 0 20px 15px; font-size: 0.9rem; }

  /* Blog Section */
  .page-game-bai__blog-section { padding: 60px 0; }
  .page-game-bai__blog-grid { flex-direction: column; gap: 20px; margin-bottom: 40px; }
  .page-game-bai__blog-card { max-width: 100%; width: 100%; }
  .page-game-bai__blog-card img {  }
  .page-game-bai__blog-card-content { padding: 15px; }
  .page-game-bai__blog-card-title { font-size: 1.2rem; margin-bottom: 8px; }
  .page-game-bai__blog-card-date { font-size: 0.85rem; margin-bottom: 10px; }
  .page-game-bai__blog-card-excerpt { font-size: 0.9rem; margin-bottom: 15px; }
  .page-game-bai__blog-card-link { padding: 8px 15px; font-size: 0.9rem; }

  /* Ensure content area images and containers do not cause overflow */
  .page-game-bai__content-area, .page-game-bai__intro-section, .page-game-bai__game-tabs, .page-game-bai__guide-section, .page-game-bai__promo-section, .page-game-bai__trust-section, .page-game-bai__faq-section, .page-game-bai__blog-section {
    overflow-x: hidden;
  }
}