.page-game-bai {
  font-family: Arial, sans-serif;
  color: #333333; /* Default text color for light background */
  line-height: 1.6;
}

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

/* Hero Section */
.page-game-bai__hero-section {
  display: flex;
  flex-direction: column; /* Image first, then content */
  align-items: center;
  text-align: center;
  padding-bottom: 40px;
  padding-top: 10px; /* Small top padding, body handles header offset */
  background-color: #f8f8f8;
  border-bottom: 2px solid #e0e0e0;
}

.page-game-bai__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

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

.page-game-bai__hero-content {
  padding: 30px 20px 0;
  max-width: 900px;
}

.page-game-bai__main-title {
  font-size: clamp(2.2em, 4vw, 3.5em);
  font-weight: 700;
  color: #017439;
  margin-bottom: 20px;
  line-height: 1.2;
}

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

.page-game-bai__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
  width: 100%;
  box-sizing: border-box;
}

.page-game-bai__btn-primary,
.page-game-bai__btn-secondary,
.page-game-bai__btn-card {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 25px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  box-sizing: border-box;
  max-width: 100%; /* For responsiveness */
  white-space: normal; /* Allow text wrap */
  word-wrap: break-word; /* Allow text break */
  text-align: center;
}

.page-game-bai__btn-primary {
  background-color: #C30808; /* Custom color for register/login */
  color: #FFFFFF; /* Ensure contrast */
  border: 2px solid #C30808;
}

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

.page-game-bai__btn-secondary {
  background-color: #FFFFFF;
  color: #017439;
  border: 2px solid #017439;
}

.page-game-bai__btn-secondary:hover {
  background-color: #017439;
  color: #FFFFFF;
}

/* General Section Styling */
.page-game-bai__intro-section,
.page-game-bai__why-choose,
.page-game-bai__seo-content,
.page-game-bai__faq-section {
  padding: 60px 0;
}

.page-game-bai__dark-bg {
  background-color: #017439;
  color: #FFFFFF;
}

.page-game-bai__light-bg {
  background-color: #FFFFFF;
  color: #333333;
}

.page-game-bai__section-title {
  font-size: clamp(1.8em, 3.5vw, 2.8em);
  font-weight: 700;
  margin-bottom: 40px;
  text-align: center;
  line-height: 1.3;
}

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

.page-game-bai__light-bg .page-game-bai__section-title {
  color: #017439;
}

.page-game-bai__text-block {
  font-size: 1.05em;
  margin-bottom: 25px;
  text-align: justify;
  line-height: 1.7;
}

.page-game-bai__content-image {
  width: 100%;
  height: auto;
  display: block;
  margin: 30px auto;
  border-radius: 10px;
  object-fit: cover;
  min-width: 200px; /* Ensure minimum size */
  min-height: 200px; /* Ensure minimum size */
}

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

.page-game-bai__game-card {
  background-color: #FFFFFF;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  color: #333333;
}

.page-game-bai__card-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
  min-width: 200px;
  min-height: 200px;
}

.page-game-bai__card-title {
  font-size: 1.4em;
  font-weight: 700;
  margin: 20px 20px 10px;
  color: #017439;
}

.page-game-bai__card-title a {
  color: #017439;
  text-decoration: none;
}

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

.page-game-bai__card-text {
  font-size: 1em;
  margin: 0 20px 20px;
  flex-grow: 1;
  text-align: justify;
}

.page-game-bai__btn-card {
  background-color: #017439;
  color: #FFFFFF;
  border: 2px solid #017439;
  margin: 0 20px 20px;
  padding: 10px 20px;
  border-radius: 5px;
  font-size: 0.95em;
  font-weight: 600;
  align-self: flex-start;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.page-game-bai__btn-card:hover {
  background-color: #005f2c;
  border-color: #005f2c;
}

.page-game-bai__cta-buttons--center {
  justify-content: center;
  margin-top: 50px;
}

/* Why Choose Section */
.page-game-bai__feature-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-game-bai__feature-item {
  text-align: center;
  background-color: #f9f9f9;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-game-bai__dark-bg .page-game-bai__feature-item {
  background-color: rgba(255, 255, 255, 0.1);
  color: #FFFFFF;
}

.page-game-bai__feature-icon {
  width: 200px; /* Ensure minimum 200px */
  height: auto;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
  min-width: 200px;
  min-height: 200px;
}

.page-game-bai__feature-title {
  font-size: 1.3em;
  font-weight: 700;
  margin-bottom: 15px;
  color: #017439;
}

.page-game-bai__dark-bg .page-game-bai__feature-title {
  color: #FFFFFF;
}

.page-game-bai__feature-text {
  font-size: 1em;
  color: #555555;
  text-align: justify;
}

.page-game-bai__dark-bg .page-game-bai__feature-text {
  color: #e0e0e0;
}

/* Guide Section */
.page-game-bai__guide-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
  text-align: center;
}

.page-game-bai__step-item {
  background-color: rgba(255, 255, 255, 0.15);
  padding: 30px;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #FFFFFF;
}

.page-game-bai__step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: #C30808; /* Custom color for numbers */
  color: #FFFFFF; /* Override to ensure contrast */
  font-size: 2em;
  font-weight: 700;
  margin-bottom: 20px;
}

.page-game-bai__step-title {
  font-size: 1.5em;
  font-weight: 700;
  margin-bottom: 15px;
  color: #FFFFFF;
}

.page-game-bai__step-text {
  font-size: 1em;
  margin-bottom: 25px;
  flex-grow: 1;
}

/* SEO Content Section */
.page-game-bai__article-body {
  max-width: 900px;
  margin: 0 auto;
  padding-top: 30px;
}

.page-game-bai__article-body p {
  margin-bottom: 20px;
  text-align: justify;
}

.page-game-bai__article-subtitle {
  font-size: 1.6em;
  font-weight: 700;
  color: #017439;
  margin-top: 40px;
  margin-bottom: 20px;
  text-align: left;
}

.page-game-bai__article-figure {
  width: 100%;
  height: auto;
  display: block;
  margin: 30px auto;
  border-radius: 10px;
  object-fit: cover;
  min-width: 200px;
  min-height: 200px;
}

/* FAQ Section */
.page-game-bai__faq-list {
  margin-top: 40px;
}

details.page-game-bai__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  background: #fff;
}
details.page-game-bai__faq-item summary.page-game-bai__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
}}