/* style/game-bai.css */
:root {
  --primary-color: #E53935;
  --secondary-color: #FF5A4F;
  --text-main-color: #333333;
  --card-bg-color: #FFFFFF;
  --page-bg-color: #F5F7FA;
  --border-color: #E0E0E0;
  --btn-gradient: linear-gradient(180deg, var(--secondary-color) 0%, var(--primary-color) 100%);
}

.page-game-bai {
  font-family: Arial, sans-serif;
  color: var(--text-main-color);
  line-height: 1.6;
  background-color: var(--page-bg-color); /* Default light background */
  padding-top: 10px; /* Small top padding for the first section, relying on body for header offset */
}

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

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

.page-game-bai__section-description {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 40px;
  color: var(--text-main-color);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Hero Section */
.page-game-bai__hero-section {
  display: flex;
  flex-direction: column; /* Enforce image above text */
  align-items: center;
  gap: 30px;
  padding: 30px 0;
  background-color: var(--page-bg-color);
}

.page-game-bai__hero-image-wrapper {
  width: 100%;
  max-width: 1200px; /* Constrain image width */
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

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

.page-game-bai__hero-content {
  text-align: center;
  max-width: 800px;
  padding: 0 15px;
}

.page-game-bai__hero-title {
  font-size: 3em;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 15px;
  line-height: 1.2;
}

.page-game-bai__hero-description {
  font-size: 1.2em;
  color: var(--text-main-color);
  margin-bottom: 30px;
}

.page-game-bai__hero-cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  width: 100%; /* Ensure container takes full width */
  max-width: 100%; /* Ensure container takes full width */
  box-sizing: border-box;
}

/* Intro Section (Dark Background) */
.page-game-bai__intro-section {
  background: var(--btn-gradient); /* Using brand gradient for dark background */
  color: #ffffff;
  padding: 60px 0;
}

.page-game-bai__intro-title {
  font-size: 2.2em;
  text-align: center;
  margin-bottom: 20px;
  color: #ffffff;
  font-weight: bold;
}

.page-game-bai__intro-text {
  font-size: 1.1em;
  text-align: justify;
  margin-bottom: 20px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* Popular Games Section */
.page-game-bai__popular-games {
  padding: 60px 0;
  background-color: var(--page-bg-color);
}

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

.page-game-bai__game-card {
  background: var(--card-bg-color);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-game-bai__game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

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

.page-game-bai__game-title {
  font-size: 1.5em;
  color: var(--primary-color);
  margin: 20px 15px 10px;
  font-weight: bold;
}

.page-game-bai__game-description {
  font-size: 0.95em;
  color: var(--text-main-color);
  padding: 0 15px 20px;
  flex-grow: 1; /* Allows description to take available space */
}

/* Why Choose Us Section */
.page-game-bai__why-choose-us {
  padding: 60px 0;
  background-color: var(--page-bg-color); /* light-bg, so text is dark */
}

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