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

.page-game-bai__article-wrap {
  max-width: 1150px;
  margin: 0 auto;
  padding: 20px;
  box-sizing: border-box;
}

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

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

.page-game-bai__hero-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

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

.page-game-bai__main-title {
  font-size: clamp(2.2rem, 3.5vw, 3rem);
  font-weight: 700;
  color: #FFD86A; /* Gold-like for emphasis */
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

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

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

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

.page-game-bai__btn-primary {
  background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%); /* Button custom color */
  color: #7A0E0E; /* Deep Red for contrast */
  border: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.page-game-bai__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

.page-game-bai__btn-secondary {
  background: #7A0E0E; /* Deep Red */
  color: #FFD86A; /* Gold */
  border: 2px solid #FFD86A; /* Gold border */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.page-game-bai__btn-secondary:hover {
  background: #FFD86A; /* Gold */
  color: #7A0E0E; /* Deep Red */
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

.page-game-bai__section {
  padding: 40px 0;
  background-color: #B71C1C;
}

.page-game-bai__section-title {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 700;
  color: #FFD86A; /* Gold */
  text-align: center;
  margin-bottom: 30px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
}

.page-game-bai__sub-title {
  font-size: clamp(1.4rem, 2.5vw, 1.8rem);
  font-weight: 600;
  color: #F2B544; /* Border color as sub-title */
  margin-top: 30px;
  margin-bottom: 15px;
}

.page-game-bai__text-block {
  font-size: 1rem;
  color: #FFF5E1;
  margin-bottom: 20px;
}

.page-game-bai__list {
  list-style: disc;
  margin-left: 20px;
  color: #FFF5E1;
  margin-bottom: 20px;
}

.page-game-bai__list li {
  margin-bottom: 8px;
  color: #FFF5E1;
}

.page-game-bai__list li strong {
  color: #F4D34D; /* Gold */
}

.page-game-bai__image-figure {
  margin: 30px auto;
  text-align: center;
  max-width: 680px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-game-bai__content-image {
  width: 100%;
  height: auto;
  display: block;
}

.page-game-bai__image-caption {
  font-size: 0.9rem;
  color: #FFF5E1;
  background-color: rgba(0, 0, 0, 0.4);
  padding: 10px;
}

.page-game-bai__game-types-section {
  background-color: #7A0E0E; /* Deep Red */
}

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

.page-game-bai__game-card {
  background-color: #D32F2F; /* Card BG */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  text-align: center;
  padding-bottom: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #F2B544; /* Border */
}

.page-game-bai__game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.page-game-bai__card-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
  margin-bottom: 15px;
}

.page-game-bai__card-title {
  font-size: 1.3rem;
  font-weight: 600;
  color: #FFD86A; /* Gold */
  margin-bottom: 10px;
  padding: 0 15px;
}

.page-game-bai__card-description {
  font-size: 0.95rem;
  color: #FFF5E1;
  padding: 0 15px;
  margin-bottom: 20px;
}

.page-game-bai__btn-small {
  padding: 8px 18px;
  font-size: 0.9rem;
  background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%); /* Button custom color */
  color: #7A0E0E; /* Deep Red */
  border: none;
  border-radius: 6px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.page-game-bai__btn-small:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.page-game-bai__thomo-integration-section {
  background-color: #B71C1C;
}

.page-game-bai__promo-box {
  background-color: #D32F2F; /* Card BG */
  border: 2px solid #F2B544; /* Border */
  border-radius: 12px;
  padding: 30px;
  margin-top: 40px;
  text-align: center;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.page-game-bai__promo-title {
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  color: #FFCC66; /* Glow */
  margin-bottom: 15px;
  text-shadow: 1px 1px 5px rgba(255, 204, 102, 0.7);
}

.page-game-bai__promo-text {
  font-size: 1.1rem;
  color: #FFF5E1;
  margin-bottom: 25px;
}

.page-game-bai__guide-section {
  background-color: #7A0E0E; /* Deep Red */
}

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

.page-game-bai__step-card {
  background-color: #D32F2F; /* Card BG */
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  border: 1px solid #F2B544;
}

.page-game-bai__step-figure {
  position: relative;
  margin-bottom: 20px;
  display: inline-block;
}

.page-game-bai__step-image {
  width: 100%;
  max-width: 400px; /* Max width for step images */
  height: 250px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
  margin: 0 auto;
}

.page-game-bai__step-number {
  position: absolute;
  top: 10px;
  left: 10px;
  background-color: #FFD86A; /* Button color */
  color: #7A0E0E; /* Deep Red */
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.2rem;
  border: 2px solid #F2B544;
}

.page-game-bai__step-title {
  font-size: 1.4rem;
  color: #FFD86A; /* Gold */
  margin-bottom: 10px;
}

.page-game-bai__step-description {
  font-size: 1rem;
  color: #FFF5E1;
  margin-bottom: 20px;
}

.page-game-bai__faq-section {
  background-color: #B71C1C;
}

.page-game-bai__faq-list {
  margin-top: 30px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-game-bai__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.15rem;
  font-weight: 600;
  color: #FFD86A; /* Gold */
  cursor: pointer;
  background-color: #D32F2F;
  position: relative;
  list-style: none;
}

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

.page-game-bai__faq-qtext {
  flex-grow: 1;
  color: #FFD86A;
}

.page-game-bai__faq-toggle {
  font-size: 1.8rem;
  line-height: 1;
  margin-left: 15px;
  color: #FFD86A;
  transition: transform 0.3s ease;
}

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

.page-game-bai__faq-answer {
  padding: 0 25px 20px;
  font-size: 1rem;
  color: #FFF5E1;
  background-color: #7A0E0E; /* Deep Red for contrast */
  border-top: 1px solid #F2B544;
}

.page-game-bai__faq-answer p {
  margin: 0;
  padding-top: 15px;
}

.page-game-bai__conclusion-section {
  text-align: center;
  padding-bottom: 60px;
}

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

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

/* Media Queries */
@media (max-width: 1024px) {
  .page-game-bai__article-wrap {
    padding: 15px;
  }

  .page-game-bai__hero-section {
    padding-bottom: 30px;
  }

  .page-game-bai__main-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
  }

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

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

  .page-game-bai__game-cards-grid,
  .page-game-bai__step-by-step-guide {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
  }

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

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

  .page-game-bai__faq-question {
    padding: 15px 20px;
    font-size: 1.1rem;
  }
}

@media (max-width: 768px) {
  /* Top Section / Hero */
  .page-game-bai__hero-section {
    padding-top: 10px !important; /* Retain small top padding */
    padding-bottom: 20px;
  }

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

  .page-game-bai__main-title {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
    margin-bottom: 15px;
  }

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

  .page-game-bai__hero-cta-buttons {
    flex-direction: column;
    gap: 10px;
    width: 100%;
    max-width: 300px; /* Constrain buttons for mobile */
    margin: 0 auto;
    padding: 0 15px;
    box-sizing: border-box;
  }

  /* General Buttons */
  .page-game-bai__btn-primary,
  .page-game-bai__btn-secondary,
  .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;
    padding-right: 15px;
  }

  /* Article Wrap & Sections */
  .page-game-bai__article-wrap {
    padding: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden;
  }

  .page-game-bai__section {
    padding: 30px 0;
  }

  .page-game-bai__section-title {
    font-size: clamp(1.5rem, 5vw, 2rem);
    margin-bottom: 25px;
  }

  .page-game-bai__sub-title {
    font-size: clamp(1.2rem, 4vw, 1.5rem);
    margin-top: 25px;
    margin-bottom: 10px;
  }

  .page-game-bai__text-block,
  .page-game-bai__list {
    font-size: 0.95rem;
    margin-bottom: 15px;
  }

  .page-game-bai__list li {
    margin-bottom: 5px;
  }

  /* General Images */
  .page-game-bai img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-game-bai__image-figure {
    margin: 20px auto;
  }

  .page-game-bai__image-caption {
    font-size: 0.85rem;
  }

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

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

  .page-game-bai__card-image {
    height: 200px;
  }

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

  .page-game-bai__card-description {
    font-size: 0.9rem;
    margin-bottom: 15px;
  }

  /* Promo Box */
  .page-game-bai__promo-box {
    padding: 20px;
    margin-top: 30px;
  }

  .page-game-bai__promo-title {
    font-size: clamp(1.3rem, 4.5vw, 1.8rem);
    margin-bottom: 10px;
  }

  .page-game-bai__promo-text {
    font-size: 1rem;
    margin-bottom: 20px;
  }

  /* Step-by-Step Guide */
  .page-game-bai__step-by-step-guide {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-game-bai__step-card {
    padding: 15px;
  }

  .page-game-bai__step-image {
    height: 200px;
  }

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

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

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

  .page-game-bai__faq-item {
    margin-bottom: 10px;
  }

  .page-game-bai__faq-question {
    padding: 12px 18px;
    font-size: 1rem;
  }

  .page-game-bai__faq-toggle {
    font-size: 1.5rem;
  }

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

  /* Conclusion Section */
  .page-game-bai__bottom-cta {
    flex-direction: column;
    gap: 10px;
    width: 100%;
    max-width: 300px; /* Constrain buttons for mobile */
    margin: 20px auto 0;
    padding: 0 15px;
    box-sizing: border-box;
  }
}