.page-tai-xiu {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #FFF5E1; /* Text Main */
  background-color: #B71C1C; /* Background */
}

.page-tai-xiu__hero-section {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding-top: 10px; /* Small top padding as per instruction */
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.page-tai-xiu__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  max-height: 675px;
}

.page-tai-xiu__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 40px 20px;
  margin-top: -100px; /* Pull content up over image for visual effect, but not *on* the image */
  background: rgba(122, 14, 14, 0.8); /* Deep Red with opacity */
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid #F2B544; /* Border */
}

.page-tai-xiu__main-title {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  color: #FFD86A; /* Gold-like for title */
  margin-bottom: 15px;
  font-weight: bold;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-tai-xiu__description {
  font-size: 1.15rem;
  margin-bottom: 30px;
  color: #FFF5E1; /* Text Main */
}

.page-tai-xiu__cta-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

.page-tai-xiu__cta-buttons--centered {
  margin-top: 30px;
  margin-bottom: 20px;
}

.page-tai-xiu__btn-primary,
.page-tai-xiu__btn-secondary {
  padding: 14px 30px;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

.page-tai-xiu__btn-primary {
  background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%); /* Button color */
  color: #7A0E0E; /* Deep Red for text on gold button */
  border: 2px solid #F2B544; /* Border */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

.page-tai-xiu__btn-primary:hover {
  background: linear-gradient(180deg, #E6B800 0%, #FFD86A 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.6);
}

.page-tai-xiu__btn-secondary {
  background: #D32F2F; /* Card BG */
  color: #FFF5E1; /* Text Main */
  border: 2px solid #F2B544; /* Border */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

.page-tai-xiu__btn-secondary:hover {
  background: #C91F17; /* Main Color */
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.6);
}

.page-tai-xiu__section {
  padding: 60px 0;
  margin-bottom: 30px;
  background-color: #7A0E0E; /* Deep Red */
  border-bottom: 1px solid #C91F17; /* Main Color */
}

.page-tai-xiu__section:last-of-type {
  border-bottom: none;
}

.page-tai-xiu__introduction {
  background-color: #7A0E0E;
}

.page-tai-xiu__rules {
  background-color: #C91F17; /* Main Color */
}

.page-tai-xiu__bet-types {
  background-color: #7A0E0E;
}

.page-tai-xiu__strategy {
  background-color: #C91F17;
}

.page-tai-xiu__why-gaking79 {
  background-color: #7A0E0E;
}

.page-tai-xiu__guide {
  background-color: #C91F17;
}

.page-tai-xiu__faq-section {
  background-color: #7A0E0E;
}

.page-tai-xiu__conclusion {
  background-color: #C91F17;
}

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

.page-tai-xiu__section-title {
  font-size: 2.5rem;
  color: #FFD86A; /* Gold */
  margin-bottom: 30px;
  text-align: center;
  font-weight: bold;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.page-tai-xiu__sub-title {
  font-size: 1.8rem;
  color: #F4D34D; /* Gold */
  margin-top: 40px;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-tai-xiu p {
  margin-bottom: 15px;
  color: #FFF5E1; /* Text Main */
  font-size: 1.05rem;
}

.page-tai-xiu__list {
  list-style-type: disc;
  margin-left: 25px;
  margin-bottom: 20px;
  color: #FFF5E1; /* Text Main */
}

.page-tai-xiu__list-item {
  margin-bottom: 10px;
  font-size: 1.05rem;
}

.page-tai-xiu__list-item strong {
  color: #F4D34D; /* Gold */
}

.page-tai-xiu__figure {
  margin: 30px 0;
  text-align: center;
}

.page-tai-xiu__image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
  border: 2px solid #F2B544; /* Border */
}

.page-tai-xiu__figcaption {
  font-size: 0.95rem;
  color: #F4D34D; /* Gold */
  margin-top: 10px;
}

.page-tai-xiu__card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 30px;
  margin-bottom: 40px;
}

.page-tai-xiu__info-card {
  background-color: #D32F2F; /* Card BG */
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
  border: 1px solid #F2B544; /* Border */
  text-align: center;
  height: 100%; /* Ensure cards are same height */
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.page-tai-xiu__card-title {
  font-size: 1.5rem;
  color: #FFD86A; /* Gold */
  margin-bottom: 15px;
  font-weight: bold;
}

.page-tai-xiu__card-text {
  font-size: 1rem;
  color: #FFF5E1; /* Text Main */
  flex-grow: 1;
}

.page-tai-xiu__step-by-step {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
  margin-bottom: 40px;
}

.page-tai-xiu__step-card {
  background-color: #D32F2F; /* Card BG */
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
  border: 1px solid #F2B544; /* Border */
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-tai-xiu__step-title {
  font-size: 1.6rem;
  color: #FFD86A; /* Gold */
  margin-bottom: 15px;
  font-weight: bold;
}

.page-tai-xiu__step-text {
  font-size: 1rem;
  color: #FFF5E1; /* Text Main */
}

.page-tai-xiu__faq-list {
  margin-top: 30px;
}

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

.page-tai-xiu__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.2rem;
  font-weight: bold;
  color: #FFD86A; /* Gold */
  cursor: pointer;
  background-color: #C91F17; /* Main Color */
  transition: background-color 0.3s ease;
  list-style: none;
}

.page-tai-xiu__faq-question::-webkit-details-marker {
  display: none;
}

.page-tai-xiu__faq-question:hover {
  background-color: #E53935; /* Auxiliary Color */
}

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

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

.page-tai-xiu__faq-answer {
  padding: 20px 25px;
  font-size: 1rem;
  color: #FFF5E1; /* Text Main */
  background-color: #D32F2F; /* Card BG */
  border-top: 1px solid #F2B544; /* Border */
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-tai-xiu__hero-content {
    margin-top: -80px;
    padding: 30px 20px;
  }

  .page-tai-xiu__main-title {
    font-size: clamp(2rem, 5vw, 3rem);
  }

  .page-tai-xiu__section-title {
    font-size: 2.2rem;
  }

  .page-tai-xiu__sub-title {
    font-size: 1.6rem;
  }

  .page-tai-xiu__card-grid,
  .page-tai-xiu__step-by-step {
    gap: 20px;
  }

  .page-tai-xiu__info-card,
  .page-tai-xiu__step-card {
    padding: 25px;
  }
}

@media (max-width: 768px) {
  .page-tai-xiu {
    font-size: 16px !important;
    line-height: 1.6 !important;
  }

  /* Top Section / Hero */
  .page-tai-xiu__hero-section {
    padding-top: 10px !important;
  }
  .page-tai-xiu__hero-image {
    max-height: 400px !important;
  }
  .page-tai-xiu__hero-content {
    margin-top: -60px !important;
    padding: 25px 15px !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    border-radius: 8px !important;
  }
  .page-tai-xiu__main-title {
    font-size: clamp(1.8rem, 7vw, 2.5rem) !important;
  }
  .page-tai-xiu__description {
    font-size: 1rem !important;
  }
  .page-tai-xiu__cta-buttons {
    flex-direction: column !important;
    gap: 10px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 0 10px;
  }

  /* Long-form Content & Containers */
  .page-tai-xiu__article-wrap,
  .page-tai-xiu__section,
  .page-tai-xiu__card-grid,
  .page-tai-xiu__step-by-step,
  .page-tai-xiu__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
  .page-tai-xiu__section-title {
    font-size: 1.8rem !important;
    margin-bottom: 20px !important;
  }
  .page-tai-xiu__sub-title {
    font-size: 1.4rem !important;
    margin-top: 30px !important;
    margin-bottom: 15px !important;
  }
  .page-tai-xiu p,
  .page-tai-xiu__list-item,
  .page-tai-xiu__card-text,
  .page-tai-xiu__step-text,
  .page-tai-xiu__faq-answer {
    font-size: 0.95rem !important;
  }

  /* General Images & Figure */
  .page-tai-xiu img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
  }
  .page-tai-xiu__figcaption {
    font-size: 0.85rem !important;
  }

  /* Buttons & Button Containers */
  .page-tai-xiu__btn-primary,
  .page-tai-xiu__btn-secondary,
  .page-tai-xiu a[class*="button"],
  .page-tai-xiu 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-tai-xiu__cta-buttons,
  .page-tai-xiu__button-group,
  .page-tai-xiu__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
    flex-direction: column !important;
  }

  /* Registration Tutorial & FAQ Blocks */
  .page-tai-xiu__step-card,
  .page-tai-xiu__info-card {
    padding: 20px !important;
  }
  .page-tai-xiu__step-title,
  .page-tai-xiu__card-title {
    font-size: 1.3rem !important;
  }
  .page-tai-xiu__faq-question {
    padding: 15px 20px !important;
    font-size: 1.1rem !important;
  }
  .page-tai-xiu__faq-answer {
    padding: 15px 20px !important;
  }
  .page-tai-xiu__faq-toggle {
    font-size: 1.3rem !important;
  }
}