.page-tai-xiu {
  font-family: 'Arial', sans-serif;
  color: #1F2D3D;
  line-height: 1.6;
}

.page-tai-xiu__hero-section {
  background: linear-gradient(180deg, #6FA3FF 0%, #2F6BFF 100%);
  padding-top: 10px; /* Small top padding, body handles main offset */
  padding-bottom: 60px;
  color: #FFFFFF;
}

.page-tai-xiu__hero-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 40px 20px;
}

.page-tai-xiu__hero-content {
  flex: 1 1 50%;
  min-width: 300px;
}

.page-tai-xiu__main-title {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #FFFFFF; /* Ensure high contrast on blue background */
}

.page-tai-xiu__intro-text {
  font-size: 1.15rem;
  margin-bottom: 30px;
  color: #F4F7FB;
}

.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: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

.page-tai-xiu__btn-primary {
  background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
  color: #FFFFFF;
  border: 2px solid transparent;
}

.page-tai-xiu__btn-primary:hover {
  background: linear-gradient(180deg, #2F6BFF 0%, #4A8BFF 100%);
  transform: translateY(-2px);
}

.page-tai-xiu__btn-secondary {
  background: #FFFFFF;
  color: #2F6BFF;
  border: 2px solid #2F6BFF;
}

.page-tai-xiu__btn-secondary:hover {
  background: #E0E2FF;
  color: #1e4dcc;
  transform: translateY(-2px);
}

.page-tai-xiu__hero-image {
  flex: 1 1 40%;
  min-width: 300px;
  text-align: center;
}

.page-tai-xiu__hero-side-image {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  display: block;
  margin: 0 auto;
}

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

.page-tai-xiu__section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  margin-bottom: 20px;
  text-align: center;
  color: #1F2D3D;
}

.page-tai-xiu__section-title--light {
  color: #FFFFFF;
}

.page-tai-xiu__section-description {
  font-size: 1.1rem;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
  color: #4A5568;
}

.page-tai-xiu__section-description--light {
  color: #E0E2FF;
}

.page-tai-xiu__light-bg {
  background: #F4F7FB;
  color: #1F2D3D;
}

.page-tai-xiu__dark-bg {
  background: #2F6BFF;
  color: #FFFFFF;
}

/* Intro Section - Module 1 */
.page-tai-xiu__features-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
  margin-top: 40px;
}

.page-tai-xiu__feature-item {
  flex: 1 1 30%;
  min-width: 280px;
  background: #FFFFFF;
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.page-tai-xiu__feature-item:hover {
  transform: translateY(-5px);
}

.page-tai-xiu__icon-box-media {
  width: 160px;
  height: 160px;
  aspect-ratio: 1/1;
  margin: 0 auto 20px;
  border-radius: 50%;
  overflow: hidden;
  background: #E0E2FF;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.page-tai-xiu__icon-box-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.page-tai-xiu__feature-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: #2F6BFF;
}

.page-tai-xiu__feature-text {
  font-size: 1rem;
  color: #4A5568;
}

/* Game Overview / Strategy Tips Sections */
.page-tai-xiu__content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: center;
}

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

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

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

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

.page-tai-xiu__styled-list {
  list-style: none;
  padding: 0;
  margin-bottom: 25px;
}

.page-tai-xiu__styled-list li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 15px;
  font-size: 1.05rem;
  color: #1F2D3D;
}

.page-tai-xiu__styled-list li:last-child {
  margin-bottom: 0;
}

.page-tai-xiu__styled-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #2F6BFF;
  font-weight: bold;
  font-size: 1.2rem;
}

.page-tai-xiu__paragraph {
  margin-bottom: 20px;
  font-size: 1.05rem;
  color: #4A5568;
}

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

/* How to Play Section */
.page-tai-xiu__steps-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  margin-top: 40px;
}

.page-tai-xiu__step-item {
  flex: 1 1 calc(33.333% - 20px);
  min-width: 280px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  color: #FFFFFF;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.page-tai-xiu__step-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: #A5C4FF;
  margin-bottom: 15px;
  display: block;
}

.page-tai-xiu__step-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: #FFFFFF;
}

.page-tai-xiu__step-text {
  font-size: 1rem;
  color: #E0E2FF;
}

.page-tai-xiu__center-cta {
    text-align: center;
    margin-top: 40px;
}

.page-tai-xiu__large-btn {
    padding: 18px 35px;
    font-size: 1.1rem;
    border-radius: 10px;
}

/* Promotions Section */
.page-tai-xiu__promo-cards-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
  margin-top: 40px;
}

.page-tai-xiu__promo-card {
  flex: 1 1 calc(33.333% - 20px);
  min-width: 280px;
  background: #FFFFFF;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  text-align: center;
  transition: transform 0.3s ease;
  border: 1px solid #D6E2FF;
}

.page-tai-xiu__promo-card:hover {
  transform: translateY(-5px);
}

.page-tai-xiu__promo-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  border-bottom: 1px solid #D6E2FF;
}

.page-tai-xiu__promo-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin: 20px 15px 10px;
  color: #2F6BFF;
}

.page-tai-xiu__promo-text {
  font-size: 0.95rem;
  color: #4A5568;
  margin: 0 15px 20px;
  min-height: 60px; /* Ensure consistent card height */
}

.page-tai-xiu__promo-btn {
  margin-bottom: 20px;
  padding: 10px 25px;
  font-size: 0.9rem;
}

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

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

