/* style/tai-xiu.css */
.page-tai-xiu {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light backgrounds */
  background-color: #ffffff; /* Default body background */
}

.page-tai-xiu__dark-bg {
  background-color: #017439;
  color: #ffffff;
}

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

.page-tai-xiu__hero-section {
  padding-top: 10px; /* Fixed header spacing, assuming shared.css handles body padding */
  padding-bottom: 60px;
  text-align: center;
}

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

.page-tai-xiu__hero-content {
  flex: 1 1 500px; /* Allows content to shrink/grow but maintains min width */
  max-width: 600px;
  text-align: left;
}

.page-tai-xiu__hero-title {
  font-size: 2.5em;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #ffffff;
}

.page-tai-xiu__hero-description {
  font-size: 1.1em;
  margin-bottom: 30px;
  color: #ffffff;
}

.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: 700;
  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-color: #C30808; /* Register/Login color */
  color: #FFFF00; /* Register/Login font color */
  border: 2px solid #C30808;
}

.page-tai-xiu__btn-primary:hover {
  background-color: #a00606;
  border-color: #a00606;
}

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

.page-tai-xiu__btn-secondary:hover {
  background-color: #ffffff;
  color: #017439;
}

.page-tai-xiu__hero-image {
  flex: 1 1 500px;
  max-width: 600px;
  text-align: center;
}

.page-tai-xiu__side-image {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
}

.page-tai-xiu__content-area {
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px 16px;
}

.page-tai-xiu__section-title {
  font-size: 2em;
  font-weight: 700;
  margin-bottom: 30px;
  text-align: center;
  color: #017439;
}

.page-tai-xiu__intro-section p,
.page-tai-xiu__how-to-play-section p,
.page-tai-xiu__tips-section p {
  font-size: 1.05em;
  line-height: 1.7;
  margin-bottom: 1em;
  text-align: justify;
}

.page-tai-xiu__guide-grid,
.page-tai-xiu__tips-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: center;
  margin-top: 30px;
}

.page-tai-xiu__guide-grid .page-tai-xiu__guide-text,
.page-tai-xiu__tips-grid .page-tai-xiu__tips-text {
  flex: 1 1 45%;
  max-width: 550px;
}

.page-tai-xiu__guide-grid .page-tai-xiu__guide-image,
.page-tai-xiu__tips-grid .page-tai-xiu__tips-image {
  flex: 1 1 45%;
  max-width: 550px;
  text-align: center;
}

.page-tai-xiu__guide-subtitle {
  font-size: 1.5em;
  font-weight: 600;
  margin-top: 25px;
  margin-bottom: 15px;
  color: #017439;
}

.page-tai-xiu__guide-list,
.page-tai-xiu__tips-list {
  list-style: disc inside;
  margin-left: 20px;
  margin-bottom: 20px;
}

.page-tai-xiu__guide-list li,
.page-tai-xiu__tips-list li {
  margin-bottom: 10px;
  font-size: 1.05em;
}

.page-tai-xiu__content-image {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
}

.page-tai-xiu__why-dn88-section {
  padding: 60px 0;
}

.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 280px;
  max-width: 350px;
  background-color: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  color: #ffffff;
}

.page-tai-xiu__feature-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-tai-xiu__feature-title {
  font-size: 1.3em;
  font-weight: 600;
  margin-bottom: 15px;
  color: #ffffff;
}

.page-tai-xiu__feature-item p {
  font-size: 0.95em;
  line-height: 1.6;
  color: #f0f0f0;
}

.page-tai-xiu__faq-section {
  padding: 60px 0;
}

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

.page-tai-xiu__faq-item {
  background-color: #f9f9f9;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-tai-xiu__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.1em;
  font-weight: 600;
  color: #333333;
  cursor: pointer;
  background-color: #f0f0f0;
  border-bottom: 1px solid #e0e0e0;
  list-style: none; /* For details/summary */
}

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

.page-tai-xiu__faq-item[open] .page-tai-xiu__faq-question {
  background-color: #e5e5e5;
}

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

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

.page-tai-xiu__faq-answer {
  padding: 15px 25px 20px;
  font-size: 1em;
  line-height: 1.6;
  color: #555555;
  background-color: #ffffff;
}

.page-tai-xiu__cta-section {
  padding: 80px 0;
  text-align: center;
}

.page-tai-xiu__cta-content {
  max-width: 800px;
  margin: 0 auto;
  color: #ffffff;
}

.page-tai-xiu__cta-content .page-tai-xiu__section-title {
  color: #ffffff;
}

.page-tai-xiu__cta-content p {
  font-size: 1.1em;
  margin-bottom: 40px;
  color: #f0f0f0;
}

.page-tai-xiu__btn-large {
  padding: 16px 32px;
  font-size: 1.2em;
}

/* General image responsiveness */
.page-tai-xiu img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .page-tai-xiu {
    font-size: 15px;
    line-height: 1.5;
  }

  .page-tai-xiu__hero-section {
    padding-top: 10px !important; /* Ensure minimal padding even if shared.css adds more */
    padding-bottom: 40px;
  }

  .page-tai-xiu__hero-container {
    flex-direction: column;
    padding: 20px 15px;
    gap: 30px;
  }

  .page-tai-xiu__hero-content {
    text-align: center;
    max-width: 100%;
  }

  .page-tai-xiu__hero-title {
    font-size: 2em;
    margin-bottom: 15px;
  }

  .page-tai-xiu__hero-description {
    font-size: 1em;
    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 {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-tai-xiu__hero-image {
    max-width: 100%;
  }

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

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

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

  .page-tai-xiu__guide-grid,
  .page-tai-xiu__tips-grid {
    flex-direction: column;
    gap: 30px;
  }

  .page-tai-xiu__guide-grid .page-tai-xiu__guide-text,
  .page-tai-xiu__tips-grid .page-tai-xiu__tips-text,
  .page-tai-xiu__guide-grid .page-tai-xiu__guide-image,
  .page-tai-xiu__tips-grid .page-tai-xiu__tips-image {
    max-width: 100%;
    flex-basis: auto;
  }

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

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

  .page-tai-xiu__feature-item {
    max-width: 100%;
    flex-basis: auto;
    padding: 25px;
  }

  .page-tai-xiu__feature-icon {
    width: 80px;
    height: 80px;
  }

  .page-tai-xiu__faq-list {
    margin-top: 30px;
    max-width: 100%;
  }

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

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

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

  .page-tai-xiu__cta-content {
    padding: 0 15px;
  }

  .page-tai-xiu__btn-large {
    font-size: 1.1em;
    padding: 14px 25px;
  }

  /* General image and container rules for mobile */
  .page-tai-xiu img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !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;
    padding-left: 15px;
    padding-right: 15px;
  }
}