/* style/tai-xiu.css */

/* General Styles */
.page-tai-xiu {
  font-family: 'Arial', sans-serif;
  color: #333333; /* Default text color for light background */
  background-color: #FFFFFF; /* Default body background */
}

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

.page-tai-xiu__section-title {
  font-size: 2.5em;
  font-weight: bold;
  color: #017439;
  text-align: center;
  margin-bottom: 30px;
  line-height: 1.2;
}

.page-tai-xiu__text-block {
  font-size: 1.1em;
  line-height: 1.6;
  text-align: center;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-tai-xiu__btn-primary,
.page-tai-xiu__btn-secondary,
.page-tai-xiu a[class*="button"],
.page-tai-xiu a[class*="btn"] {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.05em;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-tai-xiu__btn-primary {
  background: #C30808; /* Custom color for Register/Login */
  color: #FFFF00; /* Custom font color for Register/Login */
  border: 2px solid #C30808;
}

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

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

.page-tai-xiu__btn-secondary:hover {
  background: #005a2e;
  border-color: #005a2e;
}

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

/* Hero Section */
.page-tai-xiu__hero-section {
  padding-top: 10px; /* Small top padding, shared.css handles body padding-top */
  padding-bottom: 60px;
  background-color: #017439;
  color: #ffffff;
}

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

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

.page-tai-xiu__hero-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #ffffff;
}

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

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

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

.page-tai-xiu__hero-image {
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* Intro Game Section */
.page-tai-xiu__intro-game-section {
  padding-top: 60px;
  padding-bottom: 60px;
  background-color: #f8f8f8;
}

.page-tai-xiu__intro-features {
  display: flex;
  justify-content: space-around;
  gap: 30px;
  flex-wrap: wrap;
  margin-top: 50px;
}

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

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

.page-tai-xiu__icon-box-media {
  width: 200px;
  height: 200px;
  aspect-ratio: 1/1;
  margin: 0 auto 20px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid #017439;
  box-shadow: 0 0 0 8px rgba(1, 116, 57, 0.2);
}

.page-tai-xiu__icon-box-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%; /* Ensure image itself is round */
  display: block;
}

.page-tai-xiu__feature-title {
  font-size: 1.6em;
  font-weight: bold;
  color: #017439;
  margin-bottom: 15px;
}

.page-tai-xiu__feature-description {
  font-size: 1em;
  line-height: 1.6;
  color: #555555;
}

/* Rules Section */
.page-tai-xiu__rules-section {
  padding-top: 60px;
  padding-bottom: 60px;
  background-color: #017439;
  color: #ffffff;
}

.page-tai-xiu__rules-section .page-tai-xiu__section-title {
  color: #ffffff;
}

.page-tai-xiu__rules-section .page-tai-xiu__text-block {
  color: #f0f0f0;
}

.page-tai-xiu__rules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
  margin-top: 40px;
}

.page-tai-xiu__rule-card {
  background-color: #ffffff;
  color: #333333;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.page-tai-xiu__card-title {
  font-size: 1.4em;
  font-weight: bold;
  color: #017439;
  margin-bottom: 10px;
}

.page-tai-xiu__card-description {
  font-size: 0.95em;
  line-height: 1.6;
  color: #555555;
}

/* Strategies Section */
.page-tai-xiu__strategies-section {
  padding-top: 60px;
  padding-bottom: 60px;
  background-color: #f8f8f8;
}

.page-tai-xiu__strategy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
  margin-top: 40px;
}

.page-tai-xiu__strategy-card {
  background-color: #ffffff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.page-tai-xiu__strategy-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
}

/* Tips Section */
.page-tai-xiu__tips-section {
  padding-top: 60px;
  padding-bottom: 60px;
  background-color: #017439;
  color: #ffffff;
}

.page-tai-xiu__tips-section .page-tai-xiu__section-title {
  color: #ffffff;
}

.page-tai-xiu__tips-section .page-tai-xiu__text-block {
  color: #f0f0f0;
}

.page-tai-xiu__tips-list {
  list-style: none;
  padding: 0;
  max-width: 800px;
  margin: 40px auto 0 auto;
}

.page-tai-xiu__tips-item {
  background-color: #ffffff;
  color: #333333;
  padding: 18px 25px;
  margin-bottom: 15px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  font-size: 1.05em;
  line-height: 1.6;
  display: flex;
  align-items: center;
  gap: 15px;
}

.page-tai-xiu__tips-item::before {
  content: '✓';
  color: #017439;
  font-size: 1.5em;
  font-weight: bold;
  line-height: 1;
}

/* Why Us Section */
.page-tai-xiu__why-us-section {
  padding-top: 60px;
  padding-bottom: 60px;
  background-color: #f8f8f8;
}

.page-tai-xiu__why-us-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  margin-top: 40px;
}

.page-tai-xiu__why-us-item {
  text-align: center;
  background-color: #ffffff;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.page-tai-xiu__why-us-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 15px;
}

.page-tai-xiu__item-title {
  font-size: 1.3em;
  font-weight: bold;
  color: #017439;
  margin-bottom: 10px;
}

.page-tai-xiu__item-description {
  font-size: 0.9em;
  line-height: 1.6;
  color: #555555;
}

