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

/* General Container */
.page-game-bai__container {
  max-width: 1170px;
  margin: 0 auto;
  padding: 40px 16px;
  box-sizing: border-box;
}

/* Section Titles and Descriptions */
.page-game-bai__section-title {
  font-size: clamp(28px, 4vw, 38px); /* Responsive font size */
  font-weight: 700;
  color: #017439;
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.2;
}

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

.page-game-bai__section-description {
  font-size: 18px;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
}

.page-game-bai__section-description--white {
  color: #FFFFFF;
}

/* Buttons */
.page-game-bai__btn-primary,
.page-game-bai__btn-secondary,
.page-game-bai__btn-tertiary {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 17px;
  transition: all 0.3s ease;
  cursor: pointer;
  border: 2px solid transparent;
  text-align: center;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-game-bai__btn-primary {
  background-color: #017439;
  color: #FFFFFF;
  border-color: #017439;
}

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

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

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

.page-game-bai__btn-tertiary {
  background-color: #017439; /* Dark green background */
  color: #FFFFFF; /* White text */
  border-color: #017439;
  font-size: 16px;
  padding: 12px 24px;
  width: 100%; /* Make card buttons full width */
  max-width: 250px; /* Limit width for card buttons */
  margin: 0 auto; /* Center card button */
}

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

/* Image base styles */
.page-game-bai img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Hero Section */
.page-game-bai__hero-section {
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 60px;
  background-color: #FFFFFF; /* Explicitly white */
}

.page-game-bai__hero-container {
  max-width: 1170px;
  margin: 0 auto;
  padding: 40px 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
}

.page-game-bai__hero-content {
  flex: 1 1 50%;
  min-width: 300px;
  color: #1e1765; /* Dark blue for content text, good contrast on white */
}

.page-game-bai__main-title {
  font-size: clamp(36px, 5vw, 54px);
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.1;
  color: #017439;
}

.page-game-bai__hero-description {
  font-size: 19px;
  margin-bottom: 30px;
  color: #333333;
}

.page-game-bai__cta-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  width: 100%; /* Ensures buttons container respects max-width */
  max-width: 100%;
  box-sizing: border-box;
}

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

.page-game-bai__hero-image {
  flex: 1 1 40%;
  min-width: 300px;
  text-align: center;
}

.page-game-bai__hero-side-image {
  max-width: 600px;
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

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

.page-game-bai__intro-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 50px;
  text-align: center;
}

.page-game-bai__intro-item {
  background-color: #f8f8f8;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.page-game-bai__intro-item:hover {
  transform: translateY(-5px);
}

.page-game-bai__icon-box-media {
  width: 240px; /* Desktop size */
  height: 240px; /* Desktop size */
  aspect-ratio: 1 / 1;
  margin: 0 auto 20px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid #017439;
  box-shadow: 0 0 0 8px rgba(1, 116, 57, 0.2);
}

.page-game-bai__icon-box-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.page-game-bai__intro-item-title {
  font-size: 24px;
  font-weight: 700;
  color: #017439;
  margin-bottom: 15px;
}

.page-game-bai__intro-item-text {
  font-size: 16px;
  color: #555555;
}

/* Game Tabs Section */
.page-game-bai__game-tabs {
  background-color: #017439; /* Dark background */
  padding: 60px 0;
}

.page-game-bai__tab-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 40px;
  margin-bottom: 40px;
  border-bottom: 2px solid rgba(255, 255, 255, 0.3);
  padding-bottom: 15px;
}

.page-game-bai__tab-button {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  font-size: 18px;
  font-weight: 600;
  padding: 10px 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 8px 8px 0 0;
  position: relative;
}

.page-game-bai__tab-button:hover,
.page-game-bai__tab-button.is-active {
  color: #FFFFFF;
  background-color: rgba(255, 255, 255, 0.1);
}

.page-game-bai__tab-button.is-active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: #FFFFFF;
}

.page-game-bai__game-panel {
  display: none;
}

.page-game-bai__game-panel.is-active {
  display: block;
}

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

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

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

.page-game-bai__game-card-title {
  font-size: 22px;
  font-weight: 700;
  color: #017439;
  margin-bottom: 10px;
  padding: 0 20px;
}

.page-game-bai__game-card-text {
  font-size: 16px;
  color: #555555;
  margin-bottom: 20px;
  flex-grow: 1; /* Pushes button to bottom */
  padding: 0 20px;
}

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

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

.page-game-bai__guide-step {
  text-align: center;
  background-color: #f8f8f8;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.page-game-bai__guide-icon {
  width: 60px;
  height: 60px;
  background-color: #017439;
  color: #FFFFFF;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 30px;
  font-weight: 700;
  margin: 0 auto 20px;
}

.page-game-bai__guide-title {
  font-size: 22px;
  font-weight: 700;
  color: #017439;
  margin-bottom: 10px;
}

.page-game-bai__guide-text {
  font-size: 16px;
  color: #555555;
}

/* Promo Section */
.page-game-bai__promo-section {
  background-color: #017439; /* Dark background */
  padding: 60px 0;
}

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

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

.page-game-bai__promo-card-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  margin-bottom: 15px;
}

.page-game-bai__promo-card-title {
  font-size: 22px;
  font-weight: 700;
  color: #017439;
  margin-bottom: 10px;
  padding: 0 20px;
}

.page-game-bai__promo-card-text {
  font-size: 16px;
  color: #555555;
  margin-bottom: 20px;
  flex-grow: 1;
  padding: 0 20px;
}

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