/* style/tai-xiu.css */

:root {
  --primary-color: #E53935;
  --secondary-color: #FF5A4F;
  --text-main-color: #333333;
  --card-bg-color: #FFFFFF;
  --background-page-color: #F5F7FA;
  --border-color: #E0E0E0;
}

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

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

.page-tai-xiu__section-title {
  font-size: 2.5em;
  font-weight: bold;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 40px;
  padding-top: 20px;
}

.page-tai-xiu__sub-title {
  font-size: 1.8em;
  font-weight: bold;
  color: var(--primary-color);
  margin-top: 30px;
  margin-bottom: 15px;
}

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

.page-tai-xiu__list {
  list-style-type: disc;
  margin-left: 20px;
  margin-bottom: 1em;
}

.page-tai-xiu__list-ordered {
  list-style-type: decimal;
  margin-left: 20px;
  margin-bottom: 1em;
}

.page-tai-xiu__list li {
  margin-bottom: 0.5em;
}

.page-tai-xiu__btn-primary,
.page-tai-xiu__btn-secondary {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  text-align: center;
  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, var(--secondary-color) 0%, var(--primary-color) 100%);
  color: #ffffff;
  border: none;
}

.page-tai-xiu__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.page-tai-xiu__btn-secondary {
  background: var(--card-bg-color);
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.page-tai-xiu__btn-secondary:hover {
  background: var(--primary-color);
  color: #ffffff;
}

/* Hero Section */
.page-tai-xiu__hero-section {
  padding-top: 10px; /* Rely on body padding for header offset */
  padding-bottom: 60px;
  background-color: var(--background-page-color);
  color: var(--text-main-color);
}

.page-tai-xiu__hero-container {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

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

.page-tai-xiu__hero-title {
  font-size: 3.2em;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 20px;
  line-height: 1.2;
}

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

.page-tai-xiu__hero-cta-buttons {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

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

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

/* Image Wrapper for content images */
.page-tai-xiu__image-wrapper {
  margin: 30px auto;
  text-align: center;
  max-width: 800px; /* Adjust as needed */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

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

/* Intro Section */
.page-tai-xiu__intro-section,
.page-tai-xiu__gameplay-section,
.page-tai-xiu__strategy-section,
.page-tai-xiu__why-choose-section,
.page-tai-xiu__faq-section {
  padding: 60px 0;
  background-color: var(--card-bg-color);
  margin-bottom: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

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

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

.page-tai-xiu__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.2em;
  font-weight: bold;
  color: var(--primary-color);
  cursor: pointer;
  list-style: none; /* Hide default marker */
}

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

.page-tai-xiu__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
}

.page-tai-xiu__faq-item[open] .page-tai-xiu__faq-toggle {
  content: "−"; /* Changed by JS */
}

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

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

/* CTA Section */
.page-tai-xiu__cta-section {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: #ffffff;
  padding: 80px 0;
  text-align: center;
  border-radius: 12px;
  margin-top: 40px;
  margin-bottom: 40px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.page-tai-xiu__cta-title {
  font-size: 2.8em;
  font-weight: bold;
  margin-bottom: 20px;
  color: #ffffff;
}

.page-tai-xiu__cta-description {
  font-size: 1.3em;
  margin-bottom: 40px;
  line-height: 1.5;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

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

@media (max-width: 768px) {
  /* General content padding */
  .page-tai-xiu__container {
    padding: 0 15px !important;
  }

  /* HERO Section */
  .page-tai-xiu__hero-section {
    padding-top: 10px !important;
    padding-bottom: 40px !important;
  }
  .page-tai-xiu__hero-container {
    flex-direction: column; /* Stack columns */
    gap: 30px;
  }
  .page-tai-xiu__hero-content {
    order: 2; /* Content below image */
    text-align: center;
  }
  .page-tai-xiu__hero-image {
    order: 1; /* Image above content */
    min-width: unset;
  }
  .page-tai-xiu__hero-title {
    font-size: 2.2em;
    margin-bottom: 15px;
  }
  .page-tai-xiu__hero-description {
    font-size: 1.1em;
    margin-bottom: 25px;
  }
  .page-tai-xiu__hero-cta-buttons {
    flex-direction: column; /* Stack buttons */
    gap: 15px;
  }
  .page-tai-xiu__btn-primary,
  .page-tai-xiu__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
  }

  /* All Sections */
  .page-tai-xiu__intro-section,
  .page-tai-xiu__gameplay-section,
  .page-tai-xiu__strategy-section,
  .page-tai-xiu__why-choose-section,
  .page-tai-xiu__faq-section {
    padding: 40px 0;
    margin-bottom: 15px;
  }

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

  .page-tai-xiu__sub-title {
    font-size: 1.5em;
  }

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

  /* General Images */
  .page-tai-xiu img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
  }
  .page-tai-xiu__image-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    margin-left: 0;
    margin-right: 0;
  }

  /* FAQ Section */
  .page-tai-xiu__faq-question {
    font-size: 1.1em;
    padding: 15px 20px;
  }
  .page-tai-xiu__faq-answer {
    font-size: 0.95em;
    padding: 0 20px 15px;
  }

  /* CTA Section */
  .page-tai-xiu__cta-section {
    padding: 50px 0;
    margin-top: 30px;
    margin-bottom: 30px;
  }
  .page-tai-xiu__cta-title {
    font-size: 2em;
  }
  .page-tai-xiu__cta-description {
    font-size: 1.1em;
    margin-bottom: 30px;
  }
  .page-tai-xiu__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-tai-xiu__cta-buttons .page-tai-xiu__btn-primary,
  .page-tai-xiu__cta-buttons .page-tai-xiu__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
  }
}