.page-tai-xiu__faq-item {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #FFFFFF;
}

.page-tai-xiu__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.15rem;
  font-weight: 600;
  cursor: pointer;
  color: #FFFFFF;
  list-style: none;
}

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

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

.page-tai-xiu__faq-toggle {
  font-size: 1.8rem;
  line-height: 1;
  color: #A5C4FF;
  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: #E0E2FF;
  line-height: 1.5;
}

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

/* Final CTA Section */
.page-tai-xiu__cta-final-section {
    padding: 80px 20px;
    background: #F4F7FB;
}

.page-tai-xiu__cta-final-section .page-tai-xiu__section-title {
    color: #1F2D3D;
}

.page-tai-xiu__cta-final-section .page-tai-xiu__section-description {
    color: #4A5568;
    margin-bottom: 30px;
}

/* General Image Styles for content areas */
.page-tai-xiu img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-tai-xiu__hero-container {
    flex-direction: column;
    text-align: center;
  }

  .page-tai-xiu__hero-content {
    order: 2;
  }

  .page-tai-xiu__hero-image {
    order: 1;
    margin-bottom: 30px;
  }

  .page-tai-xiu__cta-buttons {
    justify-content: center;
  }

  .page-tai-xiu__feature-item,
  .page-tai-xiu__promo-card {
    flex: 1 1 calc(50% - 15px);
  }

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

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

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

  .page-tai-xiu__steps-grid {
    gap: 20px;
  }

  .page-tai-xiu__step-item {
    flex: 1 1 calc(50% - 10px);
  }
}

@media (max-width: 768px) {
  .page-tai-xiu__hero-section {
    padding-top: 10px !important;
    padding-bottom: 40px;
  }

  .page-tai-xiu__hero-container,
  .page-tai-xiu__container {
    padding: 30px 15px !important;
  }

  .page-tai-xiu__main-title {
    font-size: clamp(1.8rem, 8vw, 2.5rem);
    margin-bottom: 15px;
  }

  .page-tai-xiu__intro-text {
    font-size: 1rem;
    margin-bottom: 25px;
  }

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

  .page-tai-xiu__btn-primary,
  .page-tai-xiu__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    padding: 12px 20px !important;
    font-size: 0.95rem !important;
    border-radius: 6px !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    margin: 0 auto;
  }

  .page-tai-xiu__hero-image {
    margin-bottom: 20px;
  }

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

  .page-tai-xiu__section-description {
    font-size: 0.95rem;
    margin-bottom: 30px;
  }

  .page-tai-xiu__features-grid,
  .page-tai-xiu__promo-cards-grid {
    flex-direction: column;
    gap: 20px;
  }

  .page-tai-xiu__feature-item,
  .page-tai-xiu__promo-card {
    flex: 1 1 100%;
    min-width: unset;
    padding: 20px;
  }

  .page-tai-xiu__icon-box-media {
    width: 120px;
    height: 120px;
    margin-bottom: 15px;
  }

  .page-tai-xiu__feature-title {
    font-size: 1.3rem;
  }

  .page-tai-xiu__feature-text {
    font-size: 0.9rem;
  }

  .page-tai-xiu__content-grid {
    flex-direction: column;
    gap: 20px;
  }

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

  .page-tai-xiu__text-block,
  .page-tai-xiu__image-block {
    min-width: unset;
  }

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

  .page-tai-xiu__styled-list li {
    font-size: 0.95rem;
    padding-left: 25px;
    margin-bottom: 10px;
  }

  .page-tai-xiu__styled-list li::before {
    font-size: 1rem;
  }

  .page-tai-xiu__paragraph {
    font-size: 0.95rem;
    margin-bottom: 15px;
  }

  .page-tai-xiu__small-btn {
    padding: 8px 15px;
    font-size: 0.85rem;
  }

  .page-tai-xiu__steps-grid {
    flex-direction: column;
    gap: 15px;
  }

  .page-tai-xiu__step-item {
    flex: 1 1 100%;
    min-width: unset;
    padding: 20px;
  }

  .page-tai-xiu__step-number {
    font-size: 2rem;
    margin-bottom: 10px;
  }

  .page-tai-xiu__step-title {
    font-size: 1.2rem;
  }

  .page-tai-xiu__step-text {
    font-size: 0.9rem;
  }

  .page-tai-xiu__large-btn {
    padding: 15px 25px !important;
    font-size: 1rem !important;
    border-radius: 8px !important;
  }

  .page-tai-xiu__promo-image {
    height: 180px;
  }

  .page-tai-xiu__promo-title {
    font-size: 1.2rem;
  }

  .page-tai-xiu__promo-text {
    font-size: 0.85rem;
    min-height: unset;
  }

  .page-tai-xiu__promo-btn {
    padding: 8px 20px;
    font-size: 0.8rem;
  }

  .page-tai-xiu__faq-question {
    padding: 15px 20px;
    font-size: 1rem;
  }

  .page-tai-xiu__faq-toggle {
    font-size: 1.5rem;
  }

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

  .page-tai-xiu__cta-final-section {
    padding: 60px 15px;
  }

  .page-tai-xiu img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !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;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }

  .page-tai-xiu__cta-buttons {
    display: flex;
    flex-direction: column;
  }

  .page-tai-xiu__section,
  .page-tai-xiu__card,
  .page-tai-xiu__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}