.page-game-bai { font-family: 'Arial', sans-serif; color: #333333; background: #ffffff; line-height: 1.6; }
.page-game-bai__container { max-width: 1170px; margin: 0 auto; padding: 0 16px; box-sizing: border-box; }

/* Hero Section (as main title area for non-homepage) */
.page-game-bai__hero-section { padding-top: 10px; padding-bottom: 60px; background: linear-gradient(135deg, #e0f2f7, #ffffff); }
.page-game-bai__hero-container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 40px; }
.page-game-bai__hero-content { flex: 1 1 50%; min-width: 300px; padding-right: 20px; }
.page-game-bai__main-title { font-size: 2.8em; color: #1e1765; margin-bottom: 20px; font-weight: 700; line-height: 1.2; }
.page-game-bai__description { font-size: 1.1em; margin-bottom: 30px; color: #555555; }
.page-game-bai__cta-buttons { display: flex; gap: 15px; flex-wrap: wrap; }
.page-game-bai__btn-primary, .page-game-bai__btn-secondary { display: inline-block; padding: 14px 28px; border-radius: 8px; text-decoration: none; font-weight: 600; font-size: 1.05em; transition: all 0.3s ease; text-align: center; box-sizing: border-box; }
.page-game-bai__btn-primary { background: #26A9E0; color: #ffffff; border: 2px solid #26A9E0; }
.page-game-bai__btn-primary:hover { background: #1e87b6; border-color: #1e87b6; }
.page-game-bai__btn-secondary { background: #ffffff; color: #26A9E0; border: 2px solid #26A9E0; }
.page-game-bai__btn-secondary:hover { background: #e0f2f7; color: #1e87b6; border-color: #1e87b6; }
.page-game-bai__hero-image { flex: 1 1 40%; text-align: center; }
.page-game-bai__side-image { max-width: 100%; height: auto; border-radius: 12px; box-shadow: 0 8px 20px rgba(0,0,0,0.1); display: block; }

/* General Section Styling */
.page-game-bai__section { padding: 80px 0; }
.page-game-bai__section:nth-of-type(even) { background: #f8f8f8; }
.page-game-bai__section-title { font-size: 2.2em; color: #1e1765; text-align: center; margin-bottom: 20px; font-weight: 700; }
.page-game-bai__section-description { font-size: 1.1em; color: #555555; text-align: center; max-width: 800px; margin: 0 auto 50px; }

/* Game List Section */
.page-game-bai__game-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; }
.page-game-bai__game-card { background: #ffffff; border-radius: 12px; box-shadow: 0 4px 15px rgba(0,0,0,0.08); overflow: hidden; text-align: center; transition: transform 0.3s ease; }
.page-game-bai__game-card:hover { transform: translateY(-8px); }
.page-game-bai__card-image { width: 100%; height: 200px; object-fit: cover; display: block; }
.page-game-bai__card-title { font-size: 1.5em; color: #1e1765; margin: 20px 15px 10px; font-weight: 600; }
.page-game-bai__card-title a { text-decoration: none; color: inherit; transition: color 0.3s ease; }
.page-game-bai__card-title a:hover { color: #26A9E0; }
.page-game-bai__card-text { font-size: 0.95em; color: #666666; padding: 0 15px 20px; }
.page-game-bai__card-button { display: inline-block; background: #26A9E0; color: #ffffff; padding: 10px 20px; border-radius: 6px; text-decoration: none; font-weight: 500; margin-bottom: 20px; transition: background 0.3s ease; }
.page-game-bai__card-button:hover { background: #1e87b6; }

/* Features Section */
.page-game-bai__feature-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; text-align: center; }
.page-game-bai__feature-item { background: #ffffff; padding: 30px; border-radius: 12px; box-shadow: 0 4px 15px rgba(0,0,0,0.08); }
.page-game-bai__feature-image { width: 100%; max-width: 300px; height: auto; margin: 0 auto 20px; border-radius: 8px; display: block; }
.page-game-bai__feature-title { font-size: 1.6em; color: #1e1765; margin-bottom: 15px; font-weight: 600; }
.page-game-bai__feature-text { font-size: 0.95em; color: #666666; }

/* How To Play Section */
.page-game-bai__steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; text-align: center; counter-reset: step-counter; }
.page-game-bai__step-item { background: #ffffff; padding: 30px; border-radius: 12px; box-shadow: 0 4px 15px rgba(0,0,0,0.08); position: relative; }
.page-game-bai__step-number { counter-increment: step-counter; font-size: 2.5em; color: #26A9E0; font-weight: 700; margin-bottom: 15px; position: relative; display: inline-block; }
.page-game-bai__step-number::before { content: counter(step-counter); position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); color: rgba(38, 169, 224, 0.1); font-size: 1.5em; z-index: 0; }
.page-game-bai__step-title { font-size: 1.4em; color: #1e1765; margin-bottom: 10px; font-weight: 600; z-index: 1; position: relative; }
.page-game-bai__step-text { font-size: 0.95em; color: #666666; z-index: 1; position: relative; }
.page-game-bai__cta-center { text-align: center; margin-top: 50px; }

/* Promotions Section */
.page-game-bai__promo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.page-game-bai__promo-card { background: #ffffff; border-radius: 12px; box-shadow: 0 4px 15px rgba(0,0,0,0.08); overflow: hidden; text-align: center; transition: transform 0.3s ease; }
.page-game-bai__promo-card:hover { transform: translateY(-8px); }
.page-game-bai__promo-image { width: 100%; height: 220px; object-fit: cover; display: block; }
.page-game-bai__promo-title { font-size: 1.4em; color: #1e1765; margin: 20px 15px 10px; font-weight: 600; }
.page-game-bai__promo-title a { text-decoration: none; color: inherit; transition: color 0.3s ease; }
.page-game-bai__promo-title a:hover { color: #26A9E0; }
.page-game-bai__promo-text { font-size: 0.95em; color: #666666; padding: 0 15px 20px; }
.page-game-bai__promo-button { display: inline-block; background: #26A9E0; color: #ffffff; padding: 10px 20px; border-radius: 6px; text-decoration: none; font-weight: 500; margin-bottom: 20px; transition: background 0.3s ease; }
.page-game-bai__promo-button:hover { background: #1e87b6; }

/* FAQ Section */
.page-game-bai__faq-list { max-width: 900px; margin: 0 auto; }
.page-game-bai__faq-item { background: #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.15em; font-weight: 600; color: #1e1765; cursor: pointer; background: #fefefe; transition: background 0.3s ease; list-style: none; }
.page-game-bai__faq-question::-webkit-details-marker { display: none; }
.page-game-bai__faq-question:hover { background: #f0f8ff; }
.page-game-bai__faq-item[open] .page-game-bai__faq-question { background: #e0f2f7; }
.page-game-bai__faq-qtext { flex-grow: 1; }
.page-game-bai__faq-toggle { font-size: 1.5em; font-weight: 700; color: #26A9E0; margin-left: 15px; }
.page-game-bai__faq-answer { padding: 15px 25px 25px; font-size: 1em; color: #555555; background: #fefefe; border-top: 1px solid #e0e0e0; }
.page-game-bai__faq-answer p { margin: 0; }

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

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-game-bai__main-title { font-size: 2.5em; }
  .page-game-bai__section-title { font-size: 2em; }
  .page-game-bai__hero-container { flex-direction: column; text-align: center; }
  .page-game-bai__hero-content { padding-right: 0; }
  .page-game-bai__cta-buttons { justify-content: center; }
}

@media (max-width: 768px) {
  /* HERO Section */
  .page-game-bai__hero-section { padding-top: 10px !important; padding-bottom: 40px; }
  .page-game-bai__hero-container { gap: 20px; padding: 20px 15px; }
  .page-game-bai__main-title { font-size: clamp(1.8em, 6vw, 2.2em); margin-bottom: 15px; }
  .page-game-bai__description { font-size: 1em; margin-bottom: 25px; }
  .page-game-bai__cta-buttons { flex-direction: column; gap: 10px; padding: 0 15px; }
  .page-game-bai__btn-primary, .page-game-bai__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 20px;
  }
  .page-game-bai__hero-image { order: -1; margin-bottom: 20px; }
  .page-game-bai__side-image { border-radius: 8px; }

  /* General Section Styling */
  .page-game-bai__section { padding: 50px 0; }
  .page-game-bai__section-title { font-size: 1.8em; margin-bottom: 15px; }
  .page-game-bai__section-description { font-size: 1em; margin-bottom: 30px; padding: 0 15px; }

  /* Game List Section */
  .page-game-bai__game-list {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 15px;
  }
  .page-game-bai__game-card {
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    padding: 20px;
  }
  .page-game-bai__card-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    border-radius: 6px;
    margin-bottom: 15px;
  }
  .page-game-bai__game-card .page-game-bai__card-title { font-size: 1.3em; margin-top: 15px; }
  .page-game-bai__game-card .page-game-bai__card-text { font-size: 0.9em; padding: 0 10px 15px; }
  .page-game-bai__card-button { padding: 8px 15px; font-size: 0.9em; margin-bottom: 15px; }

  /* Features Section */
  .page-game-bai__feature-list {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 15px;
  }
  .page-game-bai__feature-item {
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    padding: 20px;
  }
  .page-game-bai__feature-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    border-radius: 6px;
    margin-bottom: 15px;
  }
  .page-game-bai__feature-title { font-size: 1.4em; }

  /* How To Play Section */
  .page-game-bai__steps {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 15px;
  }
  .page-game-bai__step-item {
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    padding: 20px;
  }
  .page-game-bai__step-number { font-size: 2em; margin-bottom: 10px; }
  .page-game-bai__step-number::before { font-size: 1.2em; }
  .page-game-bai__step-title { font-size: 1.2em; }
  .page-game-bai__step-text { font-size: 0.9em; }
  .page-game-bai__cta-center { margin-top: 30px; padding: 0 15px; }

  /* Promotions Section */
  .page-game-bai__promo-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 15px;
  }
  .page-game-bai__promo-card {
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    padding: 20px;
  }
  .page-game-bai__promo-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    border-radius: 6px;
    margin-bottom: 15px;
  }
  .page-game-bai__promo-title { font-size: 1.3em; margin-top: 15px; }
  .page-game-bai__promo-text { font-size: 0.9em; padding: 0 10px 15px; }
  .page-game-bai__promo-button { padding: 8px 15px; font-size: 0.9em; margin-bottom: 15px; }

  /* FAQ Section */
  .page-game-bai__faq-list { padding: 0 15px; }
  .page-game-bai__faq-item { margin-bottom: 10px; }
  .page-game-bai__faq-question { padding: 15px 20px; font-size: 1em; }
  .page-game-bai__faq-toggle { font-size: 1.2em; }
  .page-game-bai__faq-answer { padding: 10px 20px 20px; font-size: 0.9em; }
  
  /* Universal Mobile Image & Container Rules */
  .page-game-bai img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-game-bai__container, .page-game-bai__game-list, .page-game-bai__feature-list, .page-game-bai__steps, .page-game-bai__promo-grid, .page-game-bai__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}