/* Register Guide Section */
.page-tai-xiu__register-guide-section {
  padding-top: 60px;
  padding-bottom: 60px;
  background-color: #017439;
  color: #ffffff;
}

.page-tai-xiu__register-guide-section .page-tai-xiu__section-title {
  color: #ffffff;
}

.page-tai-xiu__register-guide-section .page-tai-xiu__text-block {
  color: #f0f0f0;
}

.page-tai-xiu__guide-list {
  list-style: none;
  padding: 0;
  max-width: 800px;
  margin: 40px auto 0 auto;
}

.page-tai-xiu__guide-item {
  background-color: #ffffff;
  color: #333333;
  padding: 18px 25px;
  margin-bottom: 15px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  font-size: 1.05em;
  line-height: 1.6;
  display: flex;
  align-items: center;
  gap: 15px;
}

.page-tai-xiu__guide-item strong {
  color: #017439;
}

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

/* FAQ Section */
.page-tai-xiu__faq-section {
  padding-top: 60px;
  padding-bottom: 60px;
  background-color: #f8f8f8;
}

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

.page-tai-xiu__faq-item {
  background-color: #ffffff;
  margin-bottom: 15px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  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: bold;
  color: #333333;
  cursor: pointer;
  background-color: #ffffff;
  border-bottom: 1px solid #eeeeee;
  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 {
  border-bottom: 1px solid #017439;
}

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

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

/* Final CTA Section */
.page-tai-xiu__cta-final-section {
  padding-top: 60px;
  padding-bottom: 60px;
  background-color: #017439;
  color: #ffffff;
  text-align: center;
}

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

.page-tai-xiu__cta-final-section .page-tai-xiu__text-block {
  color: #f0f0f0;
  margin-bottom: 40px;
}

.page-tai-xiu__final-cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
  .page-tai-xiu__container,
  .page-tai-xiu__hero-container {
    padding: 25px 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

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

  .page-tai-xiu__text-block {
    font-size: 1em !important;
    margin-bottom: 20px !important;
  }

  /* HERO Section */
  .page-tai-xiu__hero-section {
    padding-top: 10px !important; /* Retain small top padding */
    padding-bottom: 40px !important;
  }

  .page-tai-xiu__hero-container {
    flex-direction: column;
    gap: 30px !important;
  }

  .page-tai-xiu__hero-content,
  .page-tai-xiu__hero-image-wrapper {
    flex: 1 1 100% !important;
    min-width: unset !important;
    text-align: center !important;
  }

  .page-tai-xiu__hero-title {
    font-size: clamp(2rem, 8vw, 2.5rem) !important;
    margin-bottom: 15px !important;
  }

  .page-tai-xiu__hero-description {
    font-size: 1em !important;
    margin-bottom: 25px !important;
  }

  .page-tai-xiu__hero-cta-buttons,
  .page-tai-xiu__final-cta-buttons {
    flex-direction: column !important;
    gap: 15px !important;
  }

  .page-tai-xiu__btn-primary,
  .page-tai-xiu__btn-secondary,
  .page-tai-xiu a[class*="button"],
  .page-tai-xiu a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    padding: 10px 15px !important;
    font-size: 1em !important;
  }

  /* Intro Game Section */
  .page-tai-xiu__intro-features {
    flex-direction: column;
    gap: 25px !important;
  }

  .page-tai-xiu__feature-item {
    flex: 1 1 100% !important;
    min-width: unset !important;
    padding: 25px !important;
  }

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

  /* Rules Section */
  .page-tai-xiu__rules-grid {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }

  /* Strategies Section */
  .page-tai-xiu__strategy-grid {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }

  .page-tai-xiu__strategy-image {
    height: 180px !important;
  }

  /* Tips Section */
  .page-tai-xiu__tips-list {
    margin-top: 30px !important;
  }

  .page-tai-xiu__tips-item {
    padding: 15px 20px !important;
    font-size: 0.95em !important;
    gap: 10px !important;
  }

  /* Why Us Section */
  .page-tai-xiu__why-us-grid {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }

  /* Register Guide Section */
  .page-tai-xiu__guide-list {
    margin-top: 30px !important;
  }

  .page-tai-xiu__guide-item {
    padding: 15px 20px !important;
    font-size: 0.95em !important;
    gap: 10px !important;
  }

  .page-tai-xiu__guide-cta {
    margin-top: 30px !important;
  }

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

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

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

  /* Final CTA Section */
  .page-tai-xiu__cta-final-section .page-tai-xiu__text-block {
    margin-bottom: 30px !important;
  }

  /* Universal image and container responsiveness */
  .page-tai-xiu img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
  }

  .page-tai-xiu__section,
  .page-tai-xiu__card,
  .page-tai-xiu__container,
  .page-tai-xiu__hero-section,
  .page-tai-xiu__intro-game-section,
  .page-tai-xiu__rules-section,
  .page-tai-xiu__strategies-section,
  .page-tai-xiu__tips-section,
  .page-tai-xiu__why-us-section,
  .page-tai-xiu__register-guide-section,
  .page-tai-xiu__faq-section,
  .page-tai-xiu__cta-final-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important; /* Prevent horizontal scroll */
  }
}