/* style/game-bai.css */
/* Base Styles */
.page-game-bai {
  font-family: Arial, sans-serif;
  color: #333333; /* Default text color for light background */
  line-height: 1.6;
  background-color: #FFFFFF; /* Assuming default white body background */
}

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

/* Section Styling */
.page-game-bai__hero-section {
  padding-top: 10px; /* Assuming body has padding-top from shared.css */
  padding-bottom: 40px;
  text-align: center;
  background-color: #f5f5f5; /* Light background for hero */
}

.page-game-bai__hero-image-wrapper {
  margin-bottom: 20px;
  overflow: hidden; /* Ensure image doesn't overflow */
}

.page-game-bai__hero-image {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 8px;
  margin: 0 auto;
}

.page-game-bai__main-title {
  font-size: clamp(2em, 3.5vw, 3em); /* Responsive font size */
  color: #017439;
  margin-bottom: 15px;
  font-weight: bold;
  line-height: 1.2;
}

.page-game-bai__hero-description {
  font-size: 1.1em;
  max-width: 800px;
  margin: 0 auto 30px auto;
  color: #555555;
}

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

.page-game-bai__btn-primary,
.page-game-bai__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  max-width: 100%; /* Important for mobile */
  box-sizing: border-box; /* Important for mobile */
  white-space: normal; /* Allow text wrap */
  word-wrap: break-word; /* Allow text wrap */
}

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

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

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

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

.page-game-bai__btn-large {
  padding: 18px 35px;
  font-size: 1.1em;
}

.page-game-bai__section-title {
  font-size: clamp(1.8em, 3vw, 2.5em);
  color: #017439;
  text-align: center;
  margin-bottom: 30px;
  font-weight: bold;
}

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

.page-game-bai__text-block {
  font-size: 1.05em;
  margin-bottom: 20px;
  text-align: justify;
  color: #333333;
}

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

.page-game-bai__text-block a {
  color: #017439;
  text-decoration: underline;
}

.page-game-bai__text-block--light a {
  color: #FFFF00; /* Light yellow for links on dark background */
}

.page-game-bai__introduction-section,
.page-game-bai__benefits-section,
.page-game-bai__strategy-section,
.page-game-bai__faq-section {
  padding: 60px 0;
  background-color: #FFFFFF;
}

.page-game-bai__game-types-section,
.page-game-bai__guide-section,
.page-game-bai__promotions-section,
.page-game-bai__conclusion-section {
  padding: 60px 0;
  background-color: #017439; /* Dark background for these sections */
}

/* Content Images */
.page-game-bai__content-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 30px auto;
  border-radius: 8px;
  object-fit: cover;
}

/* Game Grid */
.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: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%; /* Ensure cards stretch to same height */
  color: #333333;
}

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

.page-game-bai__game-card-title {
  font-size: 1.5em;
  color: #017439;
  margin: 15px 20px 10px 20px;
  font-weight: bold;
}

.page-game-bai__game-card-description {
  font-size: 0.95em;
  padding: 0 20px;
  margin-bottom: 20px;
  flex-grow: 1; /* Make description take available space */
}