/* General styles for the page-game-bai scope */
.page-game-bai {
  font-family: Arial, sans-serif;
  color: #333333; /* Default text color for light body background */
  background-color: var(--auxiliary-color, #FFFFFF); /* Ensure body background is light */
  line-height: 1.6;
}

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

.page-game-bai__section-title {
  font-size: 36px;
  font-weight: 700;
  color: #26A9E0; /* Main brand color for titles */
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.2;
}

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

.page-game-bai__section-subtitle {
  font-size: 18px;
  text-align: center;
  margin-bottom: 40px;
  color: #555555;
}

.page-game-bai__section-subtitle--light {
  color: #f0f0f0;
}

.page-game-bai__description {
  font-size: 17px;
  line-height: 1.7;
  margin-bottom: 25px;
  text-align: center;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-game-bai__description--light {
  color: #f0f0f0;
}

/* Buttons */
.page-game-bai__btn-primary,
.page-game-bai__btn-secondary,
.page-game-bai__btn-tertiary,
.page-game-bai__btn-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  transition: all 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: #26A9E0;
  color: #FFFFFF;
  border: 2px solid #26A9E0;
}

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

.page-game-bai__btn-primary--center {
  display: block;
  margin-left: auto;
  margin-right: auto;
  margin-top: 30px;
}

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

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

.page-game-bai__btn-tertiary {
  background-color: #EA7C07; /* Login color for tertiary */
  color: #FFFFFF;
  border: 2px solid #EA7C07;
  padding: 8px 15px;
  font-size: 14px;
  border-radius: 5px;
  margin-top: 15px;
}

.page-game-bai__btn-tertiary:hover {
  background-color: #c96500;
  border-color: #c96500;
}

.page-game-bai__btn-link {
  background: none;
  border: none;
  color: #26A9E0;
  padding: 0;
  font-size: 15px;
  margin-top: 10px;
  text-decoration: underline;
}

.page-game-bai__btn-link:hover {
  color: #1a8cc2;
}


/* Hero Section */
.page-game-bai__hero-section {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding-top: 10px; /* Small top padding, assuming body handles header offset */
  margin-bottom: 50px;
  background-color: #f5f5f5; /* Fallback background */
}

.page-game-bai__hero-image {
  width: 100%;
  height: 600px; /* Fixed height for desktop, will be responsive */
  position: relative;
  overflow: hidden;
}

.page-game-bai__hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Desktop: cover to fill space */
  display: block;
}

.page-game-bai__hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 40px 20px;
  max-width: 900px;
  margin: -150px auto 0 auto; /* Pull content up over image, but not *on* it */
  background-color: rgba(255, 255, 255, 0.95);
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.page-game-bai__main-title {
  font-size: clamp(28px, 4vw, 48px); /* Responsive font size */
  font-weight: 800;
  color: #26A9E0;
  margin-bottom: 15px;
  line-height: 1.2;
}

.page-game-bai__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  width: 100%; /* Ensure container fills width for responsiveness */
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* Introduction Section */
.page-game-bai__introduction-section {
  padding: 60px 0;
  background-color: #FFFFFF;
}

.page-game-bai__content-wrapper {
  display: flex;
  align-items: center;
  gap: 40px;
}

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

.page-game-bai__text-block p {
  text-align: left;
  margin-bottom: 15px;
}

.page-game-bai__image-block {
  flex: 1;
  text-align: center;
}

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

/* Popular Games Section */
.page-game-bai__popular-games-section {
  padding: 60px 0;
  background-color: #26A9E0;
}

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

.page-game-bai__game-card {
  background-color: #FFFFFF;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  text-align: center;
  padding-bottom: 20px;
  display: flex;
  flex-direction: column;
}

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

.page-game-bai__card-title {
  font-size: 20px;
  font-weight: 700;
  color: #26A9E0;
  margin: 20px 15px 10px;
  line-height: 1.3;
  flex-grow: 1; /* Allow title to grow */
}

.page-game-bai__card-title a {
  color: #26A9E0;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-game-bai__card-title a:hover {
  color: #1a8cc2;
}

.page-game-bai__card-title--light {
  color: #FFFFFF;
}

.page-game-bai__card-title--light a {
  color: #FFFFFF;
}

.page-game-bai__card-title--light a:hover {
  color: #f0f0f0;
}

.page-game-bai__card-description {
  font-size: 15px;
  color: #555555;
  padding: 0 15px;
  margin-bottom: 20px;
  text-align: left;
}

.page-game-bai__card-description--light {
  color: #e0e0e0;
}

/* Guide Section */
.page-game-bai__guide-section {
  padding: 60px 0;
  background-color: #FFFFFF;
}

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

.page-game-bai__guide-step {
  background-color: #f9f9f9;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  padding: 30px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-game-bai__guide-step img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
}

.page-game-bai__step-title {
  font-size: 22px;
  font-weight: 700;
  color: #26A9E0;
  margin-bottom: 15px;
}

.page-game-bai__step-description {
  font-size: 15px;
  color: #555555;
  text-align: left;
  flex-grow: 1;
}

/* Strategy Section */
.page-game-bai__strategy-section {
  padding: 60px 0;
  background-color: #26A9E0;
}

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

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

.page-game-bai__strategy-card img {
  width: 100%;
   /* Fixed height for consistency */
  object-fit: cover;
  display: block;
}

.page-game-bai__strategy-card .page-game-bai__card-title {
  color: #26A9E0;
}

.page-game-bai__strategy-card .page-game-bai__card-description {
  color: #555555;
}

/* Promotions Section */
.page-game-bai__promotions-section {
  padding: 60px 0;
  background-color: #FFFFFF;
}

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