/* 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 background */
}

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

.page-tai-xiu__section-title {
  font-size: 2.5em;
  font-weight: 700;
  color: #26A9E0;
  text-align: center;
  margin-bottom: 40px;
  line-height: 1.2;
}

.page-tai-xiu__content-block {
  margin-bottom: 30px;
}

.page-tai-xiu p {
  margin-bottom: 1em;
  font-size: 1.1em;
}

.page-tai-xiu a {
  color: #26A9E0;
  text-decoration: none;
}

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

/* Hero Intro Section (not a full HERO, just intro) */
.page-tai-xiu__hero-intro-section {
  padding-top: 10px; /* Small top padding, relying on body for header offset */
  padding-bottom: 60px;
  background-color: #f8f8f8;
}

.page-tai-xiu__hero-intro-section .page-tai-xiu__container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 30px;
}

.page-tai-xiu__hero-content {
  flex: 1 1 45%;
  min-width: 300px;
  color: #333333;
}

.page-tai-xiu__main-title {
  font-size: clamp(2.5em, 4vw, 3.5em);
  font-weight: 800;
  color: #26A9E0;
  margin-bottom: 20px;
  line-height: 1.1;
}

.page-tai-xiu__intro-text {
  font-size: 1.2em;
  margin-bottom: 30px;
}

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

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

/* CTA Buttons */
.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: 50px;
  text-align: center;
  font-weight: 700;
  font-size: 1.1em;
  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: #26A9E0;
  color: #FFFFFF;
  border: 2px solid #26A9E0;
}

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

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

.page-tai-xiu__btn-secondary:hover {
  background: #26A9E0;
  color: #FFFFFF;
}

/* General Section Styles */
.page-tai-xiu__about-section,
.page-tai-xiu__strategy-section,
.page-tai-xiu__faq-section {
  padding: 60px 0;
}

.page-tai-xiu__dark-bg {
  background-color: #26A9E0;
  color: #FFFFFF;
}

.page-tai-xiu__dark-bg .page-tai-xiu__section-title,
.page-tai-xiu__dark-bg h3,
.page-tai-xiu__dark-bg strong {
  color: #FFFFFF;
}

.page-tai-xiu__dark-bg a {
  color: #FFFFFF;
  text-decoration: underline;
}

.page-tai-xiu__dark-bg a:hover {
  color: #f0f0f0;
}

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

.page-tai-xiu__flex-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 30px;
}

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

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

.page-tai-xiu__image-content {
  flex: 1 1 35%;
  min-width: 280px;
  text-align: center;
}

.page-tai-xiu__image-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  display: block;
}

.page-tai-xiu__ordered-list,
.page-tai-xiu__unordered-list {
  margin-left: 20px;
  margin-bottom: 20px;
}

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

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

.page-tai-xiu__faq-item {
  background-color: #f0f0f0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #333333;
}

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

.page-tai-xiu__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.2em;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  color: #26A9E0;
  background-color: #FFFFFF;
  border-bottom: 1px solid #e0e0e0;
  transition: background-color 0.3s ease;
}

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

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

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

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

.page-tai-xiu__faq-toggle {
  font-size: 1.5em;
  font-weight: bold;
  margin-left: 15px;
  color: #26A9E0;
}

.page-tai-xiu__faq-item[open] .page-tai-xiu__faq-toggle {
  color: #1e87b7;
}

.page-tai-xiu__faq-answer {
  padding: 15px 25px 20px;
  font-size: 1.05em;
  color: #333333;
}

/* Global image and container responsive styles */
.page-tai-xiu img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-tai-xiu__main-title {
    font-size: clamp(2em, 5vw, 3em);
  }
  .page-tai-xiu__hero-intro-section .page-tai-xiu__container {
    gap: 20px;
  }
  .page-tai-xiu__flex-grid {
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .page-tai-xiu {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-tai-xiu__container {
    padding-left: 15px !important;
    padding-right: 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  /* HERO Intro Section */
  .page-tai-xiu__hero-intro-section {
    padding-top: 10px !important;
    padding-bottom: 40px;
  }
  .page-tai-xiu__hero-intro-section .page-tai-xiu__container {
    flex-direction: column;
  }
  .page-tai-xiu__hero-content,
  .page-tai-xiu__hero-image {
    flex: 1 1 100%;
    min-width: unset;
  }
  .page-tai-xiu__main-title {
    font-size: 2.2em !important;
    text-align: center;
  }
  .page-tai-xiu__intro-text {
    text-align: center;
  }
  .page-tai-xiu__cta-buttons {
    flex-direction: column;
    gap: 10px;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
  }
  .page-tai-xiu__btn-primary,
  .page-tai-xiu__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  /* General Sections */
  .page-tai-xiu__section-title {
    font-size: 1.8em !important;
    margin-bottom: 30px;
  }
  .page-tai-xiu__about-section,
  .page-tai-xiu__how-to-play-section,
  .page-tai-xiu__strategy-section,
  .page-tai-xiu__why-kwin-section,
  .page-tai-xiu__faq-section {
    padding: 40px 0;
  }
  .page-tai-xiu__flex-grid {
    flex-direction: column;
  }
  .page-tai-xiu__flex-grid--reverse {
    flex-direction: column;
  }
  .page-tai-xiu__text-content,
  .page-tai-xiu__image-content {
    flex: 1 1 100%;
    min-width: unset;
  }

  /* Images */
  .page-tai-xiu img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  /* FAQ */
  .page-tai-xiu__faq-question {
    font-size: 1em !important;
    padding: 15px 20px;
  }
  .page-tai-xiu__faq-answer {
    padding: 10px 20px 15px;
  }
  .page-tai-xiu__faq-toggle {
    font-size: 1.2em !important;
  }
}