/* Base styles for the Game Bai page */
.page-game-bai {
  font-family: Arial, sans-serif;
  color: #FFF3E6; /* Text Main */
  background: #0D0E12; /* Background */
  line-height: 1.6;
  padding-bottom: 50px; /* Ensure some space at the bottom */
}

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

/* Section titles */
.page-game-bai__section-title {
  font-size: 36px;
  font-weight: bold;
  color: #FF8C1A; /* Main color */
  text-align: center;
  margin-bottom: 30px;
  padding-top: 40px;
}

.page-game-bai__section-text {
  font-size: 17px;
  line-height: 1.8;
  text-align: center;
  margin-bottom: 30px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-game-bai__highlight {
  color: #FFA53A; /* Auxiliary color */
  font-weight: bold;
}

/* Buttons */
.page-game-bai__btn-primary,
.page-game-bai__btn-secondary,
.page-game-bai__game-card-btn,
.page-game-bai__guide-btn {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 16px;
  transition: all 0.3s ease;
  text-align: center;
  max-width: 100%; /* Ensure responsiveness */
  box-sizing: border-box; /* Ensure padding is included in width */
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Allow long words to break */
}

.page-game-bai__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 140, 26, 0.6);
}

.page-game-bai__btn-secondary {
  background: transparent;
  color: #FF8C1A;
  border: 2px solid #FF8C1A; /* Border color */
}

.page-game-bai__btn-secondary:hover {
  background: rgba(255, 140, 26, 0.1);
  transform: translateY(-2px);
}

.page-game-bai__game-card-btn,
.page-game-bai__guide-btn {
  background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%);
  color: #ffffff;
  border: none;
  width: 100%; /* Take full width within its container */
  padding: 10px 15px;
  margin-top: 15px;
}

.page-game-bai__game-card-btn:hover,
.page-game-bai__guide-btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

/* Top Text (Hero Section) */
.page-game-bai__hero-section {
  position: relative;
  overflow: hidden;
  margin-bottom: 40px;
}

.page-game-bai__hero-image-wrapper {
  width: 100%;
  height: 0;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  position: relative;
}

.page-game-bai__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-game-bai__hero-content {
  padding: 40px 15px;
  text-align: center;
  background: #0D0E12; /* Background */
}

.page-game-bai__hero-title {
  font-size: 48px;
  font-weight: bold;
  color: #FF8C1A; /* Main color */
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-game-bai__hero-description {
  font-size: 20px;
  color: #FFF3E6; /* Text Main */
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-game-bai__hero-cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  width: 100%; /* Ensure responsiveness */
  max-width: 100%; /* Ensure responsiveness */
  box-sizing: border-box; /* Ensure padding is included in width */
  overflow: hidden; /* Prevent overflow */
}

/* Introduction Section */
.page-game-bai__introduction-section {
  padding: 40px 0;
}

/* Game List Section */
.page-game-bai__game-list-section {
  padding: 40px 0;
}

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

.page-game-bai__game-card {
  background: #17191F; /* Card BG */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
  border: 1px solid #A84F0C; /* Border color */
}

.page-game-bai__game-card-image {
  width: 100%;
  height: 180px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
  display: block;
}

.page-game-bai__game-card-title {
  font-size: 22px;
  font-weight: bold;
  color: #FF8C1A; /* Main color */
  margin-bottom: 10px;
  text-align: center;
}

.page-game-bai__game-card-description {
  font-size: 15px;
  color: #FFF3E6; /* Text Main */
  text-align: center;
  flex-grow: 1; /* Allow description to take available space */
}

/* Benefits Section */
.page-game-bai__benefits-section {
  padding: 40px 0;
}

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

.page-game-bai__benefit-card {
  background: #17191F; /* Card BG */
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  padding: 30px;
  text-align: center;
  border: 1px solid #A84F0C; /* Border color */
}

.page-game-bai__benefit-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin: 0 auto 20px;
  display: block;
}

.page-game-bai__benefit-title {
  font-size: 20px;
  font-weight: bold;
  color: #FFA53A; /* Auxiliary color */
  margin-bottom: 10px;
}

.page-game-bai__benefit-description {
  font-size: 15px;
  color: #FFF3E6; /* Text Main */
}

/* Guide Section */
.page-game-bai__guide-section {
  padding: 40px 0;
}

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

.page-game-bai__guide-step {
  background: #17191F; /* Card BG */
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  padding: 30px;
  text-align: center;
  border: 1px solid #A84F0C; /* Border color */
  display: flex;
  flex-direction: column;
  align-items: center;
}