/* style/game-bai.css */
.page-game-bai {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #FFF3E6; /* Text Main */
  background-color: #0D0E12; /* Background */
}

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

/* Hero Section */
.page-game-bai__hero-section {
  position: relative;
  padding-top: 10px; /* Rely on body padding-top for header offset */
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  color: #FFF3E6;
  overflow: hidden;
  min-height: 500px;
}

.page-game-bai__hero-image-wrapper {
  width: 100%;
  max-height: 675px;
  overflow: hidden;
  margin-bottom: 20px;
}

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

.page-game-bai__hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 20px;
}

.page-game-bai__hero-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: bold;
  margin-bottom: 15px;
  color: #FFB04D; /* Glow */
  text-shadow: 0 0 8px rgba(255, 176, 77, 0.5);
}

.page-game-bai__hero-description {
  font-size: 1.1rem;
  margin-bottom: 30px;
}

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

/* General Section Styles */
.page-game-bai__intro-section,
.page-game-bai__games-section,
.page-game-bai__benefits-section,
.page-game-bai__guide-section,
.page-game-bai__tips-section,
.page-game-bai__promo-section,
.page-game-bai__faq-section,
.page-game-bai__conclusion-section {
  padding: 60px 0;
  border-bottom: 1px solid rgba(168, 79, 12, 0.3); /* A84F0C with opacity */
}

.page-game-bai__section-title {
  font-size: 2.5rem;
  font-weight: bold;
  text-align: center;
  margin-bottom: 40px;
  color: #FF8C1A; /* Primary color */
  text-shadow: 0 0 5px rgba(255, 140, 26, 0.3);
}

.page-game-bai__text-block {
  font-size: 1.05rem;
  margin-bottom: 20px;
  text-align: justify;
}

.page-game-bai__text-block strong {
  color: #FFA53A; /* Auxiliary color */
}

.page-game-bai__content-image {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 30px auto;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  border: 2px solid #A84F0C;
}

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

.page-game-bai__game-card {
  background-color: #17191F; /* Card BG */
  border: 1px solid #A84F0C;
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-game-bai__game-card-title {
  font-size: 1.8rem;
  color: #FFB04D; /* Glow */
  margin-bottom: 15px;
  font-weight: bold;
}

.page-game-bai__game-card-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  border: 1px solid #D96800;
}

.page-game-bai__game-card-description {
  font-size: 0.95rem;
  color: #FFF3E6;
  margin-bottom: 25px;
  flex-grow: 1;
}

/* Benefits Section */
.page-game-bai__benefits-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-top: 40px;
}

.page-game-bai__benefit-item {
  background-color: #17191F; /* Card BG */
  border: 1px solid #A84F0C;
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.page-game-bai__benefit-icon {
  max-width: 100%;
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
  border: 1px solid #D96800;
}

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

.page-game-bai__benefit-description {
  font-size: 0.95rem;
  color: #FFF3E6;
}

/* Guide Section */
.page-game-bai__guide-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 40px;
}

.page-game-bai__step-item {
  background-color: #17191F; /* Card BG */
  border: 1px solid #A84F0C;
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.page-game-bai__step-title {
  font-size: 1.8rem;
  color: #FFB04D; /* Glow */
  margin-bottom: 15px;
  font-weight: bold;
}

.page-game-bai__step-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  border: 1px solid #D96800;
}

.page-game-bai__step-description {
  font-size: 0.95rem;
  color: #FFF3E6;
}

/* Tips Section */
.page-game-bai__tips-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
}

.page-game-bai__tips-item {
  background-color: #17191F; /* Card BG */
  border: 1px solid #A84F0C;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 15px;
  font-size: 1rem;
  color: #FFF3E6;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  text-align: justify;
}

.page-game-bai__tips-item strong {
  color: #FFA53A;
}

