/* General Styles */
.page-game-bai {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #FFF6D6; /* Text Main */
  background-color: #0A0A0A; /* Background */
}

.page-game-bai__section-title {
  font-size: 3em;
  font-weight: bold;
  text-align: center;
  margin-bottom: 20px;
  color: #F2C14E; /* Main Color */
  line-height: 1.2;
}

.page-game-bai__section-subtitle {
  font-size: 1.2em;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
  color: #FFF6D6;
}

.page-game-bai__btn-primary,
.page-game-bai__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 30px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-game-bai__btn-primary {
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%); /* Button Gradient */
  color: #ffffff; /* White text for contrast */
  border: none;
  box-shadow: 0 4px 15px rgba(242, 193, 78, 0.4);
}

.page-game-bai__btn-primary:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
}

.page-game-bai__btn-secondary {
  background: #111111; /* Card BG */
  color: #F2C14E; /* Main Color */
  border: 2px solid #F2C14E;
  box-shadow: 0 4px 10px rgba(242, 193, 78, 0.2);
}

.page-game-bai__btn-secondary:hover {
  background: #F2C14E;
  color: #111111;
  transform: translateY(-2px);
}

.page-game-bai__btn-text-link {
  color: #FFD36B; /* Glow color for links */
  text-decoration: underline;
  font-weight: 600;
}

.page-game-bai__btn-text-link:hover {
  color: #FFD86A;
}

/* Hero Section */
.page-game-bai__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 10px 20px 60px;
  background-color: #0A0A0A;
  position: relative;
  overflow: hidden;
}

