/* Base styles for the Game Bài page */
.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: 0 20px;
  box-sizing: border-box;
}

.page-game-bai__section-title {
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 700;
  color: #FFB04D; /* Glow */
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 10px;
}

.page-game-bai__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, transparent, #D96800, transparent); /* Deep Orange */
  border-radius: 2px;
}

.page-game-bai__description {
  font-size: 18px;
  text-align: center;
  margin-bottom: 40px;
  color: #FFF3E6;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* Buttons */
.page-game-bai__btn-primary,
.page-game-bai__btn-secondary,
.page-game-bai__btn-play,
.page-game-bai__btn-large,
.page-game-bai__btn-small,
.page-game-bai a[class*="button"],
.page-game-bai a[class*="btn"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 25px;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  text-align: center;
  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 color */
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(255, 132, 0, 0.4);
}

.page-game-bai__btn-primary:hover {
  background: linear-gradient(180deg, #FFB04D 0%, #E67800 100%);
  box-shadow: 0 6px 20px rgba(255, 132, 0, 0.6);
  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: rgba(255, 165, 58, 0.1);
  color: #FFB04D;
  border-color: #FFB04D;
  transform: translateY(-2px);
}

.page-game-bai__btn-play {
  background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%);
  color: #ffffff;
  padding: 8px 18px;
  font-size: 15px;
  border-radius: 5px;
}

.page-game-bai__btn-play:hover {
  background: linear-gradient(180deg, #FFB04D 0%, #E67800 100%);
}

.page-game-bai__btn-large {
  padding: 15px 35px;
  font-size: 20px;
  border-radius: 10px;
}

.page-game-bai__btn-small {
  padding: 10px 20px;
  font-size: 14px;
  border-radius: 6px;
}

/* Hero Section */
.page-game-bai__hero-section {
  position: relative;
  overflow: hidden;
  padding-top: 10px; /* Small top padding */
  margin-bottom: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-game-bai__hero-image-wrapper {
  width: 100%;
  max-height: 600px;
  overflow: hidden;
  position: relative;
}

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

.page-game-bai__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 40px 20px;
  max-width: 900px;
}

.page-game-bai__main-title {
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 800;
  color: #FFB04D; /* Glow */
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 0 0 10px rgba(255, 176, 77, 0.5);
}

.page-game-bai__hero-section .page-game-bai__description {
  font-size: 20px;
  margin-bottom: 30px;
  color: #FFF3E6;
}

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

/* Intro Section */
.page-game-bai__intro-section {
  padding: 60px 0;
  margin-bottom: 60px;
  background-color: #17191F; /* Card BG */
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.page-game-bai__intro-grid {
  display: flex;
  align-items: center;
  gap: 40px;
}

.page-game-bai__intro-text {
  flex: 1;
}

.page-game-bai__intro-text p {
  font-size: 17px;
  margin-bottom: 20px;
  color: #FFF3E6;
}

.page-game-bai__intro-image-wrapper {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-game-bai__intro-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Games Section */
.page-game-bai__games-section {
  padding: 60px 0;
  margin-bottom: 60px;
}

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

.page-game-bai__game-card {
  background-color: #17191F; /* Card BG */
  border: 1px solid #A84F0C; /* Border */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.page-game-bai__game-card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  border-bottom: 1px solid #A84F0C;
}

.page-game-bai__game-card-title {
  font-size: 22px;
  font-weight: 600;
  margin: 20px 15px 10px;
  color: #FFB04D; /* Glow */
}

.page-game-bai__game-card-title a {
  color: inherit;
  text-decoration: none;
}

.page-game-bai__game-card-title a:hover {
  text-decoration: underline;
}

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

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

/* Features Section */
.page-game-bai__features-section {
  padding: 60px 0;
  margin-bottom: 60px;
  background-color: #0D0E12;
}

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

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

.page-game-bai__feature-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 20px;
}

.page-game-bai__feature-title {
  font-size: 24px;
  font-weight: 600;
  color: #FFA53A; /* Auxiliary color */
  margin-bottom: 15px;
}

.page-game-bai__feature-item p {
  font-size: 16px;
  color: #FFF3E6;
}

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

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

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

.page-game-bai__step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%); /* Button color */
  color: #ffffff;
  font-size: 24px;
  font-weight: 700;
  border-radius: 50%;
  margin: 0 auto 20px;
  box-shadow: 0 2px 10px rgba(255, 132, 0, 0.4);
}

.page-game-bai__step-title {
  font-size: 22px;
  font-weight: 600;
  color: #FFA53A; /* Auxiliary color */
  margin-bottom: 15px;
}

.page-game-bai__step-card p {
  font-size: 16px;
  color: #FFF3E6;
}

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

/* Promotion Section */
.page-game-bai__promotion-section {
  padding: 60px 0;
  margin-bottom: 60px;
  background-color: #17191F; /* Card BG */
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.page-game-bai__promotion-content {
  display: flex;
  align-items: center;
  gap: 40px;
}

.page-game-bai__promotion-image {
  flex: 1;
  max-width: 50%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-game-bai__promotion-text {
  flex: 1;
}

.page-game-bai__promotion-text p {
  font-size: 17px;
  margin-bottom: 20px;
  color: #FFF3E6;
}

.page-game-bai__promotion-text ul {
  list-style: none;
  padding: 0;
  margin-bottom: 20px;
}

.page-game-bai__promotion-text li {
  font-size: 16px;
  color: #FFF3E6;
  margin-bottom: 10px;
  position: relative;
  padding-left: 25px;
}

.page-game-bai__promotion-text li::before {
  content: '★';
  color: #FFA53A; /* Auxiliary color */
  position: absolute;
  left: 0;
  top: 0;
}

/* FAQ Section */
.page-game-bai__faq-section {
  padding: 60px 0;
  margin-bottom: 60px;
}

.page-game-bai__faq-list {
  max-width: 900px;
  margin: 0 auto;
}

details.page-game-bai__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #A84F0C; /* Border */
  overflow: hidden;
  background: #17191F; /* Card BG */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}
details.page-game-bai__faq-item summary.page-game-bai__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  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(255, 165, 58, 0.05);
}
.page-game-bai__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #FFB04D; /* Glow */
}
.page-game-bai__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #FFA53A; /* Auxiliary color */
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}
details.page-game-bai__faq-item .page-game-bai__faq-answer {
  padding: 0 20px 20px;
  background: rgba(23, 25, 31, 0.8); /* Slightly transparent Card BG */
  border-radius: 0 0 5px 5px;
  font-size: 16px;
  color: #FFF3E6;
}
details.page-game-bai__faq-item .page-game-bai__faq-answer p {
  margin-bottom: 0;
  color: #FFF3E6;
}
details.page-game-bai__faq-item .page-game-bai__faq-answer a {
  color: #FFA53A;
  text-decoration: none;
}
details.page-game-bai__faq-item .page-game-bai__faq-answer a:hover {
  text-decoration: underline;
}

