.page-tai-xiu {
  font-family: Arial, sans-serif;
  color: var(--text-main, #1F2D3D);
  background-color: var(--bg-color, #F4F7FB);
  line-height: 1.6;
}

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

.page-tai-xiu__container--center {
  text-align: center;
}

/* Hero Section */
.page-tai-xiu__hero-section {
  position: relative;
  overflow: hidden;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  padding-bottom: 40px;
  background-color: var(--primary-color, #2F6BFF);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-tai-xiu__hero-image-wrapper {
  width: 100%;
  max-height: 675px; /* Limit height for hero image */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 30px; /* Space between image and content */
}

.page-tai-xiu__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.7);
}

.page-tai-xiu__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #ffffff;
  max-width: 800px;
  padding: 0 20px;
}

.page-tai-xiu__main-title {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 15px;
  color: #ffffff;
}

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

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

.page-tai-xiu__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.05rem;
  transition: all 0.3s ease;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-tai-xiu__btn--primary {
  background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 15px rgba(47, 107, 255, 0.4);
}

.page-tai-xiu__btn--primary:hover {
  background: linear-gradient(180deg, #2F6BFF 0%, #4A8BFF 100%);
  box-shadow: 0 6px 20px rgba(47, 107, 255, 0.6);
}

.page-tai-xiu__btn--secondary {
  background-color: #ffffff;
  color: var(--primary-color, #2F6BFF);
  border: 2px solid var(--primary-color, #2F6BFF);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.page-tai-xiu__btn--secondary:hover {
  background-color: var(--primary-color, #2F6BFF);
  color: #ffffff;
  box-shadow: 0 6px 15px rgba(47, 107, 255, 0.4);
}

.page-tai-xiu__btn--small {
  padding: 10px 20px;
  font-size: 0.95rem;
  border-radius: 6px;
}

/* General Sections */
.page-tai-xiu__introduction-section,
.page-tai-xiu__how-to-play-section,
.page-tai-xiu__tips-section,
.page-tai-xiu__promotions-section,
.page-tai-xiu__faq-section,
.page-tai-xiu__final-cta-section {
  padding: 60px 0;
  background-color: var(--card-bg, #FFFFFF);
  margin-bottom: 20px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  margin: 20px auto; /* Center sections and provide margin */
}

.page-tai-xiu__section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-main, #1F2D3D);
  text-align: center;
  margin-bottom: 40px;
  line-height: 1.3;
}

.page-tai-xiu__sub-title {
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--primary-color, #2F6BFF);
  margin-top: 30px;
  margin-bottom: 15px;
}

.page-tai-xiu p {
  font-size: 1.1rem;
  margin-bottom: 20px;
  color: var(--text-main, #1F2D3D);
}

.page-tai-xiu a {
  color: var(--primary-color, #2F6BFF);
  text-decoration: none;
  font-weight: 500;
}

.page-tai-xiu a:hover {
  text-decoration: underline;
}

.page-tai-xiu strong {
  color: var(--custom-color-1776249996415, #000000);
}

/* Images and Figures */
.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 12px rgba(0,0,0,0.1);
  min-width: 200px;
  min-height: 200px;
}

.page-tai-xiu__figcaption {
  font-style: italic;
  font-size: 0.95rem;
  color: #666;
  margin-top: 10px;
}

/* Info Card */
.page-tai-xiu__info-card {
  background-color: var(--background-color, #F4F7FB);
  border: 1px solid var(--border-color, #D6E2FF);
  border-radius: 10px;
  padding: 30px;
  margin-top: 30px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.page-tai-xiu__card-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--primary-color, #2F6BFF);
  margin-bottom: 20px;
  text-align: center;
}

/* Lists */
.page-tai-xiu__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.page-tai-xiu__list-item {
  position: relative;
  padding-left: 30px;
  margin-bottom: 15px;
  font-size: 1.05rem;
  color: var(--text-main, #1F2D3D);
}

.page-tai-xiu__list-item::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary-color, #2F6BFF);
  font-weight: bold;
}

/* Promo Grid */
.page-tai-xiu__promo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.page-tai-xiu__promo-card {
  background-color: var(--card-bg, #FFFFFF);
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding-bottom: 20px;
  text-align: center;
}

.page-tai-xiu__promo-card .page-tai-xiu__figure {
  margin: 0;
  height: 200px;
  overflow: hidden;
}

.page-tai-xiu__promo-card .page-tai-xiu__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  box-shadow: none;
}

.page-tai-xiu__promo-card .page-tai-xiu__card-title {
  font-size: 1.3rem;
  margin-top: 20px;
  margin-bottom: 10px;
  padding: 0 15px;
}

.page-tai-xiu__promo-card p {
  font-size: 0.95rem;
  color: #555;
  padding: 0 15px;
  flex-grow: 1;
}

.page-tai-xiu__promo-card .page-tai-xiu__btn {
  margin-top: 15px;
  align-self: center;
}

/* FAQ Section */
.page-tai-xiu__faq-list {
  margin-top: 30px;
}

.page-tai-xiu__faq-item {
  background-color: var(--card-bg, #FFFFFF);
  border: 1px solid var(--border-color, #D6E2FF);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-tai-xiu__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-main, #1F2D3D);
  cursor: pointer;
  background-color: #f9f9f9;
  border-bottom: 1px solid var(--border-color, #D6E2FF);
  list-style: none; /* For details/summary */
}

.page-tai-xiu__faq-item[open] .page-tai-xiu__faq-question {
  border-bottom: none;
}

.page-tai-xiu__faq-question::-webkit-details-marker, /* Hide default marker for Webkit */
.page-tai-xiu__faq-question::marker { /* Hide default marker for Firefox */
  display: none;
  content: '';
}

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

.page-tai-xiu__faq-toggle {
  font-size: 1.8rem;
  line-height: 1;
  color: var(--primary-color, #2F6BFF);
  margin-left: 15px;
  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 20px 20px 20px;
  font-size: 1rem;
  color: #555;
}

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

/* Final CTA Section */
.page-tai-xiu__final-cta-section {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--primary-color, #2F6BFF) 0%, var(--secondary-color, #6FA3FF) 100%);
  color: #ffffff;
  text-align: center;
  border-radius: 10px;
  margin: 20px auto 40px auto;
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.page-tai-xiu__final-cta-section .page-tai-xiu__section-title {
  color: #ffffff;
}

.page-tai-xiu__final-cta-section .page-tai-xiu__description {
  color: #f0f0f0;
  max-width: 800px;
  margin: 0 auto 40px auto;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-tai-xiu__section-title {
    font-size: 2.2rem;
  }
  .page-tai-xiu__sub-title {
    font-size: 1.6rem;
  }
  .page-tai-xiu p, .page-tai-xiu__list-item {
    font-size: 1rem;
  }
  .page-tai-xiu__promo-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  /* 1. Top Section Title + CTA */
  .page-tai-xiu__hero-section {
    padding-top: 10px !important;
    padding-bottom: 30px;
  }
  .page-tai-xiu__hero-image-wrapper {
    margin-bottom: 20px;
  }
  .page-tai-xiu__hero-content {
    padding: 0 15px;
  }
  .page-tai-xiu__main-title {
    font-size: clamp(1.8rem, 8vw, 2.5rem);
    margin-bottom: 10px;
  }
  .page-tai-xiu__description {
    font-size: 1rem;
    margin-bottom: 20px;
  }
  .page-tai-xiu__cta-buttons {
    flex-direction: column;
    gap: 10px;
    padding: 0 15px;
  }
  .page-tai-xiu__btn {
    width: 100% !important;
    max-width: 100% !important;
    font-size: 1rem;
    padding: 12px 20px;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-tai-xiu__cta-buttons.page-tai-xiu__cta-buttons--center {
    padding: 0 15px;
  }

  /* 2. Single Column Long Article Container */
  .page-tai-xiu__container {
    padding-left: 15px !important;
    padding-right: 15px !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-tai-xiu__introduction-section,
  .page-tai-xiu__how-to-play-section,
  .page-tai-xiu__tips-section,
  .page-tai-xiu__promotions-section,
  .page-tai-xiu__faq-section,
  .page-tai-xiu__final-cta-section {
    padding: 40px 0;
    margin: 15px auto;
    border-radius: 0;
  }

  /* 3. General Images and Figure */
  .page-tai-xiu img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
    min-width: unset;
    min-height: unset;
  }
  .page-tai-xiu__figure {
    margin: 20px 0;
  }
  .page-tai-xiu__figcaption {
    font-size: 0.85rem;
  }

  /* 4. Buttons and Button Containers */
  .page-tai-xiu__btn--small {
    padding: 8px 15px;
    font-size: 0.9rem;
  }
  .page-tai-xiu__promo-card .page-tai-xiu__btn {
    width: auto !important;
    max-width: fit-content !important;
  }
  .page-tai-xiu__promo-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-tai-xiu__promo-card .page-tai-xiu__figure {
    height: 180px;
  }

  /* 5. Registration Tutorial and FAQ Blocks */
  .page-tai-xiu__section-title {
    font-size: 1.8rem;
    margin-bottom: 30px;
  }
  .page-tai-xiu__sub-title {
    font-size: 1.4rem;
    margin-top: 25px;
    margin-bottom: 10px;
  }
}