.page-tai-xiu {
  font-family: 'Arial', sans-serif;
  background-color: #0A0A0A; /* Matches custom background color */
  color: #FFF6D6; /* Matches custom text color for dark background */
  line-height: 1.6;
}

.page-tai-xiu__container {
  max-width: 1170px;
  margin: 0 auto;
  padding: 0 16px;
  box-sizing: border-box;
}

.page-tai-xiu__intro-section {
  padding-top: 10px; /* Small top padding for non-homepage */
  padding-bottom: 60px;
  background: #0A0A0A; /* Consistent with body background */
}

.page-tai-xiu__intro-section .page-tai-xiu__container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
}

.page-tai-xiu__content-block {
  flex: 1 1 45%;
  min-width: 300px;
}

.page-tai-xiu__image-block {
  flex: 1 1 45%;
  text-align: center;
}

.page-tai-xiu__main-image {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.page-tai-xiu__main-title {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #F2C14E; /* Brand primary color for emphasis */
  text-shadow: 0 0 10px rgba(255, 211, 107, 0.5); /* Glow effect */
}

.page-tai-xiu__description {
  font-size: 1.1rem;
  margin-bottom: 30px;
  color: #FFF6D6;
}

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

.page-tai-xiu__btn-primary,
.page-tai-xiu__btn-secondary {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
}

.page-tai-xiu__btn-primary {
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
  color: #111111; /* Dark text for light button background */
  border: none;
  box-shadow: 0 4px 15px rgba(242, 193, 78, 0.4);
}

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

.page-tai-xiu__btn-secondary {
  background: transparent;
  color: #F2C14E; /* Brand primary color for text */
  border: 2px solid #F2C14E;
}

.page-tai-xiu__btn-secondary:hover {
  background-color: rgba(242, 193, 78, 0.1);
  color: #FFD36B;
  border-color: #FFD36B;
  transform: translateY(-2px);
}

.page-tai-xiu__section {
  padding: 60px 0;
  background-color: #0A0A0A;
  color: #FFF6D6;
}

.page-tai-xiu__section-title {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 700;
  color: #F2C14E;
  text-align: center;
  margin-bottom: 40px;
  text-shadow: 0 0 8px rgba(255, 211, 107, 0.4);
}

.page-tai-xiu__sub-title {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 600;
  color: #FFD36B; /* Auxiliary color for subheadings */
  margin-top: 30px;
  margin-bottom: 15px;
}

.page-tai-xiu__content-area {
  font-size: 1.05rem;
  line-height: 1.7;
}

.page-tai-xiu__content-area p {
  margin-bottom: 15px;
  color: #FFF6D6;
}

.page-tai-xiu__content-area strong {
  color: #FFD36B;
}

.page-tai-xiu__content-area a {
  color: #F2C14E;
  text-decoration: underline;
}

.page-tai-xiu__content-area a:hover {
  color: #FFD36B;
}

.page-tai-xiu__content-image {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 30px auto;
  display: block;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-tai-xiu__list {
  list-style: disc;
  padding-left: 25px;
  margin-bottom: 20px;
  color: #FFF6D6;
}

.page-tai-xiu__list li {
  margin-bottom: 10px;
}

.page-tai-xiu__list ul {
  list-style: circle;
  padding-left: 20px;
  margin-top: 5px;
}

.page-tai-xiu__faq-section {
  background-color: #111111; /* Card BG color */
}

.page-tai-xiu__faq-list {
  max-width: 900px;
  margin: 0 auto;
}

.page-tai-xiu__faq-item {
  background-color: #0A0A0A;
  border: 1px solid #3A2A12; /* Border color */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.page-tai-xiu__faq-item[open] {
  background-color: #0A0A0A;
  border-color: #F2C14E;
}

.page-tai-xiu__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.15rem;
  font-weight: 600;
  color: #FFF6D6;
  cursor: pointer;
  list-style: none; /* Hide default marker */
  position: relative;
}

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

.page-tai-xiu__faq-qtext {
  flex-grow: 1;
  color: #FFF6D6;
}

.page-tai-xiu__faq-toggle {
  width: 24px;
  height: 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.8rem;
  line-height: 1;
  color: #F2C14E;
  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: 0 25px 20px;
  font-size: 1rem;
  color: #FFF6D6;
}

.page-tai-xiu__faq-answer p {
  margin-bottom: 0;
}

.page-tai-xiu__conclusion {
  padding-bottom: 80px;
}

/* --- Mobile Responsive Styles (max-width: 768px) --- */
@media (max-width: 768px) {
  .page-tai-xiu {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-tai-xiu__container {
    padding: 0 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  /* HERO (intro) section - Covers .page-tai-xiu__intro-section */
  .page-tai-xiu__intro-section {
    padding-top: 10px !important; /* Small top padding for non-homepage */
    padding-bottom: 40px;
  }

  .page-tai-xiu__intro-section .page-tai-xiu__container {
    flex-direction: column; /* Stack content and image vertically */
    gap: 30px;
  }

  .page-tai-xiu__content-block,
  .page-tai-xiu__image-block {
    flex: 1 1 100%;
    min-width: unset;
  }

  .page-tai-xiu__main-title {
    font-size: clamp(1.8rem, 8vw, 2.5rem); /* Adjust for smaller screens */
    text-align: center;
  }

  .page-tai-xiu__description {
    font-size: 1rem;
    text-align: center;
  }

  .page-tai-xiu__cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 10px;
  }

  .page-tai-xiu__btn-primary,
  .page-tai-xiu__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    padding: 12px 20px;
    font-size: 0.95rem;
  }

  /* Content Sections - Covers .page-tai-xiu__section, .page-tai-xiu__about-tai-xiu, .page-tai-xiu__rules, .page-tai-xiu__strategies, .page-tai-xiu__experience, .page-tai-xiu__promotions, .page-tai-xiu__faq-section, .page-tai-xiu__conclusion */
  .page-tai-xiu__section {
    padding: 40px 0;
  }

  .page-tai-xiu__section-title {
    font-size: clamp(1.5rem, 7vw, 2.2rem);
    margin-bottom: 30px;
  }

  .page-tai-xiu__sub-title {
    font-size: clamp(1.2rem, 6vw, 1.6rem);
    margin-top: 25px;
    margin-bottom: 10px;
  }

  .page-tai-xiu__content-area {
    font-size: 0.95rem;
  }

  /* General Images and Containers */
  .page-tai-xiu img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
  }

  .page-tai-xiu__section,
  .page-tai-xiu__card,
  .page-tai-xiu__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden; /* Prevent horizontal scroll */
  }

  /* FAQ section - Specifics for .page-tai-xiu__faq-section */
  .page-tai-xiu__faq-question {
    padding: 15px 20px;
    font-size: 1rem;
  }

  .page-tai-xiu__faq-answer {
    padding: 0 20px 15px;
    font-size: 0.9rem;
  }

  .page-tai-xiu__faq-toggle {
    font-size: 1.5rem;
    width: 20px;
    height: 20px;
  }
}