/* Download CTA Section */
.page-game-bai__download-cta {
  padding: 80px 0;
  background: linear-gradient(90deg, #FF8C1A 0%, #D96800 100%); /* Main color gradient */
  text-align: center;
  margin-bottom: 60px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
}

.page-game-bai__download-content {
  max-width: 800px;
  margin: 0 auto;
}

.page-game-bai__download-cta .page-game-bai__section-title {
  color: #ffffff;
  margin-bottom: 20px;
}

.page-game-bai__download-cta .page-game-bai__section-title::after {
  background: linear-gradient(90deg, transparent, #ffffff, transparent);
}

.page-game-bai__download-cta p {
  font-size: 18px;
  color: #ffffff;
  margin-bottom: 40px;
}

/* Global image responsiveness */
.page-game-bai img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-game-bai__intro-grid,
  .page-game-bai__promotion-content {
    flex-direction: column;
    text-align: center;
  }

  .page-game-bai__promotion-image {
    max-width: 80%;
  }

  .page-game-bai__promotion-text ul {
    text-align: left;
  }

  .page-game-bai__hero-image-wrapper {
    max-height: 500px;
  }
}

@media (max-width: 768px) {
  .page-game-bai__container {
    padding: 0 15px !important;
  }

  .page-game-bai__section-title {
    font-size: clamp(24px, 6vw, 32px);
    margin-bottom: 30px;
  }

  .page-game-bai__description {
    font-size: 16px;
    margin-bottom: 30px;
  }

  /* HERO 主图区域 */
  .page-game-bai__hero-section {
    padding-top: 10px !important; /* Small top padding */
    margin-bottom: 40px;
  }

  .page-game-bai__hero-image-wrapper {
    max-height: 300px !important;
  }

  .page-game-bai__hero-image {
    object-fit: contain !important;
    aspect-ratio: unset !important;
  }

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

  .page-game-bai__main-title {
    font-size: clamp(28px, 7vw, 40px);
    margin-bottom: 15px;
  }

  .page-game-bai__hero-section .page-game-bai__description {
    font-size: 18px;
    margin-bottom: 25px;
  }

  .page-game-bai__cta-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0 15px;
  }

  /* Buttons mobile adaptation */
  .page-game-bai__btn-primary,
  .page-game-bai__btn-secondary,
  .page-game-bai__btn-play,
  .page-game-bai__btn-large,
  .page-game-bai__btn-small,
  .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 !important;
    padding-right: 15px !important;
  }
  .page-game-bai__cta-buttons,
  .page-game-bai__guide-cta {
    flex-direction: column !important;
    gap: 15px !important;
  }

  /* Intro Section */
  .page-game-bai__intro-section {
    padding: 40px 0;
    margin-bottom: 40px;
  }

  .page-game-bai__intro-grid {
    gap: 30px;
  }

  .page-game-bai__intro-text p {
    font-size: 16px;
  }

  /* Sản phẩm/Game Card */
  .page-game-bai__games-section {
    padding: 40px 0;
    margin-bottom: 40px;
  }

  .page-game-bai__games-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-game-bai__game-card-title {
    font-size: 20px;
  }

  .page-game-bai__game-card-desc {
    font-size: 14px;
  }

  /* Features Section */
  .page-game-bai__features-section {
    padding: 40px 0;
    margin-bottom: 40px;
  }

  .page-game-bai__features-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-game-bai__feature-title {
    font-size: 20px;
  }

  .page-game-bai__feature-item p {
    font-size: 15px;
  }

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

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

  .page-game-bai__step-title {
    font-size: 20px;
  }

  .page-game-bai__step-card p {
    font-size: 15px;
  }

  /* Promotion Section */
  .page-game-bai__promotion-section {
    padding: 40px 0;
    margin-bottom: 40px;
  }

  .page-game-bai__promotion-image {
    max-width: 90%;
    margin: 0 auto 30px;
  }

  .page-game-bai__promotion-text p,
  .page-game-bai__promotion-text li {
    font-size: 16px;
  }

  /* FAQ Section */
  .page-game-bai__faq-section {
    padding: 40px 0;
    margin-bottom: 40px;
  }

  details.page-game-bai__faq-item summary.page-game-bai__faq-question {
    padding: 15px;
  }
  .page-game-bai__faq-qtext {
    font-size: 16px;
  }
  .page-game-bai__faq-toggle {
    font-size: 20px;
    width: 24px;
    height: 24px;
  }
  details.page-game-bai__faq-item .page-game-bai__faq-answer {
    padding: 0 15px 15px;
    font-size: 15px;
  }

  /* Download CTA Section */
  .page-game-bai__download-cta {
    padding: 50px 0;
    margin-bottom: 40px;
  }

  .page-game-bai__download-cta .page-game-bai__section-title {
    font-size: clamp(24px, 6vw, 32px);
  }

  .page-game-bai__download-cta p {
    font-size: 16px;
  }

  /* Universal image & container rules for mobile */
  .page-game-bai img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-game-bai__section,
  .page-game-bai__card,
  .page-game-bai__container,
  .page-game-bai__intro-section,
  .page-game-bai__games-section,
  .page-game-bai__features-section,
  .page-game-bai__guide-section,
  .page-game-bai__promotion-section,
  .page-game-bai__faq-section,
  .page-game-bai__download-cta {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    overflow-x: hidden;
  }
  .page-game-bai__promotion-text ul {
    padding-left: 0 !important;
  }
  .page-game-bai__promotion-text li {
    padding-left: 20px !important;
  }
}