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

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

.page-game-bai__section-title {
  font-size: 2.5em;
  color: #E53935;
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-game-bai__subtitle {
  font-size: 1.2em;
  color: #333333;
  text-align: center;
  margin-bottom: 40px;
}

.page-game-bai__text-block {
  margin-bottom: 15px;
  font-size: 1.1em;
  line-height: 1.7;
  color: #333333;
}

.page-game-bai__highlight {
  color: #E53935;
  font-weight: bold;
}

/* Hero Section */
.page-game-bai__hero-section {
  position: relative;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  margin-bottom: 40px;
  overflow: hidden;
}

.page-game-bai__hero-image-wrapper {
  width: 100%;
  max-height: 700px;
  overflow: hidden;
}

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

.page-game-bai__hero-content {
  padding: 40px 20px;
  text-align: center;
  background: rgba(255, 255, 255, 0.9);
  margin-top: -100px; /* Overlap slightly for visual effect, but not over image */
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.page-game-bai__main-title {
  font-size: clamp(2em, 3.5vw, 3.2em);
  color: #E53935;
  margin-bottom: 15px;
  font-weight: 700;
  line-height: 1.2;
}

.page-game-bai__description {
  font-size: 1.15em;
  color: #333333;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-game-bai__btn-primary,
.page-game-bai__btn-secondary,
.page-game-bai__btn-outline {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  font-size: 1.05em;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-game-bai__btn-primary {
  background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
  color: #ffffff;
  border: 2px solid transparent;
}

.page-game-bai__btn-primary:hover {
  background: linear-gradient(180deg, #E53935 0%, #FF5A4F 100%);
  box-shadow: 0 5px 15px rgba(229, 57, 53, 0.4);
}

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

.page-game-bai__btn-secondary:hover {
  background: #E53935;
  color: #ffffff;
  box-shadow: 0 5px 15px rgba(229, 57, 53, 0.2);
}

.page-game-bai__btn-outline {
  background: transparent;
  color: #E53935;
  border: 2px solid #E53935;
  padding: 8px 18px;
  font-size: 0.95em;
}

.page-game-bai__btn-outline:hover {
  background: #E53935;
  color: #ffffff;
}

.page-game-bai__link-inline {
  color: #E53935;
  text-decoration: underline;
}

.page-game-bai__link-inline:hover {
  color: #FF5A4F;
}

/* Intro Section */
.page-game-bai__intro-section {
  padding: 60px 0;
  margin-bottom: 40px;
  background-color: #F5F7FA; /* Background color from custom settings */
  color: #333333; /* Text Main */
}

/* Game Types Section */
.page-game-bai__game-types {
  padding: 60px 0;
  background-color: #E53935; /* Dark brand color background */
  color: #ffffff;
}

.page-game-bai__game-types .page-game-bai__section-title,
.page-game-bai__game-types .page-game-bai__subtitle {
  color: #ffffff;
}

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

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

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

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

.page-game-bai__game-card-description {
  font-size: 0.95em;
  color: #333333;
  padding: 0 20px 15px;
  flex-grow: 1;
}