.page-game-bai__hero-image-wrapper {
  width: 100%;
  max-width: 1200px;
  margin-bottom: 40px;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

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

.page-game-bai__hero-content {
  max-width: 900px;
  z-index: 1;
}

.page-game-bai__hero-title {
  font-size: 3.5em;
  font-weight: 900;
  color: #F2C14E; /* Main Color */
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-game-bai__hero-description {
  font-size: 1.3em;
  color: #FFF6D6; /* Text Main */
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

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

/* Why Choose Section */
.page-game-bai__why-choose-section {
  padding: 80px 20px;
  background-color: #0A0A0A;
  text-align: center;
}

.page-game-bai__why-choose-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto 60px;
}

.page-game-bai__why-choose-item {
  background-color: #111111; /* Card BG */
  border: 1px solid #3A2A12; /* Border */
  border-radius: 12px;
  padding: 30px;
  text-align: left;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-game-bai__why-choose-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(242, 193, 78, 0.2);
}

.page-game-bai__why-choose-heading {
  font-size: 1.6em;
  color: #FFD36B; /* Glow */
  margin-bottom: 15px;
  font-weight: 700;
}

.page-game-bai__why-choose-item p {
  color: #FFF6D6;
  font-size: 1.05em;
}

.page-game-bai__why-choose-image {
  width: 100%;
  max-width: 1000px;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

/* Popular Games Section */
.page-game-bai__popular-games-section {
  padding: 80px 20px;
  background-color: #0A0A0A;
}

.page-game-bai__game-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto 60px;
}

.page-game-bai__game-card {
  background-color: #111111; /* Card BG */
  border: 1px solid #3A2A12; /* Border */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  text-align: center;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-game-bai__game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(242, 193, 78, 0.2);
}

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

.page-game-bai__game-card-title {
  font-size: 1.8em;
  color: #F2C14E; /* Main Color */
  margin: 20px 15px 10px;
  font-weight: 700;
}

.page-game-bai__game-card-description {
  color: #FFF6D6;
  font-size: 1em;
  padding: 0 15px 20px;
  flex-grow: 1;
}

.page-game-bai__game-card .page-game-bai__btn-primary {
  margin: 0 15px 20px;
  width: calc(100% - 30px);
}

.page-game-bai__section-cta {
  text-align: center;
  margin-top: 40px;
}

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

.page-game-bai__guide-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  max-width: 1200px;
  margin: 0 auto;
  align-items: center;
}

.page-game-bai__guide-steps {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.page-game-bai__step-item {
  background-color: #111111; /* Card BG */
  border: 1px solid #3A2A12; /* Border */
  border-radius: 12px;
  padding: 25px;
  position: relative;
  padding-left: 70px; /* Space for number */
  text-align: left;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-game-bai__step-number {
  position: absolute;
  left: 25px;
  top: 25px;
  background: #F2C14E; /* Main Color */
  color: #111111;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5em;
  font-weight: bold;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.page-game-bai__step-heading {
  font-size: 1.5em;
  color: #FFD36B; /* Glow */
  margin-bottom: 10px;
  font-weight: 700;
}

.page-game-bai__step-item p {
  color: #FFF6D6;
  font-size: 1em;
  margin-bottom: 10px;
}

.page-game-bai__guide-image-wrapper {
  text-align: center;
}

.page-game-bai__guide-image {
  width: 100%;
  max-width: 600px;
  height: auto;
  display: block;
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

/* Promo Section */
.page-game-bai__promo-section {
  padding: 80px 20px;
  background-color: #0A0A0A;
}

.page-game-bai__promo-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto 60px;
}

.page-game-bai__promo-card {
  background-color: #111111; /* Card BG */
  border: 1px solid #3A2A12; /* Border */
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-game-bai__promo-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(242, 193, 78, 0.2);
}

.page-game-bai__promo-card-title {
  font-size: 1.8em;
  color: #F2C14E; /* Main Color */
  margin-bottom: 15px;
  font-weight: 700;
}

.page-game-bai__promo-card-description {
  color: #FFF6D6;
  font-size: 1em;
  margin-bottom: 25px;
  flex-grow: 1;
}

/* Tips Section */
.page-game-bai__tips-section {
  padding: 80px 20px;
  background-color: #0A0A0A;
}

.page-game-bai__tips-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  max-width: 1200px;
  margin: 0 auto;
  align-items: center;
}

.page-game-bai__tips-list {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.page-game-bai__tip-item {
  background-color: #111111; /* Card BG */
  border: 1px solid #3A2A12; /* Border */
  border-radius: 12px;
  padding: 25px;
  text-align: left;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-game-bai__tip-heading {
  font-size: 1.5em;
  color: #FFD36B; /* Glow */
  margin-bottom: 10px;
  font-weight: 700;
}

.page-game-bai__tip-item p {
  color: #FFF6D6;
  font-size: 1em;
}

.page-game-bai__tips-image-wrapper {
  text-align: center;
}

.page-game-bai__tips-image {
  width: 100%;
  max-width: 600px;
  height: auto;
  display: block;
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

/* FAQ Section */
details.page-game-bai__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid #3A2A12; /* Border */
  overflow: hidden;
  background: #111111; /* Card BG */
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}
details.page-game-bai__faq-item summary.page-game-bai__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
}
details.page-game-bai__faq-item summary.page-game-bai__faq-question::-webkit-details-marker {
  display: none;
}
details.page-game-bai__faq-item summary.page-game-bai__faq-question:hover {
  background: rgba(242, 193, 78, 0.1);
}
.page-game-bai__faq-qtext {
  flex: 1;
  font-size: 1.2em;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #F2C14E;
}
.page-game-bai__faq-toggle {
  font-size: 2em;
  font-weight: bold;
  color: #FFD36B;
  flex-shrink: 0;
  margin-left: 15px;
  width: 30px;
  text-align: center;
}
details.page-game-bai__faq-item .page-game-bai__faq-answer {
  padding: 0 25px 25px;
  background: rgba(17, 17, 17, 0.8);
  border-radius: 0 0 8px 8px;
  color: #FFF6D6;
  font-size: 1em;
}

/* Final CTA Section */
.page-game-bai__final-cta {
  padding: 80px 20px;
  background-color: #0A0A0A;
  text-align: center;
}

.page-game-bai__final-cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 40px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-game-bai__hero-title {
    font-size: 3em;
  }
  .page-game-bai__hero-description {
    font-size: 1.2em;
  }
  .page-game-bai__section-title {
    font-size: 2.5em;
  }
  .page-game-bai__section-subtitle {
    font-size: 1.1em;
  }
  .page-game-bai__why-choose-grid,
  .page-game-bai__game-cards-grid,
  .page-game-bai__promo-cards-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
  .page-game-bai__guide-content,
  .page-game-bai__tips-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .page-game-bai__guide-image-wrapper,
  .page-game-bai__tips-image-wrapper {
    order: -1; /* Image first on smaller screens */
  }
  .page-game-bai__hero-buttons,
  .page-game-bai__final-cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-game-bai__btn-primary,
  .page-game-bai__btn-secondary {
    width: 100%;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 768px) {
  .page-game-bai {
    font-size: 15px;
  }
  /* Top Section */
  .page-game-bai__hero-section {
    padding: 10px 15px 40px;
  }
  .page-game-bai__hero-title {
    font-size: 2.2em !important;
    margin-bottom: 15px;
  }
  .page-game-bai__hero-description {
    font-size: 1em !important;
    margin-bottom: 30px;
  }
  .page-game-bai__hero-buttons,
  .page-game-bai__final-cta-buttons {
    flex-direction: column !important;
    gap: 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-game-bai__btn-primary,
  .page-game-bai__btn-secondary,
  .page-game-bai a[class*="button"],
  .page-game-bai a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  /* General Section Styles */
  .page-game-bai__section-title {
    font-size: 2em !important;
    margin-bottom: 15px;
  }
  .page-game-bai__section-subtitle {
    font-size: 0.9em !important;
    margin: 0 auto 30px;
  }
  .page-game-bai__why-choose-section,
  .page-game-bai__popular-games-section,
  .page-game-bai__guide-section,
  .page-game-bai__promo-section,
  .page-game-bai__tips-section,
  .page-game-bai__faq-section,
  .page-game-bai__final-cta {
    padding: 40px 15px;
  }

  /* Two-column modules to single column */
  .page-game-bai__why-choose-grid,
  .page-game-bai__game-cards-grid,
  .page-game-bai__promo-cards-grid {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }
  .page-game-bai__guide-content,
  .page-game-bai__tips-content {
    grid-template-columns: 1fr !important;
    gap: 30px !important;
  }
  .page-game-bai__guide-image-wrapper,
  .page-game-bai__tips-image-wrapper {
    order: -1 !important; /* Image first on mobile */
  }

  /* Images */
  .page-game-bai img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-game-bai__hero-image-wrapper,
  .page-game-bai__why-choose-image,
  .page-game-bai__game-card-image,
  .page-game-bai__guide-image,
  .page-game-bai__tips-image {
    border-radius: 8px;
  }
  .page-game-bai__game-card-image {
    height: 180px;
  }

  /* FAQ */
  details.page-game-bai__faq-item summary.page-game-bai__faq-question {
    padding: 15px;
  }
  .page-game-bai__faq-qtext {
    font-size: 1em !important;
  }
  .page-game-bai__faq-toggle {
    font-size: 1.8em !important;
    width: 25px;
    margin-left: 10px;
  }
  details.page-game-bai__faq-item .page-game-bai__faq-answer {
    padding: 0 15px 15px;
  }

  /* Other elements */
  .page-game-bai__why-choose-item,
  .page-game-bai__game-card,
  .page-game-bai__promo-card,
  .page-game-bai__step-item,
  .page-game-bai__tip-item {
    padding: 20px;
  }
  .page-game-bai__step-item {
    padding-left: 60px;
  }
  .page-game-bai__step-number {
    left: 20px;
    top: 20px;
    width: 35px;
    height: 35px;
    font-size: 1.3em;
  }
  .page-game-bai__step-heading,
  .page-game-bai__tip-heading,
  .page-game-bai__why-choose-heading,
  .page-game-bai__game-card-title,
  .page-game-bai__promo-card-title {
    font-size: 1.3em !important;
  }
}