/* Promotion Section */
.page-game-bai__promo-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.page-game-bai__promo-item {
  background-color: #17191F; /* Card BG */
  border: 1px solid #A84F0C;
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.page-game-bai__promo-title {
  font-size: 1.6rem;
  color: #FFB04D; /* Glow */
  margin-bottom: 10px;
  font-weight: bold;
}

.page-game-bai__promo-description {
  font-size: 0.95rem;
  color: #FFF3E6;
  text-align: justify;
}

/* FAQ Section */
.page-game-bai__faq-list {
  margin-top: 40px;
}

.page-game-bai__faq-item {
  background-color: #17191F; /* Card BG */
  border: 1px solid #A84F0C;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.page-game-bai__faq-item summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.1rem;
  font-weight: bold;
  color: #FFA53A; /* Auxiliary color */
  cursor: pointer;
  outline: none;
}

.page-game-bai__faq-item summary::-webkit-details-marker {
  display: none;
}

.page-game-bai__faq-item[open] .page-game-bai__faq-toggle {
  transform: rotate(45deg);
}

.page-game-bai__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  transition: transform 0.3s ease;
}

.page-game-bai__faq-answer {
  padding: 0 20px 20px;
  font-size: 1rem;
  color: #FFF3E6;
  text-align: justify;
}

.page-game-bai__faq-answer p {
  margin-bottom: 0;
}

/* Buttons */
.page-game-bai__btn-primary,
.page-game-bai__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1rem;
  transition: all 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-game-bai__btn-primary {
  background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%); /* Button gradient */
  color: #FFF3E6; /* Text Main */
  border: none;
}

.page-game-bai__btn-primary:hover {
  background: linear-gradient(180deg, #FFB04D 0%, #A84F0C 100%);
  transform: translateY(-2px);
}

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

.page-game-bai__btn-secondary:hover {
  background-color: #FFA53A;
  color: #17191F; /* Card BG */
  transform: translateY(-2px);
}

.page-game-bai__cta-buttons {
  display: flex;
  gap: 20px;
}

.page-game-bai__cta-buttons--center {
  justify-content: center;
  margin-top: 40px;
}

/* Links */
.page-game-bai a {
  color: #FFA53A;
  text-decoration: none;
}

.page-game-bai a:hover {
  text-decoration: underline;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-game-bai__container {
    padding: 15px;
  }

  .page-game-bai__hero-title {
    font-size: clamp(2rem, 4.5vw, 3rem);
  }

  .page-game-bai__section-title {
    font-size: 2rem;
  }

  .page-game-bai__game-list,
  .page-game-bai__benefits-grid,
  .page-game-bai__guide-steps,
  .page-game-bai__promo-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
  }
}

@media (max-width: 768px) {
  .page-game-bai {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-game-bai__container {
    padding-left: 15px !important;
    padding-right: 15px !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-game-bai__hero-section {
    padding-top: 10px !important;
    min-height: 400px;
  }

  .page-game-bai__hero-content {
    padding: 15px;
  }

  .page-game-bai__hero-title {
    font-size: clamp(1.8rem, 7vw, 2.5rem);
  }

  .page-game-bai__hero-description {
    font-size: 1rem;
  }

  .page-game-bai__hero-cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-game-bai__btn-primary,
  .page-game-bai__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  .page-game-bai__section-title {
    font-size: 1.8rem;
    margin-bottom: 30px;
  }

  .page-game-bai__text-block {
    font-size: 0.95rem;
  }

  /* General image responsiveness */
  .page-game-bai img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
  }

  /* Game List */
  .page-game-bai__game-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-game-bai__game-card {
    padding: 20px;
  }

  .page-game-bai__game-card-title {
    font-size: 1.5rem;
  }

  /* Benefits Section */
  .page-game-bai__benefits-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-game-bai__benefit-title {
    font-size: 1.4rem;
  }

  /* Guide Section */
  .page-game-bai__guide-steps {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-game-bai__step-title {
    font-size: 1.5rem;
  }

  /* Tips Section */
  .page-game-bai__tips-item {
    padding: 15px;
    font-size: 0.9rem;
  }

  /* Promotion Section */
  .page-game-bai__promo-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-game-bai__promo-title {
    font-size: 1.4rem;
  }

  /* FAQ Section */
  .page-game-bai__faq-item summary {
    padding: 15px;
    font-size: 1rem;
  }

  .page-game-bai__faq-answer {
    padding: 0 15px 15px;
    font-size: 0.95rem;
  }

  .page-game-bai__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
}