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

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

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

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

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

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

.page-game-bai__hero-content-wrapper {
  max-width: 900px;
  padding: 0 20px;
}

.page-game-bai__main-title {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 700;
  color: #FF8C1A;
  margin-bottom: 15px;
  line-height: 1.2;
}

.page-game-bai__description {
  font-size: 1.1rem;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #FFF3E6;
}

.page-game-bai__cta-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 20px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.page-game-bai__btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  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%);
  color: #ffffff;
  border: 2px solid transparent;
}

.page-game-bai__btn-primary:hover {
  background: linear-gradient(180deg, #FFB04D 0%, #FF8C1A 100%);
  box-shadow: 0 4px 15px rgba(255, 140, 26, 0.4);
}

.page-game-bai__btn-secondary {
  background: #17191F; /* Card BG */
  color: #FF8C1A;
  border: 2px solid #A84F0C; /* Border */
}

.page-game-bai__btn-secondary:hover {
  background: #2a2d36;
  color: #FFA53A;
  border-color: #FFB04D;
}

.page-game-bai__section {
  margin-bottom: 50px;
  padding: 0 20px;
}

.page-game-bai__article-wrap {
  max-width: 1150px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 20px;
}

.page-game-bai__section-title {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  color: #FF8C1A;
  text-align: center;
  margin-bottom: 30px;
  font-weight: 700;
}

.page-game-bai p {
  font-size: 1.05rem;
  margin-bottom: 15px;
  color: #FFF3E6;
}

.page-game-bai__info-card {
  background-color: #17191F; /* Card BG */
  border: 1px solid #A84F0C; /* Border */
  border-radius: 12px;
  padding: 30px;
  margin-bottom: 30px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.page-game-bai__info-card:hover {
  transform: translateY(-5px);
}

.page-game-bai__card-title {
  font-size: 1.6rem;
  color: #FFA53A;
  margin-bottom: 15px;
  font-weight: 600;
}

.page-game-bai__card-image {
  width: 100%;
  max-width: 680px;
  height: auto;
  display: block;
  margin: 0 auto 20px auto;
  border-radius: 8px;
  object-fit: cover;
}

.page-game-bai__game-category {
  margin-bottom: 40px;
}

.page-game-bai__category-title {
  font-size: 2rem;
  color: #FF8C1A;
  text-align: center;
  margin-bottom: 25px;
  font-weight: 700;
}

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

.page-game-bai__game-item {
  background-color: #17191F; /* Card BG */
  border: 1px solid #A84F0C; /* Border */
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-game-bai__game-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

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

.page-game-bai__game-name {
  font-size: 1.4rem;
  color: #FFA53A;
  margin-bottom: 10px;
  font-weight: 600;
}

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

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

.page-game-bai__step-title {
  font-size: 1.5rem;
  color: #FF8C1A;
  margin-bottom: 15px;
  font-weight: 600;
}

.page-game-bai__step-image {
  width: 100%;
  max-width: 680px;
  height: auto;
  display: block;
  margin: 0 auto 20px auto;
  border-radius: 8px;
  object-fit: cover;
}

.page-game-bai__list {
  list-style: none;
  padding: 0;
  margin-bottom: 30px;
}

.page-game-bai__list-item {
  background-color: #17191F; /* Card BG */
  border: 1px solid #A84F0C; /* Border */
  border-radius: 10px;
  padding: 25px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.page-game-bai__list-title {
  font-size: 1.4rem;
  color: #FFA53A;
  margin-bottom: 10px;
  font-weight: 600;
}

.page-game-bai__promo-box {
  background: linear-gradient(90deg, #17191F 0%, #0D0E12 100%); /* Mix of Card BG and Background */
  border: 1px solid #A84F0C;
  border-radius: 15px;
  padding: 40px;
  text-align: center;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.page-game-bai__promo-image {
  width: 100%;
  max-width: 680px;
  height: auto;
  display: block;
  margin: 0 auto 25px auto;
  border-radius: 10px;
  object-fit: cover;
}

.page-game-bai__promo-list {
  list-style: disc;
  text-align: left;
  max-width: 700px;
  margin: 25px auto 30px auto;
  padding-left: 20px;
  color: #FFF3E6;
  font-size: 1.05rem;
}

.page-game-bai__promo-list li {
  margin-bottom: 10px;
}

.page-game-bai__cta-buttons--bottom {
  margin-top: 40px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-game-bai__main-title {
    font-size: clamp(2rem, 5vw, 2.8rem);
  }

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

  .page-game-bai__section-title {
    font-size: clamp(1.6rem, 4vw, 2.2rem);
  }

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

  .page-game-bai__game-name {
    font-size: 1.2rem;
  }

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

  .page-game-bai__promo-box {
    padding: 30px;
  }
}

@media (max-width: 768px) {
  /* 1. Top section title + dual CTA */
  .page-game-bai__hero-section {
    padding-top: 10px !important; /* Small top padding */
    margin-bottom: 30px;
  }

  .page-game-bai__main-title {
    font-size: 2rem !important;
    margin-bottom: 10px;
  }

  .page-game-bai__description {
    font-size: 0.95rem !important;
    margin-bottom: 20px;
    padding: 0 10px;
  }

  .page-game-bai__cta-buttons {
    flex-direction: column !important;
    gap: 10px;
    padding: 0 15px;
  }

  .page-game-bai__btn {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px !important;
    font-size: 1rem !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  /* 2. Single column long text container */
  .page-game-bai__article-wrap,
  .page-game-bai__section,
  .page-game-bai__info-card,
  .page-game-bai__game-item,
  .page-game-bai__step-item,
  .page-game-bai__promo-box {
    padding-left: 15px !important;
    padding-right: 15px !important;
    margin-bottom: 25px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

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

  .page-game-bai p {
    font-size: 1rem !important;
  }

  .page-game-bai__card-title,
  .page-game-bai__game-name,
  .page-game-bai__step-title,
  .page-game-bai__list-title {
    font-size: 1.3rem !important;
  }

  /* 3. Generic images and figure */
  .page-game-bai img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-game-bai__hero-image-wrapper,
  .page-game-bai__game-image,
  .page-game-bai__card-image,
  .page-game-bai__step-image,
  .page-game-bai__promo-image {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* 4. Buttons and button containers (already covered in CTA section above, ensuring full width and wrapping) */
  .page-game-bai__cta-buttons--bottom {
    margin-top: 30px;
    padding: 0 15px;
  }

  /* 5. Registration tutorial and FAQ blocks (general list/item readability) */
  .page-game-bai__step-by-step {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-game-bai__list-item {
    padding: 20px;
    margin-bottom: 15px;
  }

  .page-game-bai__promo-list {
    font-size: 1rem !important;
    margin-left: 15px;
    margin-right: 15px;
    padding-left: 15px;
  }
}