.page-tai-xiu__hero-section {
  padding-top: 10px; /* Adjusted for shared header offset */
  background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #ffffff;
  padding-bottom: 40px;
}

.page-tai-xiu__hero-image-wrapper {
  width: 100%;
  max-height: 500px; /* Limit hero image height */
  overflow: hidden;
}

.page-tai-xiu__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.7); /* Slightly dim the image for text readability */
}

.page-tai-xiu__hero-content {
  position: relative;
  z-index: 10;
  max-width: 900px;
  padding: 20px;
  margin-top: 20px;
}

.page-tai-xiu__main-title {
  font-size: clamp(2.2em, 4vw, 3.5em);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 15px;
  color: #ffffff;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.page-tai-xiu__description {
  font-size: 1.1em;
  line-height: 1.6;
  margin-bottom: 30px;
  color: #f0f0f0;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.page-tai-xiu__cta-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  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: 700;
  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, #FF5A4F 0%, #E53935 100%);
  color: #ffffff;
  border: 2px solid transparent;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-tai-xiu__btn-primary:hover {
  background: linear-gradient(180deg, #E53935 0%, #FF5A4F 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

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

.page-tai-xiu__btn-secondary:hover {
  background: #f0f0f0;
  color: #FF5A4F;
  border-color: #FF5A4F;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* General Section Styling */
.page-tai-xiu__intro-section,
.page-tai-xiu__how-to-play-section,
.page-tai-xiu__strategy-section,
.page-tai-xiu__app-advantages-section,
.page-tai-xiu__promotions-section,
.page-tai-xiu__faq-section,
.page-tai-xiu__conclusion-cta-section {
  padding: 60px 0;
}

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

.page-tai-xiu__section-title {
  font-size: 2.5em;
  font-weight: 700;
  margin-bottom: 40px;
  text-align: center;
  color: inherit; /* Inherit from section for contrast */
}

.page-tai-xiu__content-wrapper {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-bottom: 30px;
}

.page-tai-xiu__content-wrapper--reverse {
  flex-direction: row-reverse;
}

.page-tai-xiu__text-block {
  flex: 1;
  line-height: 1.7;
}

.page-tai-xiu__text-block h3 {
  font-size: 1.6em;
  margin-top: 30px;
  margin-bottom: 15px;
  color: inherit;
}

.page-tai-xiu__text-block p {
  margin-bottom: 15px;
  font-size: 1em;
  color: inherit;
}

.page-tai-xiu__image-block {
  flex: 1;
  min-width: 300px;
}

.page-tai-xiu__content-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  display: block;
}

.page-tai-xiu__list,
.page-tai-xiu__ordered-list {
  list-style-type: disc;
  margin-left: 20px;
  margin-bottom: 15px;
  color: inherit;
}

.page-tai-xiu__list li,
.page-tai-xiu__ordered-list li {
  margin-bottom: 8px;
  font-size: 1em;
  color: inherit;
}

.page-tai-xiu__ordered-list {
  list-style-type: decimal;
}

/* Color Scheme Application */
.page-tai-xiu__dark-bg {
  background: #E53935;
  color: #ffffff;
}

.page-tai-xiu__light-bg {
  background: #F5F7FA;
  color: #333333;
}

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

.page-tai-xiu__faq-item {
  background: #ffffff;
  border: 1px solid #E0E0E0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-tai-xiu__faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.15em;
  font-weight: 600;
  color: #333333;
  cursor: pointer;
  list-style: none;
  outline: none;
  transition: background-color 0.3s ease;
}

.page-tai-xiu__faq-item summary::-webkit-details-marker,
.page-tai-xiu__faq-item summary::marker {
  display: none;
}

.page-tai-xiu__faq-item summary:hover {
  background-color: #f0f0f0;
}

.page-tai-xiu__faq-item[open] summary {
  background-color: #f0f0f0;
  color: #E53935;
}

.page-tai-xiu__faq-toggle {
  font-size: 1.5em;
  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: 0 25px 20px;
  font-size: 1em;
  line-height: 1.6;
  color: #555555;
}

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

/* Full width button for app download */
.page-tai-xiu__btn-primary--full-width {
  width: 100%;
  text-align: center;
  margin-top: 20px;
}

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

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-tai-xiu__section-title {
    font-size: 2em;
  }

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

  .page-tai-xiu__description {
    font-size: 1em;
  }

  .page-tai-xiu__content-wrapper {
    flex-direction: column;
    gap: 30px;
  }

  .page-tai-xiu__content-wrapper--reverse {
    flex-direction: column;
  }

  .page-tai-xiu__text-block,
  .page-tai-xiu__image-block {
    flex: none;
    width: 100%;
  }

  .page-tai-xiu__faq-item summary {
    padding: 15px 20px;
    font-size: 1.1em;
  }

  .page-tai-xiu__faq-answer {
    padding: 0 20px 15px;
  }
}

@media (max-width: 768px) {
  .page-tai-xiu__hero-section {
    padding-top: 10px; /* Consistent top padding for mobile */
    padding-bottom: 30px;
  }

  .page-tai-xiu__main-title {
    font-size: clamp(1.8em, 7vw, 2.5em) !important;
  }

  .page-tai-xiu__description {
    font-size: 0.95em;
    margin-bottom: 20px;
  }

  .page-tai-xiu__cta-buttons {
    flex-direction: column;
    gap: 10px;
    width: 100%;
    padding: 0 15px;
  }

  .page-tai-xiu__btn-primary,
  .page-tai-xiu__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px !important;
    font-size: 1em !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-tai-xiu__intro-section,
  .page-tai-xiu__how-to-play-section,
  .page-tai-xiu__strategy-section,
  .page-tai-xiu__app-advantages-section,
  .page-tai-xiu__promotions-section,
  .page-tai-xiu__faq-section,
  .page-tai-xiu__conclusion-cta-section {
    padding: 40px 0;
  }

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

  .page-tai-xiu__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }

  .page-tai-xiu__text-block h3 {
    font-size: 1.4em;
    margin-top: 20px;
    margin-bottom: 10px;
  }

  .page-tai-xiu__text-block p,
  .page-tai-xiu__list li,
  .page-tai-xiu__ordered-list li {
    font-size: 0.95em;
  }

  .page-tai-xiu__content-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-tai-xiu img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* No specific gold frame, game slider, banners, blog slider on this page */
  /* If they were present, they would need mobile rules here */
  /* Example (if a blog section were here): */
  /* .page-tai-xiu__blog-masonry { grid-template-columns: 1fr !important; } */
  /* .page-tai-xiu__blog-card-link { height: auto !important; } */

  .page-tai-xiu__faq-item summary {
    font-size: 1em;
    padding: 15px;
  }

  .page-tai-xiu__faq-answer {
    padding: 0 15px 15px;
  }
}