:root {
  --primary-color: #11A84E;
  --secondary-color: #22C768;
  --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  --card-bg: #11271B;
  --bg-primary: #08160F;
  --text-main: #F2FFF6;
  --text-secondary: #A7D9B8;
  --border-color: #2E7A4E;
  --glow-color: #57E38D;
  --gold: #F2C14E;
  --divider-color: #1E3A2A;
  --deep-green: #0A4B2C;
}

/* Base styles for page-game-bai */
.page-game-bai {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-main); /* Default text color for dark background */
  background-color: var(--bg-primary); /* Main background color */
}

/* Section padding for consistency */
.page-game-bai__section-padding {
  padding: 60px 0;
}

/* Container for max-width and centering */
.page-game-bai__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
  box-sizing: border-box;
}

/* Section Titles */
.page-game-bai__section-title {
  font-size: 38px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: var(--text-main);
  line-height: 1.2;
}

/* Text Blocks (paragraphs) */
.page-game-bai__text-block {
  font-size: 18px;
  text-align: center;
  margin-bottom: 20px;
  color: var(--text-secondary);
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* Buttons - Primary */
.page-game-bai__btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 30px;
  background: var(--button-gradient);
  color: var(--text-main);
  border: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  min-width: 180px;
  box-sizing: border-box;
}

.page-game-bai__btn-primary:hover {
  background: linear-gradient(180deg, var(--deep-green) 0%, var(--secondary-color) 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Buttons - Secondary */
.page-game-bai__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 30px;
  background: transparent;
  color: var(--gold);
  border: 2px solid var(--gold);
  border-radius: 8px;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 180px;
  box-sizing: border-box;
}

.page-game-bai__btn-secondary:hover {
  background: rgba(242, 193, 78, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(242, 193, 78, 0.2);
}

/* Play button for game cards */
.page-game-bai__btn-play {
  display: inline-block;
  padding: 10px 20px;
  background: var(--button-gradient);
  color: var(--text-main);
  border: none;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.3s ease;
  margin-top: 15px;
  box-sizing: border-box;
}

.page-game-bai__btn-play:hover {
  background: linear-gradient(180deg, var(--deep-green) 0%, var(--secondary-color) 100%);
  transform: translateY(-2px);
}

/* View Promo button */
.page-game-bai__btn-view-promo {
  display: inline-block;
  padding: 10px 20px;
  background: var(--deep-green);
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease;
  margin-top: 15px;
  box-sizing: border-box;
}

.page-game-bai__btn-view-promo:hover {
  background: var(--border-color);
  color: var(--text-main);
}

/* CTA Buttons Container */
.page-game-bai__cta-buttons {
  display: flex;
  gap: 20px;
  margin-top: 40px;
  justify-content: center;
}

.page-game-bai__cta-buttons--center {
  justify-content: center;
}

/* Hero Section */
.page-game-bai__hero-section {
  position: relative;
  overflow: hidden;
  padding-top: 10px; /* Small top padding for first section */
  background-color: var(--bg-primary);
}

.page-game-bai__hero-image {
  width: 100%;
  height: 600px; /* Fixed height for desktop */
  overflow: hidden;
  position: relative;
  margin-bottom: 30px; /* Space between image and content */
  display: flex;
  justify-content: center;
  align-items: center;
}

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

.page-game-bai__hero-content {
  text-align: center;
  max-width: 900px;
  margin: 0 auto 60px;
  padding: 0 15px;
}

.page-game-bai__main-title {
  font-size: 52px;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 20px;
  line-height: 1.1;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.page-game-bai__hero-description {
  font-size: 20px;
  color: var(--text-secondary);
  margin-bottom: 30px;
  line-height: 1.6;
}

/* Overview Section */
.page-game-bai__overview-section {
  background-color: var(--bg-primary);
}

/* Features Section */
.page-game-bai__features-section {
  background-color: var(--card-bg); /* Darker green for section background */
}

.page-game-bai__dark-section {
  background-color: var(--card-bg); /* Consistent dark section background */
}

.page-game-bai__features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 40px;
}

.page-game-bai__feature-card {
  background-color: var(--bg-primary); /* Dark background for feature cards */
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border-color);
}

.page-game-bai__feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.4);
}

.page-game-bai__feature-card img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
  min-width: 200px; /* Min size constraint */
  min-height: 200px; /* Min size constraint */
}

.page-game-bai__feature-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 15px;
  line-height: 1.3;
}

.page-game-bai__feature-description {
  font-size: 16px;
  color: var(--text-secondary);
}

/* Game Types Section */
.page-game-bai__game-types-section {
  background-color: var(--bg-primary);
}

.page-game-bai__game-types-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 40px;
}