.page-game-bai {
  font-family: Arial, sans-serif;
  color: #F3F8FF; /* Text Main */
  background-color: #08162B; /* Deep Navy, assuming body default is light, this provides a dark background for the page content */
}

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

/* Hero Section */
.page-game-bai__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: 10px; /* Small top padding, relying on body for header offset */
  padding-bottom: 60px;
  background: linear-gradient(180deg, #113B7A 0%, #08162B 100%);
  position: relative;
  overflow: hidden;
}

.page-game-bai__hero-image-wrapper {
  width: 100%;
  max-width: 1200px;
  margin-bottom: 30px;
}

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

.page-game-bai__hero-content {
  max-width: 900px;
  z-index: 1;
}

.page-game-bai__main-title {
  font-size: 2.8em;
  font-weight: bold;
  line-height: 1.2;
  color: #F2C14E; /* Gold */
  margin-bottom: 20px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.page-game-bai__hero-description {
  font-size: 1.2em;
  line-height: 1.6;
  color: #AFC4E8; /* Text Secondary */
  margin-bottom: 30px;
}

.page-game-bai__cta-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

.page-game-bai__btn {
  padding: 14px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.05em;
  transition: all 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-game-bai__btn-primary {
  background: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-game-bai__btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  background: linear-gradient(180deg, #1144A6 0%, #2B73F6 100%);
}

.page-game-bai__btn-secondary {
  background: #10233F; /* Card BG */
  color: #4FA8FF; /* Glow */
  border: 2px solid #244D84; /* Border */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-game-bai__btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  background: #1B3357; /* Divider */
}

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

.page-game-bai__cta-buttons--centered {
  margin-top: 40px;
  margin-bottom: 20px;
}

/* General Section Styles */
.page-game-bai__section {
  padding: 60px 0;
  border-bottom: 1px solid #1B3357; /* Divider */
}

.page-game-bai__section-title {
  font-size: 2.2em;
  font-weight: bold;
  color: #F2C14E; /* Gold */
  text-align: center;
  margin-bottom: 40px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.page-game-bai__introduction p {
  font-size: 1.1em;
  line-height: 1.7;
  margin-bottom: 20px;
  color: #AFC4E8; /* Text Secondary */
}

.page-game-bai__introduction p a {
  color: #4FA8FF;
  text-decoration: none;
}

.page-game-bai__introduction p a:hover {
  text-decoration: underline;
}

/* Featured Games */
.page-game-bai__featured-games {
  background-color: #08162B; /* Deep Navy */
}

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

.page-game-bai__game-card {
  background: #10233F; /* Card BG */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  text-align: center;
  padding-bottom: 25px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-game-bai__game-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  margin-bottom: 20px;
}

.page-game-bai__game-title {
  font-size: 1.5em;
  font-weight: bold;
  color: #F2C14E; /* Gold */
  margin-bottom: 10px;
  padding: 0 15px;
}

.page-game-bai__game-title a {
  color: inherit;
  text-decoration: none;
}

.page-game-bai__game-title a:hover {
  text-decoration: underline;
}

.page-game-bai__game-description {
  font-size: 0.95em;
  color: #AFC4E8; /* Text Secondary */
  line-height: 1.5;
  margin-bottom: 20px;
  padding: 0 15px;
  flex-grow: 1;
}

/* Why Choose Section */
.page-game-bai__why-choose {
  background: linear-gradient(180deg, #08162B 0%, #113B7A 100%);
}

.page-game-bai__features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.page-game-bai__feature-item {
  background: #10233F; /* Card BG */
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-game-bai__feature-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.page-game-bai__feature-icon {
  width: 100%; /* Ensure full width for image */
  height: 180px;
  object-fit: cover;
  margin-bottom: 25px;
  border-radius: 8px;
}

.page-game-bai__feature-title {
  font-size: 1.6em;
  font-weight: bold;
  color: #F2C14E; /* Gold */
  margin-bottom: 15px;
}

.page-game-bai__feature-item p {
  font-size: 1em;
  line-height: 1.6;
  color: #AFC4E8; /* Text Secondary */
}

/* Guide Section */
.page-game-bai__guide {
  background-color: #08162B;
}

.page-game-bai__guide-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.page-game-bai__guide-list li {
  background: #10233F; /* Card BG */
  border-radius: 12px;
  padding: 30px;
  margin-bottom: 30px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-game-bai__guide-step-title {
  font-size: 1.8em;
  color: #F2C14E; /* Gold */
  margin-bottom: 15px;
}

.page-game-bai__guide-list p {
  font-size: 1.1em;
  line-height: 1.7;
  color: #AFC4E8; /* Text Secondary */
  margin-bottom: 20px;
}

.page-game-bai__guide-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-top: 15px;
}

/* Latest News Section */
.page-game-bai__latest-news {
  background: linear-gradient(180deg, #113B7A 0%, #08162B 100%);
}

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

.page-game-bai__news-card {
  background: #10233F; /* Card BG */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-game-bai__news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.page-game-bai__news-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.page-game-bai__news-title {
  font-size: 1.3em;
  font-weight: bold;
  color: #F2C14E; /* Gold */
  margin: 20px 20px 10px 20px;
  line-height: 1.4;
}

.page-game-bai__news-title a {
  color: inherit;
  text-decoration: none;
}

.page-game-bai__news-title a:hover {
  text-decoration: underline;
}

.page-game-bai__news-date {
  font-size: 0.85em;
  color: #4FA8FF; /* Glow */
  margin: 0 20px 10px 20px;
}

.page-game-bai__news-excerpt {
  font-size: 0.95em;
  color: #AFC4E8; /* Text Secondary */
  line-height: 1.5;
  margin: 0 20px 20px 20px;
  flex-grow: 1;
}

.page-game-bai__read-more {
  display: inline-block;
  color: #4FA8FF; /* Glow */
  text-decoration: none;
  font-weight: bold;
  margin: 0 20px 20px 20px;
  align-self: flex-start;
}

.page-game-bai__read-more:hover {
  text-decoration: underline;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-game-bai__main-title {
    font-size: 2.5em;
  }
  .page-game-bai__hero-description {
    font-size: 1.1em;
  }
  .page-game-bai__section-title {
    font-size: 2em;
  }
  .page-game-bai__game-list,
  .page-game-bai__features-grid,
  .page-game-bai__news-list {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

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

  /* Top Section / Hero Section */
  .page-game-bai__hero-section {
    padding-top: 10px !important; /* Ensure small top padding */
    padding-bottom: 40px;
  }
  .page-game-bai__hero-image-wrapper {
    margin-bottom: 20px;
  }
  .page-game-bai__main-title {
    font-size: 1.8em;
    margin-bottom: 15px;
    padding: 0 15px;
  }
  .page-game-bai__hero-description {
    font-size: 1em;
    margin-bottom: 25px;
    padding: 0 15px;
  }
  .page-game-bai__cta-buttons {
    flex-direction: column !important;
    gap: 10px;
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-game-bai__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--centered {
    margin-top: 30px;
  }

  /* General Section Content */
  .page-game-bai__section {
    padding: 40px 0;
  }
  .page-game-bai__section-title {
    font-size: 1.6em;
    margin-bottom: 30px;
    padding: 0 15px;
  }
  .page-game-bai__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-game-bai__introduction p {
    font-size: 0.95em;
  }

  /* Images in content areas */
  .page-game-bai img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block;
  }

  /* Game List */
  .page-game-bai__game-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-game-bai__game-card {
    padding-bottom: 15px;
  }
  .page-game-bai__game-image {
    height: 180px;
  }
  .page-game-bai__game-title {
    font-size: 1.3em;
  }
  .page-game-bai__game-description {
    font-size: 0.9em;
  }

  /* Features Grid */
  .page-game-bai__features-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-game-bai__feature-item {
    padding: 20px;
  }
  .page-game-bai__feature-icon {
    height: 150px;
    margin-bottom: 15px;
  }
  .page-game-bai__feature-title {
    font-size: 1.4em;
  }

  /* Guide List */
  .page-game-bai__guide-list li {
    padding: 20px;
    margin-bottom: 20px;
  }
  .page-game-bai__guide-step-title {
    font-size: 1.5em;
  }
  .page-game-bai__guide-list p {
    font-size: 0.95em;
  }

  /* News List */
  .page-game-bai__news-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-game-bai__news-image {
    height: 180px;
  }
  .page-game-bai__news-title {
    font-size: 1.1em;
    margin: 15px 15px 8px 15px;
  }
  .page-game-bai__news-date,
  .page-game-bai__news-excerpt,
  .page-game-bai__read-more {
    margin-left: 15px;
    margin-right: 15px;
  }
  .page-game-bai__news-excerpt {
    font-size: 0.9em;
  }
  .page-game-bai__read-more {
    margin-bottom: 15px;
  }
}